@defillama/sdk 5.0.169 → 5.0.170

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.
@@ -59,6 +59,7 @@ export declare class Balances {
59
59
  [key: string]: any;
60
60
  }>;
61
61
  hasBreakdownBalances(): boolean;
62
+ isEmpty(): boolean;
62
63
  getBreakdownBalances(): {
63
64
  [key: string]: Balances;
64
65
  };
package/build/Balances.js CHANGED
@@ -232,7 +232,10 @@ class Balances {
232
232
  return response;
233
233
  }
234
234
  hasBreakdownBalances() {
235
- return Object.keys(this._breakdownBalances).length > 0;
235
+ return Object.keys(this._breakdownBalances).length > 0 && Object.values(this._breakdownBalances).some(b => !b.isEmpty());
236
+ }
237
+ isEmpty() {
238
+ return Object.keys(this._balances).length === 0;
236
239
  }
237
240
  getBreakdownBalances() {
238
241
  return this._breakdownBalances;
@@ -211,6 +211,8 @@ const DEPLOYMENT_BLOCK = {
211
211
  somnia: 1,
212
212
  camp: 1,
213
213
  bitci: 1,
214
+ plasma: 1,
215
+ eteria: 918,
214
216
  };
215
217
  async function makeMultiCall(functionABI, calls, chain, block) {
216
218
  if (chain === 'tron')
@@ -313,4 +315,5 @@ const CUSTOM_MULTICALL_ADDRESSES = {
313
315
  'eventum': '0xc7dEfc896E1Dd9D98AEa402d928C78c0FD1dc36C',
314
316
  'somnia': '0x5e44F178E8cF9B2F5409B6f18ce936aB817C5a11',
315
317
  'bitci': '0x777238B119cD07e6849b0817f284532DC0F9F8D9',
318
+ 'eteria': '0x8cC688B1F99b651ee00bB0Cb0aae61F416F8384b',
316
319
  };