@aurigami/sdk 1.12.2 → 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,6 +5057,45 @@ var PlyGameRead = /*#__PURE__*/function (_BlockchainEntityRead) {
5057
5057
  return leaderboard;
5058
5058
  }();
5059
5059
 
5060
+ _proto.getLastJackpotResult = /*#__PURE__*/function () {
5061
+ var _getLastJackpotResult = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7() {
5062
+ var round, result;
5063
+ return runtime_1.wrap(function _callee7$(_context7) {
5064
+ while (1) {
5065
+ switch (_context7.prev = _context7.next) {
5066
+ case 0:
5067
+ _context7.t0 = BigNumber$1;
5068
+ _context7.next = 3;
5069
+ return this._networkConnection.provider.getStorageAt(this.env.plygame.address, 158);
5070
+
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:
5078
+ result = _context7.sent;
5079
+ return _context7.abrupt("return", {
5080
+ winner: result.winner.slice(0, 6) + '...' + result.winner.slice(4),
5081
+ amount: new TokenAmount(this.plyToken, result.amount.toString())
5082
+ });
5083
+
5084
+ case 9:
5085
+ case "end":
5086
+ return _context7.stop();
5087
+ }
5088
+ }
5089
+ }, _callee7, this);
5090
+ }));
5091
+
5092
+ function getLastJackpotResult() {
5093
+ return _getLastJackpotResult.apply(this, arguments);
5094
+ }
5095
+
5096
+ return getLastJackpotResult;
5097
+ }();
5098
+
5060
5099
  return PlyGameRead;
5061
5100
  }(BlockchainEntityRead);
5062
5101
  var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
@@ -5074,19 +5113,19 @@ var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
5074
5113
  _proto2.makeBetOnce =
5075
5114
  /*#__PURE__*/
5076
5115
  function () {
5077
- var _makeBetOnce = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(amount) {
5078
- return runtime_1.wrap(function _callee7$(_context7) {
5116
+ var _makeBetOnce = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(amount) {
5117
+ return runtime_1.wrap(function _callee8$(_context8) {
5079
5118
  while (1) {
5080
- switch (_context7.prev = _context7.next) {
5119
+ switch (_context8.prev = _context8.next) {
5081
5120
  case 0:
5082
- return _context7.abrupt("return", this.env.plygame.connect(this._networkConnection.signer).makeBetOnce(amount.rawAmount()));
5121
+ return _context8.abrupt("return", this.env.plygame.connect(this._networkConnection.signer).makeBetOnce(amount.rawAmount()));
5083
5122
 
5084
5123
  case 1:
5085
5124
  case "end":
5086
- return _context7.stop();
5125
+ return _context8.stop();
5087
5126
  }
5088
5127
  }
5089
- }, _callee7, this);
5128
+ }, _callee8, this);
5090
5129
  }));
5091
5130
 
5092
5131
  function makeBetOnce(_x5) {
@@ -5097,19 +5136,19 @@ var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
5097
5136
  }();
5098
5137
 
5099
5138
  _proto2.approve = /*#__PURE__*/function () {
5100
- var _approve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(amount) {
5101
- return runtime_1.wrap(function _callee8$(_context8) {
5139
+ var _approve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(amount) {
5140
+ return runtime_1.wrap(function _callee9$(_context9) {
5102
5141
  while (1) {
5103
- switch (_context8.prev = _context8.next) {
5142
+ switch (_context9.prev = _context9.next) {
5104
5143
  case 0:
5105
- return _context8.abrupt("return", this.env.ply.connect(this._networkConnection.signer).approve(this.env.plygame.address, amount.rawAmount()));
5144
+ return _context9.abrupt("return", this.env.ply.connect(this._networkConnection.signer).approve(this.env.plygame.address, amount.rawAmount()));
5106
5145
 
5107
5146
  case 1:
5108
5147
  case "end":
5109
- return _context8.stop();
5148
+ return _context9.stop();
5110
5149
  }
5111
5150
  }
5112
- }, _callee8, this);
5151
+ }, _callee9, this);
5113
5152
  }));
5114
5153
 
5115
5154
  function approve(_x6) {