1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

more mumbai cleanups (#2036)

This commit is contained in:
Bogdan Fazakas 2024-05-09 14:52:30 +03:00 committed by GitHub
parent 61046dcfa7
commit 932dfb2472
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 11 deletions

View File

@ -52,7 +52,7 @@ export function getDevelopmentConfig(): Config {
// metadataContractAddress: contractAddresses.development?.Metadata, // metadataContractAddress: contractAddresses.development?.Metadata,
// oceanTokenAddress: contractAddresses.development?.Ocean, // oceanTokenAddress: contractAddresses.development?.Ocean,
// There is no subgraph in barge so we hardcode the Polygon Mumbai one for now // 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 } as Config
} }

View File

@ -1,12 +1,6 @@
import { LoggerInstance } from '@oceanprotocol/lib' import { LoggerInstance } from '@oceanprotocol/lib'
import { createClient, erc20ABI } from 'wagmi' import { createClient, erc20ABI } from 'wagmi'
import { import { mainnet, polygon, optimism, sepolia } from 'wagmi/chains'
mainnet,
polygon,
optimism,
polygonMumbai,
sepolia
} from 'wagmi/chains'
import { ethers, Contract, Signer } from 'ethers' import { ethers, Contract, Signer } from 'ethers'
import { formatEther } from 'ethers/lib/utils' import { formatEther } from 'ethers/lib/utils'
import { getDefaultClient } from 'connectkit' import { getDefaultClient } from 'connectkit'
@ -36,7 +30,7 @@ export const wagmiClient = createClient(
appName: 'Ocean Market', appName: 'Ocean Market',
infuraId: process.env.NEXT_PUBLIC_INFURA_PROJECT_ID, infuraId: process.env.NEXT_PUBLIC_INFURA_PROJECT_ID,
// TODO: mapping between appConfig.chainIdsSupported and wagmi chainId // 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 walletConnectProjectId: process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID
}) })
) )

View File

@ -46,7 +46,7 @@ const mockFieldArwave = {
const mockFieldGraphQL = { const mockFieldGraphQL = {
value: 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, checked: false,
onChange: jest.fn(), onChange: jest.fn(),
onBlur: jest.fn(), onBlur: jest.fn(),
@ -201,7 +201,7 @@ describe('@shared/FormInput/InputElement/FilesInput', () => {
{ {
type: 'graphql', type: 'graphql',
valid: true, 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:
'query{\n nfts(orderBy: createdTimestamp,orderDirection:desc){\n id\n symbol\n createdTimestamp\n }\n }', 'query{\n nfts(orderBy: createdTimestamp,orderDirection:desc){\n id\n symbol\n createdTimestamp\n }\n }',
checksum: false checksum: false