@aurigami/sdk 1.13.1 → 1.15.0
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/ChangeLog.md +376 -0
- package/dist/SDK.d.ts +2 -0
- package/dist/helpers/helpers.d.ts +0 -1
- package/dist/helpers/notification-api.d.ts +2 -0
- package/dist/sdk.cjs.development.js +217 -79
- 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 +218 -79
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +2 -1
- package/src/.DS_Store +0 -0
- package/src/SDK.ts +35 -0
- package/src/consts/constants.ts +0 -1
- package/src/helpers/helpers.ts +19 -19
- package/src/helpers/notification-api.ts +22 -0
- package/src/helpers/priceFetcher.ts +2 -0
- package/src/interactors/MoneyMarket.ts +15 -14
- package/src/interactors/PlyGame.ts +1 -1
package/dist/sdk.esm.js
CHANGED
|
@@ -23,6 +23,7 @@ export { default as TESTNET_ADDRESSES } from '@aurigami/contracts/deployments/au
|
|
|
23
23
|
import axios from 'axios';
|
|
24
24
|
import { Signer } from '@ethersproject/abstract-signer';
|
|
25
25
|
import { __decorate, __metadata } from 'tslib';
|
|
26
|
+
import { cache, CacheType } from 'cache-decorator';
|
|
26
27
|
|
|
27
28
|
|
|
28
29
|
|
|
@@ -131,7 +132,7 @@ var networkAddresses = {
|
|
|
131
132
|
AURORA_WNEAR: /*#__PURE__*/'0x1e0e812fbcd3eb75d8562ad6f310ed94d258d008'.toLowerCase()
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
|
-
var DEPOSIT_ONLY_TOKENS = [/*#__PURE__*/MAINNET_ADDRESSES.auTokens.
|
|
135
|
+
var DEPOSIT_ONLY_TOKENS = [/*#__PURE__*/MAINNET_ADDRESSES.auTokens.AURORA.toLowerCase(), /*#__PURE__*/MAINNET_ADDRESSES.auTokens.TRI.toLowerCase(), /*#__PURE__*/MAINNET_ADDRESSES.auTokens.PLY.toLowerCase(), /*#__PURE__*/MAINNET_ADDRESSES.auTokens.USN.toLowerCase()]; // All token that we can calculate the price via oracle + coingecko
|
|
135
136
|
|
|
136
137
|
var PRICE_WHITELISTED = /*#__PURE__*/new Set( /*#__PURE__*/[].concat( /*#__PURE__*/networkAddresses.auTokens.map(function (t) {
|
|
137
138
|
return t.underlying;
|
|
@@ -1534,37 +1535,25 @@ function sortEvents(events) {
|
|
|
1534
1535
|
|
|
1535
1536
|
return a.blockNumber - b.blockNumber;
|
|
1536
1537
|
});
|
|
1537
|
-
}
|
|
1538
|
-
function
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
return value;
|
|
1557
|
-
}
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
var result = originalMethod.apply(this, args);
|
|
1561
|
-
cache.set(key, [Date.now(), result]);
|
|
1562
|
-
return result;
|
|
1563
|
-
};
|
|
1564
|
-
|
|
1565
|
-
return descriptor;
|
|
1566
|
-
};
|
|
1567
|
-
}
|
|
1538
|
+
} // export function Cache(cacheTimeout: number) {
|
|
1539
|
+
// return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) {
|
|
1540
|
+
// const originalMethod = descriptor.value;
|
|
1541
|
+
// let cache = new Map<string, any>();
|
|
1542
|
+
// descriptor.value = function (...args: any[]) {
|
|
1543
|
+
// let key = JSON.stringify(args);
|
|
1544
|
+
// if (cache.has(key)) {
|
|
1545
|
+
// let [timestamp, value] = cache.get(key);
|
|
1546
|
+
// if (Date.now() - timestamp < cacheTimeout) {
|
|
1547
|
+
// return value;
|
|
1548
|
+
// }
|
|
1549
|
+
// }
|
|
1550
|
+
// let result = originalMethod.apply(this, args);
|
|
1551
|
+
// cache.set(key, [Date.now(), result]);
|
|
1552
|
+
// return result;
|
|
1553
|
+
// };
|
|
1554
|
+
// return descriptor;
|
|
1555
|
+
// };
|
|
1556
|
+
// }
|
|
1568
1557
|
|
|
1569
1558
|
var BlockchainEntityRead = function BlockchainEntityRead(networkConnection) {
|
|
1570
1559
|
this._networkConnection = networkConnection;
|
|
@@ -1951,6 +1940,7 @@ function _fetchPriceFromDefiLlamaAPI() {
|
|
|
1951
1940
|
return res.data.coins[id].price;
|
|
1952
1941
|
})["catch"](function (err) {
|
|
1953
1942
|
console.log("unable to fetch price from DefiLlama API: " + err);
|
|
1943
|
+
console.error(err);
|
|
1954
1944
|
return 0;
|
|
1955
1945
|
});
|
|
1956
1946
|
|
|
@@ -1984,6 +1974,7 @@ function _fetchPriceFromCoingeckoAPI() {
|
|
|
1984
1974
|
return res.data[id];
|
|
1985
1975
|
})["catch"](function (err) {
|
|
1986
1976
|
console.log("Unable to fetch price from Coingecko API for " + id);
|
|
1977
|
+
console.error(err);
|
|
1987
1978
|
return {
|
|
1988
1979
|
usd: 0
|
|
1989
1980
|
};
|
|
@@ -3098,7 +3089,6 @@ var helpers = {
|
|
|
3098
3089
|
getBlockBeforeTimestamp: getBlockBeforeTimestamp,
|
|
3099
3090
|
devLog: devLog,
|
|
3100
3091
|
sortEvents: sortEvents,
|
|
3101
|
-
Cache: Cache,
|
|
3102
3092
|
fetchPriceFromDefiLlamaAPI: fetchPriceFromDefiLlamaAPI,
|
|
3103
3093
|
fetchPriceFromCoingeckoAPI: fetchPriceFromCoingeckoAPI,
|
|
3104
3094
|
fetchPriceFromDefiLlama: fetchPriceFromDefiLlama,
|
|
@@ -4042,31 +4032,70 @@ var MoneyMarketRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4042
4032
|
return MoneyMarketRead;
|
|
4043
4033
|
}(BlockchainEntityRead);
|
|
4044
4034
|
|
|
4045
|
-
__decorate([
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
__decorate([
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
__decorate([
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4035
|
+
__decorate([cache({
|
|
4036
|
+
ttl: CACHE_TIMEOUT,
|
|
4037
|
+
type: CacheType.MEMO
|
|
4038
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getUnderlyingPrice", null);
|
|
4039
|
+
|
|
4040
|
+
__decorate([cache({
|
|
4041
|
+
ttl: CACHE_TIMEOUT,
|
|
4042
|
+
type: CacheType.MEMO
|
|
4043
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getPlyPrice", null);
|
|
4044
|
+
|
|
4045
|
+
__decorate([cache({
|
|
4046
|
+
ttl: CACHE_TIMEOUT,
|
|
4047
|
+
type: CacheType.MEMO
|
|
4048
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getRewardSpeeds", null);
|
|
4049
|
+
|
|
4050
|
+
__decorate([cache({
|
|
4051
|
+
ttl: CACHE_TIMEOUT,
|
|
4052
|
+
type: CacheType.MEMO
|
|
4053
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getTotalTokenBorrowed", null);
|
|
4054
|
+
|
|
4055
|
+
__decorate([cache({
|
|
4056
|
+
ttl: CACHE_TIMEOUT,
|
|
4057
|
+
type: CacheType.MEMO
|
|
4058
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getTotalTokenDeposited", null);
|
|
4059
|
+
|
|
4060
|
+
__decorate([cache({
|
|
4061
|
+
ttl: CACHE_TIMEOUT,
|
|
4062
|
+
type: CacheType.MEMO
|
|
4063
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getDepositAPY", null);
|
|
4064
|
+
|
|
4065
|
+
__decorate([cache({
|
|
4066
|
+
ttl: CACHE_TIMEOUT,
|
|
4067
|
+
type: CacheType.MEMO
|
|
4068
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getBorrowAPY", null);
|
|
4069
|
+
|
|
4070
|
+
__decorate([cache({
|
|
4071
|
+
ttl: CACHE_TIMEOUT,
|
|
4072
|
+
type: CacheType.MEMO
|
|
4073
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getCollateralRatio", null);
|
|
4074
|
+
|
|
4075
|
+
__decorate([cache({
|
|
4076
|
+
ttl: CACHE_TIMEOUT,
|
|
4077
|
+
type: CacheType.MEMO
|
|
4078
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getBorrowPlyAPY", null);
|
|
4079
|
+
|
|
4080
|
+
__decorate([cache({
|
|
4081
|
+
ttl: CACHE_TIMEOUT,
|
|
4082
|
+
type: CacheType.MEMO
|
|
4083
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getDepositPlyAPY", null);
|
|
4084
|
+
|
|
4085
|
+
__decorate([cache({
|
|
4086
|
+
ttl: CACHE_TIMEOUT,
|
|
4087
|
+
type: CacheType.MEMO
|
|
4088
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getDepositNearAPY", null);
|
|
4089
|
+
|
|
4090
|
+
__decorate([cache({
|
|
4091
|
+
ttl: CACHE_TIMEOUT,
|
|
4092
|
+
type: CacheType.MEMO
|
|
4093
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getBorrowNearAPY", null);
|
|
4094
|
+
|
|
4095
|
+
__decorate([cache({
|
|
4096
|
+
ttl: CACHE_TIMEOUT,
|
|
4097
|
+
type: CacheType.MEMO
|
|
4098
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getDepositMetaAPY", null);
|
|
4070
4099
|
|
|
4071
4100
|
var MoneyMarketReadWrite = /*#__PURE__*/function (_MoneyMarketRead) {
|
|
4072
4101
|
_inheritsLoose(MoneyMarketReadWrite, _MoneyMarketRead);
|
|
@@ -6677,6 +6706,40 @@ var Referral = /*#__PURE__*/function (_BlockchainEntity) {
|
|
|
6677
6706
|
return Referral;
|
|
6678
6707
|
}(BlockchainEntity);
|
|
6679
6708
|
|
|
6709
|
+
var NOTIFICATION_API_END_POINT = 'https://api.aurigami.finance/notification/';
|
|
6710
|
+
|
|
6711
|
+
function postApi(_x3, _x4) {
|
|
6712
|
+
return _postApi.apply(this, arguments);
|
|
6713
|
+
}
|
|
6714
|
+
|
|
6715
|
+
function _postApi() {
|
|
6716
|
+
_postApi = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(url, body) {
|
|
6717
|
+
var resp;
|
|
6718
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
|
6719
|
+
while (1) {
|
|
6720
|
+
switch (_context2.prev = _context2.next) {
|
|
6721
|
+
case 0:
|
|
6722
|
+
_context2.next = 2;
|
|
6723
|
+
return axios.post(NOTIFICATION_API_END_POINT + url, body, {
|
|
6724
|
+
headers: {
|
|
6725
|
+
'Content-Type': 'application/json'
|
|
6726
|
+
}
|
|
6727
|
+
});
|
|
6728
|
+
|
|
6729
|
+
case 2:
|
|
6730
|
+
resp = _context2.sent;
|
|
6731
|
+
return _context2.abrupt("return", resp.data);
|
|
6732
|
+
|
|
6733
|
+
case 4:
|
|
6734
|
+
case "end":
|
|
6735
|
+
return _context2.stop();
|
|
6736
|
+
}
|
|
6737
|
+
}
|
|
6738
|
+
}, _callee2);
|
|
6739
|
+
}));
|
|
6740
|
+
return _postApi.apply(this, arguments);
|
|
6741
|
+
}
|
|
6742
|
+
|
|
6680
6743
|
var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
6681
6744
|
_inheritsLoose(SdkRead, _BlockchainEntityRead);
|
|
6682
6745
|
|
|
@@ -6991,6 +7054,82 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
6991
7054
|
return getNetApyWithIncentive;
|
|
6992
7055
|
}();
|
|
6993
7056
|
|
|
7057
|
+
_proto.setUserNotificationSettings = /*#__PURE__*/function () {
|
|
7058
|
+
var _setUserNotificationSettings = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12(address, mail, utilisation, liquidation, captchaResponse) {
|
|
7059
|
+
var body, response;
|
|
7060
|
+
return runtime_1.wrap(function _callee12$(_context12) {
|
|
7061
|
+
while (1) {
|
|
7062
|
+
switch (_context12.prev = _context12.next) {
|
|
7063
|
+
case 0:
|
|
7064
|
+
body = {
|
|
7065
|
+
address: address,
|
|
7066
|
+
mail: mail,
|
|
7067
|
+
setting: {
|
|
7068
|
+
utilisation: utilisation,
|
|
7069
|
+
liquidation: liquidation
|
|
7070
|
+
},
|
|
7071
|
+
captchaResponse: captchaResponse
|
|
7072
|
+
};
|
|
7073
|
+
_context12.next = 3;
|
|
7074
|
+
return postApi('alert-setting/set', body);
|
|
7075
|
+
|
|
7076
|
+
case 3:
|
|
7077
|
+
response = _context12.sent;
|
|
7078
|
+
return _context12.abrupt("return", response);
|
|
7079
|
+
|
|
7080
|
+
case 5:
|
|
7081
|
+
case "end":
|
|
7082
|
+
return _context12.stop();
|
|
7083
|
+
}
|
|
7084
|
+
}
|
|
7085
|
+
}, _callee12);
|
|
7086
|
+
}));
|
|
7087
|
+
|
|
7088
|
+
function setUserNotificationSettings(_x12, _x13, _x14, _x15, _x16) {
|
|
7089
|
+
return _setUserNotificationSettings.apply(this, arguments);
|
|
7090
|
+
}
|
|
7091
|
+
|
|
7092
|
+
return setUserNotificationSettings;
|
|
7093
|
+
}();
|
|
7094
|
+
|
|
7095
|
+
_proto.unsetUserNotificationSettings = /*#__PURE__*/function () {
|
|
7096
|
+
var _unsetUserNotificationSettings = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee13(address, captchaResponse) {
|
|
7097
|
+
var body, response;
|
|
7098
|
+
return runtime_1.wrap(function _callee13$(_context13) {
|
|
7099
|
+
while (1) {
|
|
7100
|
+
switch (_context13.prev = _context13.next) {
|
|
7101
|
+
case 0:
|
|
7102
|
+
body = {
|
|
7103
|
+
address: address,
|
|
7104
|
+
mail: '',
|
|
7105
|
+
setting: {
|
|
7106
|
+
utilisation: null,
|
|
7107
|
+
liquidation: false
|
|
7108
|
+
},
|
|
7109
|
+
captchaResponse: captchaResponse
|
|
7110
|
+
};
|
|
7111
|
+
_context13.next = 3;
|
|
7112
|
+
return postApi('alert-setting/set', body);
|
|
7113
|
+
|
|
7114
|
+
case 3:
|
|
7115
|
+
response = _context13.sent;
|
|
7116
|
+
return _context13.abrupt("return", response);
|
|
7117
|
+
|
|
7118
|
+
case 5:
|
|
7119
|
+
case "end":
|
|
7120
|
+
return _context13.stop();
|
|
7121
|
+
}
|
|
7122
|
+
}
|
|
7123
|
+
}, _callee13);
|
|
7124
|
+
}));
|
|
7125
|
+
|
|
7126
|
+
function unsetUserNotificationSettings(_x17, _x18) {
|
|
7127
|
+
return _unsetUserNotificationSettings.apply(this, arguments);
|
|
7128
|
+
}
|
|
7129
|
+
|
|
7130
|
+
return unsetUserNotificationSettings;
|
|
7131
|
+
}();
|
|
7132
|
+
|
|
6994
7133
|
return SdkRead;
|
|
6995
7134
|
}(BlockchainEntityRead);
|
|
6996
7135
|
var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
|
|
@@ -7008,19 +7147,19 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
|
|
|
7008
7147
|
_proto2.claim =
|
|
7009
7148
|
/*#__PURE__*/
|
|
7010
7149
|
function () {
|
|
7011
|
-
var _claim = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
7012
|
-
return runtime_1.wrap(function
|
|
7150
|
+
var _claim = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee14() {
|
|
7151
|
+
return runtime_1.wrap(function _callee14$(_context14) {
|
|
7013
7152
|
while (1) {
|
|
7014
|
-
switch (
|
|
7153
|
+
switch (_context14.prev = _context14.next) {
|
|
7015
7154
|
case 0:
|
|
7016
|
-
return
|
|
7155
|
+
return _context14.abrupt("return", this.env.auriLens.connect(this._networkConnection.signer).claimRewards(this.env.comptroller.address, this.env.auriFairLaunch.address, ALL_STAKING_POOLS));
|
|
7017
7156
|
|
|
7018
7157
|
case 1:
|
|
7019
7158
|
case "end":
|
|
7020
|
-
return
|
|
7159
|
+
return _context14.stop();
|
|
7021
7160
|
}
|
|
7022
7161
|
}
|
|
7023
|
-
},
|
|
7162
|
+
}, _callee14, this);
|
|
7024
7163
|
}));
|
|
7025
7164
|
|
|
7026
7165
|
function claim() {
|
|
@@ -7031,22 +7170,22 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
|
|
|
7031
7170
|
}();
|
|
7032
7171
|
|
|
7033
7172
|
_proto2.stake = /*#__PURE__*/function () {
|
|
7034
|
-
var _stake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
7035
|
-
return runtime_1.wrap(function
|
|
7173
|
+
var _stake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee15(amount) {
|
|
7174
|
+
return runtime_1.wrap(function _callee15$(_context15) {
|
|
7036
7175
|
while (1) {
|
|
7037
|
-
switch (
|
|
7176
|
+
switch (_context15.prev = _context15.next) {
|
|
7038
7177
|
case 0:
|
|
7039
|
-
return
|
|
7178
|
+
return _context15.abrupt("return", new StakingReadWrite(this._networkConnection).stake(amount));
|
|
7040
7179
|
|
|
7041
7180
|
case 1:
|
|
7042
7181
|
case "end":
|
|
7043
|
-
return
|
|
7182
|
+
return _context15.stop();
|
|
7044
7183
|
}
|
|
7045
7184
|
}
|
|
7046
|
-
},
|
|
7185
|
+
}, _callee15, this);
|
|
7047
7186
|
}));
|
|
7048
7187
|
|
|
7049
|
-
function stake(
|
|
7188
|
+
function stake(_x19) {
|
|
7050
7189
|
return _stake.apply(this, arguments);
|
|
7051
7190
|
}
|
|
7052
7191
|
|
|
@@ -7054,22 +7193,22 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
|
|
|
7054
7193
|
}();
|
|
7055
7194
|
|
|
7056
7195
|
_proto2.unstake = /*#__PURE__*/function () {
|
|
7057
|
-
var _unstake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
7058
|
-
return runtime_1.wrap(function
|
|
7196
|
+
var _unstake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee16(amount) {
|
|
7197
|
+
return runtime_1.wrap(function _callee16$(_context16) {
|
|
7059
7198
|
while (1) {
|
|
7060
|
-
switch (
|
|
7199
|
+
switch (_context16.prev = _context16.next) {
|
|
7061
7200
|
case 0:
|
|
7062
|
-
return
|
|
7201
|
+
return _context16.abrupt("return", new StakingReadWrite(this._networkConnection).unstake(amount));
|
|
7063
7202
|
|
|
7064
7203
|
case 1:
|
|
7065
7204
|
case "end":
|
|
7066
|
-
return
|
|
7205
|
+
return _context16.stop();
|
|
7067
7206
|
}
|
|
7068
7207
|
}
|
|
7069
|
-
},
|
|
7208
|
+
}, _callee16, this);
|
|
7070
7209
|
}));
|
|
7071
7210
|
|
|
7072
|
-
function unstake(
|
|
7211
|
+
function unstake(_x20) {
|
|
7073
7212
|
return _unstake.apply(this, arguments);
|
|
7074
7213
|
}
|
|
7075
7214
|
|
|
@@ -7103,5 +7242,5 @@ BigNumber.config({
|
|
|
7103
7242
|
DECIMAL_PLACES: 50
|
|
7104
7243
|
});
|
|
7105
7244
|
|
|
7106
|
-
export { AIRDROP_END_TIMESTAMP, AIRDROP_KEEP_THRESHOLD, AIRDROP_START_TIMESTAMP, ALL_STAKING_POOLS, AURORA_CHAINID, AURORA_PLUS_API_PREFIX, Airdrop, AirdropRead, AirdropReadWrite, AuriEnv, BORROW_LIMIT_BUFFER, BORROW_NEAR_REWARDS_PER_WEEK, BlockchainEntity, BlockchainEntityRead, BlockchainEntityReadWrite, CACHE_TIMEOUT,
|
|
7245
|
+
export { AIRDROP_END_TIMESTAMP, AIRDROP_KEEP_THRESHOLD, AIRDROP_START_TIMESTAMP, ALL_STAKING_POOLS, AURORA_CHAINID, AURORA_PLUS_API_PREFIX, Airdrop, AirdropRead, AirdropReadWrite, AuriEnv, BORROW_LIMIT_BUFFER, BORROW_NEAR_REWARDS_PER_WEEK, BlockchainEntity, BlockchainEntityRead, BlockchainEntityReadWrite, CACHE_TIMEOUT, ComptrollerRewardType, DECIMAL_PRECISION, DEPOSIT_NEAR_REWARDS_PER_WEEK, DEPOSIT_ONLY_TOKENS, ETHAddress, HARDCODE_PRICE_TOKENS, INF, MarketAction, MiscRead, MoneyMarket, MoneyMarketRead, MoneyMarketReadWrite, ONE_DAY, ONE_WEEK, ONE_YEAR, PLYToken, PLYWNEARToken, PLYWNEAR_POOL_ID, PLYWNEAR_REWARD_TOKENS, PRICE_WHITELISTED, Papermill, PapermillRead, PapermillReadWrite, PlyGame, PlyGameRead, PlyGameReadWrite, REFERRAL_CAMPAIGNS, REWARD_CLAIM_START, Referral, ReferralRead, ReferralReadWrite, SDK, SdkRead, SdkReadWrite, Staking, StakingRead, StakingReadWrite, Token, TokenAmount, TransferEventQuery, index as abis, assert, calcLMRewardApr, calcNetApy, calcValuation, decimalFactor, decimalRecords, devLog, dummyAddress, dummyMarketAddress, dummyPly, dummyPlyAurora, dummyToken, dummyTokenAmount, dummyTokenAmount2, dummyTokenAmount3, dummyUserMarketDetails, dummyZeroTokenAmount, fetchHistoricalLPPositions, fetchHistoricalLPPrice, fetchHistoricalPULPPrice, fetchHistoricalPrice, fetchHistoricalPriceByLP, fetchHistoricalPriceFromOracle, fetchLPPositions, fetchLPPrice, fetchPLYPrice, fetchPULPPrice, fetchPrice, fetchPriceFromCoingecko, fetchPriceFromCoingeckoAPI, fetchPriceFromDefiLlama, fetchPriceFromDefiLlamaAPI, fetchPriceFromOracle, fetchStNEARPrice, fetchToken0PriceByLP, fetchUnderlyingTokensPrices, fetchValuation, formatObject, getApi, getBlockBeforeTimestamp, getBlockTimestamp, getBlocksTimestamp, getBlocksTimestampViaRPC, getCurrentTimestamp, getDecimal, getPaginatedApi, getQuery, getSymbol, getUnderlying, isSameAddress, networkAddresses, queryGraphQL, referralRewardDummy1, referralRewardDummy2, sleep, sortEvents, symbolRecords, validateAndParseAddress, valuateToken };
|
|
7107
7246
|
//# sourceMappingURL=sdk.esm.js.map
|