@aurigami/sdk 1.8.2 → 1.8.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.esm.js CHANGED
@@ -5188,7 +5188,7 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
5188
5188
  var _proto2 = SdkReadWrite.prototype;
5189
5189
 
5190
5190
  /**
5191
- * Claim PLY reward in all markets + staking pools
5191
+ * Claim rewards in all markets + staking pools
5192
5192
  */
5193
5193
  _proto2.claim =
5194
5194
  /*#__PURE__*/
@@ -5198,15 +5198,9 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
5198
5198
  while (1) {
5199
5199
  switch (_context10.prev = _context10.next) {
5200
5200
  case 0:
5201
- _context10.t0 = this.env.comptroller.connect(this._networkConnection.signer);
5202
- _context10.next = 3;
5203
- return this._networkConnection.signer.getAddress();
5204
-
5205
- case 3:
5206
- _context10.t1 = _context10.sent;
5207
- return _context10.abrupt("return", _context10.t0['claimReward(uint8,address)'].call(_context10.t0, 0, _context10.t1));
5201
+ return _context10.abrupt("return", this.env.auriLens.connect(this._networkConnection.signer).claimRewards(this.env.comptroller.address, this.env.auriFairLaunch.address, ALL_STAKING_POOLS));
5208
5202
 
5209
- case 5:
5203
+ case 1:
5210
5204
  case "end":
5211
5205
  return _context10.stop();
5212
5206
  }
@@ -5221,22 +5215,15 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
5221
5215
  return claim;
5222
5216
  }();
5223
5217
 
5224
- _proto2.claimLpRewards = /*#__PURE__*/function () {
5225
- var _claimLpRewards = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11() {
5218
+ _proto2.stake = /*#__PURE__*/function () {
5219
+ var _stake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(amount) {
5226
5220
  return runtime_1.wrap(function _callee11$(_context11) {
5227
5221
  while (1) {
5228
5222
  switch (_context11.prev = _context11.next) {
5229
5223
  case 0:
5230
- _context11.t0 = this.env.auriFairLaunch.connect(this._networkConnection.signer);
5231
- _context11.next = 3;
5232
- return this._networkConnection.signer.getAddress();
5224
+ return _context11.abrupt("return", new StakingReadWrite(this._networkConnection).stake(amount));
5233
5225
 
5234
- case 3:
5235
- _context11.t1 = _context11.sent;
5236
- _context11.t2 = INF;
5237
- return _context11.abrupt("return", _context11.t0.harvest.call(_context11.t0, _context11.t1, 0, _context11.t2));
5238
-
5239
- case 6:
5226
+ case 1:
5240
5227
  case "end":
5241
5228
  return _context11.stop();
5242
5229
  }
@@ -5244,29 +5231,6 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
5244
5231
  }, _callee11, this);
5245
5232
  }));
5246
5233
 
5247
- function claimLpRewards() {
5248
- return _claimLpRewards.apply(this, arguments);
5249
- }
5250
-
5251
- return claimLpRewards;
5252
- }();
5253
-
5254
- _proto2.stake = /*#__PURE__*/function () {
5255
- var _stake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12(amount) {
5256
- return runtime_1.wrap(function _callee12$(_context12) {
5257
- while (1) {
5258
- switch (_context12.prev = _context12.next) {
5259
- case 0:
5260
- return _context12.abrupt("return", new StakingReadWrite(this._networkConnection).stake(amount));
5261
-
5262
- case 1:
5263
- case "end":
5264
- return _context12.stop();
5265
- }
5266
- }
5267
- }, _callee12, this);
5268
- }));
5269
-
5270
5234
  function stake(_x9) {
5271
5235
  return _stake.apply(this, arguments);
5272
5236
  }
@@ -5275,19 +5239,19 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
5275
5239
  }();
5276
5240
 
5277
5241
  _proto2.unstake = /*#__PURE__*/function () {
5278
- var _unstake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee13(amount) {
5279
- return runtime_1.wrap(function _callee13$(_context13) {
5242
+ var _unstake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12(amount) {
5243
+ return runtime_1.wrap(function _callee12$(_context12) {
5280
5244
  while (1) {
5281
- switch (_context13.prev = _context13.next) {
5245
+ switch (_context12.prev = _context12.next) {
5282
5246
  case 0:
5283
- return _context13.abrupt("return", new StakingReadWrite(this._networkConnection).unstake(amount));
5247
+ return _context12.abrupt("return", new StakingReadWrite(this._networkConnection).unstake(amount));
5284
5248
 
5285
5249
  case 1:
5286
5250
  case "end":
5287
- return _context13.stop();
5251
+ return _context12.stop();
5288
5252
  }
5289
5253
  }
5290
- }, _callee13, this);
5254
+ }, _callee12, this);
5291
5255
  }));
5292
5256
 
5293
5257
  function unstake(_x10) {