@aurigami/sdk 1.12.8 → 1.12.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.
@@ -26,6 +26,7 @@ export declare class PlyGameRead extends BlockchainEntityRead {
26
26
  winner: Address;
27
27
  amount: TokenAmount;
28
28
  }>;
29
+ overallLeaderboard(): Promise<PlyGameLeaderboardItem[]>;
29
30
  }
30
31
  export declare class PlyGameReadWrite extends PlyGameRead {
31
32
  /**
@@ -5513,6 +5513,43 @@ var PlyGameRead = /*#__PURE__*/function (_BlockchainEntityRead) {
5513
5513
  return getLastJackpotResult;
5514
5514
  }();
5515
5515
 
5516
+ _proto.overallLeaderboard = /*#__PURE__*/function () {
5517
+ var _overallLeaderboard = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8() {
5518
+ var _this5 = this;
5519
+
5520
+ var result;
5521
+ return runtime_1.wrap(function _callee8$(_context8) {
5522
+ while (1) {
5523
+ switch (_context8.prev = _context8.next) {
5524
+ case 0:
5525
+ _context8.next = 2;
5526
+ return getPaginatedApi('/plygame/overallLeaderboard');
5527
+
5528
+ case 2:
5529
+ result = _context8.sent;
5530
+ return _context8.abrupt("return", result.items.map(function (item) {
5531
+ return {
5532
+ player: item.user,
5533
+ unlockedPulpAmount: new TokenAmount(_this5.pulpToken, item.unlockedAmount),
5534
+ gamesPlayed: item.count
5535
+ };
5536
+ }));
5537
+
5538
+ case 4:
5539
+ case "end":
5540
+ return _context8.stop();
5541
+ }
5542
+ }
5543
+ }, _callee8);
5544
+ }));
5545
+
5546
+ function overallLeaderboard() {
5547
+ return _overallLeaderboard.apply(this, arguments);
5548
+ }
5549
+
5550
+ return overallLeaderboard;
5551
+ }();
5552
+
5516
5553
  return PlyGameRead;
5517
5554
  }(BlockchainEntityRead);
5518
5555
  var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
@@ -5530,19 +5567,19 @@ var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
5530
5567
  _proto2.makeBetOnce =
5531
5568
  /*#__PURE__*/
5532
5569
  function () {
5533
- var _makeBetOnce = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(amount) {
5534
- return runtime_1.wrap(function _callee8$(_context8) {
5570
+ var _makeBetOnce = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(amount) {
5571
+ return runtime_1.wrap(function _callee9$(_context9) {
5535
5572
  while (1) {
5536
- switch (_context8.prev = _context8.next) {
5573
+ switch (_context9.prev = _context9.next) {
5537
5574
  case 0:
5538
- return _context8.abrupt("return", this.env.plygame.connect(this._networkConnection.signer).makeBetOnce(amount.rawAmount()));
5575
+ return _context9.abrupt("return", this.env.plygame.connect(this._networkConnection.signer).makeBetOnce(amount.rawAmount()));
5539
5576
 
5540
5577
  case 1:
5541
5578
  case "end":
5542
- return _context8.stop();
5579
+ return _context9.stop();
5543
5580
  }
5544
5581
  }
5545
- }, _callee8, this);
5582
+ }, _callee9, this);
5546
5583
  }));
5547
5584
 
5548
5585
  function makeBetOnce(_x5) {
@@ -5553,19 +5590,19 @@ var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
5553
5590
  }();
5554
5591
 
5555
5592
  _proto2.approve = /*#__PURE__*/function () {
5556
- var _approve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(amount) {
5557
- return runtime_1.wrap(function _callee9$(_context9) {
5593
+ var _approve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(amount) {
5594
+ return runtime_1.wrap(function _callee10$(_context10) {
5558
5595
  while (1) {
5559
- switch (_context9.prev = _context9.next) {
5596
+ switch (_context10.prev = _context10.next) {
5560
5597
  case 0:
5561
- return _context9.abrupt("return", this.env.ply.connect(this._networkConnection.signer).approve(this.env.plygame.address, amount.rawAmount()));
5598
+ return _context10.abrupt("return", this.env.ply.connect(this._networkConnection.signer).approve(this.env.plygame.address, amount.rawAmount()));
5562
5599
 
5563
5600
  case 1:
5564
5601
  case "end":
5565
- return _context9.stop();
5602
+ return _context10.stop();
5566
5603
  }
5567
5604
  }
5568
- }, _callee9, this);
5605
+ }, _callee10, this);
5569
5606
  }));
5570
5607
 
5571
5608
  function approve(_x6) {