@defillama/sdk 2.3.108 → 2.3.110

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.
@@ -203,6 +203,7 @@ function networkSupportsMulticall(chain) {
203
203
  function multicallAddress(chainId) {
204
204
  switch (chainId) {
205
205
  case 1:
206
+ case 10001:
206
207
  return exports.MULTICALL_ADDRESS_MAINNET;
207
208
  case 42:
208
209
  return exports.MULTICALL_ADDRESS_KOVAN;
@@ -314,6 +315,10 @@ function multicallAddress(chainId) {
314
315
  return "0x28d2ebdb36369db1c51355cdc0898754d1a1c3c5";
315
316
  case 1234:
316
317
  return "0x176CcFFbAB792Aaa0da7C430FE20a7106d969f66";
318
+ case 53935: // dfk
319
+ return "0x5b24224dC16508DAD755756639E420817DD4c99E";
320
+ case 3000: // echelon
321
+ return "0xe6d0cEE385992029Cb64C94A2dF6d0331937B2C8";
317
322
  default:
318
323
  return null;
319
324
  }
package/build/general.js CHANGED
@@ -104,7 +104,7 @@ exports.providers = {
104
104
  ontology_evm: createProvider("ontology_evm", "https://dappnode1.ont.io:10339", 58),
105
105
  jfin: createProvider("jfin", "https://rpc.jfinchain.com/", 3501),
106
106
  bitkub: createProvider("bitkub", "https://rpc.bitkubchain.io/", 96),
107
- bitgert: createProvider("bitgert", "https://chainrpc.com", 32520),
107
+ bitgert: createProvider("bitgert", "https://rpc.icecreamswap.com,https://serverrpc.com,https://chainrpc.com,https://mainnet-rpc.brisescan.com", 32520),
108
108
  canto: createProvider("canto", "https://jsonrpc.canto.nodestake.top,https://canto.evm.chandrastation.com/", 7700),
109
109
  dogechain: createProvider("dogechain", "https://dogechain.ankr.com,https://rpc.dogechain.dog,https://rpc01-sg.dogechain.dog,https://rpc02-sg.dogechain.dog,https://rpc03-sg.dogechain.dog", 2000),
110
110
  posi: createProvider("posi", "https://api.posichain.org,https://api.s0.posichain.org", 900000),
@@ -130,7 +130,7 @@ function lookupBlock(timestamp, extraParams) {
130
130
  return [4 /*yield*/, getBlock(provider, "latest", extraParams.chain)];
131
131
  case 1:
132
132
  lastBlock = _f.sent();
133
- if ((lastBlock.timestamp - timestamp) < -30 * 60) {
133
+ if (extraParams.chain !== 'bsc' && (lastBlock.timestamp - timestamp) < -30 * 60) {
134
134
  throw new Error("Last block of chain \"" + extraParams.chain + "\" is further than 30 minutes into the past. Provider is \"" + ((_b = (_a = provider) === null || _a === void 0 ? void 0 : _a.connection) === null || _b === void 0 ? void 0 : _b.url) + "\"");
135
135
  }
136
136
  if (Math.abs(lastBlock.timestamp - timestamp) < 60) {
@@ -160,7 +160,7 @@ function lookupBlock(timestamp, extraParams) {
160
160
  if (high - low > 4) return [3 /*break*/, 2];
161
161
  _f.label = 5;
162
162
  case 5:
163
- if (Math.abs(block.timestamp - timestamp) > 3600) {
163
+ if (extraParams.chain !== 'bsc' && Math.abs(block.timestamp - timestamp) > 3600) {
164
164
  throw new Error("Block selected is more than 1 hour away from the requested timestamp");
165
165
  }
166
166
  return [2 /*return*/, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defillama/sdk",
3
- "version": "2.3.108",
3
+ "version": "2.3.110",
4
4
  "description": "SDK for calculating TVL",
5
5
  "main": "build/index.js",
6
6
  "scripts": {