mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 06:02:36 +03:00
Update schemas due to generateSwapCalldata method
This commit is contained in:
@@ -6,7 +6,11 @@
|
||||
"shortName": "ETH",
|
||||
"code": "eth",
|
||||
"rpc": "https://trade.orionprotocol.io/rpc",
|
||||
"baseCurrencyName": "ETH"
|
||||
"baseCurrencyName": "ETH",
|
||||
"contracts": {
|
||||
"WETH": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
||||
"curveRegistry": "0x90E00ACe148ca3b23Ac1bC8C240C2a7Dd9c2d7f5"
|
||||
}
|
||||
},
|
||||
"56": {
|
||||
"chainId": "56",
|
||||
@@ -15,7 +19,11 @@
|
||||
"shortName": "BSC",
|
||||
"code": "bsc",
|
||||
"rpc": "https://bsc-dataseed.binance.org/",
|
||||
"baseCurrencyName": "BNB"
|
||||
"baseCurrencyName": "BNB",
|
||||
"contracts": {
|
||||
"WETH": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
|
||||
"curveRegistry": ""
|
||||
}
|
||||
},
|
||||
"97": {
|
||||
"chainId": "97",
|
||||
@@ -24,7 +32,11 @@
|
||||
"shortName": "BSC-Testnet",
|
||||
"code": "bsc",
|
||||
"rpc": "https://bsc-stage.node.orionprotocol.io/",
|
||||
"baseCurrencyName": "BNB"
|
||||
"baseCurrencyName": "BNB",
|
||||
"contracts": {
|
||||
"WETH": "0x23eE96bEaAB62abE126AA192e677c52bB7d274F0",
|
||||
"curveRegistry": "0x8845b36C3DE93379F468590FFa102D4aF8C49A6c"
|
||||
}
|
||||
},
|
||||
"3": {
|
||||
"chainId": "3",
|
||||
@@ -33,7 +45,11 @@
|
||||
"shortName": "ETH-Ropsten",
|
||||
"code": "eth",
|
||||
"rpc": "https://testing.orionprotocol.io/eth-ropsten/rpc",
|
||||
"baseCurrencyName": "ETH"
|
||||
"baseCurrencyName": "ETH",
|
||||
"contracts": {
|
||||
"WETH": "",
|
||||
"curveRegistry": ""
|
||||
}
|
||||
},
|
||||
"5": {
|
||||
"chainId": "5",
|
||||
@@ -42,7 +58,11 @@
|
||||
"shortName": "ETH-Goerli",
|
||||
"code": "eth",
|
||||
"rpc": "https://testing.orionprotocol.io/eth-goerli/rpc",
|
||||
"baseCurrencyName": "ETH"
|
||||
"baseCurrencyName": "ETH",
|
||||
"contracts": {
|
||||
"WETH": "",
|
||||
"curveRegistry": ""
|
||||
}
|
||||
},
|
||||
"421613": {
|
||||
"chainId": "421613",
|
||||
@@ -51,7 +71,11 @@
|
||||
"shortName": "Arbitrum Goerli",
|
||||
"code": "arb",
|
||||
"rpc": "https://goerli-rollup.arbitrum.io/rpc",
|
||||
"baseCurrencyName": "ETH"
|
||||
"baseCurrencyName": "ETH",
|
||||
"contracts": {
|
||||
"WETH": "",
|
||||
"curveRegistry": ""
|
||||
}
|
||||
},
|
||||
"4002": {
|
||||
"chainId": "4002",
|
||||
@@ -60,7 +84,11 @@
|
||||
"shortName": "FTM-Testnet",
|
||||
"code": "ftm",
|
||||
"rpc": "https://testing.orionprotocol.io/ftm-testnet/rpc",
|
||||
"baseCurrencyName": "FTM"
|
||||
"baseCurrencyName": "FTM",
|
||||
"contracts": {
|
||||
"WETH": "",
|
||||
"curveRegistry": ""
|
||||
}
|
||||
},
|
||||
"250": {
|
||||
"chainId": "250",
|
||||
@@ -69,7 +97,11 @@
|
||||
"shortName": "FTM",
|
||||
"code": "ftm",
|
||||
"rpc": "https://rpcapi.fantom.network/",
|
||||
"baseCurrencyName": "FTM"
|
||||
"baseCurrencyName": "FTM",
|
||||
"contracts": {
|
||||
"WETH": "",
|
||||
"curveRegistry": ""
|
||||
}
|
||||
},
|
||||
"137": {
|
||||
"chainId": "137",
|
||||
@@ -78,7 +110,11 @@
|
||||
"code": "polygon",
|
||||
"baseCurrencyName": "MATIC",
|
||||
"rpc": "https://polygon-rpc.com/",
|
||||
"explorer": "https://polygonscan.com/"
|
||||
"explorer": "https://polygonscan.com/",
|
||||
"contracts": {
|
||||
"WETH": "",
|
||||
"curveRegistry": ""
|
||||
}
|
||||
},
|
||||
"80001": {
|
||||
"chainId": "80001",
|
||||
@@ -87,7 +123,11 @@
|
||||
"code": "polygon",
|
||||
"baseCurrencyName": "MATIC",
|
||||
"rpc": "https://rpc-mumbai.matic.today",
|
||||
"explorer": "https://mumbai.polygonscan.com/"
|
||||
"explorer": "https://mumbai.polygonscan.com/",
|
||||
"contracts": {
|
||||
"WETH": "",
|
||||
"curveRegistry": ""
|
||||
}
|
||||
},
|
||||
"66": {
|
||||
"chainId": "66",
|
||||
@@ -96,7 +136,11 @@
|
||||
"shortName": "OKC",
|
||||
"code": "okc",
|
||||
"rpc": "https://exchainrpc.okex.org/",
|
||||
"baseCurrencyName": "OKT"
|
||||
"baseCurrencyName": "OKT",
|
||||
"contracts": {
|
||||
"WETH": "",
|
||||
"curveRegistry": ""
|
||||
}
|
||||
},
|
||||
"65": {
|
||||
"chainId": "65",
|
||||
@@ -105,7 +149,11 @@
|
||||
"shortName": "OKC-Testnet",
|
||||
"code": "okc",
|
||||
"rpc": "https://exchaintestrpc.okex.org/",
|
||||
"baseCurrencyName": "OKT"
|
||||
"baseCurrencyName": "OKT",
|
||||
"contracts": {
|
||||
"WETH": "",
|
||||
"curveRegistry": ""
|
||||
}
|
||||
},
|
||||
"56303": {
|
||||
"chainId": "56303",
|
||||
@@ -114,6 +162,10 @@
|
||||
"code": "drip",
|
||||
"baseCurrencyName": "DRIP",
|
||||
"rpc": "testnet.1d.rip",
|
||||
"explorer": "https://explorer-testnet.1d.rip/"
|
||||
"explorer": "https://explorer-testnet.1d.rip/",
|
||||
"contracts": {
|
||||
"WETH": "",
|
||||
"curveRegistry": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,7 @@ export const pureChainInfoPayloadSchema = z.object({
|
||||
explorer: z.string(),
|
||||
rpc: z.string(),
|
||||
baseCurrencyName: z.string(),
|
||||
contracts: z.record(z.string(), z.string())
|
||||
});
|
||||
|
||||
export const pureChainInfoSchema = z.record(
|
||||
|
||||
@@ -11,6 +11,7 @@ const infoSchema = z.object({
|
||||
chainId: z.number(),
|
||||
chainName: z.string(),
|
||||
exchangeContractAddress: z.string(),
|
||||
swapExecutorContractAddress: z.string(),
|
||||
oracleContractAddress: z.string(),
|
||||
matcherAddress: z.string(),
|
||||
orderFeePercent: z.number(),
|
||||
|
||||
Reference in New Issue
Block a user