@triadxyz/poseidons-protocol 0.2.5 → 0.2.6

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.
@@ -57,5 +57,5 @@ export default class Wheel {
57
57
  user: PublicKey;
58
58
  id: number;
59
59
  spins: number;
60
- }): Promise<string | import("@solana/web3.js").VersionedTransaction>;
60
+ }): Promise<void>;
61
61
  }
@@ -104,18 +104,22 @@ class Wheel {
104
104
  */
105
105
  spinWheel({ user, id, spins }) {
106
106
  return __awaiter(this, void 0, void 0, function* () {
107
- const userPDA = (0, pda_1.getUserPDA)(user);
108
- const instructions = [];
109
- for (let i = 0; i < spins; i++) {
110
- instructions.push(yield this.program.methods
111
- .spinWheel(id)
112
- .accounts({
113
- signer: this.program.provider.publicKey,
114
- user: userPDA
115
- })
116
- .instruction());
117
- }
118
- return (0, sendVersionedTransaction_1.default)(this.program, instructions, this.rpcOptions);
107
+ const dumpPrizes = Promise.all([3, 4, 5, 6, 7]);
108
+ yield dumpPrizes;
109
+ // const userPDA = getUserPDA(user)
110
+ // const instructions: TransactionInstruction[] = []
111
+ // for (let i = 0; i < spins; i++) {
112
+ // instructions.push(
113
+ // await this.program.methods
114
+ // .spinWheel(id)
115
+ // .accounts({
116
+ // signer: this.program.provider.publicKey,
117
+ // user: userPDA
118
+ // })
119
+ // .instruction()
120
+ // )
121
+ // }
122
+ // return sendVersionedTransaction(this.program, instructions, this.rpcOptions)
119
123
  });
120
124
  }
121
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/poseidons-protocol",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",