From 55b9409bc5810425fdb1306ab4ede089b639c543 Mon Sep 17 00:00:00 2001 From: Aleksandr Kraiz Date: Tue, 9 May 2023 13:08:12 +0400 Subject: [PATCH] Added Arbitrum Goerli --- package-lock.json | 4 ++-- package.json | 2 +- src/config/chains.json | 9 +++++++++ src/config/envs.json | 15 +++++++++++++++ src/constants/chains.ts | 1 + src/types.ts | 1 + 6 files changed, 29 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index df2341c..a95fb75 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@orionprotocol/sdk", - "version": "0.18.22", + "version": "0.18.23", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@orionprotocol/sdk", - "version": "0.18.22", + "version": "0.18.23", "license": "ISC", "dependencies": { "@babel/runtime": "^7.21.0", diff --git a/package.json b/package.json index 23b7097..0502fc5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.18.22", + "version": "0.18.23", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/config/chains.json b/src/config/chains.json index 1c2c315..2e69828 100644 --- a/src/config/chains.json +++ b/src/config/chains.json @@ -44,6 +44,15 @@ "rpc": "https://testing.orionprotocol.io/eth-goerli/rpc", "baseCurrencyName": "ETH" }, + "421613": { + "chainId": "421613", + "explorer": "https://goerli.arbiscan.io/", + "label": "Arbitrum Goerli", + "shortName": "Arbitrum Goerli", + "code": "arb", + "rpc": "https://goerli-rollup.arbitrum.io/rpc", + "baseCurrencyName": "AGOR" + }, "4002": { "chainId": "4002", "explorer": "https://testnet.ftmscan.com/", diff --git a/src/config/envs.json b/src/config/envs.json index b2bc672..970e59b 100644 --- a/src/config/envs.json +++ b/src/config/envs.json @@ -116,6 +116,21 @@ } } }, + "421613": { + "api": "https://testing.orionprotocol.io/arbitrum-goerli", + "services": { + "aggregator": { + "http": "/backend", + "ws": "/v1" + }, + "blockchain": { + "http": "" + }, + "priceFeed": { + "all": "/price-feed" + } + } + }, "4002": { "api": "https://testing.orionprotocol.io/ftm-testnet", "services": { diff --git a/src/constants/chains.ts b/src/constants/chains.ts index f684680..790a42d 100644 --- a/src/constants/chains.ts +++ b/src/constants/chains.ts @@ -4,6 +4,7 @@ export const developmentChains = [ SupportedChainId.BSC_TESTNET, SupportedChainId.ROPSTEN, SupportedChainId.GOERLI, + SupportedChainId.ARBITRUM_GOERLI, SupportedChainId.FANTOM_TESTNET, SupportedChainId.POLYGON_TESTNET, SupportedChainId.OKC_TESTNET, diff --git a/src/types.ts b/src/types.ts index c203e5d..c81e011 100644 --- a/src/types.ts +++ b/src/types.ts @@ -127,6 +127,7 @@ export enum SupportedChainId { MAINNET = '1', ROPSTEN = '3', GOERLI = '5', + ARBITRUM_GOERLI = '421613', FANTOM_OPERA = '250', POLYGON = '137', OKC = '66',