Skip to content

Commit

Permalink
Merge pull request #612 from nevermined-io/feat/sepolia_support
Browse files Browse the repository at this point in the history
Adding support to Arbitrum Sepolia
  • Loading branch information
aaitor authored Nov 14, 2023
2 parents af132e8 + 1d4b114 commit 2cc034c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
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.0.3",
"version": "2.0.4",
"description": "Javascript SDK for connecting with Nevermined Data Platform ",
"main": "./dist/node/sdk.js",
"typings": "./dist/node/sdk.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion scripts/download-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fi

REPO_URL=https://artifacts.nevermined.network
declare -A NETWORKS_MAP
NETWORKS_MAP=( ["mainnet"]="1" ["rinkeby"]="4" ["kovan"]="42" ["matic"]="137" ["mumbai"]="80001" ["celo-alfajores"]="44787" ["celo"]="42220" ["aurora"]="1313161554" ["aurora-testnet"]="1313161555" ["arbitrum-one"]="42161" ["arbitrum-goerli"]="421613" )
NETWORKS_MAP=( ["mainnet"]="1" ["rinkeby"]="4" ["kovan"]="42" ["matic"]="137" ["mumbai"]="80001" ["celo-alfajores"]="44787" ["celo"]="42220" ["aurora"]="1313161554" ["aurora-testnet"]="1313161555" ["arbitrum-one"]="42161" ["arbitrum-goerli"]="421613" ["arbitrum-sepolia"]="421614" )

SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
UNPACK_DIR="$SCRIPT_DIR/../artifacts"
Expand Down
2 changes: 1 addition & 1 deletion src/keeper/ContractHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export class ContractHandler extends Instantiable {
}

// arbitrum
if (chainId === 42161 || chainId === 421613) {
if (chainId === 42161 || chainId === 421613 || chainId === 421614) {
return this.getFeeDataArbitrum()
}

Expand Down
4 changes: 4 additions & 0 deletions src/keeper/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export async function getNetworkName(networkId: number): Promise<string> {
return 'arbitrum-one'
case 421613:
return 'arbitrum-goerli'
case 421614:
return 'arbitrum-sepolia'
case 1313161554:
return 'aurora'
case 1313161555:
Expand Down Expand Up @@ -108,6 +110,8 @@ export async function isTestnet(networkId: number): Promise<boolean> {
return false
case 421613:
return true
case 421614:
return true
case 1313161554:
return false
case 1313161555:
Expand Down

0 comments on commit 2cc034c

Please sign in to comment.