@typus/typus-sdk 1.4.39-config → 1.4.40
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/src/dice/user-entry.js +15 -16
- package/package.json +1 -1
|
@@ -182,9 +182,21 @@ function newGamePlayGuessTx(config, tx, input) {
|
|
|
182
182
|
],
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
+
// tx.moveCall({
|
|
186
|
+
// target: `${config.package.dice}::${input.module}::play_guess`,
|
|
187
|
+
// typeArguments: [],
|
|
188
|
+
// arguments: [
|
|
189
|
+
// tx.object(registry),
|
|
190
|
+
// tx.pure(input.index),
|
|
191
|
+
// tx.pure(input.guess_1),
|
|
192
|
+
// tx.pure(input.larger_than_1),
|
|
193
|
+
// tx.pure(input.guess_2),
|
|
194
|
+
// tx.pure(input.larger_than_2),
|
|
195
|
+
// ],
|
|
196
|
+
// });
|
|
185
197
|
tx.moveCall({
|
|
186
|
-
target: "".concat(config.package.dice, "::").concat(input.module, "::
|
|
187
|
-
typeArguments: [],
|
|
198
|
+
target: "".concat(config.package.dice, "::").concat(input.module, "::play_guess_with_random"),
|
|
199
|
+
typeArguments: input.module == "combo_dice" ? input.typeArguments : [],
|
|
188
200
|
arguments: [
|
|
189
201
|
tx.object(registry),
|
|
190
202
|
tx.pure(input.index),
|
|
@@ -192,22 +204,9 @@ function newGamePlayGuessTx(config, tx, input) {
|
|
|
192
204
|
tx.pure(input.larger_than_1),
|
|
193
205
|
tx.pure(input.guess_2),
|
|
194
206
|
tx.pure(input.larger_than_2),
|
|
207
|
+
tx.object("0x8"),
|
|
195
208
|
],
|
|
196
209
|
});
|
|
197
|
-
// TODO: waiting for upgrade
|
|
198
|
-
// tx.moveCall({
|
|
199
|
-
// target: `${packageId}::${input.module}::play_guess_with_random`,
|
|
200
|
-
// typeArguments: module == "combo_dice" ? typeArguments : [],
|
|
201
|
-
// arguments: [
|
|
202
|
-
// tx.object(registry),
|
|
203
|
-
// tx.pure(index),
|
|
204
|
-
// tx.pure(guess_1),
|
|
205
|
-
// tx.pure(larger_than_1),
|
|
206
|
-
// tx.pure(guess_2),
|
|
207
|
-
// tx.pure(larger_than_2),
|
|
208
|
-
// tx.object("0x8"),
|
|
209
|
-
// ],
|
|
210
|
-
// });
|
|
211
210
|
return [2 /*return*/, tx];
|
|
212
211
|
});
|
|
213
212
|
});
|