@aurigami/sdk 1.11.0-beta → 1.11.0-beta1

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.
@@ -29,6 +29,7 @@ export declare class PlyGameReadWrite extends PlyGameRead {
29
29
  * Make a single bet
30
30
  */
31
31
  makeBetOnce(amount: TokenAmount): Promise<TransactionResponse>;
32
+ approve(amount: TokenAmount): Promise<TransactionResponse>;
32
33
  }
33
34
  export declare class PlyGame extends BlockchainEntity {
34
35
  constructor();
@@ -4948,6 +4948,29 @@ var PlyGameReadWrite = /*#__PURE__*/function (_PlyGameRead) {
4948
4948
  return makeBetOnce;
4949
4949
  }();
4950
4950
 
4951
+ _proto2.approve = /*#__PURE__*/function () {
4952
+ var _approve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(amount) {
4953
+ return runtime_1.wrap(function _callee9$(_context9) {
4954
+ while (1) {
4955
+ switch (_context9.prev = _context9.next) {
4956
+ case 0:
4957
+ return _context9.abrupt("return", this.env.ply.connect(this._networkConnection.signer).approve(this.env.plygame.address, amount.rawAmount()));
4958
+
4959
+ case 1:
4960
+ case "end":
4961
+ return _context9.stop();
4962
+ }
4963
+ }
4964
+ }, _callee9, this);
4965
+ }));
4966
+
4967
+ function approve(_x8) {
4968
+ return _approve.apply(this, arguments);
4969
+ }
4970
+
4971
+ return approve;
4972
+ }();
4973
+
4951
4974
  return PlyGameReadWrite;
4952
4975
  }(PlyGameRead);
4953
4976
  var PlyGame = /*#__PURE__*/function (_BlockchainEntity) {