@defillama/sdk 2.3.83 → 2.3.86
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 +1 -0
- package/build/general.d.ts +1 -1
- package/build/general.js +3 -3
- package/package.json +2 -4
package/build/abi/multicall.js
CHANGED
|
@@ -274,6 +274,7 @@ function multicallAddress(chainId) {
|
|
|
274
274
|
case 60: // go
|
|
275
275
|
case 66: // okxchain
|
|
276
276
|
case 19: // songbird
|
|
277
|
+
case 1030: // conflux
|
|
277
278
|
return "0x18fA376d92511Dd04090566AB6144847c03557d8";
|
|
278
279
|
case 2222:
|
|
279
280
|
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" | "clv" | "echelon" | "multivac" | "sx" | "karura_evm" | "nova" | "ontology_evm" | "jfin";
|
|
5
|
+
export declare type Chain = "ethereum" | "bsc" | "polygon" | "heco" | "fantom" | "rsk" | "tomochain" | "xdai" | "avax" | "avalanche" | "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
|
@@ -77,12 +77,12 @@ exports.providers = {
|
|
|
77
77
|
meter: createProvider("meter", 'https://rpc.meter.io', 82),
|
|
78
78
|
theta: createProvider("theta", 'https://eth-rpc-api.thetatoken.org/rpc', 361),
|
|
79
79
|
oasis: createProvider("oasis", 'https://emerald.oasis.dev/', 42262),
|
|
80
|
-
syscoin: createProvider("syscoin", 'https://rpc.syscoin.org', 57),
|
|
80
|
+
syscoin: createProvider("syscoin", 'https://rpc.ankr.com/syscoin,https://rpc.syscoin.org', 57),
|
|
81
81
|
moonbeam: createProvider("moonbeam", 'https://rpc.api.moonbeam.network', 1284),
|
|
82
82
|
curio: createProvider("curio", 'https://mainnet-api.skalenodes.com/v1/fit-betelgeuse', 836542336838601),
|
|
83
83
|
astar: createProvider("astar", "https://rpc.astar.network:8545,https://astar.api.onfinality.io/public", 592),
|
|
84
84
|
godwoken: createProvider("godwoken", "https://mainnet.godwoken.io/rpc", 71394),
|
|
85
|
-
evmos: createProvider("evmos", "https://eth.bd.evmos.org:8545/", 9001),
|
|
85
|
+
evmos: createProvider("evmos", "https://jsonrpc-evmos-ia.notional.ventures,https://evmos-json-rpc.stakely.io,https://evmos-mainnet.gateway.pokt.network/v1/lb/627586ddea1b320039c95205,https://eth.bd.evmos.org:8545/", 9001),
|
|
86
86
|
conflux: createProvider("conflux", "https://evm.confluxrpc.com", 1030),
|
|
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),
|
|
@@ -105,7 +105,7 @@ exports.providers = {
|
|
|
105
105
|
};
|
|
106
106
|
function getProvider(chain) {
|
|
107
107
|
if (chain === void 0) { chain = "ethereum"; }
|
|
108
|
-
return exports.providers[chain];
|
|
108
|
+
return exports.providers[chain === "avalanche" ? "avax" : chain];
|
|
109
109
|
}
|
|
110
110
|
exports.getProvider = getProvider;
|
|
111
111
|
exports.TEN = ethers_1.BigNumber.from(10);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defillama/sdk",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.86",
|
|
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",
|