@aurigami/sdk 1.13.0 → 1.13.1

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
  /**
@@ -5881,6 +5881,43 @@ var PlyGameRead = /*#__PURE__*/function (_BlockchainEntityRead) {
5881
5881
  return getLastJackpotResult;
5882
5882
  }();
5883
5883
 
5884
+ _proto.overallLeaderboard = /*#__PURE__*/function () {
5885
+ var _overallLeaderboard = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8() {
5886
+ var _this5 = this;
5887
+
5888
+ var result;
5889
+ return runtime_1.wrap(function _callee8$(_context8) {
5890
+ while (1) {
5891
+ switch (_context8.prev = _context8.next) {
5892
+ case 0:
5893
+ _context8.next = 2;
5894
+ return getPaginatedApi('/plygame/overallLeaderboard');
5895
+
5896
+ case 2:
5897
+ result = _context8.sent;
5898
+ return _context8.abrupt("return", result.items.map(function (item) {
5899
+ return {
5900
+ player: item.user,
5901
+ unlockedPulpAmount: new TokenAmount(_this5.pulpToken, item.unlockedAmount),
5902
+ gamesPlayed: item.count
5903
+ };
5904
+ }));
5905
+
5906
+ case 4:
5907
+ case "end":
5908
+ return _context8.stop();
5909
+ }
5910
+ }
5911
+ }, _callee8);
5912
+ }));
5913
+
5914
+ function overallLeaderboard() {
5915
+ return _overallLeaderboard.apply(this, arguments);
5916
+ }
5917
+
5918
+ return overallLeaderboard;
5919
+ }();
5920
+
5884
5921
  return PlyGameRead;
5885
5922
  }(BlockchainEntityRead);
5886
5923
  var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
@@ -5898,19 +5935,19 @@ var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
5898
5935
  _proto2.makeBetOnce =
5899
5936
  /*#__PURE__*/
5900
5937
  function () {
5901
- var _makeBetOnce = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(amount) {
5902
- return runtime_1.wrap(function _callee8$(_context8) {
5938
+ var _makeBetOnce = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(amount) {
5939
+ return runtime_1.wrap(function _callee9$(_context9) {
5903
5940
  while (1) {
5904
- switch (_context8.prev = _context8.next) {
5941
+ switch (_context9.prev = _context9.next) {
5905
5942
  case 0:
5906
- return _context8.abrupt("return", this.env.plygame.connect(this._networkConnection.signer).makeBetOnce(amount.rawAmount()));
5943
+ return _context9.abrupt("return", this.env.plygame.connect(this._networkConnection.signer).makeBetOnce(amount.rawAmount()));
5907
5944
 
5908
5945
  case 1:
5909
5946
  case "end":
5910
- return _context8.stop();
5947
+ return _context9.stop();
5911
5948
  }
5912
5949
  }
5913
- }, _callee8, this);
5950
+ }, _callee9, this);
5914
5951
  }));
5915
5952
 
5916
5953
  function makeBetOnce(_x5) {
@@ -5921,19 +5958,19 @@ var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
5921
5958
  }();
5922
5959
 
5923
5960
  _proto2.approve = /*#__PURE__*/function () {
5924
- var _approve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(amount) {
5925
- return runtime_1.wrap(function _callee9$(_context9) {
5961
+ var _approve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(amount) {
5962
+ return runtime_1.wrap(function _callee10$(_context10) {
5926
5963
  while (1) {
5927
- switch (_context9.prev = _context9.next) {
5964
+ switch (_context10.prev = _context10.next) {
5928
5965
  case 0:
5929
- return _context9.abrupt("return", this.env.ply.connect(this._networkConnection.signer).approve(this.env.plygame.address, amount.rawAmount()));
5966
+ return _context10.abrupt("return", this.env.ply.connect(this._networkConnection.signer).approve(this.env.plygame.address, amount.rawAmount()));
5930
5967
 
5931
5968
  case 1:
5932
5969
  case "end":
5933
- return _context9.stop();
5970
+ return _context10.stop();
5934
5971
  }
5935
5972
  }
5936
- }, _callee9, this);
5973
+ }, _callee10, this);
5937
5974
  }));
5938
5975
 
5939
5976
  function approve(_x6) {