@defillama/sdk 2.3.102 → 2.3.104
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 +2 -0
- package/build/general.d.ts +1 -1
- package/build/general.js +3 -1
- package/package.json +2 -4
package/build/abi/multicall.js
CHANGED
|
@@ -305,6 +305,8 @@ function multicallAddress(chainId) {
|
|
|
305
305
|
return "0xcc515Aa7eE9Be4491c98DE68ee2147F0A063759D";
|
|
306
306
|
case 42170: // arbitrum nova chain
|
|
307
307
|
return "0x2fe78f55c39dc437c4c025f8a1ffc54edb4a34c3";
|
|
308
|
+
case 55555: // reichain
|
|
309
|
+
return "0x5CCBA81867AE1F9d470a9514fb9B175E84D47979";
|
|
308
310
|
default:
|
|
309
311
|
return null;
|
|
310
312
|
}
|
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";
|
|
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" | "cube";
|
|
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
|
@@ -111,7 +111,9 @@ exports.providers = {
|
|
|
111
111
|
arbitrum_nova: createProvider("posi", "https://nova.arbitrum.io/rpc", 42170),
|
|
112
112
|
ultron: createProvider("ultron", "https://ultron-rpc.net", 1231),
|
|
113
113
|
tombchain: createProvider("tombchain", "https://rpc.tombchain.com/", 6969),
|
|
114
|
-
vision: createProvider("vision", "https://infragrid.v.network/ethereum/compatible", 888888)
|
|
114
|
+
vision: createProvider("vision", "https://infragrid.v.network/ethereum/compatible", 888888),
|
|
115
|
+
ethpow: createProvider("ethpow", "https://mainnet.ethereumpow.org/", 10001),
|
|
116
|
+
cube: createProvider("cube", "https://http-mainnet.cube.network/", 1818)
|
|
115
117
|
};
|
|
116
118
|
function getProvider(chain) {
|
|
117
119
|
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.104",
|
|
4
4
|
"description": "SDK for calculating TVL",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,9 +18,7 @@
|
|
|
18
18
|
"author": "",
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"types": "build/index.d.ts",
|
|
21
|
-
"files": [
|
|
22
|
-
"build"
|
|
23
|
-
],
|
|
21
|
+
"files": ["build"],
|
|
24
22
|
"dependencies": {
|
|
25
23
|
"@supercharge/promise-pool": "^2.1.0",
|
|
26
24
|
"ethers": "^5.4.5",
|