Merge pull request #240 from orionprotocol/feat/OP-4924-add-new-networks

OP-4924 Add new networks
This commit is contained in:
Mikhail Gladchenko
2024-01-23 08:10:09 +00:00
committed by GitHub
6 changed files with 68 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.20.45",
"version": "0.20.43-rc1",
"description": "Orion Protocol SDK",
"main": "./lib/index.cjs",
"module": "./lib/index.js",

View File

@@ -38,6 +38,18 @@
"curveRegistry": "0x93461072c00b2740c474a3d52c70be6249c802d8"
}
},
"204": {
"chainId": "204",
"explorer": "http://opbnbscan.com/",
"label": "opBNB Chain",
"shortName": "opBNB",
"code": "opbnb",
"rpc": "https://opbnb-mainnet-rpc.bnbchain.org",
"baseCurrencyName": "BNB",
"contracts": {
"WETH": "0x4200000000000000000000000000000000000006"
}
},
"3": {
"chainId": "3",
"explorer": "https://ropsten.etherscan.io/",
@@ -77,6 +89,19 @@
"curveRegistry": ""
}
},
"42161": {
"chainId": "42161",
"explorer": "https://arbiscan.io/",
"label": "Arbitrum",
"shortName": "Arbitrum",
"code": "arb",
"rpc": "https://arb1.arbitrum.io/rpc",
"baseCurrencyName": "ARB",
"contracts": {
"WETH": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
"curveRegistiry": "0x445FE580eF8d70FF569aB36e80c647af338db351"
}
},
"4002": {
"chainId": "4002",
"explorer": "https://testnet.ftmscan.com/",

View File

@@ -93,6 +93,42 @@
"http": "/orion-indexer/"
}
}
},
"42161": {
"api": "https://trade.orion.xyz/arbitrum-mainnet",
"services": {
"aggregator": {
"http": "/backend",
"ws": "/v1"
},
"blockchain": {
"http": ""
},
"priceFeed": {
"all": "/price-feed"
},
"indexer": {
"http": "/orion-indexer/"
}
}
},
"204": {
"api": "https://trade.orion.xyz/opbnb-mainnet",
"services": {
"aggregator": {
"http": "/backend",
"ws": "/v1"
},
"blockchain": {
"http": ""
},
"priceFeed": {
"all": "/price-feed"
},
"indexer": {
"http": "/orion-indexer/"
}
}
}
}
},

View File

@@ -15,4 +15,6 @@ export const productionChains = [
SupportedChainId.FANTOM_OPERA,
SupportedChainId.POLYGON,
SupportedChainId.OKC,
SupportedChainId.ARBITRUM,
SupportedChainId.OPBNB,
];

View File

@@ -1 +1 @@
export default ['ftm', 'bsc', 'eth', 'polygon', 'okc', 'arb', 'drip'] as const;
export default ['ftm', 'bsc', 'eth', 'polygon', 'okc', 'arb', 'drip', 'opbnb'] as const;

View File

@@ -83,10 +83,11 @@ export enum SupportedChainId {
MAINNET = '1',
ROPSTEN = '3',
GOERLI = '5',
ARBITRUM_GOERLI = '421613',
ARBITRUM = '42161',
FANTOM_OPERA = '250',
POLYGON = '137',
OKC = '66',
OPBNB = '204',
POLYGON_TESTNET = '80001',
FANTOM_TESTNET = '4002',
@@ -94,6 +95,7 @@ export enum SupportedChainId {
BSC_TESTNET = '97',
OKC_TESTNET = '65',
DRIP_TESTNET = '56303',
ARBITRUM_GOERLI = '421613',
// For testing and debug purpose
// BROKEN = '0',