@aurigami/sdk 1.12.2 → 1.12.3
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/interactors/PlyGame.d.ts +4 -0
- package/dist/sdk.cjs.development.js +46 -14
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +46 -14
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/interactors/PlyGame.ts +8 -0
package/dist/sdk.esm.js
CHANGED
|
@@ -5057,6 +5057,38 @@ 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;
|
|
5063
|
+
return runtime_1.wrap(function _callee7$(_context7) {
|
|
5064
|
+
while (1) {
|
|
5065
|
+
switch (_context7.prev = _context7.next) {
|
|
5066
|
+
case 0:
|
|
5067
|
+
_context7.next = 2;
|
|
5068
|
+
return this.env.plygame.jackpotHistory(round);
|
|
5069
|
+
|
|
5070
|
+
case 2:
|
|
5071
|
+
result = _context7.sent;
|
|
5072
|
+
return _context7.abrupt("return", {
|
|
5073
|
+
winner: result.winner,
|
|
5074
|
+
amount: new TokenAmount(this.plyToken, result.amount.toString())
|
|
5075
|
+
});
|
|
5076
|
+
|
|
5077
|
+
case 4:
|
|
5078
|
+
case "end":
|
|
5079
|
+
return _context7.stop();
|
|
5080
|
+
}
|
|
5081
|
+
}
|
|
5082
|
+
}, _callee7, this);
|
|
5083
|
+
}));
|
|
5084
|
+
|
|
5085
|
+
function getJackpotResult(_x5) {
|
|
5086
|
+
return _getJackpotResult.apply(this, arguments);
|
|
5087
|
+
}
|
|
5088
|
+
|
|
5089
|
+
return getJackpotResult;
|
|
5090
|
+
}();
|
|
5091
|
+
|
|
5060
5092
|
return PlyGameRead;
|
|
5061
5093
|
}(BlockchainEntityRead);
|
|
5062
5094
|
var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
|
|
@@ -5074,22 +5106,22 @@ var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
|
|
|
5074
5106
|
_proto2.makeBetOnce =
|
|
5075
5107
|
/*#__PURE__*/
|
|
5076
5108
|
function () {
|
|
5077
|
-
var _makeBetOnce = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
5078
|
-
return runtime_1.wrap(function
|
|
5109
|
+
var _makeBetOnce = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(amount) {
|
|
5110
|
+
return runtime_1.wrap(function _callee8$(_context8) {
|
|
5079
5111
|
while (1) {
|
|
5080
|
-
switch (
|
|
5112
|
+
switch (_context8.prev = _context8.next) {
|
|
5081
5113
|
case 0:
|
|
5082
|
-
return
|
|
5114
|
+
return _context8.abrupt("return", this.env.plygame.connect(this._networkConnection.signer).makeBetOnce(amount.rawAmount()));
|
|
5083
5115
|
|
|
5084
5116
|
case 1:
|
|
5085
5117
|
case "end":
|
|
5086
|
-
return
|
|
5118
|
+
return _context8.stop();
|
|
5087
5119
|
}
|
|
5088
5120
|
}
|
|
5089
|
-
},
|
|
5121
|
+
}, _callee8, this);
|
|
5090
5122
|
}));
|
|
5091
5123
|
|
|
5092
|
-
function makeBetOnce(
|
|
5124
|
+
function makeBetOnce(_x6) {
|
|
5093
5125
|
return _makeBetOnce.apply(this, arguments);
|
|
5094
5126
|
}
|
|
5095
5127
|
|
|
@@ -5097,22 +5129,22 @@ var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
|
|
|
5097
5129
|
}();
|
|
5098
5130
|
|
|
5099
5131
|
_proto2.approve = /*#__PURE__*/function () {
|
|
5100
|
-
var _approve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
5101
|
-
return runtime_1.wrap(function
|
|
5132
|
+
var _approve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(amount) {
|
|
5133
|
+
return runtime_1.wrap(function _callee9$(_context9) {
|
|
5102
5134
|
while (1) {
|
|
5103
|
-
switch (
|
|
5135
|
+
switch (_context9.prev = _context9.next) {
|
|
5104
5136
|
case 0:
|
|
5105
|
-
return
|
|
5137
|
+
return _context9.abrupt("return", this.env.ply.connect(this._networkConnection.signer).approve(this.env.plygame.address, amount.rawAmount()));
|
|
5106
5138
|
|
|
5107
5139
|
case 1:
|
|
5108
5140
|
case "end":
|
|
5109
|
-
return
|
|
5141
|
+
return _context9.stop();
|
|
5110
5142
|
}
|
|
5111
5143
|
}
|
|
5112
|
-
},
|
|
5144
|
+
}, _callee9, this);
|
|
5113
5145
|
}));
|
|
5114
5146
|
|
|
5115
|
-
function approve(
|
|
5147
|
+
function approve(_x7) {
|
|
5116
5148
|
return _approve.apply(this, arguments);
|
|
5117
5149
|
}
|
|
5118
5150
|
|