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