@defillama/sdk 3.0.33 → 3.0.35

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.
@@ -300,6 +300,7 @@ function multicallAddress(chainId) {
300
300
  case 50: // xdc
301
301
  case 52: // csc
302
302
  case 311: // omax
303
+ case 1111: // omax
303
304
  return "0x18fA376d92511Dd04090566AB6144847c03557d8";
304
305
  case 40: // telos
305
306
  return "0x74D01B798F0aEdc39548D3EA5fC922B291293b95";
@@ -354,6 +355,8 @@ function multicallAddress(chainId) {
354
355
  return "0xDF15De1fB392Ab10551afF1dDDDfAFFd228D7FE0";
355
356
  case 22776: // map
356
357
  return "0x6f13ad2bae66B5560c6157883a42B70085F9ca20";
358
+ case 888888: // vision
359
+ return "0x7a677A43eb6eEe4AB6c13872Abc04e1bA5CF88eD";
357
360
  default:
358
361
  return null;
359
362
  }
@@ -1,5 +1,5 @@
1
1
  import type { Chain } from "../general";
2
- export declare const chainsForBlocks: Chain[];
2
+ export declare const chainsForBlocks: string[];
3
3
  export declare function getChainBlocks(timestamp: number, chains?: Chain[]): Promise<{
4
4
  [chain: string]: number;
5
5
  }>;
@@ -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 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" | "boba_avax" | "boba_bnb" | "cronos" | "polis" | "zyx" | "telos" | "metis" | "ubiq" | "velas" | "callisto" | "csc" | "nahmii" | "liquidchain" | "meter" | "theta" | "oasis" | "syscoin" | "moonbeam" | "curio" | "astar" | "godwoken" | "evmos" | "conflux" | "milkomeda" | "milkomeda_a1" | "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" | "functionx" | "cube" | "xdc" | "step" | "kekchain" | "muuchain" | "dexit" | "empire" | "flare" | "tlchain" | "zeniq";
5
+ export type Chain = string;
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
@@ -48,7 +48,7 @@ exports.providers = {
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
  energi: createProvider("energi", "https://nodeapi.energi.network", 39797),
51
- songbird: createProvider("songbird", "https://songbird.towolabs.com/rpc", 19),
51
+ songbird: createProvider("songbird", "https://sgb.ftso.com.au/ext/bc/C/rpc", 19),
52
52
  hpb: createProvider("hpb", "https://hpbnode.com", 269),
53
53
  omax: createProvider("omax", "https://mainapi.omaxray.com", 311),
54
54
  gochain: createProvider("gochain", "https://rpc.gochain.io", 60),
@@ -143,6 +143,8 @@ exports.providers = {
143
143
  zeniq: createProvider("zeniq", "https://smart1.zeniq.network:9545,https://smart2.zeniq.network:9545,https://smar31.zeniq.network:9545", 383414847825),
144
144
  bitindi: createProvider("bitindi", "https://rpc-mainnet.bitindi.org", 4099),
145
145
  map: createProvider("map", "https://rpc.maplabs.io", 22776),
146
+ caduceus: createProvider("caduceus", "https://mainnet.block.caduceus.foundation", 256256),
147
+ wemix: createProvider("wemix", "https://api.wemix.com", 1111),
146
148
  };
147
149
  function getProvider(chain) {
148
150
  if (chain === void 0) { chain = "ethereum"; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defillama/sdk",
3
- "version": "3.0.33",
3
+ "version": "3.0.35",
4
4
  "description": "SDK for calculating TVL",
5
5
  "main": "build/index.js",
6
6
  "scripts": {