@defillama/sdk 5.0.112 → 5.0.117
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/build/Balances.js +4 -0
- package/build/abi/multicall.js +2 -0
- package/build/abi/multicall3.js +3 -0
- package/build/providers.json +1 -1
- package/build/util/env.js +1 -1
- package/build/util/indexer.js +20 -13
- package/build/util/updateProviderList.js +2 -1
- package/package.json +1 -1
package/build/Balances.js
CHANGED
|
@@ -25,6 +25,10 @@ class Balances {
|
|
|
25
25
|
chain = 'ethereum';
|
|
26
26
|
token = token.replace('peggy', '');
|
|
27
27
|
}
|
|
28
|
+
// add a leading 0 to the token if it's a starknet token
|
|
29
|
+
if (!skipChain && this.chain === 'starknet' && token.length === 65) {
|
|
30
|
+
token = token.replace('0x', '0x0');
|
|
31
|
+
}
|
|
28
32
|
(0, generalUtil_1.sumSingleBalance)(this._balances, token, balance, chain);
|
|
29
33
|
}
|
|
30
34
|
add(token, balance, { skipChain = false } = {}) {
|
package/build/abi/multicall.js
CHANGED
|
@@ -388,6 +388,8 @@ function multicallAddress(chainId) {
|
|
|
388
388
|
return '0x63CE2062281fb85fE5BC407799A455C21f35F355';
|
|
389
389
|
case 32770: // zilliqa
|
|
390
390
|
return '0x38899efb93d5106d3adb86662c557f237f6ecf57';
|
|
391
|
+
case 181: // water
|
|
392
|
+
return '0x63cee78B11774535132fd773C5dDe3c4b41CD07f';
|
|
391
393
|
default:
|
|
392
394
|
return null;
|
|
393
395
|
}
|
package/build/abi/multicall3.js
CHANGED