@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.
- package/dist/interactors/PlyGame.d.ts +1 -0
- package/dist/sdk.cjs.development.js +23 -0
- 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 +23 -0
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/interactors/PlyGame.ts +5 -0
package/package.json
CHANGED
|
@@ -106,6 +106,11 @@ export class PlyGameReadWrite extends PlyGameRead {
|
|
|
106
106
|
.connect(this._networkConnection.signer!)
|
|
107
107
|
.makeBetOnce(amount.rawAmount());
|
|
108
108
|
}
|
|
109
|
+
public async approve(amount: TokenAmount): Promise<TransactionResponse> {
|
|
110
|
+
return this.env.ply
|
|
111
|
+
.connect(this._networkConnection.signer!)
|
|
112
|
+
.approve(this.env.plygame.address, amount.rawAmount());
|
|
113
|
+
}
|
|
109
114
|
}
|
|
110
115
|
|
|
111
116
|
export class PlyGame extends BlockchainEntity {
|