@aurigami/sdk 1.5.7 → 1.5.9

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
@@ -27,6 +27,7 @@ export declare class SdkRead extends BlockchainEntityRead {
27
27
  }
28
28
  export declare class SdkReadWrite extends SdkRead {
29
29
  claim(): Promise<TransactionResponse>;
30
+ claimLpRewards(): Promise<TransactionResponse>;
30
31
  stake(amount: TokenAmount): Promise<TransactionResponse>;
31
32
  unstake(amount: TokenAmount): Promise<TransactionResponse>;
32
33
  faucetDrip(): Promise<TransactionResponse>;
@@ -4340,9 +4340,15 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
4340
4340
  while (1) {
4341
4341
  switch (_context7.prev = _context7.next) {
4342
4342
  case 0:
4343
- return _context7.abrupt("return", this._auriLens.connect(this._networkConnection.signer).claimRewards(this._comptroller.address, this._auriFairLaunch.address, ALL_STAKING_POOLS));
4343
+ _context7.t0 = this._comptroller.connect(this._networkConnection.signer);
4344
+ _context7.next = 3;
4345
+ return this._networkConnection.signer.getAddress();
4344
4346
 
4345
- case 1:
4347
+ case 3:
4348
+ _context7.t1 = _context7.sent;
4349
+ return _context7.abrupt("return", _context7.t0['claimReward(uint8,address)'].call(_context7.t0, 0, _context7.t1));
4350
+
4351
+ case 5:
4346
4352
  case "end":
4347
4353
  return _context7.stop();
4348
4354
  }
@@ -4357,15 +4363,22 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
4357
4363
  return claim;
4358
4364
  }();
4359
4365
 
4360
- _proto2.stake = /*#__PURE__*/function () {
4361
- var _stake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(amount) {
4366
+ _proto2.claimLpRewards = /*#__PURE__*/function () {
4367
+ var _claimLpRewards = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8() {
4362
4368
  return runtime_1.wrap(function _callee8$(_context8) {
4363
4369
  while (1) {
4364
4370
  switch (_context8.prev = _context8.next) {
4365
4371
  case 0:
4366
- return _context8.abrupt("return", new StakingReadWrite(this._networkConnection).stake(amount));
4372
+ _context8.t0 = this._auriFairLaunch.connect(this._networkConnection.signer);
4373
+ _context8.next = 3;
4374
+ return this._networkConnection.signer.getAddress();
4367
4375
 
4368
- case 1:
4376
+ case 3:
4377
+ _context8.t1 = _context8.sent;
4378
+ _context8.t2 = INF;
4379
+ return _context8.abrupt("return", _context8.t0.harvest.call(_context8.t0, _context8.t1, 0, _context8.t2));
4380
+
4381
+ case 6:
4369
4382
  case "end":
4370
4383
  return _context8.stop();
4371
4384
  }
@@ -4373,20 +4386,20 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
4373
4386
  }, _callee8, this);
4374
4387
  }));
4375
4388
 
4376
- function stake(_x6) {
4377
- return _stake.apply(this, arguments);
4389
+ function claimLpRewards() {
4390
+ return _claimLpRewards.apply(this, arguments);
4378
4391
  }
4379
4392
 
4380
- return stake;
4393
+ return claimLpRewards;
4381
4394
  }();
4382
4395
 
4383
- _proto2.unstake = /*#__PURE__*/function () {
4384
- var _unstake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(amount) {
4396
+ _proto2.stake = /*#__PURE__*/function () {
4397
+ var _stake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(amount) {
4385
4398
  return runtime_1.wrap(function _callee9$(_context9) {
4386
4399
  while (1) {
4387
4400
  switch (_context9.prev = _context9.next) {
4388
4401
  case 0:
4389
- return _context9.abrupt("return", new StakingReadWrite(this._networkConnection).unstake(amount));
4402
+ return _context9.abrupt("return", new StakingReadWrite(this._networkConnection).stake(amount));
4390
4403
 
4391
4404
  case 1:
4392
4405
  case "end":
@@ -4396,6 +4409,29 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
4396
4409
  }, _callee9, this);
4397
4410
  }));
4398
4411
 
4412
+ function stake(_x6) {
4413
+ return _stake.apply(this, arguments);
4414
+ }
4415
+
4416
+ return stake;
4417
+ }();
4418
+
4419
+ _proto2.unstake = /*#__PURE__*/function () {
4420
+ var _unstake = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(amount) {
4421
+ return runtime_1.wrap(function _callee10$(_context10) {
4422
+ while (1) {
4423
+ switch (_context10.prev = _context10.next) {
4424
+ case 0:
4425
+ return _context10.abrupt("return", new StakingReadWrite(this._networkConnection).unstake(amount));
4426
+
4427
+ case 1:
4428
+ case "end":
4429
+ return _context10.stop();
4430
+ }
4431
+ }
4432
+ }, _callee10, this);
4433
+ }));
4434
+
4399
4435
  function unstake(_x7) {
4400
4436
  return _unstake.apply(this, arguments);
4401
4437
  }
@@ -4404,21 +4440,21 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
4404
4440
  }();
4405
4441
 
4406
4442
  _proto2.faucetDrip = /*#__PURE__*/function () {
4407
- var _faucetDrip = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10() {
4443
+ var _faucetDrip = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11() {
4408
4444
  var faucet;
4409
- return runtime_1.wrap(function _callee10$(_context10) {
4445
+ return runtime_1.wrap(function _callee11$(_context11) {
4410
4446
  while (1) {
4411
- switch (_context10.prev = _context10.next) {
4447
+ switch (_context11.prev = _context11.next) {
4412
4448
  case 0:
4413
4449
  faucet = new ethers.Contract(networkAddresses.misc.FAUCET, FaucetABI.abi, this._networkConnection.provider);
4414
- return _context10.abrupt("return", faucet.connect(this._networkConnection.signer).drip());
4450
+ return _context11.abrupt("return", faucet.connect(this._networkConnection.signer).drip());
4415
4451
 
4416
4452
  case 2:
4417
4453
  case "end":
4418
- return _context10.stop();
4454
+ return _context11.stop();
4419
4455
  }
4420
4456
  }
4421
- }, _callee10, this);
4457
+ }, _callee11, this);
4422
4458
  }));
4423
4459
 
4424
4460
  function faucetDrip() {