From 990aa04e46f52fd6ca630157b48a414be0f5f53c Mon Sep 17 00:00:00 2001 From: Aleksandr Kraiz Date: Mon, 5 Dec 2022 15:45:33 +0400 Subject: [PATCH] Broken deleted --- package.json | 2 +- src/config/chains.json | 189 ++++++++++++++++++++--------------------- src/config/envs.json | 160 ++++++++++++++-------------------- src/types.ts | 2 +- 4 files changed, 158 insertions(+), 195 deletions(-) diff --git a/package.json b/package.json index 750397e..642061b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.15.19", + "version": "0.15.20", "description": "Orion Protocol SDK", "main": "./lib/esm/index.js", "module": "./lib/esm/index.js", diff --git a/src/config/chains.json b/src/config/chains.json index ba60e81..1e8172f 100644 --- a/src/config/chains.json +++ b/src/config/chains.json @@ -1,101 +1,92 @@ { - "1": { - "chainId": "1", - "explorer": "https://etherscan.io/", - "label": "Ethereum Mainnet", - "shortName": "ETH", - "code": "eth", - "rpc": "https://trade.orionprotocol.io/rpc", - "baseCurrencyName": "ETH" - }, - "56": { - "chainId": "56", - "explorer": "https://bscscan.com/", - "label": "Binance Smart Chain", - "shortName": "BSC", - "code": "bsc", - "rpc": "https://bsc-dataseed.binance.org/", - "baseCurrencyName": "BNB" - }, - "97": { - "chainId": "97", - "explorer": "https://testnet.bscscan.com/", - "label": "Binance Smart Chain Testnet", - "shortName": "BSC-Testnet", - "code": "bsc", - "rpc": "https://bsc-stage.node.orionprotocol.io/", - "baseCurrencyName": "BNB" - }, - "3": { - "chainId": "3", - "explorer": "https://ropsten.etherscan.io/", - "label": "Ropsten", - "shortName": "ETH-Ropsten", - "code": "eth", - "rpc": "https://testing.orionprotocol.io/eth-ropsten/rpc", - "baseCurrencyName": "ETH" - }, - "4002": { - "chainId": "4002", - "explorer": "https://testnet.ftmscan.com/", - "label": "Fantom Testnet", - "shortName": "FTM-Testnet", - "code": "ftm", - "rpc": "https://testing.orionprotocol.io/ftm-testnet/rpc", - "baseCurrencyName": "FTM" - }, - "250": { - "chainId": "250", - "explorer": "https://ftmscan.com/", - "label": "Fantom Mainnet", - "shortName": "FTM", - "code": "ftm", - "rpc": "https://rpcapi.fantom.network/", - "baseCurrencyName": "FTM" - }, - "137": { - "chainId": "137", - "label": "Polygon Mainnet", - "shortName": "Polygon", - "code": "polygon", - "baseCurrencyName": "MATIC", - "rpc": "https://polygon-rpc.com/", - "explorer": "https://polygonscan.com/" - }, - "80001": { - "chainId": "80001", - "label": "Polygon Mumbai", - "shortName": "Polygon Mumbai", - "code": "polygon", - "baseCurrencyName": "MATIC", - "rpc": "https://rpc-mumbai.matic.today", - "explorer": "https://mumbai.polygonscan.com/" - }, - "66": { - "chainId": "66", - "explorer": "https://www.oklink.com/okc/", - "label": "OKC Mainnet", - "shortName": "OKC", - "code": "okc", - "rpc": "https://exchainrpc.okex.org/", - "baseCurrencyName": "OKT" - }, - "65": { - "chainId": "65", - "explorer": "https://www.oklink.com/okc-test/", - "label": "OKC Testnet", - "shortName": "OKC-Testnet", - "code": "okc", - "rpc": "https://exchaintestrpc.okex.org/", - "baseCurrencyName": "OKT" - }, - "0": { - "chainId": "0", - "explorer": "https://brokenscan.io/", - "shortName": "BROKEN", - "label": "BrokenChain", - "code": "bkn", - "rpc": "https://brokenscan.io/rpc", - "baseCurrencyName": "BKN" - } + "1": { + "chainId": "1", + "explorer": "https://etherscan.io/", + "label": "Ethereum Mainnet", + "shortName": "ETH", + "code": "eth", + "rpc": "https://trade.orionprotocol.io/rpc", + "baseCurrencyName": "ETH" + }, + "56": { + "chainId": "56", + "explorer": "https://bscscan.com/", + "label": "Binance Smart Chain", + "shortName": "BSC", + "code": "bsc", + "rpc": "https://bsc-dataseed.binance.org/", + "baseCurrencyName": "BNB" + }, + "97": { + "chainId": "97", + "explorer": "https://testnet.bscscan.com/", + "label": "Binance Smart Chain Testnet", + "shortName": "BSC-Testnet", + "code": "bsc", + "rpc": "https://bsc-stage.node.orionprotocol.io/", + "baseCurrencyName": "BNB" + }, + "3": { + "chainId": "3", + "explorer": "https://ropsten.etherscan.io/", + "label": "Ropsten", + "shortName": "ETH-Ropsten", + "code": "eth", + "rpc": "https://testing.orionprotocol.io/eth-ropsten/rpc", + "baseCurrencyName": "ETH" + }, + "4002": { + "chainId": "4002", + "explorer": "https://testnet.ftmscan.com/", + "label": "Fantom Testnet", + "shortName": "FTM-Testnet", + "code": "ftm", + "rpc": "https://testing.orionprotocol.io/ftm-testnet/rpc", + "baseCurrencyName": "FTM" + }, + "250": { + "chainId": "250", + "explorer": "https://ftmscan.com/", + "label": "Fantom Mainnet", + "shortName": "FTM", + "code": "ftm", + "rpc": "https://rpcapi.fantom.network/", + "baseCurrencyName": "FTM" + }, + "137": { + "chainId": "137", + "label": "Polygon Mainnet", + "shortName": "Polygon", + "code": "polygon", + "baseCurrencyName": "MATIC", + "rpc": "https://polygon-rpc.com/", + "explorer": "https://polygonscan.com/" + }, + "80001": { + "chainId": "80001", + "label": "Polygon Mumbai", + "shortName": "Polygon Mumbai", + "code": "polygon", + "baseCurrencyName": "MATIC", + "rpc": "https://rpc-mumbai.matic.today", + "explorer": "https://mumbai.polygonscan.com/" + }, + "66": { + "chainId": "66", + "explorer": "https://www.oklink.com/okc/", + "label": "OKC Mainnet", + "shortName": "OKC", + "code": "okc", + "rpc": "https://exchainrpc.okex.org/", + "baseCurrencyName": "OKT" + }, + "65": { + "chainId": "65", + "explorer": "https://www.oklink.com/okc-test/", + "label": "OKC Testnet", + "shortName": "OKC-Testnet", + "code": "okc", + "rpc": "https://exchaintestrpc.okex.org/", + "baseCurrencyName": "OKT" + } } diff --git a/src/config/envs.json b/src/config/envs.json index dcee00e..c8ceb99 100644 --- a/src/config/envs.json +++ b/src/config/envs.json @@ -1,97 +1,69 @@ { - "production": { - "networks": { - "1": { - "api": "https://trade.orionprotocol.io", - "liquidityMigratorAddress": "0x23a1820a47BcD022E29f6058a5FD224242F50D1A" - }, - "56": { - "api": "https://trade-exp.orionprotocol.io" - }, - "250": { - "api": "https://trade-ftm.orionprotocol.io" - }, - "137": { - "api": "https://trade-polygon.orionprotocol.io" - }, - "66": { - "api": "https://trade-okc.orionprotocol.io" - } - } - }, - "testing": { - "networks": { - "97": { - "api": "https://testing.orionprotocol.io/bsc-testnet", - "liquidityMigratorAddress": "0x01b10dds12478C88A5E18e2707E729906bC25CfF6" - }, - "3": { - "api": "https://testing.orionprotocol.io/eth-ropsten", - "liquidityMigratorAddress": "0x36969a25622AE31bA9946e0c8151f0dc08b3A1c8" - }, - "4002": { - "api": "https://testing.orionprotocol.io/ftm-testnet" - }, - "80001": { - "api": "https://testing.orionprotocol.io/polygon-mumbai" - } - } - }, - "staging": { - "networks": { - "1": { - "api": "https://staging.orionprotocol.io" - }, - "56": { - "api": "https://staging-bsc.orionprotocol.io" - }, - "250": { - "api": "https://staging-ftm.orionprotocol.io" - }, - "137": { - "api": "https://staging-polygon.orionprotocol.io" - }, - "66": { - "api": "https://staging-okc.orionprotocol.io" - } - } - }, - "experimental": { - "networks": { - "97": { - "api": "https://dn-dev.orionprotocol.io/bsc-testnet" - }, - "3": { - "api": "https://dn-dev.orionprotocol.io/eth-ropsten" - } - } - }, - "broken": { - "networks": { - "0": { - "api": "https://broken0.orionprotocol.io/everything-is-fine/this-url-was-created-for-tests-of-a-partially-broken-environment" - }, - "97": { - "api": "https://broken1.orionprotocol.io/everything-is-fine/this-url-was-created-for-tests-of-a-partially-broken-environment" - } - } - }, - "partially-broken": { - "networks": { - "97": { - "api": "https://testing.orionprotocol.io/bsc-testnet", - "liquidityMigratorAddress": "0x01b10dd12478C88A5E18e2707E729906bC25CfF6" - }, - "3": { - "api": "https://testing.orionprotocol.io/eth-ropsten", - "liquidityMigratorAddress": "0x36969a25622AE31bA9946e0c8151f0dc08b3A1c8" - }, - "4002": { - "api": "https://testing.orionprotocol.io/ftm-testnet" - }, - "0": { - "api": "https://broken.orionprotocol.io/everything-is-fine/this-url-was-created-for-tests-of-a-partially-broken-environment" - } - } + "production": { + "networks": { + "1": { + "api": "https://trade.orionprotocol.io", + "liquidityMigratorAddress": "0x23a1820a47BcD022E29f6058a5FD224242F50D1A" + }, + "56": { + "api": "https://trade-exp.orionprotocol.io" + }, + "250": { + "api": "https://trade-ftm.orionprotocol.io" + }, + "137": { + "api": "https://trade-polygon.orionprotocol.io" + }, + "66": { + "api": "https://trade-okc.orionprotocol.io" + } } + }, + "testing": { + "networks": { + "97": { + "api": "https://testing.orionprotocol.io/bsc-testnet", + "liquidityMigratorAddress": "0x01b10dds12478C88A5E18e2707E729906bC25CfF6" + }, + "3": { + "api": "https://testing.orionprotocol.io/eth-ropsten", + "liquidityMigratorAddress": "0x36969a25622AE31bA9946e0c8151f0dc08b3A1c8" + }, + "4002": { + "api": "https://testing.orionprotocol.io/ftm-testnet" + }, + "80001": { + "api": "https://testing.orionprotocol.io/polygon-mumbai" + } + } + }, + "staging": { + "networks": { + "1": { + "api": "https://staging.orionprotocol.io" + }, + "56": { + "api": "https://staging-bsc.orionprotocol.io" + }, + "250": { + "api": "https://staging-ftm.orionprotocol.io" + }, + "137": { + "api": "https://staging-polygon.orionprotocol.io" + }, + "66": { + "api": "https://staging-okc.orionprotocol.io" + } + } + }, + "experimental": { + "networks": { + "97": { + "api": "https://dn-dev.orionprotocol.io/bsc-testnet" + }, + "3": { + "api": "https://dn-dev.orionprotocol.io/eth-ropsten" + } + } + } } diff --git a/src/types.ts b/src/types.ts index 62f4938..ed3111c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -154,7 +154,7 @@ export enum SupportedChainId { OKC_TESTNET = '65', // For testing and debug purpose - BROKEN = '0', + // BROKEN = '0', } const balanceTypes = ['exchange', 'wallet'] as const;