@aurigami/sdk 1.12.3 → 1.12.4

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
@@ -5057,24 +5057,31 @@ var PlyGameRead = /*#__PURE__*/function (_BlockchainEntityRead) {
5057
5057
  return leaderboard;
5058
5058
  }();
5059
5059
 
5060
- _proto.getJackpotResult = /*#__PURE__*/function () {
5061
- var _getJackpotResult = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(round) {
5062
- var result;
5060
+ _proto.getLastJackpotResult = /*#__PURE__*/function () {
5061
+ var _getLastJackpotResult = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7() {
5062
+ var round, result;
5063
5063
  return runtime_1.wrap(function _callee7$(_context7) {
5064
5064
  while (1) {
5065
5065
  switch (_context7.prev = _context7.next) {
5066
5066
  case 0:
5067
- _context7.next = 2;
5068
- return this.env.plygame.jackpotHistory(round);
5067
+ _context7.t0 = BigNumber$1;
5068
+ _context7.next = 3;
5069
+ return this._networkConnection.provider.getStorageAt(this.env.plygame.address, 158);
5069
5070
 
5070
- case 2:
5071
+ case 3:
5072
+ _context7.t1 = _context7.sent;
5073
+ round = _context7.t0.from.call(_context7.t0, _context7.t1);
5074
+ _context7.next = 7;
5075
+ return this.env.plygame.jackpotHistory(round.sub(1));
5076
+
5077
+ case 7:
5071
5078
  result = _context7.sent;
5072
5079
  return _context7.abrupt("return", {
5073
- winner: result.winner,
5080
+ winner: result.winner.slice(0, 6) + '...' + result.winner.slice(4),
5074
5081
  amount: new TokenAmount(this.plyToken, result.amount.toString())
5075
5082
  });
5076
5083
 
5077
- case 4:
5084
+ case 9:
5078
5085
  case "end":
5079
5086
  return _context7.stop();
5080
5087
  }
@@ -5082,11 +5089,11 @@ var PlyGameRead = /*#__PURE__*/function (_BlockchainEntityRead) {
5082
5089
  }, _callee7, this);
5083
5090
  }));
5084
5091
 
5085
- function getJackpotResult(_x5) {
5086
- return _getJackpotResult.apply(this, arguments);
5092
+ function getLastJackpotResult() {
5093
+ return _getLastJackpotResult.apply(this, arguments);
5087
5094
  }
5088
5095
 
5089
- return getJackpotResult;
5096
+ return getLastJackpotResult;
5090
5097
  }();
5091
5098
 
5092
5099
  return PlyGameRead;
@@ -5121,7 +5128,7 @@ var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
5121
5128
  }, _callee8, this);
5122
5129
  }));
5123
5130
 
5124
- function makeBetOnce(_x6) {
5131
+ function makeBetOnce(_x5) {
5125
5132
  return _makeBetOnce.apply(this, arguments);
5126
5133
  }
5127
5134
 
@@ -5144,7 +5151,7 @@ var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
5144
5151
  }, _callee9, this);
5145
5152
  }));
5146
5153
 
5147
- function approve(_x7) {
5154
+ function approve(_x6) {
5148
5155
  return _approve.apply(this, arguments);
5149
5156
  }
5150
5157