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