@aurigami/sdk 1.9.2 → 1.9.3

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.esm.js CHANGED
@@ -102,6 +102,9 @@ var networkAddresses = {
102
102
  AURI_AIRDROP: /*#__PURE__*/MAINNET_ADDRESSES.auriAirdrop.toLowerCase(),
103
103
  MULTICALL: /*#__PURE__*/MAINNET_ADDRESSES.multicall.toLowerCase(),
104
104
  TEAM_MULTISIG: /*#__PURE__*/'0x2D05FfFE70CE64c5954710D4C308dB31C8dBd8dE'.toLowerCase(),
105
+ TEAM_MULTISIG_AURORA_PLUS: /*#__PURE__*/'0x31f501589c7a090bf68f2fe2687744bf9130e1ab'.toLowerCase(),
106
+ AURORA_PLUS: /*#__PURE__*/'0xf075c896cbbb625e7911e284cd23ee19bdccf299'.toLowerCase(),
107
+ PULP_CONTRACT: /*#__PURE__*/'0x04ac48711bcdc45b4d223fb021e09da73c71095e'.toLowerCase(),
105
108
  PLY_TOKEN_LOCK: /*#__PURE__*/MAINNET_ADDRESSES.plyTokenLock.toLowerCase(),
106
109
  REFERRAL: /*#__PURE__*/MAINNET_ADDRESSES.referralDirectory.toLowerCase(),
107
110
  AURI_INTERNAL_LENS: /*#__PURE__*/MAINNET_ADDRESSES.auriInternalLens.toLowerCase()
@@ -4387,7 +4390,7 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
4387
4390
  /*#__PURE__*/
4388
4391
  function () {
4389
4392
  var _getPlyCirculatingSupply = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3() {
4390
- var multicallRead, baseBalanceOfCall, callResults, circulatingSupply;
4393
+ var multicallRead, baseBalanceOfCall, listAddrs, calls, callResults, circulatingSupply;
4391
4394
  return runtime_1.wrap(function _callee3$(_context3) {
4392
4395
  while (1) {
4393
4396
  switch (_context3.prev = _context3.next) {
@@ -4398,22 +4401,16 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
4398
4401
  method: 'balanceOf',
4399
4402
  returnTypes: ['uint256']
4400
4403
  };
4401
- _context3.next = 4;
4402
- return multicallRead.aggregate([// balance in team multisig
4403
- _extends({}, baseBalanceOfCall, {
4404
- args: [networkAddresses.misc.TEAM_MULTISIG]
4405
- }), // balance in comptroller
4406
- _extends({}, baseBalanceOfCall, {
4407
- args: [networkAddresses.misc.COMPTROLLER]
4408
- }), // balance in fair launch
4409
- _extends({}, baseBalanceOfCall, {
4410
- args: [networkAddresses.misc.AURIFAIRLAUNCH]
4411
- }), // balance in vesting contract
4412
- _extends({}, baseBalanceOfCall, {
4413
- args: [networkAddresses.misc.PLY_TOKEN_LOCK]
4414
- })]);
4404
+ listAddrs = [networkAddresses.misc.TEAM_MULTISIG, networkAddresses.misc.COMPTROLLER, networkAddresses.misc.AURIFAIRLAUNCH, networkAddresses.misc.PLY_TOKEN_LOCK, networkAddresses.misc.TEAM_MULTISIG_AURORA_PLUS, networkAddresses.misc.AURORA_PLUS, networkAddresses.misc.PULP_CONTRACT];
4405
+ calls = listAddrs.map(function (addr) {
4406
+ return _extends({}, baseBalanceOfCall, {
4407
+ args: [addr]
4408
+ });
4409
+ });
4410
+ _context3.next = 6;
4411
+ return multicallRead.aggregate(calls);
4415
4412
 
4416
- case 4:
4413
+ case 6:
4417
4414
  callResults = _context3.sent;
4418
4415
  circulatingSupply = BigNumber$1.from('1' + '0'.repeat(10) + '0'.repeat(getDecimal(this.env.ply.address)));
4419
4416
  callResults.forEach(function (result, i) {
@@ -4421,7 +4418,7 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
4421
4418
  });
4422
4419
  return _context3.abrupt("return", new TokenAmount(PLYToken, circulatingSupply.toString()));
4423
4420
 
4424
- case 8:
4421
+ case 10:
4425
4422
  case "end":
4426
4423
  return _context3.stop();
4427
4424
  }