@defillama/sdk 2.3.56 → 2.3.59
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/general.d.ts +1 -1
- package/build/general.js +5 -3
- package/package.json +1 -1
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" | "energyweb" | "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";
|
|
5
|
+
export declare type Chain = "ethereum" | "bsc" | "polygon" | "heco" | "fantom" | "rsk" | "tomochain" | "xdai" | "avax" | "wan" | "iotex" | "harmony" | "thundercore" | "okexchain" | "optimism" | "arbitrum" | "energyweb" | "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";
|
|
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
|
@@ -33,7 +33,7 @@ exports.providers = {
|
|
|
33
33
|
rsk: createProvider("rsk", "https://public-node.rsk.co", 30),
|
|
34
34
|
tomochain: createProvider("tomochain", "https://rpc.tomochain.com", 88),
|
|
35
35
|
xdai: createProvider("xdai", "https://rpc.xdaichain.com/,https://xdai.poanetwork.dev,https://dai.poa.network,https://xdai-archive.blockscout.com", 100),
|
|
36
|
-
avax: createProvider("avax", "https://api.avax.network/ext/bc/C/rpc", 43114),
|
|
36
|
+
avax: createProvider("avax", "https://rpc.ankr.com/avalanche,https://api.avax.network/ext/bc/C/rpc", 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),
|
|
39
39
|
thundercore: createProvider("thundercore", "https://mainnet-rpc.thundercore.com", 108),
|
|
@@ -44,7 +44,7 @@ exports.providers = {
|
|
|
44
44
|
celo: createProvider("celo", "https://forno.celo.org", 42220),
|
|
45
45
|
iotex: createProvider("iotex", "https://babel-api.mainnet.iotex.io", 4689),
|
|
46
46
|
moonriver: createProvider("moonriver", "https://rpc.api.moonriver.moonbeam.network/,https://moonriver.api.onfinality.io/public", 1285),
|
|
47
|
-
shiden: createProvider("shiden", "https://
|
|
47
|
+
shiden: createProvider("shiden", "https://shiden.api.onfinality.io/public,https://rpc.shiden.astar.network:8545", 336),
|
|
48
48
|
palm: createProvider("palm", "https://palm-mainnet.infura.io/v3/3a961d6501e54add9a41aa53f15de99b", 11297108109),
|
|
49
49
|
energyweb: createProvider("energyweb", "https://rpc.energyweb.org", 246),
|
|
50
50
|
songbird: createProvider("songbird", "https://songbird.towolabs.com/rpc", 19),
|
|
@@ -79,13 +79,15 @@ exports.providers = {
|
|
|
79
79
|
syscoin: createProvider("syscoin", 'https://rpc.syscoin.org', 57),
|
|
80
80
|
moonbeam: createProvider("moonbeam", 'https://rpc.api.moonbeam.network', 1284),
|
|
81
81
|
curio: createProvider("curio", 'https://mainnet-api.skalenodes.com/v1/fit-betelgeuse', 836542336838601),
|
|
82
|
-
astar: createProvider("astar", "https://rpc.astar.network:8545", 592),
|
|
82
|
+
astar: createProvider("astar", "https://rpc.astar.network:8545,https://astar.api.onfinality.io/public", 592),
|
|
83
83
|
godwoken: createProvider("godwoken", "https://mainnet.godwoken.io/rpc", 71394),
|
|
84
84
|
evmos: createProvider("evmos", "https://eth.bd.evmos.org:8545/", 9001),
|
|
85
85
|
conflux: createProvider("conflux", "https://evm.confluxrpc.com", 1030),
|
|
86
86
|
milkomeda: createProvider("milkomeda", "https://rpc-mainnet-cardano-evm.c1.milkomeda.com", 2001),
|
|
87
87
|
dfk: createProvider("dfk", "https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc", 53935),
|
|
88
88
|
crab: createProvider("crab", "https://crab-rpc.darwinia.network", 44),
|
|
89
|
+
bittorrent: createProvider("bittorrent", "https://rpc.bittorrentchain.io", 199),
|
|
90
|
+
findora: createProvider("findora", "https://prod-mainnet.prod.findora.org:8545", 2152)
|
|
89
91
|
};
|
|
90
92
|
function getProvider(chain) {
|
|
91
93
|
if (chain === void 0) { chain = "ethereum"; }
|