@aurigami/sdk 1.15.0 → 1.15.2

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.esm.js CHANGED
@@ -5323,7 +5323,7 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
5323
5323
  switch (_context4.prev = _context4.next) {
5324
5324
  case 0:
5325
5325
  _context4.next = 2;
5326
- return this.env.auriInternalLens.getAccountLiquidity(userAddr);
5326
+ return this.env.auriInternalLens.callStatic.getAccountLiquidityAccrueInterest(userAddr);
5327
5327
 
5328
5328
  case 2:
5329
5329
  accountDetail = _context4.sent;
@@ -7130,6 +7130,38 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
7130
7130
  return unsetUserNotificationSettings;
7131
7131
  }();
7132
7132
 
7133
+ _proto.getUserNotificationSettings = /*#__PURE__*/function () {
7134
+ var _getUserNotificationSettings = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee14(addresses) {
7135
+ var body, response;
7136
+ return runtime_1.wrap(function _callee14$(_context14) {
7137
+ while (1) {
7138
+ switch (_context14.prev = _context14.next) {
7139
+ case 0:
7140
+ body = {
7141
+ addresses: addresses
7142
+ };
7143
+ _context14.next = 3;
7144
+ return postApi('alert-setting/get-user-setting', body);
7145
+
7146
+ case 3:
7147
+ response = _context14.sent;
7148
+ return _context14.abrupt("return", response);
7149
+
7150
+ case 5:
7151
+ case "end":
7152
+ return _context14.stop();
7153
+ }
7154
+ }
7155
+ }, _callee14);
7156
+ }));
7157
+
7158
+ function getUserNotificationSettings(_x19) {
7159
+ return _getUserNotificationSettings.apply(this, arguments);
7160
+ }
7161
+
7162
+ return getUserNotificationSettings;
7163
+ }();
7164
+
7133
7165
  return SdkRead;
7134
7166
  }(BlockchainEntityRead);
7135
7167
  var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
@@ -7147,19 +7179,19 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
7147
7179
  _proto2.claim =
7148
7180
  /*#__PURE__*/
7149
7181
  function () {
7150
- var _claim = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee14() {
7151
- return runtime_1.wrap(function _callee14$(_context14) {
7182
+ var _claim = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee15() {
7183
+ return runtime_1.wrap(function _callee15$(_context15) {
7152
7184
  while (1) {
7153
- switch (_context14.prev = _context14.next) {
7185
+ switch (_context15.prev = _context15.next) {
7154
7186
  case 0:
7155
- return _context14.abrupt("return", this.env.auriLens.connect(this._networkConnection.signer).claimRewards(this.env.comptroller.address, this.env.auriFairLaunch.address, ALL_STAKING_POOLS));
7187
+ return _context15.abrupt("return", this.env.auriLens.connect(this._networkConnection.signer).claimRewards(this.env.comptroller.address, this.env.auriFairLaunch.address, ALL_STAKING_POOLS));
7156
7188
 
7157
7189
  case 1:
7158
7190
  case "end":
7159
- return _context14.stop();
7191
+ return _context15.stop();
7160
7192
  }
7161
7193
  }
7162
- }, _callee14, this);
7194
+ }, _callee15, this);
7163
7195
  }));
7164
7196
 
7165
7197
  function claim() {
@@ -7170,22 +7202,22 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
7170
7202
  }();
7171
7203
 
7172
7204
  _proto2.stake = /*#__PURE__*/function () {
7173
- var _stake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee15(amount) {
7174
- return runtime_1.wrap(function _callee15$(_context15) {
7205
+ var _stake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee16(amount) {
7206
+ return runtime_1.wrap(function _callee16$(_context16) {
7175
7207
  while (1) {
7176
- switch (_context15.prev = _context15.next) {
7208
+ switch (_context16.prev = _context16.next) {
7177
7209
  case 0:
7178
- return _context15.abrupt("return", new StakingReadWrite(this._networkConnection).stake(amount));
7210
+ return _context16.abrupt("return", new StakingReadWrite(this._networkConnection).stake(amount));
7179
7211
 
7180
7212
  case 1:
7181
7213
  case "end":
7182
- return _context15.stop();
7214
+ return _context16.stop();
7183
7215
  }
7184
7216
  }
7185
- }, _callee15, this);
7217
+ }, _callee16, this);
7186
7218
  }));
7187
7219
 
7188
- function stake(_x19) {
7220
+ function stake(_x20) {
7189
7221
  return _stake.apply(this, arguments);
7190
7222
  }
7191
7223
 
@@ -7193,22 +7225,22 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
7193
7225
  }();
7194
7226
 
7195
7227
  _proto2.unstake = /*#__PURE__*/function () {
7196
- var _unstake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee16(amount) {
7197
- return runtime_1.wrap(function _callee16$(_context16) {
7228
+ var _unstake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee17(amount) {
7229
+ return runtime_1.wrap(function _callee17$(_context17) {
7198
7230
  while (1) {
7199
- switch (_context16.prev = _context16.next) {
7231
+ switch (_context17.prev = _context17.next) {
7200
7232
  case 0:
7201
- return _context16.abrupt("return", new StakingReadWrite(this._networkConnection).unstake(amount));
7233
+ return _context17.abrupt("return", new StakingReadWrite(this._networkConnection).unstake(amount));
7202
7234
 
7203
7235
  case 1:
7204
7236
  case "end":
7205
- return _context16.stop();
7237
+ return _context17.stop();
7206
7238
  }
7207
7239
  }
7208
- }, _callee16, this);
7240
+ }, _callee17, this);
7209
7241
  }));
7210
7242
 
7211
- function unstake(_x20) {
7243
+ function unstake(_x21) {
7212
7244
  return _unstake.apply(this, arguments);
7213
7245
  }
7214
7246