@defillama/sdk 2.3.72 → 2.3.76
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 +20 -2
- package/build/general.d.ts +1 -1
- package/build/general.js +4 -3
- package/package.json +1 -1
package/build/abi/multicall.js
CHANGED
|
@@ -238,12 +238,19 @@ function multicallAddress(chainId) {
|
|
|
238
238
|
return "0x80Ae459D058436ecB4e043ac48cfd209B578CBF0"; // boba
|
|
239
239
|
case 4689:
|
|
240
240
|
return "0x5a6787fc349665c5b0c4b93126a0b62f14935731"; // iotex
|
|
241
|
-
case
|
|
241
|
+
case 82:
|
|
242
|
+
return "0x59177c9e5d0488e21355816094a047bdf8f14ebe"; // meter
|
|
243
|
+
case 11297108109:
|
|
244
|
+
return "0xfFE2FF36c5b8D948f788a34f867784828aa7415D"; // palm
|
|
245
|
+
case 416:
|
|
246
|
+
return "0x834a005DDCF990Ba1a79f259e840e58F2D14F49a"; // sx
|
|
247
|
+
case 246: // energy web chain
|
|
242
248
|
case 336: // shiden
|
|
243
249
|
case 592: // astar
|
|
244
250
|
case 269: // High performance blockchain
|
|
245
251
|
case 321: // KCC
|
|
246
|
-
case 8217: // Klaytn
|
|
252
|
+
// case 8217: // Klaytn - multicall doesnt work for some reason
|
|
253
|
+
// case 88: // tomochain - multicall doesnt work for some reason
|
|
247
254
|
case 122: // Fuse
|
|
248
255
|
case 42220: // Celo
|
|
249
256
|
case 42262: // ROSE
|
|
@@ -255,6 +262,17 @@ function multicallAddress(chainId) {
|
|
|
255
262
|
case 2001: // Milkomeda C1
|
|
256
263
|
case 9001: // evmos
|
|
257
264
|
case 106: // velas
|
|
265
|
+
case 888: // wanchain
|
|
266
|
+
case 24: // kardia
|
|
267
|
+
case 108: // thundercore
|
|
268
|
+
case 361: // Theta
|
|
269
|
+
case 57: // Syscoin
|
|
270
|
+
case 61: // etc
|
|
271
|
+
case 70: // hoo
|
|
272
|
+
case 61: // etc
|
|
273
|
+
case 60: // go
|
|
274
|
+
case 66: // okxchain
|
|
275
|
+
case 19: // songbird
|
|
258
276
|
return "0x18fA376d92511Dd04090566AB6144847c03557d8";
|
|
259
277
|
case 2222:
|
|
260
278
|
return "0x30A62aA52Fa099C4B227869EB6aeaDEda054d121"; // kava
|
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" | "clover" | "echelon" | "multivac";
|
|
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" | "clover" | "echelon" | "multivac" | "sx";
|
|
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
|
@@ -53,7 +53,7 @@ exports.providers = {
|
|
|
53
53
|
gochain: createProvider("gochain", "https://rpc.gochain.io", 60),
|
|
54
54
|
ethereumclassic: createProvider("ethereumclassic", "https://www.ethercluster.com/etc,https://blockscout.com/etc/mainnet/api/eth-rpc", 61),
|
|
55
55
|
xdaiarb: createProvider("xdaiarb", "https://arbitrum.xdaichain.com", 200),
|
|
56
|
-
kardia: createProvider("kardia", "https://rpc.kardiachain.io/",
|
|
56
|
+
kardia: createProvider("kardia", "https://rpc.kardiachain.io/", 24),
|
|
57
57
|
fuse: createProvider("fuse", "https://rpc.fuse.io", 122),
|
|
58
58
|
smartbch: createProvider("smartbch", "https://smartbch.fountainhead.cash/mainnet", 10000),
|
|
59
59
|
elastos: createProvider("elastos", "https://api.elastos.io/eth,https://api.trinity-tech.cn/eth", 20),
|
|
@@ -62,7 +62,7 @@ exports.providers = {
|
|
|
62
62
|
aurora: createProvider("aurora", "https://mainnet.aurora.dev", 1313161554),
|
|
63
63
|
ronin: createProvider("ronin", "https://api.roninchain.com/rpc", 2020),
|
|
64
64
|
boba: createProvider("boba", "https://mainnet.boba.network/", 288),
|
|
65
|
-
cronos: createProvider("cronos", "https://
|
|
65
|
+
cronos: createProvider("cronos", "https://rpc.vvs.finance,https://evm-cronos.crypto.org,https://evm.cronos.org", 25),
|
|
66
66
|
polis: createProvider("polis", "https://rpc.polis.tech", 333999),
|
|
67
67
|
zyx: createProvider("zyx", "https://rpc-1.zyx.network/,https://rpc-2.zyx.network/,https://rpc-3.zyx.network/,https://rpc-5.zyx.network/", 55),
|
|
68
68
|
telos: createProvider("telos", "https://mainnet.telos.net/evm,https://rpc1.eu.telos.net/evm,https://rpc1.us.telos.net/evm", 40),
|
|
@@ -70,7 +70,7 @@ exports.providers = {
|
|
|
70
70
|
ubiq: createProvider("ubiq", "https://rpc.octano.dev", 8),
|
|
71
71
|
velas: createProvider("velas", "https://evmexplorer.velas.com/rpc", 106),
|
|
72
72
|
callisto: createProvider("callisto", "https://clo-geth.0xinfra.com/", 820),
|
|
73
|
-
klaytn: createProvider("klaytn", "https://public-node-api.klaytnapi.com/v1/cypress
|
|
73
|
+
klaytn: createProvider("klaytn", "https://public-node-api.klaytnapi.com/v1/cypress", 8217),
|
|
74
74
|
csc: createProvider("csc", "https://rpc.coinex.net/,https://rpc1.coinex.net/,https://rpc2.coinex.net/,https://rpc3.coinex.net/,https://rpc4.coinex.net/", 52),
|
|
75
75
|
nahmii: createProvider("nahmii", "https://l2.nahmii.io/", 5551),
|
|
76
76
|
liquidchain: createProvider("xlc", "https://rpc.liquidchain.net/,https://rpc.xlcscan.com/", 5050),
|
|
@@ -97,6 +97,7 @@ exports.providers = {
|
|
|
97
97
|
echelon: createProvider("echelon", "https://rpc.ech.network,https://evm.ech.network,https://draco.ech.network", 3000),
|
|
98
98
|
multivac: createProvider("multivac", "https://rpc.mtv.ac,https://rpc-eu.mtv.ac", 62621),
|
|
99
99
|
kava: createProvider("kava", "https://evm.kava.io", 2222),
|
|
100
|
+
sx: createProvider("sx", "https://rpc.sx.technology", 416),
|
|
100
101
|
};
|
|
101
102
|
function getProvider(chain) {
|
|
102
103
|
if (chain === void 0) { chain = "ethereum"; }
|