@defillama/sdk 5.0.101 → 5.0.103
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 +6 -0
- package/build/abi/abi2.js +1 -1
- package/build/abi/multicall.js +4 -0
- package/build/abi/multicall3.js +6 -0
- package/build/providers.json +1 -1
- package/build/util/blocks.d.ts +1 -1
- package/build/util/blocks.js +2 -2
- package/build/util/updateProviderList.js +1 -0
- package/package.json +1 -1
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
|
|
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);
|
package/build/abi/multicall.js
CHANGED
|
@@ -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
|
}
|
package/build/abi/multicall3.js
CHANGED
|
@@ -163,6 +163,9 @@ const DEPLOYMENT_BLOCK = {
|
|
|
163
163
|
matchain: 2598669,
|
|
164
164
|
shape: 3443414,
|
|
165
165
|
morph: 169985,
|
|
166
|
+
sonic: 1,
|
|
167
|
+
ace: 1,
|
|
168
|
+
ink: 1,
|
|
166
169
|
};
|
|
167
170
|
async function makeMultiCall(functionABI, calls, chain, block) {
|
|
168
171
|
if (chain === 'tron')
|
|
@@ -282,6 +285,9 @@ function getMulticallAddress(chain, block) {
|
|
|
282
285
|
case 'morph':
|
|
283
286
|
multicallAddress = '0x33A213b1049D5AD2eeE6e61dAe040955e60383D4';
|
|
284
287
|
break;
|
|
288
|
+
case 'ace':
|
|
289
|
+
multicallAddress = '0x025A2B4fCE1E0bD736D5cebe6C8a52229795376B';
|
|
290
|
+
break;
|
|
285
291
|
}
|
|
286
292
|
return multicallAddress;
|
|
287
293
|
}
|