@defillama/sdk 2.3.79 → 2.3.83
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 +7 -0
- package/build/general.d.ts +1 -1
- package/build/general.js +10 -7
- package/package.json +4 -2
package/build/abi/multicall.js
CHANGED
|
@@ -277,6 +277,13 @@ function multicallAddress(chainId) {
|
|
|
277
277
|
return "0x18fA376d92511Dd04090566AB6144847c03557d8";
|
|
278
278
|
case 2222:
|
|
279
279
|
return "0x30A62aA52Fa099C4B227869EB6aeaDEda054d121"; // kava
|
|
280
|
+
case 47805:
|
|
281
|
+
return "0x9eE9904815B80C39C1a27294E69a8626EAa7952d"; // rei network
|
|
282
|
+
case 87:
|
|
283
|
+
return "0x7A5a7579eb8DdEd352848cFDD0a5530C4e56FF7f"; // nova
|
|
284
|
+
case 820: // callisto
|
|
285
|
+
case 199: // bittorrent
|
|
286
|
+
return "0xB2fB6dA40DF36CcFFDc3B0F99df4871C7b86FCe7";
|
|
280
287
|
default:
|
|
281
288
|
return null;
|
|
282
289
|
}
|
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" | "
|
|
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";
|
|
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
|
@@ -32,7 +32,7 @@ exports.providers = {
|
|
|
32
32
|
fantom: createProvider("fantom", "https://rpc.ankr.com/fantom,https://rpc.ftm.tools/,https://rpcapi.fantom.network", 250),
|
|
33
33
|
rsk: createProvider("rsk", "https://public-node.rsk.co", 30),
|
|
34
34
|
tomochain: createProvider("tomochain", "https://rpc.tomochain.com", 88),
|
|
35
|
-
xdai: createProvider("xdai", "https://rpc.
|
|
35
|
+
xdai: createProvider("xdai", "https://rpc.ankr.com/gnosis,https://xdai-archive.blockscout.com", 100),
|
|
36
36
|
avax: createProvider("avax", "https://api.avax.network/ext/bc/C/rpc,https://rpc.ankr.com/avalanche", 43114),
|
|
37
37
|
wan: createProvider("wan", "https://gwan-ssl.wandevs.org:56891", 888),
|
|
38
38
|
harmony: createProvider("harmony", "https://harmony-0-rpc.gateway.pokt.network,https://api.harmony.one,https://api.s0.t.hmny.io", 1666600000),
|
|
@@ -62,14 +62,14 @@ 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://cronosrpc-1.xstaking.sg,https://evm.cronos.org,https://rpc.vvs.finance,https://evm-cronos.crypto.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),
|
|
69
69
|
metis: createProvider("metis", "https://andromeda.metis.io/?owner=1088", 1088),
|
|
70
70
|
ubiq: createProvider("ubiq", "https://rpc.octano.dev", 8),
|
|
71
71
|
velas: createProvider("velas", "https://evmexplorer.velas.com/rpc", 106),
|
|
72
|
-
callisto: createProvider("callisto", "https://clo-geth.0xinfra.com/", 820),
|
|
72
|
+
callisto: createProvider("callisto", "https://rpc.callisto.network,https://clo-geth.0xinfra.com/", 820),
|
|
73
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),
|
|
@@ -87,18 +87,21 @@ exports.providers = {
|
|
|
87
87
|
milkomeda: createProvider("milkomeda", "https://rpc-mainnet-cardano-evm.c1.milkomeda.com", 2001),
|
|
88
88
|
dfk: createProvider("dfk", "https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc", 53935),
|
|
89
89
|
crab: createProvider("crab", "https://crab-rpc.darwinia.network", 44),
|
|
90
|
-
bittorrent: createProvider("bittorrent", "https://rpc.bittorrentchain.io", 199),
|
|
90
|
+
bittorrent: createProvider("bittorrent", "https://rpc.bt.io,https://rpc.bittorrentchain.io", 199),
|
|
91
91
|
findora: createProvider("findora", "https://prod-mainnet.prod.findora.org:8545", 2152),
|
|
92
|
-
candle: createProvider("candle", "https://
|
|
92
|
+
candle: createProvider("candle", "https://candle-rpc.com,https://rpc.cndlchain.com", 534),
|
|
93
93
|
lachain: createProvider("lachain", "https://rpc-mainnet.lachain.io", 225),
|
|
94
94
|
reichain: createProvider("reichain", "https://rei-rpc.moonrhythm.io", 55555),
|
|
95
95
|
rei: createProvider("rei", "https://rpc.rei.network", 47805),
|
|
96
|
-
|
|
96
|
+
clv: createProvider("clv", "https://api-para.clover.finance", 1024),
|
|
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
100
|
sx: createProvider("sx", "https://rpc.sx.technology", 416),
|
|
101
|
-
|
|
101
|
+
karura_evm: createProvider("karura_evm", "https://eth-rpc-karura.aca-api.network", 686),
|
|
102
|
+
nova: createProvider("nova", "http://dataseed-0.rpc.novanetwork.io:8545,https://rpc.novanetwork.io:9070", 87),
|
|
103
|
+
ontology_evm: createProvider("ontology_evm", "https://dappnode1.ont.io:10339", 58),
|
|
104
|
+
jfin: createProvider("jfin", "https://rpc.jfinchain.com/", 3501),
|
|
102
105
|
};
|
|
103
106
|
function getProvider(chain) {
|
|
104
107
|
if (chain === void 0) { chain = "ethereum"; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defillama/sdk",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.83",
|
|
4
4
|
"description": "SDK for calculating TVL",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
"author": "",
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"types": "build/index.d.ts",
|
|
21
|
-
"files": [
|
|
21
|
+
"files": [
|
|
22
|
+
"build"
|
|
23
|
+
],
|
|
22
24
|
"dependencies": {
|
|
23
25
|
"@supercharge/promise-pool": "^2.1.0",
|
|
24
26
|
"ethers": "^5.4.5",
|