@defillama/sdk 5.0.112 → 5.0.116

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 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 } = {}) {
@@ -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
  }
@@ -172,6 +172,9 @@ const DEPLOYMENT_BLOCK = {
172
172
  odyssey: 1,
173
173
  aleph_zero: 4603377,
174
174
  wemix: 66084281,
175
+ soneium: 1,
176
+ ronin: 1,
177
+ peaq: 1,
175
178
  };
176
179
  async function makeMultiCall(functionABI, calls, chain, block) {
177
180
  if (chain === 'tron')