From 932dfb247290b754c9a4cdd4b991a57b48653c72 Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Thu, 9 May 2024 14:52:30 +0300 Subject: [PATCH] more mumbai cleanups (#2036) --- src/@utils/ocean/index.ts | 2 +- src/@utils/wallet/index.ts | 10 ++-------- .../FormInput/InputElement/FilesInput/index.test.tsx | 4 ++-- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/@utils/ocean/index.ts b/src/@utils/ocean/index.ts index 3bd61c3f6..8f92e29b2 100644 --- a/src/@utils/ocean/index.ts +++ b/src/@utils/ocean/index.ts @@ -52,7 +52,7 @@ export function getDevelopmentConfig(): Config { // metadataContractAddress: contractAddresses.development?.Metadata, // oceanTokenAddress: contractAddresses.development?.Ocean, // There is no subgraph in barge so we hardcode the Polygon Mumbai one for now - subgraphUri: 'https://v4.subgraph.mumbai.oceanprotocol.com' + subgraphUri: 'https://v4.subgraph.sepolia.oceanprotocol.com' } as Config } diff --git a/src/@utils/wallet/index.ts b/src/@utils/wallet/index.ts index bebc52949..12f6b74f4 100644 --- a/src/@utils/wallet/index.ts +++ b/src/@utils/wallet/index.ts @@ -1,12 +1,6 @@ import { LoggerInstance } from '@oceanprotocol/lib' import { createClient, erc20ABI } from 'wagmi' -import { - mainnet, - polygon, - optimism, - polygonMumbai, - sepolia -} from 'wagmi/chains' +import { mainnet, polygon, optimism, sepolia } from 'wagmi/chains' import { ethers, Contract, Signer } from 'ethers' import { formatEther } from 'ethers/lib/utils' import { getDefaultClient } from 'connectkit' @@ -36,7 +30,7 @@ export const wagmiClient = createClient( appName: 'Ocean Market', infuraId: process.env.NEXT_PUBLIC_INFURA_PROJECT_ID, // TODO: mapping between appConfig.chainIdsSupported and wagmi chainId - chains: [mainnet, polygon, optimism, polygonMumbai, sepolia], + chains: [mainnet, polygon, optimism, sepolia], walletConnectProjectId: process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID }) ) diff --git a/src/components/@shared/FormInput/InputElement/FilesInput/index.test.tsx b/src/components/@shared/FormInput/InputElement/FilesInput/index.test.tsx index 89782a9d5..6e150841b 100644 --- a/src/components/@shared/FormInput/InputElement/FilesInput/index.test.tsx +++ b/src/components/@shared/FormInput/InputElement/FilesInput/index.test.tsx @@ -46,7 +46,7 @@ const mockFieldArwave = { const mockFieldGraphQL = { value: - 'https://v4.subgraph.mumbai.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph', + 'https://v4.subgraph.sepolia.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph', checked: false, onChange: jest.fn(), onBlur: jest.fn(), @@ -201,7 +201,7 @@ describe('@shared/FormInput/InputElement/FilesInput', () => { { type: 'graphql', valid: true, - url: 'https://v4.subgraph.mumbai.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph', + url: 'https://v4.subgraph.sepolia.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph', query: 'query{\n nfts(orderBy: createdTimestamp,orderDirection:desc){\n id\n symbol\n createdTimestamp\n }\n }', checksum: false