@aurigami/sdk 1.5.8 → 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>;
@@ -4363,15 +4363,22 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
4363
4363
  return claim;
4364
4364
  }();
4365
4365
 
4366
- _proto2.stake = /*#__PURE__*/function () {
4367
- 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() {
4368
4368
  return runtime_1.wrap(function _callee8$(_context8) {
4369
4369
  while (1) {
4370
4370
  switch (_context8.prev = _context8.next) {
4371
4371
  case 0:
4372
- 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();
4373
4375
 
4374
- 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:
4375
4382
  case "end":
4376
4383
  return _context8.stop();
4377
4384
  }
@@ -4379,20 +4386,20 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
4379
4386
  }, _callee8, this);
4380
4387
  }));
4381
4388
 
4382
- function stake(_x6) {
4383
- return _stake.apply(this, arguments);
4389
+ function claimLpRewards() {
4390
+ return _claimLpRewards.apply(this, arguments);
4384
4391
  }
4385
4392
 
4386
- return stake;
4393
+ return claimLpRewards;
4387
4394
  }();
4388
4395
 
4389
- _proto2.unstake = /*#__PURE__*/function () {
4390
- 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) {
4391
4398
  return runtime_1.wrap(function _callee9$(_context9) {
4392
4399
  while (1) {
4393
4400
  switch (_context9.prev = _context9.next) {
4394
4401
  case 0:
4395
- return _context9.abrupt("return", new StakingReadWrite(this._networkConnection).unstake(amount));
4402
+ return _context9.abrupt("return", new StakingReadWrite(this._networkConnection).stake(amount));
4396
4403
 
4397
4404
  case 1:
4398
4405
  case "end":
@@ -4402,6 +4409,29 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
4402
4409
  }, _callee9, this);
4403
4410
  }));
4404
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
+
4405
4435
  function unstake(_x7) {
4406
4436
  return _unstake.apply(this, arguments);
4407
4437
  }
@@ -4410,21 +4440,21 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
4410
4440
  }();
4411
4441
 
4412
4442
  _proto2.faucetDrip = /*#__PURE__*/function () {
4413
- var _faucetDrip = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10() {
4443
+ var _faucetDrip = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11() {
4414
4444
  var faucet;
4415
- return runtime_1.wrap(function _callee10$(_context10) {
4445
+ return runtime_1.wrap(function _callee11$(_context11) {
4416
4446
  while (1) {
4417
- switch (_context10.prev = _context10.next) {
4447
+ switch (_context11.prev = _context11.next) {
4418
4448
  case 0:
4419
4449
  faucet = new ethers.Contract(networkAddresses.misc.FAUCET, FaucetABI.abi, this._networkConnection.provider);
4420
- return _context10.abrupt("return", faucet.connect(this._networkConnection.signer).drip());
4450
+ return _context11.abrupt("return", faucet.connect(this._networkConnection.signer).drip());
4421
4451
 
4422
4452
  case 2:
4423
4453
  case "end":
4424
- return _context10.stop();
4454
+ return _context11.stop();
4425
4455
  }
4426
4456
  }
4427
- }, _callee10, this);
4457
+ }, _callee11, this);
4428
4458
  }));
4429
4459
 
4430
4460
  function faucetDrip() {