@defillama/sdk 2.3.28 → 2.3.32

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.
@@ -1,5 +1,5 @@
1
1
  import { ethers, BigNumber } from "ethers";
2
- export declare type Chain = "ethereum" | "bsc" | "polygon" | "heco" | "fantom" | "rsk" | "tomochain" | "xdai" | "avax" | "wan" | "iotex" | "harmony" | "thundercore" | "okexchain" | "optimism" | "arbitrum" | "energyweb" | "songbird" | "hpb" | "gochain" | "ethclassic" | "xdaiarb" | "kardia" | "fuse" | "smartbch" | "elastos" | "hoo" | "fusion" | "aurora" | "ronin" | "boba" | "cronos" | "polis" | "zyx" | "telos" | "metis" | "ubiq" | "velas" | "callisto";
2
+ export declare type Chain = "ethereum" | "bsc" | "polygon" | "heco" | "fantom" | "rsk" | "tomochain" | "xdai" | "avax" | "wan" | "iotex" | "harmony" | "thundercore" | "okexchain" | "optimism" | "arbitrum" | "energyweb" | "songbird" | "hpb" | "gochain" | "ethclassic" | "xdaiarb" | "kardia" | "fuse" | "smartbch" | "elastos" | "hoo" | "fusion" | "aurora" | "ronin" | "boba" | "cronos" | "polis" | "zyx" | "telos" | "metis" | "ubiq" | "velas" | "callisto" | "csc";
3
3
  export declare function getProvider(chain?: Chain): ethers.providers.BaseProvider;
4
4
  export declare const TEN: ethers.BigNumber;
5
5
  export declare function handleDecimals(num: BigNumber, decimals?: number): string;
package/build/general.js CHANGED
@@ -69,6 +69,8 @@ var providers = {
69
69
  ubiq: createProvider("ubiq", "https://rpc.octano.dev", 8),
70
70
  velas: createProvider("velas", "https://evmexplorer.velas.com/rpc", 106),
71
71
  callisto: createProvider("callisto", "https://clo-geth.0xinfra.com/", 820),
72
+ klaytn: createProvider("klaytn", "http://175.209.78.135:8551", 8217),
73
+ csc: createProvider("csc", "https://rpc.coinex.net/,https://rpc1.coinex.net/,https://rpc2.coinex.net/,https://rpc3.coinex.net/,https://rpc4.coinex.net/", 52),
72
74
  };
73
75
  function getProvider(chain) {
74
76
  if (chain === void 0) { chain = "ethereum"; }
@@ -139,7 +139,7 @@ function lookupBlock(timestamp, extraParams) {
139
139
  }];
140
140
  }
141
141
  high = lastBlock.number;
142
- low = 0;
142
+ low = (extraParams === null || extraParams === void 0 ? void 0 : extraParams.chain) === "terra" ? 4724001 : 0;
143
143
  block = void 0;
144
144
  _d.label = 2;
145
145
  case 2:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defillama/sdk",
3
- "version": "2.3.28",
3
+ "version": "2.3.32",
4
4
  "description": "SDK for calculating TVL",
5
5
  "main": "build/index.js",
6
6
  "scripts": {