Skip to content

Commit

Permalink
Merge pull request #639 from nevermined-io/fix/support-more-networks
Browse files Browse the repository at this point in the history
fix: support new networks
  • Loading branch information
eruizgar91 authored Mar 13, 2024
2 parents 3496fcc + 269e53f commit b09539d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions integration/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ if (process.env.NETWORK_NAME === 'gnosis') {

if (process.env.NETWORK_NAME === 'one-staging') {
Object.assign(configBase, {
marketplaceUri: 'https://marketplace-api.goerli.nevermined.one',
neverminedNodeUri: 'https://node.goerli.nevermined.one',
web3ProviderUri: `https://arbitrum-goerli.infura.io/v3/${infuraToken}`,
marketplaceUri: 'https://marketplace-api.staging.nevermined.app',
neverminedNodeUri: 'https://node.staging.nevermined.app',
web3ProviderUri: `https://arbitrum-sepolia.infura.io/v3/${infuraToken}`,
neverminedNodeAddress: '0x5838B5512cF9f12FE9f2beccB20eb47211F9B0bc',
graphHttpUri: 'https://api.thegraph.com/subgraphs/name/nevermined-io/public',
} as NeverminedOptions)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nevermined-io/sdk",
"version": "2.2.9",
"version": "2.2.10",
"description": "Javascript SDK for connecting with Nevermined Data Platform ",
"main": "./dist/node/sdk.js",
"typings": "./dist/node/sdk.d.ts",
Expand Down
6 changes: 5 additions & 1 deletion src/keeper/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Hex, SignTypedDataParams, SmartAccountSigner } from '@alchemy/aa-core'
import { Signer, TypedDataField, Wallet, ethers } from 'ethers'
import { SmartAccountSigner, SignTypedDataParams, Hex } from '@alchemy/aa-core'
import { KeeperError } from '../errors'

export async function getNetworkName(networkId: number): Promise<string> {
Expand All @@ -14,6 +14,8 @@ export async function getNetworkName(networkId: number): Promise<string> {
return 'rinkeby'
case 5:
return 'goerli'
case 10:
return 'optimism'
case 77:
return 'poa_sokol'
case 99:
Expand All @@ -28,6 +30,8 @@ export async function getNetworkName(networkId: number): Promise<string> {
return 'geth-localnet'
case 3141:
return 'hyperspace'
case 8453:
return 'base'
case 10200:
return 'chiado' // Gnosis testnet
case 31337:
Expand Down

0 comments on commit b09539d

Please sign in to comment.