@aurigami/sdk 1.12.8 → 1.12.9
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 +1 -0
- package/dist/sdk.cjs.development.js +49 -12
- 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 +49 -12
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +4 -3
- package/src/interactors/PlyGame.ts +10 -1
package/dist/sdk.esm.js
CHANGED
|
@@ -5512,6 +5512,43 @@ var PlyGameRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
5512
5512
|
return getLastJackpotResult;
|
|
5513
5513
|
}();
|
|
5514
5514
|
|
|
5515
|
+
_proto.overallLeaderboard = /*#__PURE__*/function () {
|
|
5516
|
+
var _overallLeaderboard = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8() {
|
|
5517
|
+
var _this5 = this;
|
|
5518
|
+
|
|
5519
|
+
var result;
|
|
5520
|
+
return runtime_1.wrap(function _callee8$(_context8) {
|
|
5521
|
+
while (1) {
|
|
5522
|
+
switch (_context8.prev = _context8.next) {
|
|
5523
|
+
case 0:
|
|
5524
|
+
_context8.next = 2;
|
|
5525
|
+
return getPaginatedApi('/plygame/overallLeaderboard');
|
|
5526
|
+
|
|
5527
|
+
case 2:
|
|
5528
|
+
result = _context8.sent;
|
|
5529
|
+
return _context8.abrupt("return", result.items.map(function (item) {
|
|
5530
|
+
return {
|
|
5531
|
+
player: item.user,
|
|
5532
|
+
unlockedPulpAmount: new TokenAmount(_this5.pulpToken, item.unlockedAmount),
|
|
5533
|
+
gamesPlayed: item.count
|
|
5534
|
+
};
|
|
5535
|
+
}));
|
|
5536
|
+
|
|
5537
|
+
case 4:
|
|
5538
|
+
case "end":
|
|
5539
|
+
return _context8.stop();
|
|
5540
|
+
}
|
|
5541
|
+
}
|
|
5542
|
+
}, _callee8);
|
|
5543
|
+
}));
|
|
5544
|
+
|
|
5545
|
+
function overallLeaderboard() {
|
|
5546
|
+
return _overallLeaderboard.apply(this, arguments);
|
|
5547
|
+
}
|
|
5548
|
+
|
|
5549
|
+
return overallLeaderboard;
|
|
5550
|
+
}();
|
|
5551
|
+
|
|
5515
5552
|
return PlyGameRead;
|
|
5516
5553
|
}(BlockchainEntityRead);
|
|
5517
5554
|
var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
|
|
@@ -5529,19 +5566,19 @@ var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
|
|
|
5529
5566
|
_proto2.makeBetOnce =
|
|
5530
5567
|
/*#__PURE__*/
|
|
5531
5568
|
function () {
|
|
5532
|
-
var _makeBetOnce = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
5533
|
-
return runtime_1.wrap(function
|
|
5569
|
+
var _makeBetOnce = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(amount) {
|
|
5570
|
+
return runtime_1.wrap(function _callee9$(_context9) {
|
|
5534
5571
|
while (1) {
|
|
5535
|
-
switch (
|
|
5572
|
+
switch (_context9.prev = _context9.next) {
|
|
5536
5573
|
case 0:
|
|
5537
|
-
return
|
|
5574
|
+
return _context9.abrupt("return", this.env.plygame.connect(this._networkConnection.signer).makeBetOnce(amount.rawAmount()));
|
|
5538
5575
|
|
|
5539
5576
|
case 1:
|
|
5540
5577
|
case "end":
|
|
5541
|
-
return
|
|
5578
|
+
return _context9.stop();
|
|
5542
5579
|
}
|
|
5543
5580
|
}
|
|
5544
|
-
},
|
|
5581
|
+
}, _callee9, this);
|
|
5545
5582
|
}));
|
|
5546
5583
|
|
|
5547
5584
|
function makeBetOnce(_x5) {
|
|
@@ -5552,19 +5589,19 @@ var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
|
|
|
5552
5589
|
}();
|
|
5553
5590
|
|
|
5554
5591
|
_proto2.approve = /*#__PURE__*/function () {
|
|
5555
|
-
var _approve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function
|
|
5556
|
-
return runtime_1.wrap(function
|
|
5592
|
+
var _approve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(amount) {
|
|
5593
|
+
return runtime_1.wrap(function _callee10$(_context10) {
|
|
5557
5594
|
while (1) {
|
|
5558
|
-
switch (
|
|
5595
|
+
switch (_context10.prev = _context10.next) {
|
|
5559
5596
|
case 0:
|
|
5560
|
-
return
|
|
5597
|
+
return _context10.abrupt("return", this.env.ply.connect(this._networkConnection.signer).approve(this.env.plygame.address, amount.rawAmount()));
|
|
5561
5598
|
|
|
5562
5599
|
case 1:
|
|
5563
5600
|
case "end":
|
|
5564
|
-
return
|
|
5601
|
+
return _context10.stop();
|
|
5565
5602
|
}
|
|
5566
5603
|
}
|
|
5567
|
-
},
|
|
5604
|
+
}, _callee10, this);
|
|
5568
5605
|
}));
|
|
5569
5606
|
|
|
5570
5607
|
function approve(_x6) {
|