@typus/typus-sdk 1.4.74 → 1.4.75

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.
@@ -174,12 +174,20 @@ function newGamePlayGuessTx(config, tx, input) {
174
174
  tx.moveCall({
175
175
  target: "".concat(config.package.dice, "::").concat(input.module, "::new_game"),
176
176
  typeArguments: input.typeArguments,
177
- arguments: [
178
- tx.object(registry),
179
- tx.pure(input.index),
180
- tx.makeMoveVec({ objects: input.coins.map(function (id) { return tx.object(id); }) }),
181
- tx.pure(input.amount),
182
- ],
177
+ arguments: input.module == "combo_dice"
178
+ ? [
179
+ tx.object(config.registry.dice.comboDice),
180
+ tx.object(config.registry.dice.tailsExp),
181
+ tx.pure(input.index),
182
+ tx.makeMoveVec({ objects: input.coins.map(function (id) { return tx.object(id); }) }),
183
+ tx.pure(input.amount),
184
+ ]
185
+ : [
186
+ tx.object(registry),
187
+ tx.pure(input.index),
188
+ tx.makeMoveVec({ objects: input.coins.map(function (id) { return tx.object(id); }) }),
189
+ tx.pure(input.amount),
190
+ ],
183
191
  });
184
192
  }
185
193
  // tx.moveCall({
@@ -16,7 +16,7 @@ var constants_1 = require("../../../src/constants");
16
16
  */
17
17
  function addUserShare(config, tx, input) {
18
18
  tx.moveCall({
19
- target: "".concat(config.package.launch.optionAirdrop, "::option_airdop::add_user_share"),
19
+ target: "".concat(config.package.launch.optionAirdrop, "::option_airdrop::add_user_share"),
20
20
  arguments: [
21
21
  tx.object(config.version.launch.optionAirdrop),
22
22
  tx.object(config.object.launchSnapshot),
@@ -34,7 +34,7 @@ function addUserShare(config, tx, input) {
34
34
  */
35
35
  function removeUserShare(config, tx, input) {
36
36
  tx.moveCall({
37
- target: "".concat(config.package.launch.optionAirdrop, "::option_airdop::remove_user_share"),
37
+ target: "".concat(config.package.launch.optionAirdrop, "::option_airdrop::remove_user_share"),
38
38
  arguments: [tx.object(config.version.launch.optionAirdrop), tx.object(config.object.launchSnapshot)],
39
39
  });
40
40
  }
@@ -51,7 +51,7 @@ function removeUserShare(config, tx, input) {
51
51
  */
52
52
  function addAirdropPlan(config, tx, input) {
53
53
  tx.moveCall({
54
- target: "".concat(config.package.launch.optionAirdrop, "::option_airdop::add_airdrop_plan"),
54
+ target: "".concat(config.package.launch.optionAirdrop, "::option_airdrop::add_airdrop_plan"),
55
55
  arguments: [
56
56
  tx.object(config.version.launch.optionAirdrop),
57
57
  tx.object(config.object.launchSnapshot),
@@ -73,7 +73,7 @@ function addAirdropPlan(config, tx, input) {
73
73
  */
74
74
  function airdropOtc(config, tx) {
75
75
  tx.moveCall({
76
- target: "".concat(config.package.launch.optionAirdrop, "::option_airdop::airdrop_otc"),
76
+ target: "".concat(config.package.launch.optionAirdrop, "::option_airdrop::airdrop_otc"),
77
77
  arguments: [
78
78
  tx.object(config.version.launch.optionAirdrop),
79
79
  tx.object(config.object.launchSnapshot),
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typus/typus-sdk",
3
3
  "author": "Typus",
4
4
  "description": "typus sdk",
5
- "version": "1.4.74",
5
+ "version": "1.4.75",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.11.1",
8
8
  "@mysten/kiosk": "0.8.10",