@defillama/sdk 2.3.87 → 2.3.90
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 +3 -0
- package/build/general.d.ts +1 -1
- package/build/general.js +4 -2
- package/package.json +4 -2
package/build/abi/multicall.js
CHANGED
|
@@ -275,6 +275,7 @@ function multicallAddress(chainId) {
|
|
|
275
275
|
case 66: // okxchain
|
|
276
276
|
case 19: // songbird
|
|
277
277
|
case 1030: // conflux
|
|
278
|
+
case 333999: // polis
|
|
278
279
|
return "0x18fA376d92511Dd04090566AB6144847c03557d8";
|
|
279
280
|
case 2222:
|
|
280
281
|
return "0x30A62aA52Fa099C4B227869EB6aeaDEda054d121"; // kava
|
|
@@ -285,6 +286,8 @@ function multicallAddress(chainId) {
|
|
|
285
286
|
case 820: // callisto
|
|
286
287
|
case 199: // bittorrent
|
|
287
288
|
return "0xB2fB6dA40DF36CcFFDc3B0F99df4871C7b86FCe7";
|
|
289
|
+
case 568: // dogechain
|
|
290
|
+
return "0x8856C24Ba82F737CFb99Ec4785CEe4d48A842F33";
|
|
288
291
|
default:
|
|
289
292
|
return null;
|
|
290
293
|
}
|
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";
|
|
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" | "canto" | "dogechain";
|
|
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
|
@@ -8,7 +8,7 @@ function createProvider(name, defaultRpc, chainId) {
|
|
|
8
8
|
if (chainId === 1) {
|
|
9
9
|
console.log("RPC providers set to historical, only the first RPC provider will be used");
|
|
10
10
|
}
|
|
11
|
-
return new ethers_1.ethers.providers.StaticJsonRpcProvider((_b = (_a = process.env[name.toUpperCase() + "_RPC"])
|
|
11
|
+
return new ethers_1.ethers.providers.StaticJsonRpcProvider((_b = ((_a = process.env[name.toUpperCase() + "_RPC"]) !== null && _a !== void 0 ? _a : defaultRpc)) === null || _b === void 0 ? void 0 : _b.split(',')[0], {
|
|
12
12
|
name: name,
|
|
13
13
|
chainId: chainId,
|
|
14
14
|
});
|
|
@@ -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),
|
|
@@ -102,6 +102,8 @@ exports.providers = {
|
|
|
102
102
|
nova: createProvider("nova", "http://dataseed-0.rpc.novanetwork.io:8545,https://rpc.novanetwork.io:9070", 87),
|
|
103
103
|
ontology_evm: createProvider("ontology_evm", "https://dappnode1.ont.io:10339", 58),
|
|
104
104
|
jfin: createProvider("jfin", "https://rpc.jfinchain.com/", 3501),
|
|
105
|
+
canto: createProvider("canto", "https://jsonrpc.canto.nodestake.top,https://canto.evm.chandrastation.com/", 7700),
|
|
106
|
+
dogechain: createProvider("dogechain", "https://rpc01-sg.dogechain.dog,https://rpc02-sg.dogechain.dog,https://rpc03-sg.dogechain.dog", 568),
|
|
105
107
|
};
|
|
106
108
|
function getProvider(chain) {
|
|
107
109
|
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.90",
|
|
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",
|