@defillama/sdk 5.0.101 → 5.0.102

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/README.md CHANGED
@@ -19,3 +19,9 @@ POLYGON_RPC="https://..."
19
19
  ETHEREUM_RPC="https://..."
20
20
  BSC_RPC="https://..."
21
21
  ```
22
+
23
+ ## Chain RPC PR
24
+
25
+ Before putting up a PR for new chain, check if we already support it here: https://unpkg.com/@defillama/sdk@latest/build/providers.json
26
+
27
+ Everytime we publish a new sdk version, we automically pull latest list from chainlist.org and include it.
package/build/abi/abi2.js CHANGED
@@ -61,7 +61,7 @@ async function multiCall(params) {
61
61
  if (params.excludeFailed)
62
62
  output = output.filter((i) => i.success);
63
63
  if (params.field)
64
- output = output.forEach((i) => i.output = i.output[params.field]);
64
+ output.forEach((i) => i.output = i.output[params.field]);
65
65
  if (params.withMetadata)
66
66
  return output;
67
67
  return output.map((i) => i.output);
@@ -384,6 +384,10 @@ function multicallAddress(chainId) {
384
384
  return '0x9b122BF7a96F24EFB7A2b5765c635909dB3458F7';
385
385
  case 47763: // neox
386
386
  return '0xD6010D102015fEa9cB3a9AbFBB51994c0Fd6E672';
387
+ case 207: // vinu
388
+ return '0x63CE2062281fb85fE5BC407799A455C21f35F355';
389
+ case 32770: // zilliqa
390
+ return '0x38899efb93d5106d3adb86662c557f237f6ecf57';
387
391
  default:
388
392
  return null;
389
393
  }
@@ -163,6 +163,8 @@ const DEPLOYMENT_BLOCK = {
163
163
  matchain: 2598669,
164
164
  shape: 3443414,
165
165
  morph: 169985,
166
+ sonic: 1,
167
+ ace: 1,
166
168
  };
167
169
  async function makeMultiCall(functionABI, calls, chain, block) {
168
170
  if (chain === 'tron')
@@ -282,6 +284,9 @@ function getMulticallAddress(chain, block) {
282
284
  case 'morph':
283
285
  multicallAddress = '0x33A213b1049D5AD2eeE6e61dAe040955e60383D4';
284
286
  break;
287
+ case 'ace':
288
+ multicallAddress = '0x025A2B4fCE1E0bD736D5cebe6C8a52229795376B';
289
+ break;
285
290
  }
286
291
  return multicallAddress;
287
292
  }