@defillama/sdk 2.3.106 → 2.3.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/abi/multicall.js +5 -0
- package/build/general.d.ts +1 -1
- package/build/general.js +3 -1
- package/package.json +1 -1
package/build/abi/multicall.js
CHANGED
|
@@ -281,6 +281,7 @@ function multicallAddress(chainId) {
|
|
|
281
281
|
case 900000: // posi
|
|
282
282
|
case 1231: // ultron
|
|
283
283
|
case 2152: // findora
|
|
284
|
+
case 50: // xdc
|
|
284
285
|
return "0x18fA376d92511Dd04090566AB6144847c03557d8";
|
|
285
286
|
case 2222:
|
|
286
287
|
return "0x30A62aA52Fa099C4B227869EB6aeaDEda054d121"; // kava
|
|
@@ -307,8 +308,12 @@ function multicallAddress(chainId) {
|
|
|
307
308
|
return "0x2fe78f55c39dc437c4c025f8a1ffc54edb4a34c3";
|
|
308
309
|
case 55555: // reichain
|
|
309
310
|
return "0x5CCBA81867AE1F9d470a9514fb9B175E84D47979";
|
|
311
|
+
case 530: // functionx
|
|
312
|
+
return "0xC43a7181654639556e4caca1bf9219C14a106401";
|
|
310
313
|
case 1818: // cube
|
|
311
314
|
return "0x28d2ebdb36369db1c51355cdc0898754d1a1c3c5";
|
|
315
|
+
case 1234:
|
|
316
|
+
return "0x176CcFFbAB792Aaa0da7C430FE20a7106d969f66";
|
|
312
317
|
default:
|
|
313
318
|
return null;
|
|
314
319
|
}
|
package/build/general.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ethers, BigNumber } from "ethers";
|
|
|
2
2
|
export declare const providers: {
|
|
3
3
|
[chain: string]: ethers.providers.BaseProvider;
|
|
4
4
|
};
|
|
5
|
-
export declare type Chain = "ethereum" | "bsc" | "polygon" | "heco" | "fantom" | "rsk" | "tomochain" | "xdai" | "avax" | "wan" | "iotex" | "harmony" | "thundercore" | "okexchain" | "optimism" | "arbitrum" | "kcc" | "celo" | "moonriver" | "shiden" | "palm" | "energyweb" | "energi" | "songbird" | "hpb" | "gochain" | "ethereumclassic" | "xdaiarb" | "kardia" | "fuse" | "smartbch" | "elastos" | "hoo" | "fusion" | "aurora" | "ronin" | "boba" | "cronos" | "polis" | "zyx" | "telos" | "metis" | "ubiq" | "velas" | "callisto" | "csc" | "nahmii" | "liquidchain" | "meter" | "theta" | "oasis" | "syscoin" | "moonbeam" | "curio" | "astar" | "godwoken" | "evmos" | "conflux" | "milkomeda" | "dfk" | "bittorrent" | "findora" | "candle" | "lachain" | "reichain" | "rei" | "clv" | "echelon" | "multivac" | "sx" | "karura_evm" | "nova" | "ontology_evm" | "jfin" | "bitkub" | "bitgert" | "canto" | "dogechain" | "posi" | "arbitrum_nova" | "ultron" | "tombchain" | "vision" | "ethpow" | "functionx" | "cube";
|
|
5
|
+
export declare type Chain = "ethereum" | "bsc" | "polygon" | "heco" | "fantom" | "rsk" | "tomochain" | "xdai" | "avax" | "wan" | "iotex" | "harmony" | "thundercore" | "okexchain" | "optimism" | "arbitrum" | "kcc" | "celo" | "moonriver" | "shiden" | "palm" | "energyweb" | "energi" | "songbird" | "hpb" | "gochain" | "ethereumclassic" | "xdaiarb" | "kardia" | "fuse" | "smartbch" | "elastos" | "hoo" | "fusion" | "aurora" | "ronin" | "boba" | "cronos" | "polis" | "zyx" | "telos" | "metis" | "ubiq" | "velas" | "callisto" | "csc" | "nahmii" | "liquidchain" | "meter" | "theta" | "oasis" | "syscoin" | "moonbeam" | "curio" | "astar" | "godwoken" | "evmos" | "conflux" | "milkomeda" | "dfk" | "bittorrent" | "findora" | "candle" | "lachain" | "reichain" | "rei" | "clv" | "echelon" | "multivac" | "sx" | "karura_evm" | "nova" | "ontology_evm" | "jfin" | "bitkub" | "bitgert" | "canto" | "dogechain" | "posi" | "arbitrum_nova" | "ultron" | "tombchain" | "vision" | "ethpow" | "functionx" | "cube" | "xdc" | "step";
|
|
6
6
|
export declare function getProvider(chain?: Chain): ethers.providers.BaseProvider;
|
|
7
7
|
export declare const TEN: ethers.BigNumber;
|
|
8
8
|
export declare function handleDecimals(num: BigNumber, decimals?: number): string;
|
package/build/general.js
CHANGED
|
@@ -114,7 +114,9 @@ exports.providers = {
|
|
|
114
114
|
vision: createProvider("vision", "https://infragrid.v.network/ethereum/compatible", 888888),
|
|
115
115
|
ethpow: createProvider("ethpow", "https://mainnet.ethereumpow.org/", 10001),
|
|
116
116
|
functionx: createProvider("functionx", "https://fx-json-web3.functionx.io:8545", 530),
|
|
117
|
-
|
|
117
|
+
xdc: createProvider("xdc", "https://rpc.xinfin.network,https://rpc1.xinfin.network,https://erpc.xinfin.network", 50),
|
|
118
|
+
cube: createProvider("cube", "https://http-mainnet.cube.network/", 1818),
|
|
119
|
+
step: createProvider("step", "https://rpc.step.network/", 1234)
|
|
118
120
|
};
|
|
119
121
|
function getProvider(chain) {
|
|
120
122
|
if (chain === void 0) { chain = "ethereum"; }
|