@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.cjs.development.js +14 -17
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +14 -17
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/consts/constants.ts +3 -0
- package/src/interactors/misc.ts +17 -22
|
@@ -107,6 +107,9 @@ var networkAddresses = {
|
|
|
107
107
|
AURI_AIRDROP: /*#__PURE__*/MAINNET_ADDRESSES.auriAirdrop.toLowerCase(),
|
|
108
108
|
MULTICALL: /*#__PURE__*/MAINNET_ADDRESSES.multicall.toLowerCase(),
|
|
109
109
|
TEAM_MULTISIG: /*#__PURE__*/'0x2D05FfFE70CE64c5954710D4C308dB31C8dBd8dE'.toLowerCase(),
|
|
110
|
+
TEAM_MULTISIG_AURORA_PLUS: /*#__PURE__*/'0x31f501589c7a090bf68f2fe2687744bf9130e1ab'.toLowerCase(),
|
|
111
|
+
AURORA_PLUS: /*#__PURE__*/'0xf075c896cbbb625e7911e284cd23ee19bdccf299'.toLowerCase(),
|
|
112
|
+
PULP_CONTRACT: /*#__PURE__*/'0x04ac48711bcdc45b4d223fb021e09da73c71095e'.toLowerCase(),
|
|
110
113
|
PLY_TOKEN_LOCK: /*#__PURE__*/MAINNET_ADDRESSES.plyTokenLock.toLowerCase(),
|
|
111
114
|
REFERRAL: /*#__PURE__*/MAINNET_ADDRESSES.referralDirectory.toLowerCase(),
|
|
112
115
|
AURI_INTERNAL_LENS: /*#__PURE__*/MAINNET_ADDRESSES.auriInternalLens.toLowerCase()
|
|
@@ -4388,7 +4391,7 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4388
4391
|
/*#__PURE__*/
|
|
4389
4392
|
function () {
|
|
4390
4393
|
var _getPlyCirculatingSupply = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3() {
|
|
4391
|
-
var multicallRead, baseBalanceOfCall, callResults, circulatingSupply;
|
|
4394
|
+
var multicallRead, baseBalanceOfCall, listAddrs, calls, callResults, circulatingSupply;
|
|
4392
4395
|
return runtime_1.wrap(function _callee3$(_context3) {
|
|
4393
4396
|
while (1) {
|
|
4394
4397
|
switch (_context3.prev = _context3.next) {
|
|
@@ -4399,22 +4402,16 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4399
4402
|
method: 'balanceOf',
|
|
4400
4403
|
returnTypes: ['uint256']
|
|
4401
4404
|
};
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
_extends({}, baseBalanceOfCall, {
|
|
4411
|
-
args: [networkAddresses.misc.AURIFAIRLAUNCH]
|
|
4412
|
-
}), // balance in vesting contract
|
|
4413
|
-
_extends({}, baseBalanceOfCall, {
|
|
4414
|
-
args: [networkAddresses.misc.PLY_TOKEN_LOCK]
|
|
4415
|
-
})]);
|
|
4405
|
+
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];
|
|
4406
|
+
calls = listAddrs.map(function (addr) {
|
|
4407
|
+
return _extends({}, baseBalanceOfCall, {
|
|
4408
|
+
args: [addr]
|
|
4409
|
+
});
|
|
4410
|
+
});
|
|
4411
|
+
_context3.next = 6;
|
|
4412
|
+
return multicallRead.aggregate(calls);
|
|
4416
4413
|
|
|
4417
|
-
case
|
|
4414
|
+
case 6:
|
|
4418
4415
|
callResults = _context3.sent;
|
|
4419
4416
|
circulatingSupply = ethers.BigNumber.from('1' + '0'.repeat(10) + '0'.repeat(getDecimal(this.env.ply.address)));
|
|
4420
4417
|
callResults.forEach(function (result, i) {
|
|
@@ -4422,7 +4419,7 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4422
4419
|
});
|
|
4423
4420
|
return _context3.abrupt("return", new TokenAmount(PLYToken, circulatingSupply.toString()));
|
|
4424
4421
|
|
|
4425
|
-
case
|
|
4422
|
+
case 10:
|
|
4426
4423
|
case "end":
|
|
4427
4424
|
return _context3.stop();
|
|
4428
4425
|
}
|