@aurigami/sdk 1.9.1 → 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 +16 -27
- 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 +16 -27
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/consts/constants.ts +3 -0
- package/src/interactors/misc.ts +22 -35
|
@@ -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,38 +4402,24 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4399
4402
|
method: 'balanceOf',
|
|
4400
4403
|
returnTypes: ['uint256']
|
|
4401
4404
|
};
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
})
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
}), // balance in comptroller
|
|
4411
|
-
_extends({}, baseBalanceOfCall, {
|
|
4412
|
-
args: [networkAddresses.misc.COMPTROLLER]
|
|
4413
|
-
}), // balance in fair launch
|
|
4414
|
-
_extends({}, baseBalanceOfCall, {
|
|
4415
|
-
args: [networkAddresses.misc.AURIFAIRLAUNCH]
|
|
4416
|
-
}), // balance in vesting contract
|
|
4417
|
-
_extends({}, baseBalanceOfCall, {
|
|
4418
|
-
args: [networkAddresses.misc.PLY_TOKEN_LOCK]
|
|
4419
|
-
})]);
|
|
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);
|
|
4420
4413
|
|
|
4421
|
-
case
|
|
4414
|
+
case 6:
|
|
4422
4415
|
callResults = _context3.sent;
|
|
4423
|
-
circulatingSupply = ethers.BigNumber.from(0);
|
|
4416
|
+
circulatingSupply = ethers.BigNumber.from('1' + '0'.repeat(10) + '0'.repeat(getDecimal(this.env.ply.address)));
|
|
4424
4417
|
callResults.forEach(function (result, i) {
|
|
4425
|
-
|
|
4426
|
-
circulatingSupply = result[0];
|
|
4427
|
-
} else {
|
|
4428
|
-
circulatingSupply = circulatingSupply.sub(result[0]);
|
|
4429
|
-
}
|
|
4418
|
+
circulatingSupply = circulatingSupply.sub(result[0]);
|
|
4430
4419
|
});
|
|
4431
4420
|
return _context3.abrupt("return", new TokenAmount(PLYToken, circulatingSupply.toString()));
|
|
4432
4421
|
|
|
4433
|
-
case
|
|
4422
|
+
case 10:
|
|
4434
4423
|
case "end":
|
|
4435
4424
|
return _context3.stop();
|
|
4436
4425
|
}
|