@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.
- package/dist/game/wheel.d.ts +1 -1
- package/dist/game/wheel.js +16 -12
- package/package.json +1 -1
package/dist/game/wheel.d.ts
CHANGED
package/dist/game/wheel.js
CHANGED
|
@@ -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
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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
|
}
|