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