@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 +2 -2
- package/dist/contracts/misc.d.ts +2 -2
- package/dist/sdk.cjs.development.js +15 -12
- 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 +15 -12
- package/dist/sdk.esm.js.map +1 -1
- package/dist/types/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/SDK.ts +3 -3
- package/src/contracts/misc.ts +7 -4
- package/src/types/index.ts +5 -0
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
|
-
|
|
40
|
-
sneakAccounts(accounts: string[], tokenAddresses: string[]): Promise<types.
|
|
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
|
/**
|
package/dist/contracts/misc.d.ts
CHANGED
|
@@ -24,6 +24,6 @@ export declare class MiscRead extends BlockchainEntityRead {
|
|
|
24
24
|
* - Ply in vesting contract
|
|
25
25
|
*/
|
|
26
26
|
getPlyCirculatingSupply(): Promise<TokenAmount>;
|
|
27
|
-
|
|
28
|
-
sneakAccounts(accounts: string[], tokenAddresses: string[]): Promise<types.
|
|
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.
|
|
3945
|
-
var
|
|
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
|
|
3969
|
-
return
|
|
3968
|
+
function getUtilisation(_x3) {
|
|
3969
|
+
return _getUtilisation.apply(this, arguments);
|
|
3970
3970
|
}
|
|
3971
3971
|
|
|
3972
|
-
return
|
|
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(
|
|
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.
|
|
4522
|
-
var
|
|
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.
|
|
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
|
|
4538
|
-
return
|
|
4540
|
+
function getUtilisation(_x6) {
|
|
4541
|
+
return _getUtilisation.apply(this, arguments);
|
|
4539
4542
|
}
|
|
4540
4543
|
|
|
4541
|
-
return
|
|
4544
|
+
return getUtilisation;
|
|
4542
4545
|
}();
|
|
4543
4546
|
|
|
4544
4547
|
_proto.sneakAccounts = /*#__PURE__*/function () {
|