@aurigami/sdk 1.6.9 → 1.6.10

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/dist/SDK.d.ts CHANGED
@@ -36,8 +36,8 @@ export declare class SdkRead extends BlockchainEntityRead {
36
36
  * - Ply in vesting contract
37
37
  */
38
38
  getPlyCirculatingSupply(): Promise<TokenAmount>;
39
- getUltilizations(userAddr: types.Address): Promise<BigNumber>;
40
- sneakAccounts(accounts: string[], tokenAddresses: string[]): Promise<types.AccountAuTokenInfo[][]>;
39
+ getUtilisation(userAddr: types.Address): Promise<BigNumber>;
40
+ sneakAccounts(accounts: string[], tokenAddresses: string[]): Promise<types.AccountAuTokensInfo[]>;
41
41
  }
42
42
  export declare class SdkReadWrite extends SdkRead {
43
43
  /**
@@ -24,6 +24,6 @@ export declare class MiscRead extends BlockchainEntityRead {
24
24
  * - Ply in vesting contract
25
25
  */
26
26
  getPlyCirculatingSupply(): Promise<TokenAmount>;
27
- getUltilizations(userAddr: types.Address): Promise<BigNumber>;
28
- sneakAccounts(accounts: string[], tokenAddresses: string[]): Promise<types.AccountAuTokenInfo[][]>;
27
+ getUtilisation(userAddr: types.Address): Promise<BigNumber>;
28
+ sneakAccounts(accounts: string[], tokenAddresses: string[]): Promise<types.AccountAuTokensInfo[]>;
29
29
  }
@@ -3941,8 +3941,8 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
3941
3941
  return getPlyCirculatingSupply;
3942
3942
  }();
3943
3943
 
3944
- _proto.getUltilizations = /*#__PURE__*/function () {
3945
- var _getUltilizations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(userAddr) {
3944
+ _proto.getUtilisation = /*#__PURE__*/function () {
3945
+ var _getUtilisation = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(userAddr) {
3946
3946
  var accountDetail, sumBorrow, sumCol;
3947
3947
  return runtime_1.wrap(function _callee4$(_context4) {
3948
3948
  while (1) {
@@ -3965,11 +3965,11 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
3965
3965
  }, _callee4, this);
3966
3966
  }));
3967
3967
 
3968
- function getUltilizations(_x3) {
3969
- return _getUltilizations.apply(this, arguments);
3968
+ function getUtilisation(_x3) {
3969
+ return _getUtilisation.apply(this, arguments);
3970
3970
  }
3971
3971
 
3972
- return getUltilizations;
3972
+ return getUtilisation;
3973
3973
  }();
3974
3974
 
3975
3975
  _proto.sneakAccounts = /*#__PURE__*/function () {
@@ -4047,7 +4047,10 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
4047
4047
  break;
4048
4048
 
4049
4049
  case 30:
4050
- res.push(infos);
4050
+ res.push({
4051
+ address: addr,
4052
+ tokens: infos
4053
+ });
4051
4054
 
4052
4055
  case 31:
4053
4056
  _context5.next = 12;
@@ -4518,13 +4521,13 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
4518
4521
  return getPlyCirculatingSupply;
4519
4522
  }();
4520
4523
 
4521
- _proto.getUltilizations = /*#__PURE__*/function () {
4522
- var _getUltilizations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(userAddr) {
4524
+ _proto.getUtilisation = /*#__PURE__*/function () {
4525
+ var _getUtilisation = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(userAddr) {
4523
4526
  return runtime_1.wrap(function _callee8$(_context8) {
4524
4527
  while (1) {
4525
4528
  switch (_context8.prev = _context8.next) {
4526
4529
  case 0:
4527
- return _context8.abrupt("return", this._misc.getUltilizations(userAddr));
4530
+ return _context8.abrupt("return", this._misc.getUtilisation(userAddr));
4528
4531
 
4529
4532
  case 1:
4530
4533
  case "end":
@@ -4534,11 +4537,11 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
4534
4537
  }, _callee8, this);
4535
4538
  }));
4536
4539
 
4537
- function getUltilizations(_x6) {
4538
- return _getUltilizations.apply(this, arguments);
4540
+ function getUtilisation(_x6) {
4541
+ return _getUtilisation.apply(this, arguments);
4539
4542
  }
4540
4543
 
4541
- return getUltilizations;
4544
+ return getUtilisation;
4542
4545
  }();
4543
4546
 
4544
4547
  _proto.sneakAccounts = /*#__PURE__*/function () {