@aurigami/sdk 1.15.1 → 1.15.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.d.ts CHANGED
@@ -42,6 +42,7 @@ export declare class SdkRead extends BlockchainEntityRead {
42
42
  getNetApyWithIncentive(userAddress: types.Address): Promise<BigNumber>;
43
43
  setUserNotificationSettings(address: types.Address, mail: string, utilisation: number, liquidation: boolean, captchaResponse: string): Promise<any>;
44
44
  unsetUserNotificationSettings(address: types.Address, captchaResponse: string): Promise<any>;
45
+ getUserNotificationSettings(addresses: types.Address[]): Promise<types.UserNotification>;
45
46
  }
46
47
  export declare class SdkReadWrite extends SdkRead {
47
48
  /**
@@ -1,4 +1,4 @@
1
- import { AuErc20, AuETH, EthRepayHelper } from '@aurigami/contracts/typechain';
1
+ import { AuETH, AuErc20, EthRepayHelper } from '@aurigami/contracts/typechain';
2
2
  import { TransactionResponse } from '@ethersproject/abstract-provider';
3
3
  import BigNumber from 'bignumber.js';
4
4
  import { BigNumber as BN } from 'ethers';
@@ -3697,7 +3697,7 @@ var MoneyMarketRead = /*#__PURE__*/function (_BlockchainEntityRead) {
3697
3697
 
3698
3698
  _context13.t0 = helpers;
3699
3699
  _context13.next = 9;
3700
- return fetchValuation(TokenAmount.fromAddressAndAmount(networkAddresses.tokens.META, '1250000', false), this._networkConnection.provider);
3700
+ return fetchValuation(TokenAmount.fromAddressAndAmount(networkAddresses.tokens.META, '1000000', false), this._networkConnection.provider);
3701
3701
 
3702
3702
  case 9:
3703
3703
  _context13.t1 = _context13.sent;
@@ -7131,6 +7131,38 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
7131
7131
  return unsetUserNotificationSettings;
7132
7132
  }();
7133
7133
 
7134
+ _proto.getUserNotificationSettings = /*#__PURE__*/function () {
7135
+ var _getUserNotificationSettings = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee14(addresses) {
7136
+ var body, response;
7137
+ return runtime_1.wrap(function _callee14$(_context14) {
7138
+ while (1) {
7139
+ switch (_context14.prev = _context14.next) {
7140
+ case 0:
7141
+ body = {
7142
+ addresses: addresses
7143
+ };
7144
+ _context14.next = 3;
7145
+ return postApi('alert-setting/get-user-setting', body);
7146
+
7147
+ case 3:
7148
+ response = _context14.sent;
7149
+ return _context14.abrupt("return", response);
7150
+
7151
+ case 5:
7152
+ case "end":
7153
+ return _context14.stop();
7154
+ }
7155
+ }
7156
+ }, _callee14);
7157
+ }));
7158
+
7159
+ function getUserNotificationSettings(_x19) {
7160
+ return _getUserNotificationSettings.apply(this, arguments);
7161
+ }
7162
+
7163
+ return getUserNotificationSettings;
7164
+ }();
7165
+
7134
7166
  return SdkRead;
7135
7167
  }(BlockchainEntityRead);
7136
7168
  var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
@@ -7148,19 +7180,19 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
7148
7180
  _proto2.claim =
7149
7181
  /*#__PURE__*/
7150
7182
  function () {
7151
- var _claim = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee14() {
7152
- return runtime_1.wrap(function _callee14$(_context14) {
7183
+ var _claim = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee15() {
7184
+ return runtime_1.wrap(function _callee15$(_context15) {
7153
7185
  while (1) {
7154
- switch (_context14.prev = _context14.next) {
7186
+ switch (_context15.prev = _context15.next) {
7155
7187
  case 0:
7156
- return _context14.abrupt("return", this.env.auriLens.connect(this._networkConnection.signer).claimRewards(this.env.comptroller.address, this.env.auriFairLaunch.address, ALL_STAKING_POOLS));
7188
+ return _context15.abrupt("return", this.env.auriLens.connect(this._networkConnection.signer).claimRewards(this.env.comptroller.address, this.env.auriFairLaunch.address, ALL_STAKING_POOLS));
7157
7189
 
7158
7190
  case 1:
7159
7191
  case "end":
7160
- return _context14.stop();
7192
+ return _context15.stop();
7161
7193
  }
7162
7194
  }
7163
- }, _callee14, this);
7195
+ }, _callee15, this);
7164
7196
  }));
7165
7197
 
7166
7198
  function claim() {
@@ -7171,22 +7203,22 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
7171
7203
  }();
7172
7204
 
7173
7205
  _proto2.stake = /*#__PURE__*/function () {
7174
- var _stake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee15(amount) {
7175
- return runtime_1.wrap(function _callee15$(_context15) {
7206
+ var _stake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee16(amount) {
7207
+ return runtime_1.wrap(function _callee16$(_context16) {
7176
7208
  while (1) {
7177
- switch (_context15.prev = _context15.next) {
7209
+ switch (_context16.prev = _context16.next) {
7178
7210
  case 0:
7179
- return _context15.abrupt("return", new StakingReadWrite(this._networkConnection).stake(amount));
7211
+ return _context16.abrupt("return", new StakingReadWrite(this._networkConnection).stake(amount));
7180
7212
 
7181
7213
  case 1:
7182
7214
  case "end":
7183
- return _context15.stop();
7215
+ return _context16.stop();
7184
7216
  }
7185
7217
  }
7186
- }, _callee15, this);
7218
+ }, _callee16, this);
7187
7219
  }));
7188
7220
 
7189
- function stake(_x19) {
7221
+ function stake(_x20) {
7190
7222
  return _stake.apply(this, arguments);
7191
7223
  }
7192
7224
 
@@ -7194,22 +7226,22 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
7194
7226
  }();
7195
7227
 
7196
7228
  _proto2.unstake = /*#__PURE__*/function () {
7197
- var _unstake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee16(amount) {
7198
- return runtime_1.wrap(function _callee16$(_context16) {
7229
+ var _unstake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee17(amount) {
7230
+ return runtime_1.wrap(function _callee17$(_context17) {
7199
7231
  while (1) {
7200
- switch (_context16.prev = _context16.next) {
7232
+ switch (_context17.prev = _context17.next) {
7201
7233
  case 0:
7202
- return _context16.abrupt("return", new StakingReadWrite(this._networkConnection).unstake(amount));
7234
+ return _context17.abrupt("return", new StakingReadWrite(this._networkConnection).unstake(amount));
7203
7235
 
7204
7236
  case 1:
7205
7237
  case "end":
7206
- return _context16.stop();
7238
+ return _context17.stop();
7207
7239
  }
7208
7240
  }
7209
- }, _callee16, this);
7241
+ }, _callee17, this);
7210
7242
  }));
7211
7243
 
7212
- function unstake(_x20) {
7244
+ function unstake(_x21) {
7213
7245
  return _unstake.apply(this, arguments);
7214
7246
  }
7215
7247