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