@typus/typus-sdk 1.4.73 → 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.
|
@@ -68,67 +68,43 @@ function assetToDecimal(asset) {
|
|
|
68
68
|
switch (asset) {
|
|
69
69
|
case "SUI":
|
|
70
70
|
case "sSUI":
|
|
71
|
+
case "CETUS":
|
|
72
|
+
case "TURBOS":
|
|
73
|
+
case "BUCK":
|
|
74
|
+
case "AFSUI":
|
|
75
|
+
case "NAVX":
|
|
76
|
+
case "SCA":
|
|
77
|
+
case "HASUI":
|
|
78
|
+
case "VSUI":
|
|
79
|
+
case "HIPPO":
|
|
80
|
+
case "TYPUS":
|
|
71
81
|
return 9;
|
|
72
82
|
case "BTC":
|
|
73
|
-
return 8;
|
|
74
|
-
case "ETH":
|
|
75
|
-
return 8;
|
|
76
83
|
case "WBTC":
|
|
77
|
-
|
|
84
|
+
case "ETH":
|
|
78
85
|
case "WETH":
|
|
79
|
-
return 8;
|
|
80
86
|
case "SOL":
|
|
81
|
-
return 8;
|
|
82
87
|
case "WSOL":
|
|
88
|
+
case "APT":
|
|
89
|
+
case "INJ":
|
|
90
|
+
case "SEI":
|
|
91
|
+
case "JUP":
|
|
83
92
|
return 8;
|
|
84
93
|
case "USDC":
|
|
85
|
-
return 6;
|
|
86
94
|
case "wUSDC":
|
|
87
|
-
return 6;
|
|
88
95
|
case "USDT":
|
|
89
|
-
return 6;
|
|
90
96
|
case "USDY":
|
|
97
|
+
case "AUSD":
|
|
98
|
+
case "DEEP":
|
|
99
|
+
case "LIQ":
|
|
100
|
+
case "MLIQ":
|
|
101
|
+
case "MFUD":
|
|
102
|
+
case "MBLUB":
|
|
91
103
|
return 6;
|
|
92
|
-
case "CETUS":
|
|
93
|
-
return 9;
|
|
94
|
-
case "TURBOS":
|
|
95
|
-
return 9;
|
|
96
|
-
case "APT":
|
|
97
|
-
return 8;
|
|
98
104
|
case "FUD":
|
|
99
105
|
return 5;
|
|
100
|
-
case "MFUD":
|
|
101
|
-
return 6;
|
|
102
|
-
case "INJ":
|
|
103
|
-
case "SEI":
|
|
104
|
-
case "JUP":
|
|
105
|
-
return 8;
|
|
106
|
-
case "BUCK":
|
|
107
|
-
return 9;
|
|
108
|
-
case "AFSUI":
|
|
109
|
-
return 9;
|
|
110
|
-
case "AUSD":
|
|
111
|
-
return 6;
|
|
112
|
-
case "NAVX":
|
|
113
|
-
return 9;
|
|
114
|
-
case "SCA":
|
|
115
|
-
return 9;
|
|
116
|
-
case "HASUI":
|
|
117
|
-
return 9;
|
|
118
|
-
case "VSUI":
|
|
119
|
-
return 9;
|
|
120
106
|
case "BLUB":
|
|
121
107
|
return 2;
|
|
122
|
-
case "MBLUB":
|
|
123
|
-
return 6;
|
|
124
|
-
case "HIPPO":
|
|
125
|
-
return 9;
|
|
126
|
-
case "LIQ":
|
|
127
|
-
return 6;
|
|
128
|
-
case "MLIQ":
|
|
129
|
-
return 6;
|
|
130
|
-
case "DEEP":
|
|
131
|
-
return 6;
|
|
132
108
|
}
|
|
133
109
|
}
|
|
134
110
|
exports.tokenType = {
|
|
@@ -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
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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, "::
|
|
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, "::
|
|
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, "::
|
|
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, "::
|
|
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),
|