mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-29 17:17:56 +03:00
Added shortName to config
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
"1": {
|
||||
"chainId": "1",
|
||||
"explorer": "https://etherscan.io/",
|
||||
"label": "Ethereum",
|
||||
"label": "Ethereum Mainnet",
|
||||
"shortName": "ETH",
|
||||
"code": "eth",
|
||||
"rpc": "https://trade.orionprotocol.io/rpc",
|
||||
"baseCurrencyName": "ETH"
|
||||
@@ -11,6 +12,7 @@
|
||||
"chainId": "56",
|
||||
"explorer": "https://bscscan.com/",
|
||||
"label": "Binance Smart Chain",
|
||||
"shortName": "BSC",
|
||||
"code": "bsc",
|
||||
"rpc": "https://bsc-dataseed.binance.org/",
|
||||
"baseCurrencyName": "BNB"
|
||||
@@ -19,6 +21,7 @@
|
||||
"chainId": "97",
|
||||
"explorer": "https://testnet.bscscan.com/",
|
||||
"label": "Binance Smart Chain Testnet",
|
||||
"shortName": "BSC-Testent",
|
||||
"code": "bsc",
|
||||
"rpc": "https://bsc-stage.node.orionprotocol.io/",
|
||||
"baseCurrencyName": "BNB"
|
||||
@@ -27,6 +30,7 @@
|
||||
"chainId": "3",
|
||||
"explorer": "https://ropsten.etherscan.io/",
|
||||
"label": "Ropsten",
|
||||
"shortName": "ETH-Ropsten",
|
||||
"code": "eth",
|
||||
"rpc": "https://testing.orionprotocol.io/eth-ropsten/rpc",
|
||||
"baseCurrencyName": "ETH"
|
||||
@@ -35,6 +39,7 @@
|
||||
"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"
|
||||
@@ -42,14 +47,16 @@
|
||||
"250": {
|
||||
"chainId": "250",
|
||||
"explorer": "https://ftmscan.com/",
|
||||
"label": "Fantom",
|
||||
"label": "Fantom Mainnet",
|
||||
"shortName": "FTM",
|
||||
"code": "ftm",
|
||||
"rpc": "https://rpcapi.fantom.network/",
|
||||
"baseCurrencyName": "FTM"
|
||||
},
|
||||
"137": {
|
||||
"chainId": "137",
|
||||
"label": "Polygon",
|
||||
"label": "Polygon Mainnet",
|
||||
"shortName": "Polygon",
|
||||
"code": "poly",
|
||||
"baseCurrencyName": "MATIC",
|
||||
"rpc": "https://polygon-rpc.com/",
|
||||
@@ -57,7 +64,8 @@
|
||||
},
|
||||
"80001": {
|
||||
"chainId": "80001",
|
||||
"label": "Polygon Testnet",
|
||||
"label": "Polygon Mumbai",
|
||||
"shortName": "Polygon Mumbai",
|
||||
"code": "poly",
|
||||
"baseCurrencyName": "MATIC",
|
||||
"rpc": "https://rpc-mumbai.matic.today",
|
||||
@@ -66,6 +74,7 @@
|
||||
"0": {
|
||||
"chainId": "0",
|
||||
"explorer": "https://brokenscan.io/",
|
||||
"shortName": "BROKEN",
|
||||
"label": "BrokenChain",
|
||||
"code": "bkn",
|
||||
"rpc": "https://brokenscan.io/rpc",
|
||||
|
||||
@@ -4,6 +4,7 @@ import { SupportedChainId } from '../../types';
|
||||
export const pureChainInfoPayloadSchema = z.object({
|
||||
chainId: z.nativeEnum(SupportedChainId),
|
||||
label: z.string(),
|
||||
shortName: z.string(),
|
||||
code: z.string(),
|
||||
explorer: z.string(),
|
||||
rpc: z.string(),
|
||||
|
||||
@@ -103,7 +103,7 @@ class OrionBlockchain {
|
||||
|
||||
private getQueueLength = () => fetchWithValidation(
|
||||
`https://${this.apiUrl}/api/queueLength`,
|
||||
z.number().int()
|
||||
z.number().int(),
|
||||
);
|
||||
|
||||
get internal() {
|
||||
|
||||
Reference in New Issue
Block a user