@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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.12.2",
2
+ "version": "1.12.3",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -118,6 +118,14 @@ export class PlyGameRead extends BlockchainEntityRead {
118
118
  gamesPlayed: item.count!,
119
119
  }));
120
120
  }
121
+
122
+ public async getJackpotResult(round: number): Promise<{ winner: Address; amount: TokenAmount }> {
123
+ let result = await this.env.plygame.jackpotHistory(round);
124
+ return {
125
+ winner: result.winner,
126
+ amount: new TokenAmount(this.plyToken, result.amount.toString()),
127
+ };
128
+ }
121
129
  }
122
130
 
123
131
  export class PlyGameReadWrite extends PlyGameRead {