@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.
@@ -28,6 +28,7 @@ var aurora_testnet_json = _interopDefault(require('@aurigami/contracts/deploymen
28
28
  var axios = _interopDefault(require('axios'));
29
29
  var abstractSigner = require('@ethersproject/abstract-signer');
30
30
  var tslib = require('tslib');
31
+ var cacheDecorator = require('cache-decorator');
31
32
 
32
33
 
33
34
 
@@ -136,7 +137,7 @@ var networkAddresses = {
136
137
  AURORA_WNEAR: /*#__PURE__*/'0x1e0e812fbcd3eb75d8562ad6f310ed94d258d008'.toLowerCase()
137
138
  }
138
139
  };
139
- var DEPOSIT_ONLY_TOKENS = [/*#__PURE__*/MAINNET_ADDRESSES.auTokens.STNEAR.toLowerCase(), /*#__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
140
+ 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
140
141
 
141
142
  var PRICE_WHITELISTED = /*#__PURE__*/new Set( /*#__PURE__*/[].concat( /*#__PURE__*/networkAddresses.auTokens.map(function (t) {
142
143
  return t.underlying;
@@ -1539,37 +1540,25 @@ function sortEvents(events) {
1539
1540
 
1540
1541
  return a.blockNumber - b.blockNumber;
1541
1542
  });
1542
- }
1543
- function Cache(cacheTimeout) {
1544
- return function (target, propertyKey, descriptor) {
1545
- var originalMethod = descriptor.value;
1546
- var cache = new Map();
1547
-
1548
- descriptor.value = function () {
1549
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1550
- args[_key2] = arguments[_key2];
1551
- }
1552
-
1553
- var key = JSON.stringify(args);
1554
-
1555
- if (cache.has(key)) {
1556
- var _cache$get = cache.get(key),
1557
- timestamp = _cache$get[0],
1558
- value = _cache$get[1];
1559
-
1560
- if (Date.now() - timestamp < cacheTimeout) {
1561
- return value;
1562
- }
1563
- }
1564
-
1565
- var result = originalMethod.apply(this, args);
1566
- cache.set(key, [Date.now(), result]);
1567
- return result;
1568
- };
1569
-
1570
- return descriptor;
1571
- };
1572
- }
1543
+ } // export function Cache(cacheTimeout: number) {
1544
+ // return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) {
1545
+ // const originalMethod = descriptor.value;
1546
+ // let cache = new Map<string, any>();
1547
+ // descriptor.value = function (...args: any[]) {
1548
+ // let key = JSON.stringify(args);
1549
+ // if (cache.has(key)) {
1550
+ // let [timestamp, value] = cache.get(key);
1551
+ // if (Date.now() - timestamp < cacheTimeout) {
1552
+ // return value;
1553
+ // }
1554
+ // }
1555
+ // let result = originalMethod.apply(this, args);
1556
+ // cache.set(key, [Date.now(), result]);
1557
+ // return result;
1558
+ // };
1559
+ // return descriptor;
1560
+ // };
1561
+ // }
1573
1562
 
1574
1563
  var BlockchainEntityRead = function BlockchainEntityRead(networkConnection) {
1575
1564
  this._networkConnection = networkConnection;
@@ -1956,6 +1945,7 @@ function _fetchPriceFromDefiLlamaAPI() {
1956
1945
  return res.data.coins[id].price;
1957
1946
  })["catch"](function (err) {
1958
1947
  console.log("unable to fetch price from DefiLlama API: " + err);
1948
+ console.error(err);
1959
1949
  return 0;
1960
1950
  });
1961
1951
 
@@ -1989,6 +1979,7 @@ function _fetchPriceFromCoingeckoAPI() {
1989
1979
  return res.data[id];
1990
1980
  })["catch"](function (err) {
1991
1981
  console.log("Unable to fetch price from Coingecko API for " + id);
1982
+ console.error(err);
1992
1983
  return {
1993
1984
  usd: 0
1994
1985
  };
@@ -3103,7 +3094,6 @@ var helpers = {
3103
3094
  getBlockBeforeTimestamp: getBlockBeforeTimestamp,
3104
3095
  devLog: devLog,
3105
3096
  sortEvents: sortEvents,
3106
- Cache: Cache,
3107
3097
  fetchPriceFromDefiLlamaAPI: fetchPriceFromDefiLlamaAPI,
3108
3098
  fetchPriceFromCoingeckoAPI: fetchPriceFromCoingeckoAPI,
3109
3099
  fetchPriceFromDefiLlama: fetchPriceFromDefiLlama,
@@ -4043,31 +4033,70 @@ var MoneyMarketRead = /*#__PURE__*/function (_BlockchainEntityRead) {
4043
4033
  return MoneyMarketRead;
4044
4034
  }(BlockchainEntityRead);
4045
4035
 
4046
- tslib.__decorate([Cache(CACHE_TIMEOUT), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getUnderlyingPrice", null);
4047
-
4048
- tslib.__decorate([Cache(CACHE_TIMEOUT), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getPlyPrice", null);
4049
-
4050
- tslib.__decorate([Cache(CACHE_TIMEOUT), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getRewardSpeeds", null);
4051
-
4052
- tslib.__decorate([Cache(CACHE_TIMEOUT), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getTotalTokenBorrowed", null);
4053
-
4054
- tslib.__decorate([Cache(CACHE_TIMEOUT), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getTotalTokenDeposited", null);
4055
-
4056
- tslib.__decorate([Cache(CACHE_TIMEOUT), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getDepositAPY", null);
4057
-
4058
- tslib.__decorate([Cache(CACHE_TIMEOUT), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getBorrowAPY", null);
4059
-
4060
- tslib.__decorate([Cache(CACHE_TIMEOUT), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getCollateralRatio", null);
4061
-
4062
- tslib.__decorate([Cache(CACHE_TIMEOUT), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getBorrowPlyAPY", null);
4063
-
4064
- tslib.__decorate([Cache(CACHE_TIMEOUT), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getDepositPlyAPY", null);
4065
-
4066
- tslib.__decorate([Cache(CACHE_TIMEOUT), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getDepositNearAPY", null);
4067
-
4068
- tslib.__decorate([Cache(CACHE_TIMEOUT), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getBorrowNearAPY", null);
4069
-
4070
- tslib.__decorate([Cache(CACHE_TIMEOUT), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getDepositMetaAPY", null);
4036
+ tslib.__decorate([cacheDecorator.cache({
4037
+ ttl: CACHE_TIMEOUT,
4038
+ type: cacheDecorator.CacheType.MEMO
4039
+ }), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getUnderlyingPrice", null);
4040
+
4041
+ tslib.__decorate([cacheDecorator.cache({
4042
+ ttl: CACHE_TIMEOUT,
4043
+ type: cacheDecorator.CacheType.MEMO
4044
+ }), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getPlyPrice", null);
4045
+
4046
+ tslib.__decorate([cacheDecorator.cache({
4047
+ ttl: CACHE_TIMEOUT,
4048
+ type: cacheDecorator.CacheType.MEMO
4049
+ }), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getRewardSpeeds", null);
4050
+
4051
+ tslib.__decorate([cacheDecorator.cache({
4052
+ ttl: CACHE_TIMEOUT,
4053
+ type: cacheDecorator.CacheType.MEMO
4054
+ }), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getTotalTokenBorrowed", null);
4055
+
4056
+ tslib.__decorate([cacheDecorator.cache({
4057
+ ttl: CACHE_TIMEOUT,
4058
+ type: cacheDecorator.CacheType.MEMO
4059
+ }), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getTotalTokenDeposited", null);
4060
+
4061
+ tslib.__decorate([cacheDecorator.cache({
4062
+ ttl: CACHE_TIMEOUT,
4063
+ type: cacheDecorator.CacheType.MEMO
4064
+ }), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getDepositAPY", null);
4065
+
4066
+ tslib.__decorate([cacheDecorator.cache({
4067
+ ttl: CACHE_TIMEOUT,
4068
+ type: cacheDecorator.CacheType.MEMO
4069
+ }), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getBorrowAPY", null);
4070
+
4071
+ tslib.__decorate([cacheDecorator.cache({
4072
+ ttl: CACHE_TIMEOUT,
4073
+ type: cacheDecorator.CacheType.MEMO
4074
+ }), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getCollateralRatio", null);
4075
+
4076
+ tslib.__decorate([cacheDecorator.cache({
4077
+ ttl: CACHE_TIMEOUT,
4078
+ type: cacheDecorator.CacheType.MEMO
4079
+ }), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getBorrowPlyAPY", null);
4080
+
4081
+ tslib.__decorate([cacheDecorator.cache({
4082
+ ttl: CACHE_TIMEOUT,
4083
+ type: cacheDecorator.CacheType.MEMO
4084
+ }), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getDepositPlyAPY", null);
4085
+
4086
+ tslib.__decorate([cacheDecorator.cache({
4087
+ ttl: CACHE_TIMEOUT,
4088
+ type: cacheDecorator.CacheType.MEMO
4089
+ }), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getDepositNearAPY", null);
4090
+
4091
+ tslib.__decorate([cacheDecorator.cache({
4092
+ ttl: CACHE_TIMEOUT,
4093
+ type: cacheDecorator.CacheType.MEMO
4094
+ }), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getBorrowNearAPY", null);
4095
+
4096
+ tslib.__decorate([cacheDecorator.cache({
4097
+ ttl: CACHE_TIMEOUT,
4098
+ type: cacheDecorator.CacheType.MEMO
4099
+ }), tslib.__metadata("design:type", Function), tslib.__metadata("design:paramtypes", []), tslib.__metadata("design:returntype", Promise)], MoneyMarketRead.prototype, "getDepositMetaAPY", null);
4071
4100
 
4072
4101
  var MoneyMarketReadWrite = /*#__PURE__*/function (_MoneyMarketRead) {
4073
4102
  _inheritsLoose(MoneyMarketReadWrite, _MoneyMarketRead);
@@ -6678,6 +6707,40 @@ var Referral = /*#__PURE__*/function (_BlockchainEntity) {
6678
6707
  return Referral;
6679
6708
  }(BlockchainEntity);
6680
6709
 
6710
+ var NOTIFICATION_API_END_POINT = 'https://api.aurigami.finance/notification/';
6711
+
6712
+ function postApi(_x3, _x4) {
6713
+ return _postApi.apply(this, arguments);
6714
+ }
6715
+
6716
+ function _postApi() {
6717
+ _postApi = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(url, body) {
6718
+ var resp;
6719
+ return runtime_1.wrap(function _callee2$(_context2) {
6720
+ while (1) {
6721
+ switch (_context2.prev = _context2.next) {
6722
+ case 0:
6723
+ _context2.next = 2;
6724
+ return axios.post(NOTIFICATION_API_END_POINT + url, body, {
6725
+ headers: {
6726
+ 'Content-Type': 'application/json'
6727
+ }
6728
+ });
6729
+
6730
+ case 2:
6731
+ resp = _context2.sent;
6732
+ return _context2.abrupt("return", resp.data);
6733
+
6734
+ case 4:
6735
+ case "end":
6736
+ return _context2.stop();
6737
+ }
6738
+ }
6739
+ }, _callee2);
6740
+ }));
6741
+ return _postApi.apply(this, arguments);
6742
+ }
6743
+
6681
6744
  var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
6682
6745
  _inheritsLoose(SdkRead, _BlockchainEntityRead);
6683
6746
 
@@ -6992,6 +7055,82 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
6992
7055
  return getNetApyWithIncentive;
6993
7056
  }();
6994
7057
 
7058
+ _proto.setUserNotificationSettings = /*#__PURE__*/function () {
7059
+ var _setUserNotificationSettings = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12(address, mail, utilisation, liquidation, captchaResponse) {
7060
+ var body, response;
7061
+ return runtime_1.wrap(function _callee12$(_context12) {
7062
+ while (1) {
7063
+ switch (_context12.prev = _context12.next) {
7064
+ case 0:
7065
+ body = {
7066
+ address: address,
7067
+ mail: mail,
7068
+ setting: {
7069
+ utilisation: utilisation,
7070
+ liquidation: liquidation
7071
+ },
7072
+ captchaResponse: captchaResponse
7073
+ };
7074
+ _context12.next = 3;
7075
+ return postApi('alert-setting/set', body);
7076
+
7077
+ case 3:
7078
+ response = _context12.sent;
7079
+ return _context12.abrupt("return", response);
7080
+
7081
+ case 5:
7082
+ case "end":
7083
+ return _context12.stop();
7084
+ }
7085
+ }
7086
+ }, _callee12);
7087
+ }));
7088
+
7089
+ function setUserNotificationSettings(_x12, _x13, _x14, _x15, _x16) {
7090
+ return _setUserNotificationSettings.apply(this, arguments);
7091
+ }
7092
+
7093
+ return setUserNotificationSettings;
7094
+ }();
7095
+
7096
+ _proto.unsetUserNotificationSettings = /*#__PURE__*/function () {
7097
+ var _unsetUserNotificationSettings = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee13(address, captchaResponse) {
7098
+ var body, response;
7099
+ return runtime_1.wrap(function _callee13$(_context13) {
7100
+ while (1) {
7101
+ switch (_context13.prev = _context13.next) {
7102
+ case 0:
7103
+ body = {
7104
+ address: address,
7105
+ mail: '',
7106
+ setting: {
7107
+ utilisation: null,
7108
+ liquidation: false
7109
+ },
7110
+ captchaResponse: captchaResponse
7111
+ };
7112
+ _context13.next = 3;
7113
+ return postApi('alert-setting/set', body);
7114
+
7115
+ case 3:
7116
+ response = _context13.sent;
7117
+ return _context13.abrupt("return", response);
7118
+
7119
+ case 5:
7120
+ case "end":
7121
+ return _context13.stop();
7122
+ }
7123
+ }
7124
+ }, _callee13);
7125
+ }));
7126
+
7127
+ function unsetUserNotificationSettings(_x17, _x18) {
7128
+ return _unsetUserNotificationSettings.apply(this, arguments);
7129
+ }
7130
+
7131
+ return unsetUserNotificationSettings;
7132
+ }();
7133
+
6995
7134
  return SdkRead;
6996
7135
  }(BlockchainEntityRead);
6997
7136
  var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
@@ -7009,19 +7148,19 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
7009
7148
  _proto2.claim =
7010
7149
  /*#__PURE__*/
7011
7150
  function () {
7012
- var _claim = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12() {
7013
- return runtime_1.wrap(function _callee12$(_context12) {
7151
+ var _claim = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee14() {
7152
+ return runtime_1.wrap(function _callee14$(_context14) {
7014
7153
  while (1) {
7015
- switch (_context12.prev = _context12.next) {
7154
+ switch (_context14.prev = _context14.next) {
7016
7155
  case 0:
7017
- return _context12.abrupt("return", this.env.auriLens.connect(this._networkConnection.signer).claimRewards(this.env.comptroller.address, this.env.auriFairLaunch.address, ALL_STAKING_POOLS));
7156
+ return _context14.abrupt("return", this.env.auriLens.connect(this._networkConnection.signer).claimRewards(this.env.comptroller.address, this.env.auriFairLaunch.address, ALL_STAKING_POOLS));
7018
7157
 
7019
7158
  case 1:
7020
7159
  case "end":
7021
- return _context12.stop();
7160
+ return _context14.stop();
7022
7161
  }
7023
7162
  }
7024
- }, _callee12, this);
7163
+ }, _callee14, this);
7025
7164
  }));
7026
7165
 
7027
7166
  function claim() {
@@ -7032,22 +7171,22 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
7032
7171
  }();
7033
7172
 
7034
7173
  _proto2.stake = /*#__PURE__*/function () {
7035
- var _stake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee13(amount) {
7036
- return runtime_1.wrap(function _callee13$(_context13) {
7174
+ var _stake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee15(amount) {
7175
+ return runtime_1.wrap(function _callee15$(_context15) {
7037
7176
  while (1) {
7038
- switch (_context13.prev = _context13.next) {
7177
+ switch (_context15.prev = _context15.next) {
7039
7178
  case 0:
7040
- return _context13.abrupt("return", new StakingReadWrite(this._networkConnection).stake(amount));
7179
+ return _context15.abrupt("return", new StakingReadWrite(this._networkConnection).stake(amount));
7041
7180
 
7042
7181
  case 1:
7043
7182
  case "end":
7044
- return _context13.stop();
7183
+ return _context15.stop();
7045
7184
  }
7046
7185
  }
7047
- }, _callee13, this);
7186
+ }, _callee15, this);
7048
7187
  }));
7049
7188
 
7050
- function stake(_x12) {
7189
+ function stake(_x19) {
7051
7190
  return _stake.apply(this, arguments);
7052
7191
  }
7053
7192
 
@@ -7055,22 +7194,22 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
7055
7194
  }();
7056
7195
 
7057
7196
  _proto2.unstake = /*#__PURE__*/function () {
7058
- var _unstake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee14(amount) {
7059
- return runtime_1.wrap(function _callee14$(_context14) {
7197
+ var _unstake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee16(amount) {
7198
+ return runtime_1.wrap(function _callee16$(_context16) {
7060
7199
  while (1) {
7061
- switch (_context14.prev = _context14.next) {
7200
+ switch (_context16.prev = _context16.next) {
7062
7201
  case 0:
7063
- return _context14.abrupt("return", new StakingReadWrite(this._networkConnection).unstake(amount));
7202
+ return _context16.abrupt("return", new StakingReadWrite(this._networkConnection).unstake(amount));
7064
7203
 
7065
7204
  case 1:
7066
7205
  case "end":
7067
- return _context14.stop();
7206
+ return _context16.stop();
7068
7207
  }
7069
7208
  }
7070
- }, _callee14, this);
7209
+ }, _callee16, this);
7071
7210
  }));
7072
7211
 
7073
- function unstake(_x13) {
7212
+ function unstake(_x20) {
7074
7213
  return _unstake.apply(this, arguments);
7075
7214
  }
7076
7215
 
@@ -7122,7 +7261,6 @@ exports.BlockchainEntity = BlockchainEntity;
7122
7261
  exports.BlockchainEntityRead = BlockchainEntityRead;
7123
7262
  exports.BlockchainEntityReadWrite = BlockchainEntityReadWrite;
7124
7263
  exports.CACHE_TIMEOUT = CACHE_TIMEOUT;
7125
- exports.Cache = Cache;
7126
7264
  exports.DECIMAL_PRECISION = DECIMAL_PRECISION;
7127
7265
  exports.DEPOSIT_NEAR_REWARDS_PER_WEEK = DEPOSIT_NEAR_REWARDS_PER_WEEK;
7128
7266
  exports.DEPOSIT_ONLY_TOKENS = DEPOSIT_ONLY_TOKENS;