@typemove/sui 1.2.0-rc.2 → 1.2.0-rc.3
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/cjs/builtin/0x1.d.ts +83 -82
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +164 -164
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x2.d.ts +353 -349
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +698 -698
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +101 -100
- package/dist/cjs/builtin/0x3.d.ts.map +1 -1
- package/dist/cjs/builtin/0x3.js +200 -200
- package/dist/cjs/builtin/0x3.js.map +1 -1
- package/dist/cjs/codegen/codegen.d.ts.map +1 -1
- package/dist/cjs/codegen/codegen.js +11 -8
- package/dist/cjs/codegen/codegen.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models.d.ts +7 -1
- package/dist/cjs/models.d.ts.map +1 -1
- package/dist/cjs/models.js +0 -3
- package/dist/cjs/models.js.map +1 -1
- package/dist/cjs/move-coder.d.ts +6 -3
- package/dist/cjs/move-coder.d.ts.map +1 -1
- package/dist/cjs/move-coder.js +50 -5
- package/dist/cjs/move-coder.js.map +1 -1
- package/dist/cjs/sui-chain-adapter.d.ts +4 -1
- package/dist/cjs/sui-chain-adapter.d.ts.map +1 -1
- package/dist/cjs/sui-chain-adapter.js +10 -4
- package/dist/cjs/sui-chain-adapter.js.map +1 -1
- package/dist/esm/builtin/0x1.d.ts +83 -82
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +165 -165
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +353 -349
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +699 -699
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +101 -100
- package/dist/esm/builtin/0x3.d.ts.map +1 -1
- package/dist/esm/builtin/0x3.js +201 -201
- package/dist/esm/builtin/0x3.js.map +1 -1
- package/dist/esm/codegen/codegen.d.ts.map +1 -1
- package/dist/esm/codegen/codegen.js +12 -9
- package/dist/esm/codegen/codegen.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models.d.ts +7 -1
- package/dist/esm/models.d.ts.map +1 -1
- package/dist/esm/models.js +0 -3
- package/dist/esm/models.js.map +1 -1
- package/dist/esm/move-coder.d.ts +6 -3
- package/dist/esm/move-coder.d.ts.map +1 -1
- package/dist/esm/move-coder.js +48 -4
- package/dist/esm/move-coder.js.map +1 -1
- package/dist/esm/sui-chain-adapter.d.ts +4 -1
- package/dist/esm/sui-chain-adapter.d.ts.map +1 -1
- package/dist/esm/sui-chain-adapter.js +10 -4
- package/dist/esm/sui-chain-adapter.js.map +1 -1
- package/package.json +2 -2
- package/src/builtin/0x1.ts +503 -247
- package/src/builtin/0x2.ts +2137 -1049
- package/src/builtin/0x3.ts +611 -301
- package/src/codegen/codegen.ts +14 -10
- package/src/index.ts +1 -1
- package/src/models.ts +7 -4
- package/src/move-coder.ts +57 -6
- package/src/sui-chain-adapter.ts +11 -4
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +29 -13
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +319 -145
- package/src/tests/types/testnet/0xdee9.ts +303 -142
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +990 -466
|
@@ -9,7 +9,11 @@ import { MoveCoder, TypedEventInstance } from "@typemove/sui";
|
|
|
9
9
|
|
|
10
10
|
import { defaultMoveCoder } from "@typemove/sui";
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
ZERO_ADDRESS,
|
|
14
|
+
TypedDevInspectResults,
|
|
15
|
+
getMoveCoder,
|
|
16
|
+
} from "@typemove/sui";
|
|
13
17
|
import { TransactionBlock } from "@mysten/sui.js/transactions";
|
|
14
18
|
import { ObjectCallArg, TransactionArgument } from "@mysten/sui.js";
|
|
15
19
|
import { SuiClient } from "@mysten/sui.js/client";
|
|
@@ -234,27 +238,33 @@ export namespace authority {
|
|
|
234
238
|
string | TransactionArgument,
|
|
235
239
|
],
|
|
236
240
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
237
|
-
) {
|
|
241
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
238
242
|
const tx = new TransactionBlock();
|
|
239
243
|
builder.addAuthorizedUser(tx, args, typeArguments);
|
|
240
|
-
const
|
|
244
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
241
245
|
transactionBlock: tx,
|
|
242
246
|
sender: ZERO_ADDRESS,
|
|
243
247
|
});
|
|
244
|
-
|
|
248
|
+
|
|
249
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
250
|
+
insepctRes,
|
|
251
|
+
);
|
|
245
252
|
}
|
|
246
253
|
export async function destroyEmpty<T0 = any>(
|
|
247
254
|
client: SuiClient,
|
|
248
255
|
args: [authority.Authority<T0> | TransactionArgument],
|
|
249
256
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
250
|
-
) {
|
|
257
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
251
258
|
const tx = new TransactionBlock();
|
|
252
259
|
builder.destroyEmpty(tx, args, typeArguments);
|
|
253
|
-
const
|
|
260
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
254
261
|
transactionBlock: tx,
|
|
255
262
|
sender: ZERO_ADDRESS,
|
|
256
263
|
});
|
|
257
|
-
|
|
264
|
+
|
|
265
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
266
|
+
insepctRes,
|
|
267
|
+
);
|
|
258
268
|
}
|
|
259
269
|
export async function new_<T0 = any>(
|
|
260
270
|
client: SuiClient,
|
|
@@ -263,27 +273,33 @@ export namespace authority {
|
|
|
263
273
|
string | ObjectCallArg | TransactionArgument,
|
|
264
274
|
],
|
|
265
275
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
266
|
-
) {
|
|
276
|
+
): Promise<TypedDevInspectResults<[authority.Authority<T0>]>> {
|
|
267
277
|
const tx = new TransactionBlock();
|
|
268
278
|
builder.new_(tx, args, typeArguments);
|
|
269
|
-
const
|
|
279
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
270
280
|
transactionBlock: tx,
|
|
271
281
|
sender: ZERO_ADDRESS,
|
|
272
282
|
});
|
|
273
|
-
|
|
283
|
+
|
|
284
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
285
|
+
[authority.Authority<T0>]
|
|
286
|
+
>(insepctRes);
|
|
274
287
|
}
|
|
275
288
|
export async function removeAll<T0 = any>(
|
|
276
289
|
client: SuiClient,
|
|
277
290
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
278
291
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
279
|
-
) {
|
|
292
|
+
): Promise<TypedDevInspectResults<[string[]]>> {
|
|
280
293
|
const tx = new TransactionBlock();
|
|
281
294
|
builder.removeAll(tx, args, typeArguments);
|
|
282
|
-
const
|
|
295
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
283
296
|
transactionBlock: tx,
|
|
284
297
|
sender: ZERO_ADDRESS,
|
|
285
298
|
});
|
|
286
|
-
|
|
299
|
+
|
|
300
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string[]]>(
|
|
301
|
+
insepctRes,
|
|
302
|
+
);
|
|
287
303
|
}
|
|
288
304
|
export async function removeAuthorizedUser<T0 = any>(
|
|
289
305
|
client: SuiClient,
|
|
@@ -293,14 +309,17 @@ export namespace authority {
|
|
|
293
309
|
string | TransactionArgument,
|
|
294
310
|
],
|
|
295
311
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
296
|
-
) {
|
|
312
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
297
313
|
const tx = new TransactionBlock();
|
|
298
314
|
builder.removeAuthorizedUser(tx, args, typeArguments);
|
|
299
|
-
const
|
|
315
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
300
316
|
transactionBlock: tx,
|
|
301
317
|
sender: ZERO_ADDRESS,
|
|
302
318
|
});
|
|
303
|
-
|
|
319
|
+
|
|
320
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
321
|
+
insepctRes,
|
|
322
|
+
);
|
|
304
323
|
}
|
|
305
324
|
export async function verify<T0 = any>(
|
|
306
325
|
client: SuiClient,
|
|
@@ -309,27 +328,33 @@ export namespace authority {
|
|
|
309
328
|
string | ObjectCallArg | TransactionArgument,
|
|
310
329
|
],
|
|
311
330
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
312
|
-
) {
|
|
331
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
313
332
|
const tx = new TransactionBlock();
|
|
314
333
|
builder.verify(tx, args, typeArguments);
|
|
315
|
-
const
|
|
334
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
316
335
|
transactionBlock: tx,
|
|
317
336
|
sender: ZERO_ADDRESS,
|
|
318
337
|
});
|
|
319
|
-
|
|
338
|
+
|
|
339
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
340
|
+
insepctRes,
|
|
341
|
+
);
|
|
320
342
|
}
|
|
321
343
|
export async function whitelist<T0 = any>(
|
|
322
344
|
client: SuiClient,
|
|
323
345
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
324
346
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
325
|
-
) {
|
|
347
|
+
): Promise<TypedDevInspectResults<[string[]]>> {
|
|
326
348
|
const tx = new TransactionBlock();
|
|
327
349
|
builder.whitelist(tx, args, typeArguments);
|
|
328
|
-
const
|
|
350
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
329
351
|
transactionBlock: tx,
|
|
330
352
|
sender: ZERO_ADDRESS,
|
|
331
353
|
});
|
|
332
|
-
|
|
354
|
+
|
|
355
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string[]]>(
|
|
356
|
+
insepctRes,
|
|
357
|
+
);
|
|
333
358
|
}
|
|
334
359
|
}
|
|
335
360
|
}
|
|
@@ -1029,14 +1054,17 @@ export namespace dutch {
|
|
|
1029
1054
|
string | ObjectCallArg | TransactionArgument,
|
|
1030
1055
|
],
|
|
1031
1056
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1032
|
-
) {
|
|
1057
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
1033
1058
|
const tx = new TransactionBlock();
|
|
1034
1059
|
builder.close(tx, args, typeArguments);
|
|
1035
|
-
const
|
|
1060
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1036
1061
|
transactionBlock: tx,
|
|
1037
1062
|
sender: ZERO_ADDRESS,
|
|
1038
1063
|
});
|
|
1039
|
-
|
|
1064
|
+
|
|
1065
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1066
|
+
insepctRes,
|
|
1067
|
+
);
|
|
1040
1068
|
}
|
|
1041
1069
|
export async function delivery<T0 = any, T1 = any>(
|
|
1042
1070
|
client: SuiClient,
|
|
@@ -1051,53 +1079,85 @@ export namespace dutch {
|
|
|
1051
1079
|
string | ObjectCallArg | TransactionArgument,
|
|
1052
1080
|
],
|
|
1053
1081
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1054
|
-
)
|
|
1082
|
+
): Promise<
|
|
1083
|
+
TypedDevInspectResults<
|
|
1084
|
+
[
|
|
1085
|
+
_0x2.balance.Balance<T1>,
|
|
1086
|
+
_0x2.vec_map.VecMap<string, bigint>,
|
|
1087
|
+
bigint,
|
|
1088
|
+
bigint,
|
|
1089
|
+
bigint,
|
|
1090
|
+
bigint,
|
|
1091
|
+
bigint,
|
|
1092
|
+
]
|
|
1093
|
+
>
|
|
1094
|
+
> {
|
|
1055
1095
|
const tx = new TransactionBlock();
|
|
1056
1096
|
builder.delivery(tx, args, typeArguments);
|
|
1057
|
-
const
|
|
1097
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1058
1098
|
transactionBlock: tx,
|
|
1059
1099
|
sender: ZERO_ADDRESS,
|
|
1060
1100
|
});
|
|
1061
|
-
|
|
1101
|
+
|
|
1102
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
1103
|
+
[
|
|
1104
|
+
_0x2.balance.Balance<T1>,
|
|
1105
|
+
_0x2.vec_map.VecMap<string, bigint>,
|
|
1106
|
+
bigint,
|
|
1107
|
+
bigint,
|
|
1108
|
+
bigint,
|
|
1109
|
+
bigint,
|
|
1110
|
+
bigint,
|
|
1111
|
+
]
|
|
1112
|
+
>(insepctRes);
|
|
1062
1113
|
}
|
|
1063
1114
|
export async function getAuctionBids<T0 = any, T1 = any>(
|
|
1064
1115
|
client: SuiClient,
|
|
1065
1116
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
1066
1117
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1067
|
-
) {
|
|
1118
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
1068
1119
|
const tx = new TransactionBlock();
|
|
1069
1120
|
builder.getAuctionBids(tx, args, typeArguments);
|
|
1070
|
-
const
|
|
1121
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1071
1122
|
transactionBlock: tx,
|
|
1072
1123
|
sender: ZERO_ADDRESS,
|
|
1073
1124
|
});
|
|
1074
|
-
|
|
1125
|
+
|
|
1126
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
1127
|
+
insepctRes,
|
|
1128
|
+
);
|
|
1075
1129
|
}
|
|
1076
1130
|
export async function getAuctionPeriod<T0 = any, T1 = any>(
|
|
1077
1131
|
client: SuiClient,
|
|
1078
1132
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
1079
1133
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1080
|
-
) {
|
|
1134
|
+
): Promise<TypedDevInspectResults<[bigint, bigint]>> {
|
|
1081
1135
|
const tx = new TransactionBlock();
|
|
1082
1136
|
builder.getAuctionPeriod(tx, args, typeArguments);
|
|
1083
|
-
const
|
|
1137
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1084
1138
|
transactionBlock: tx,
|
|
1085
1139
|
sender: ZERO_ADDRESS,
|
|
1086
1140
|
});
|
|
1087
|
-
|
|
1141
|
+
|
|
1142
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
1143
|
+
[bigint, bigint]
|
|
1144
|
+
>(insepctRes);
|
|
1088
1145
|
}
|
|
1089
1146
|
export async function getBidIndex<T0 = any, T1 = any>(
|
|
1090
1147
|
client: SuiClient,
|
|
1091
1148
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
1092
1149
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1093
|
-
) {
|
|
1150
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
1094
1151
|
const tx = new TransactionBlock();
|
|
1095
1152
|
builder.getBidIndex(tx, args, typeArguments);
|
|
1096
|
-
const
|
|
1153
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1097
1154
|
transactionBlock: tx,
|
|
1098
1155
|
sender: ZERO_ADDRESS,
|
|
1099
1156
|
});
|
|
1100
|
-
|
|
1157
|
+
|
|
1158
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
1159
|
+
insepctRes,
|
|
1160
|
+
);
|
|
1101
1161
|
}
|
|
1102
1162
|
export async function getDecayedPrice<T0 = any, T1 = any>(
|
|
1103
1163
|
client: SuiClient,
|
|
@@ -1106,27 +1166,33 @@ export namespace dutch {
|
|
|
1106
1166
|
string | ObjectCallArg | TransactionArgument,
|
|
1107
1167
|
],
|
|
1108
1168
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1109
|
-
) {
|
|
1169
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
1110
1170
|
const tx = new TransactionBlock();
|
|
1111
1171
|
builder.getDecayedPrice(tx, args, typeArguments);
|
|
1112
|
-
const
|
|
1172
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1113
1173
|
transactionBlock: tx,
|
|
1114
1174
|
sender: ZERO_ADDRESS,
|
|
1115
1175
|
});
|
|
1116
|
-
|
|
1176
|
+
|
|
1177
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
1178
|
+
insepctRes,
|
|
1179
|
+
);
|
|
1117
1180
|
}
|
|
1118
1181
|
export async function getOwnerships<T0 = any, T1 = any>(
|
|
1119
1182
|
client: SuiClient,
|
|
1120
1183
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
1121
1184
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1122
|
-
) {
|
|
1185
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
1123
1186
|
const tx = new TransactionBlock();
|
|
1124
1187
|
builder.getOwnerships(tx, args, typeArguments);
|
|
1125
|
-
const
|
|
1188
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1126
1189
|
transactionBlock: tx,
|
|
1127
1190
|
sender: ZERO_ADDRESS,
|
|
1128
1191
|
});
|
|
1129
|
-
|
|
1192
|
+
|
|
1193
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
1194
|
+
insepctRes,
|
|
1195
|
+
);
|
|
1130
1196
|
}
|
|
1131
1197
|
export async function getUserBidInfo<T0 = any, T1 = any>(
|
|
1132
1198
|
client: SuiClient,
|
|
@@ -1135,14 +1201,19 @@ export namespace dutch {
|
|
|
1135
1201
|
bigint | TransactionArgument,
|
|
1136
1202
|
],
|
|
1137
1203
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1138
|
-
)
|
|
1204
|
+
): Promise<
|
|
1205
|
+
TypedDevInspectResults<[bigint, bigint, bigint, bigint, string]>
|
|
1206
|
+
> {
|
|
1139
1207
|
const tx = new TransactionBlock();
|
|
1140
1208
|
builder.getUserBidInfo(tx, args, typeArguments);
|
|
1141
|
-
const
|
|
1209
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1142
1210
|
transactionBlock: tx,
|
|
1143
1211
|
sender: ZERO_ADDRESS,
|
|
1144
1212
|
});
|
|
1145
|
-
|
|
1213
|
+
|
|
1214
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
1215
|
+
[bigint, bigint, bigint, bigint, string]
|
|
1216
|
+
>(insepctRes);
|
|
1146
1217
|
}
|
|
1147
1218
|
export async function new_<T0 = any, T1 = any>(
|
|
1148
1219
|
client: SuiClient,
|
|
@@ -1156,14 +1227,17 @@ export namespace dutch {
|
|
|
1156
1227
|
string | ObjectCallArg | TransactionArgument,
|
|
1157
1228
|
],
|
|
1158
1229
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1159
|
-
) {
|
|
1230
|
+
): Promise<TypedDevInspectResults<[dutch.Auction<T0, T1>]>> {
|
|
1160
1231
|
const tx = new TransactionBlock();
|
|
1161
1232
|
builder.new_(tx, args, typeArguments);
|
|
1162
|
-
const
|
|
1233
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1163
1234
|
transactionBlock: tx,
|
|
1164
1235
|
sender: ZERO_ADDRESS,
|
|
1165
1236
|
});
|
|
1166
|
-
|
|
1237
|
+
|
|
1238
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
1239
|
+
[dutch.Auction<T0, T1>]
|
|
1240
|
+
>(insepctRes);
|
|
1167
1241
|
}
|
|
1168
1242
|
export async function newBid<T0 = any, T1 = any, T2 = any>(
|
|
1169
1243
|
client: SuiClient,
|
|
@@ -1183,14 +1257,19 @@ export namespace dutch {
|
|
|
1183
1257
|
TypeDescriptor<T1> | string,
|
|
1184
1258
|
TypeDescriptor<T2> | string,
|
|
1185
1259
|
],
|
|
1186
|
-
)
|
|
1260
|
+
): Promise<
|
|
1261
|
+
TypedDevInspectResults<[bigint, bigint, bigint, bigint, bigint, string]>
|
|
1262
|
+
> {
|
|
1187
1263
|
const tx = new TransactionBlock();
|
|
1188
1264
|
builder.newBid(tx, args, typeArguments);
|
|
1189
|
-
const
|
|
1265
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1190
1266
|
transactionBlock: tx,
|
|
1191
1267
|
sender: ZERO_ADDRESS,
|
|
1192
1268
|
});
|
|
1193
|
-
|
|
1269
|
+
|
|
1270
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
1271
|
+
[bigint, bigint, bigint, bigint, bigint, string]
|
|
1272
|
+
>(insepctRes);
|
|
1194
1273
|
}
|
|
1195
1274
|
export async function removeBid<T0 = any, T1 = any>(
|
|
1196
1275
|
client: SuiClient,
|
|
@@ -1201,27 +1280,33 @@ export namespace dutch {
|
|
|
1201
1280
|
string | ObjectCallArg | TransactionArgument,
|
|
1202
1281
|
],
|
|
1203
1282
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1204
|
-
) {
|
|
1283
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
1205
1284
|
const tx = new TransactionBlock();
|
|
1206
1285
|
builder.removeBid(tx, args, typeArguments);
|
|
1207
|
-
const
|
|
1286
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1208
1287
|
transactionBlock: tx,
|
|
1209
1288
|
sender: ZERO_ADDRESS,
|
|
1210
1289
|
});
|
|
1211
|
-
|
|
1290
|
+
|
|
1291
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1292
|
+
insepctRes,
|
|
1293
|
+
);
|
|
1212
1294
|
}
|
|
1213
1295
|
export async function totalBidSize<T0 = any, T1 = any>(
|
|
1214
1296
|
client: SuiClient,
|
|
1215
1297
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
1216
1298
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1217
|
-
) {
|
|
1299
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
1218
1300
|
const tx = new TransactionBlock();
|
|
1219
1301
|
builder.totalBidSize(tx, args, typeArguments);
|
|
1220
|
-
const
|
|
1302
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1221
1303
|
transactionBlock: tx,
|
|
1222
1304
|
sender: ZERO_ADDRESS,
|
|
1223
1305
|
});
|
|
1224
|
-
|
|
1306
|
+
|
|
1307
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
1308
|
+
insepctRes,
|
|
1309
|
+
);
|
|
1225
1310
|
}
|
|
1226
1311
|
export async function updateRemoveBidAbility<T0 = any, T1 = any>(
|
|
1227
1312
|
client: SuiClient,
|
|
@@ -1232,14 +1317,17 @@ export namespace dutch {
|
|
|
1232
1317
|
string | ObjectCallArg | TransactionArgument,
|
|
1233
1318
|
],
|
|
1234
1319
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
1235
|
-
) {
|
|
1320
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
1236
1321
|
const tx = new TransactionBlock();
|
|
1237
1322
|
builder.updateRemoveBidAbility(tx, args, typeArguments);
|
|
1238
|
-
const
|
|
1323
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1239
1324
|
transactionBlock: tx,
|
|
1240
1325
|
sender: ZERO_ADDRESS,
|
|
1241
1326
|
});
|
|
1242
|
-
|
|
1327
|
+
|
|
1328
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1329
|
+
insepctRes,
|
|
1330
|
+
);
|
|
1243
1331
|
}
|
|
1244
1332
|
}
|
|
1245
1333
|
}
|
|
@@ -1502,14 +1590,17 @@ export namespace i64 {
|
|
|
1502
1590
|
export async function abs(
|
|
1503
1591
|
client: SuiClient,
|
|
1504
1592
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
1505
|
-
) {
|
|
1593
|
+
): Promise<TypedDevInspectResults<[i64.I64]>> {
|
|
1506
1594
|
const tx = new TransactionBlock();
|
|
1507
1595
|
builder.abs(tx, args);
|
|
1508
|
-
const
|
|
1596
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1509
1597
|
transactionBlock: tx,
|
|
1510
1598
|
sender: ZERO_ADDRESS,
|
|
1511
1599
|
});
|
|
1512
|
-
|
|
1600
|
+
|
|
1601
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[i64.I64]>(
|
|
1602
|
+
insepctRes,
|
|
1603
|
+
);
|
|
1513
1604
|
}
|
|
1514
1605
|
export async function add(
|
|
1515
1606
|
client: SuiClient,
|
|
@@ -1517,26 +1608,32 @@ export namespace i64 {
|
|
|
1517
1608
|
string | ObjectCallArg | TransactionArgument,
|
|
1518
1609
|
string | ObjectCallArg | TransactionArgument,
|
|
1519
1610
|
],
|
|
1520
|
-
) {
|
|
1611
|
+
): Promise<TypedDevInspectResults<[i64.I64]>> {
|
|
1521
1612
|
const tx = new TransactionBlock();
|
|
1522
1613
|
builder.add(tx, args);
|
|
1523
|
-
const
|
|
1614
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1524
1615
|
transactionBlock: tx,
|
|
1525
1616
|
sender: ZERO_ADDRESS,
|
|
1526
1617
|
});
|
|
1527
|
-
|
|
1618
|
+
|
|
1619
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[i64.I64]>(
|
|
1620
|
+
insepctRes,
|
|
1621
|
+
);
|
|
1528
1622
|
}
|
|
1529
1623
|
export async function asU64(
|
|
1530
1624
|
client: SuiClient,
|
|
1531
1625
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
1532
|
-
) {
|
|
1626
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
1533
1627
|
const tx = new TransactionBlock();
|
|
1534
1628
|
builder.asU64(tx, args);
|
|
1535
|
-
const
|
|
1629
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1536
1630
|
transactionBlock: tx,
|
|
1537
1631
|
sender: ZERO_ADDRESS,
|
|
1538
1632
|
});
|
|
1539
|
-
|
|
1633
|
+
|
|
1634
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
1635
|
+
insepctRes,
|
|
1636
|
+
);
|
|
1540
1637
|
}
|
|
1541
1638
|
export async function compare(
|
|
1542
1639
|
client: SuiClient,
|
|
@@ -1544,14 +1641,17 @@ export namespace i64 {
|
|
|
1544
1641
|
string | ObjectCallArg | TransactionArgument,
|
|
1545
1642
|
string | ObjectCallArg | TransactionArgument,
|
|
1546
1643
|
],
|
|
1547
|
-
) {
|
|
1644
|
+
): Promise<TypedDevInspectResults<[number]>> {
|
|
1548
1645
|
const tx = new TransactionBlock();
|
|
1549
1646
|
builder.compare(tx, args);
|
|
1550
|
-
const
|
|
1647
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1551
1648
|
transactionBlock: tx,
|
|
1552
1649
|
sender: ZERO_ADDRESS,
|
|
1553
1650
|
});
|
|
1554
|
-
|
|
1651
|
+
|
|
1652
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[number]>(
|
|
1653
|
+
insepctRes,
|
|
1654
|
+
);
|
|
1555
1655
|
}
|
|
1556
1656
|
export async function div(
|
|
1557
1657
|
client: SuiClient,
|
|
@@ -1559,50 +1659,62 @@ export namespace i64 {
|
|
|
1559
1659
|
string | ObjectCallArg | TransactionArgument,
|
|
1560
1660
|
string | ObjectCallArg | TransactionArgument,
|
|
1561
1661
|
],
|
|
1562
|
-
) {
|
|
1662
|
+
): Promise<TypedDevInspectResults<[i64.I64]>> {
|
|
1563
1663
|
const tx = new TransactionBlock();
|
|
1564
1664
|
builder.div(tx, args);
|
|
1565
|
-
const
|
|
1665
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1566
1666
|
transactionBlock: tx,
|
|
1567
1667
|
sender: ZERO_ADDRESS,
|
|
1568
1668
|
});
|
|
1569
|
-
|
|
1669
|
+
|
|
1670
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[i64.I64]>(
|
|
1671
|
+
insepctRes,
|
|
1672
|
+
);
|
|
1570
1673
|
}
|
|
1571
1674
|
export async function from(
|
|
1572
1675
|
client: SuiClient,
|
|
1573
1676
|
args: [bigint | TransactionArgument],
|
|
1574
|
-
) {
|
|
1677
|
+
): Promise<TypedDevInspectResults<[i64.I64]>> {
|
|
1575
1678
|
const tx = new TransactionBlock();
|
|
1576
1679
|
builder.from(tx, args);
|
|
1577
|
-
const
|
|
1680
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1578
1681
|
transactionBlock: tx,
|
|
1579
1682
|
sender: ZERO_ADDRESS,
|
|
1580
1683
|
});
|
|
1581
|
-
|
|
1684
|
+
|
|
1685
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[i64.I64]>(
|
|
1686
|
+
insepctRes,
|
|
1687
|
+
);
|
|
1582
1688
|
}
|
|
1583
1689
|
export async function isNeg(
|
|
1584
1690
|
client: SuiClient,
|
|
1585
1691
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
1586
|
-
) {
|
|
1692
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
1587
1693
|
const tx = new TransactionBlock();
|
|
1588
1694
|
builder.isNeg(tx, args);
|
|
1589
|
-
const
|
|
1695
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1590
1696
|
transactionBlock: tx,
|
|
1591
1697
|
sender: ZERO_ADDRESS,
|
|
1592
1698
|
});
|
|
1593
|
-
|
|
1699
|
+
|
|
1700
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
1701
|
+
insepctRes,
|
|
1702
|
+
);
|
|
1594
1703
|
}
|
|
1595
1704
|
export async function isZero(
|
|
1596
1705
|
client: SuiClient,
|
|
1597
1706
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
1598
|
-
) {
|
|
1707
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
1599
1708
|
const tx = new TransactionBlock();
|
|
1600
1709
|
builder.isZero(tx, args);
|
|
1601
|
-
const
|
|
1710
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1602
1711
|
transactionBlock: tx,
|
|
1603
1712
|
sender: ZERO_ADDRESS,
|
|
1604
1713
|
});
|
|
1605
|
-
|
|
1714
|
+
|
|
1715
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
1716
|
+
insepctRes,
|
|
1717
|
+
);
|
|
1606
1718
|
}
|
|
1607
1719
|
export async function mul(
|
|
1608
1720
|
client: SuiClient,
|
|
@@ -1610,38 +1722,47 @@ export namespace i64 {
|
|
|
1610
1722
|
string | ObjectCallArg | TransactionArgument,
|
|
1611
1723
|
string | ObjectCallArg | TransactionArgument,
|
|
1612
1724
|
],
|
|
1613
|
-
) {
|
|
1725
|
+
): Promise<TypedDevInspectResults<[i64.I64]>> {
|
|
1614
1726
|
const tx = new TransactionBlock();
|
|
1615
1727
|
builder.mul(tx, args);
|
|
1616
|
-
const
|
|
1728
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1617
1729
|
transactionBlock: tx,
|
|
1618
1730
|
sender: ZERO_ADDRESS,
|
|
1619
1731
|
});
|
|
1620
|
-
|
|
1732
|
+
|
|
1733
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[i64.I64]>(
|
|
1734
|
+
insepctRes,
|
|
1735
|
+
);
|
|
1621
1736
|
}
|
|
1622
1737
|
export async function neg(
|
|
1623
1738
|
client: SuiClient,
|
|
1624
1739
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
1625
|
-
) {
|
|
1740
|
+
): Promise<TypedDevInspectResults<[i64.I64]>> {
|
|
1626
1741
|
const tx = new TransactionBlock();
|
|
1627
1742
|
builder.neg(tx, args);
|
|
1628
|
-
const
|
|
1743
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1629
1744
|
transactionBlock: tx,
|
|
1630
1745
|
sender: ZERO_ADDRESS,
|
|
1631
1746
|
});
|
|
1632
|
-
|
|
1747
|
+
|
|
1748
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[i64.I64]>(
|
|
1749
|
+
insepctRes,
|
|
1750
|
+
);
|
|
1633
1751
|
}
|
|
1634
1752
|
export async function negFrom(
|
|
1635
1753
|
client: SuiClient,
|
|
1636
1754
|
args: [bigint | TransactionArgument],
|
|
1637
|
-
) {
|
|
1755
|
+
): Promise<TypedDevInspectResults<[i64.I64]>> {
|
|
1638
1756
|
const tx = new TransactionBlock();
|
|
1639
1757
|
builder.negFrom(tx, args);
|
|
1640
|
-
const
|
|
1758
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1641
1759
|
transactionBlock: tx,
|
|
1642
1760
|
sender: ZERO_ADDRESS,
|
|
1643
1761
|
});
|
|
1644
|
-
|
|
1762
|
+
|
|
1763
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[i64.I64]>(
|
|
1764
|
+
insepctRes,
|
|
1765
|
+
);
|
|
1645
1766
|
}
|
|
1646
1767
|
export async function sub(
|
|
1647
1768
|
client: SuiClient,
|
|
@@ -1649,23 +1770,32 @@ export namespace i64 {
|
|
|
1649
1770
|
string | ObjectCallArg | TransactionArgument,
|
|
1650
1771
|
string | ObjectCallArg | TransactionArgument,
|
|
1651
1772
|
],
|
|
1652
|
-
) {
|
|
1773
|
+
): Promise<TypedDevInspectResults<[i64.I64]>> {
|
|
1653
1774
|
const tx = new TransactionBlock();
|
|
1654
1775
|
builder.sub(tx, args);
|
|
1655
|
-
const
|
|
1776
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1656
1777
|
transactionBlock: tx,
|
|
1657
1778
|
sender: ZERO_ADDRESS,
|
|
1658
1779
|
});
|
|
1659
|
-
|
|
1780
|
+
|
|
1781
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[i64.I64]>(
|
|
1782
|
+
insepctRes,
|
|
1783
|
+
);
|
|
1660
1784
|
}
|
|
1661
|
-
export async function zero(
|
|
1785
|
+
export async function zero(
|
|
1786
|
+
client: SuiClient,
|
|
1787
|
+
args: [],
|
|
1788
|
+
): Promise<TypedDevInspectResults<[i64.I64]>> {
|
|
1662
1789
|
const tx = new TransactionBlock();
|
|
1663
1790
|
builder.zero(tx, args);
|
|
1664
|
-
const
|
|
1791
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1665
1792
|
transactionBlock: tx,
|
|
1666
1793
|
sender: ZERO_ADDRESS,
|
|
1667
1794
|
});
|
|
1668
|
-
|
|
1795
|
+
|
|
1796
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[i64.I64]>(
|
|
1797
|
+
insepctRes,
|
|
1798
|
+
);
|
|
1669
1799
|
}
|
|
1670
1800
|
}
|
|
1671
1801
|
}
|
|
@@ -2595,14 +2725,17 @@ export namespace linked_list {
|
|
|
2595
2725
|
T0 | TransactionArgument,
|
|
2596
2726
|
],
|
|
2597
2727
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2598
|
-
) {
|
|
2728
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
2599
2729
|
const tx = new TransactionBlock();
|
|
2600
2730
|
builder.borrow(tx, args, typeArguments);
|
|
2601
|
-
const
|
|
2731
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2602
2732
|
transactionBlock: tx,
|
|
2603
2733
|
sender: ZERO_ADDRESS,
|
|
2604
2734
|
});
|
|
2605
|
-
|
|
2735
|
+
|
|
2736
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
2737
|
+
insepctRes,
|
|
2738
|
+
);
|
|
2606
2739
|
}
|
|
2607
2740
|
export async function borrowMut<T0 = any, T1 = any>(
|
|
2608
2741
|
client: SuiClient,
|
|
@@ -2612,14 +2745,17 @@ export namespace linked_list {
|
|
|
2612
2745
|
T0 | TransactionArgument,
|
|
2613
2746
|
],
|
|
2614
2747
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2615
|
-
) {
|
|
2748
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
2616
2749
|
const tx = new TransactionBlock();
|
|
2617
2750
|
builder.borrowMut(tx, args, typeArguments);
|
|
2618
|
-
const
|
|
2751
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2619
2752
|
transactionBlock: tx,
|
|
2620
2753
|
sender: ZERO_ADDRESS,
|
|
2621
2754
|
});
|
|
2622
|
-
|
|
2755
|
+
|
|
2756
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
2757
|
+
insepctRes,
|
|
2758
|
+
);
|
|
2623
2759
|
}
|
|
2624
2760
|
export async function chain<T0 = any, T1 = any>(
|
|
2625
2761
|
client: SuiClient,
|
|
@@ -2628,14 +2764,17 @@ export namespace linked_list {
|
|
|
2628
2764
|
string | ObjectCallArg | TransactionArgument,
|
|
2629
2765
|
],
|
|
2630
2766
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2631
|
-
) {
|
|
2767
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2632
2768
|
const tx = new TransactionBlock();
|
|
2633
2769
|
builder.chain(tx, args, typeArguments);
|
|
2634
|
-
const
|
|
2770
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2635
2771
|
transactionBlock: tx,
|
|
2636
2772
|
sender: ZERO_ADDRESS,
|
|
2637
2773
|
});
|
|
2638
|
-
|
|
2774
|
+
|
|
2775
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2776
|
+
insepctRes,
|
|
2777
|
+
);
|
|
2639
2778
|
}
|
|
2640
2779
|
export async function contains<T0 = any, T1 = any>(
|
|
2641
2780
|
client: SuiClient,
|
|
@@ -2645,14 +2784,17 @@ export namespace linked_list {
|
|
|
2645
2784
|
T0 | TransactionArgument,
|
|
2646
2785
|
],
|
|
2647
2786
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2648
|
-
) {
|
|
2787
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
2649
2788
|
const tx = new TransactionBlock();
|
|
2650
2789
|
builder.contains(tx, args, typeArguments);
|
|
2651
|
-
const
|
|
2790
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2652
2791
|
transactionBlock: tx,
|
|
2653
2792
|
sender: ZERO_ADDRESS,
|
|
2654
2793
|
});
|
|
2655
|
-
|
|
2794
|
+
|
|
2795
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
2796
|
+
insepctRes,
|
|
2797
|
+
);
|
|
2656
2798
|
}
|
|
2657
2799
|
export async function delete_<T0 = any, T1 = any>(
|
|
2658
2800
|
client: SuiClient,
|
|
@@ -2662,79 +2804,97 @@ export namespace linked_list {
|
|
|
2662
2804
|
T0 | TransactionArgument,
|
|
2663
2805
|
],
|
|
2664
2806
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2665
|
-
) {
|
|
2807
|
+
): Promise<TypedDevInspectResults<[T1]>> {
|
|
2666
2808
|
const tx = new TransactionBlock();
|
|
2667
2809
|
builder.delete_(tx, args, typeArguments);
|
|
2668
|
-
const
|
|
2810
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2669
2811
|
transactionBlock: tx,
|
|
2670
2812
|
sender: ZERO_ADDRESS,
|
|
2671
2813
|
});
|
|
2672
|
-
|
|
2814
|
+
|
|
2815
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[T1]>(
|
|
2816
|
+
insepctRes,
|
|
2817
|
+
);
|
|
2673
2818
|
}
|
|
2674
2819
|
export async function first<T0 = any, T1 = any>(
|
|
2675
2820
|
client: SuiClient,
|
|
2676
2821
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
2677
2822
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2678
|
-
) {
|
|
2823
|
+
): Promise<TypedDevInspectResults<[_0x1.option.Option<T0>]>> {
|
|
2679
2824
|
const tx = new TransactionBlock();
|
|
2680
2825
|
builder.first(tx, args, typeArguments);
|
|
2681
|
-
const
|
|
2826
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2682
2827
|
transactionBlock: tx,
|
|
2683
2828
|
sender: ZERO_ADDRESS,
|
|
2684
2829
|
});
|
|
2685
|
-
|
|
2830
|
+
|
|
2831
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
2832
|
+
[_0x1.option.Option<T0>]
|
|
2833
|
+
>(insepctRes);
|
|
2686
2834
|
}
|
|
2687
2835
|
export async function isEmpty<T0 = any, T1 = any>(
|
|
2688
2836
|
client: SuiClient,
|
|
2689
2837
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
2690
2838
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2691
|
-
) {
|
|
2839
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
2692
2840
|
const tx = new TransactionBlock();
|
|
2693
2841
|
builder.isEmpty(tx, args, typeArguments);
|
|
2694
|
-
const
|
|
2842
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2695
2843
|
transactionBlock: tx,
|
|
2696
2844
|
sender: ZERO_ADDRESS,
|
|
2697
2845
|
});
|
|
2698
|
-
|
|
2846
|
+
|
|
2847
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
2848
|
+
insepctRes,
|
|
2849
|
+
);
|
|
2699
2850
|
}
|
|
2700
2851
|
export async function last<T0 = any, T1 = any>(
|
|
2701
2852
|
client: SuiClient,
|
|
2702
2853
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
2703
2854
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2704
|
-
) {
|
|
2855
|
+
): Promise<TypedDevInspectResults<[_0x1.option.Option<T0>]>> {
|
|
2705
2856
|
const tx = new TransactionBlock();
|
|
2706
2857
|
builder.last(tx, args, typeArguments);
|
|
2707
|
-
const
|
|
2858
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2708
2859
|
transactionBlock: tx,
|
|
2709
2860
|
sender: ZERO_ADDRESS,
|
|
2710
2861
|
});
|
|
2711
|
-
|
|
2862
|
+
|
|
2863
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
2864
|
+
[_0x1.option.Option<T0>]
|
|
2865
|
+
>(insepctRes);
|
|
2712
2866
|
}
|
|
2713
2867
|
export async function length<T0 = any, T1 = any>(
|
|
2714
2868
|
client: SuiClient,
|
|
2715
2869
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
2716
2870
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2717
|
-
) {
|
|
2871
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
2718
2872
|
const tx = new TransactionBlock();
|
|
2719
2873
|
builder.length(tx, args, typeArguments);
|
|
2720
|
-
const
|
|
2874
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2721
2875
|
transactionBlock: tx,
|
|
2722
2876
|
sender: ZERO_ADDRESS,
|
|
2723
2877
|
});
|
|
2724
|
-
|
|
2878
|
+
|
|
2879
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
2880
|
+
insepctRes,
|
|
2881
|
+
);
|
|
2725
2882
|
}
|
|
2726
2883
|
export async function new_<T0 = any, T1 = any>(
|
|
2727
2884
|
client: SuiClient,
|
|
2728
2885
|
args: [_0x2.object_.ID | TransactionArgument],
|
|
2729
2886
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2730
|
-
) {
|
|
2887
|
+
): Promise<TypedDevInspectResults<[linked_list.LinkedList<T0, T1>]>> {
|
|
2731
2888
|
const tx = new TransactionBlock();
|
|
2732
2889
|
builder.new_(tx, args, typeArguments);
|
|
2733
|
-
const
|
|
2890
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2734
2891
|
transactionBlock: tx,
|
|
2735
2892
|
sender: ZERO_ADDRESS,
|
|
2736
2893
|
});
|
|
2737
|
-
|
|
2894
|
+
|
|
2895
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
2896
|
+
[linked_list.LinkedList<T0, T1>]
|
|
2897
|
+
>(insepctRes);
|
|
2738
2898
|
}
|
|
2739
2899
|
export async function newNode<T0 = any, T1 = any>(
|
|
2740
2900
|
client: SuiClient,
|
|
@@ -2744,14 +2904,17 @@ export namespace linked_list {
|
|
|
2744
2904
|
_0x1.option.Option<T0> | TransactionArgument,
|
|
2745
2905
|
],
|
|
2746
2906
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2747
|
-
) {
|
|
2907
|
+
): Promise<TypedDevInspectResults<[linked_list.Node<T0, T1>]>> {
|
|
2748
2908
|
const tx = new TransactionBlock();
|
|
2749
2909
|
builder.newNode(tx, args, typeArguments);
|
|
2750
|
-
const
|
|
2910
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2751
2911
|
transactionBlock: tx,
|
|
2752
2912
|
sender: ZERO_ADDRESS,
|
|
2753
2913
|
});
|
|
2754
|
-
|
|
2914
|
+
|
|
2915
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
2916
|
+
[linked_list.Node<T0, T1>]
|
|
2917
|
+
>(insepctRes);
|
|
2755
2918
|
}
|
|
2756
2919
|
export async function next<T0 = any, T1 = any>(
|
|
2757
2920
|
client: SuiClient,
|
|
@@ -2761,14 +2924,17 @@ export namespace linked_list {
|
|
|
2761
2924
|
T0 | TransactionArgument,
|
|
2762
2925
|
],
|
|
2763
2926
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2764
|
-
) {
|
|
2927
|
+
): Promise<TypedDevInspectResults<[_0x1.option.Option<T0>]>> {
|
|
2765
2928
|
const tx = new TransactionBlock();
|
|
2766
2929
|
builder.next(tx, args, typeArguments);
|
|
2767
|
-
const
|
|
2930
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2768
2931
|
transactionBlock: tx,
|
|
2769
2932
|
sender: ZERO_ADDRESS,
|
|
2770
2933
|
});
|
|
2771
|
-
|
|
2934
|
+
|
|
2935
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
2936
|
+
[_0x1.option.Option<T0>]
|
|
2937
|
+
>(insepctRes);
|
|
2772
2938
|
}
|
|
2773
2939
|
export async function popBack<T0 = any, T1 = any>(
|
|
2774
2940
|
client: SuiClient,
|
|
@@ -2777,14 +2943,17 @@ export namespace linked_list {
|
|
|
2777
2943
|
string | ObjectCallArg | TransactionArgument,
|
|
2778
2944
|
],
|
|
2779
2945
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2780
|
-
) {
|
|
2946
|
+
): Promise<TypedDevInspectResults<[T0, T1]>> {
|
|
2781
2947
|
const tx = new TransactionBlock();
|
|
2782
2948
|
builder.popBack(tx, args, typeArguments);
|
|
2783
|
-
const
|
|
2949
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2784
2950
|
transactionBlock: tx,
|
|
2785
2951
|
sender: ZERO_ADDRESS,
|
|
2786
2952
|
});
|
|
2787
|
-
|
|
2953
|
+
|
|
2954
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[T0, T1]>(
|
|
2955
|
+
insepctRes,
|
|
2956
|
+
);
|
|
2788
2957
|
}
|
|
2789
2958
|
export async function popFront<T0 = any, T1 = any>(
|
|
2790
2959
|
client: SuiClient,
|
|
@@ -2793,14 +2962,17 @@ export namespace linked_list {
|
|
|
2793
2962
|
string | ObjectCallArg | TransactionArgument,
|
|
2794
2963
|
],
|
|
2795
2964
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2796
|
-
) {
|
|
2965
|
+
): Promise<TypedDevInspectResults<[T0, T1]>> {
|
|
2797
2966
|
const tx = new TransactionBlock();
|
|
2798
2967
|
builder.popFront(tx, args, typeArguments);
|
|
2799
|
-
const
|
|
2968
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2800
2969
|
transactionBlock: tx,
|
|
2801
2970
|
sender: ZERO_ADDRESS,
|
|
2802
2971
|
});
|
|
2803
|
-
|
|
2972
|
+
|
|
2973
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[T0, T1]>(
|
|
2974
|
+
insepctRes,
|
|
2975
|
+
);
|
|
2804
2976
|
}
|
|
2805
2977
|
export async function popNode<T0 = any, T1 = any>(
|
|
2806
2978
|
client: SuiClient,
|
|
@@ -2809,14 +2981,17 @@ export namespace linked_list {
|
|
|
2809
2981
|
T0 | TransactionArgument,
|
|
2810
2982
|
],
|
|
2811
2983
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2812
|
-
) {
|
|
2984
|
+
): Promise<TypedDevInspectResults<[T1]>> {
|
|
2813
2985
|
const tx = new TransactionBlock();
|
|
2814
2986
|
builder.popNode(tx, args, typeArguments);
|
|
2815
|
-
const
|
|
2987
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2816
2988
|
transactionBlock: tx,
|
|
2817
2989
|
sender: ZERO_ADDRESS,
|
|
2818
2990
|
});
|
|
2819
|
-
|
|
2991
|
+
|
|
2992
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[T1]>(
|
|
2993
|
+
insepctRes,
|
|
2994
|
+
);
|
|
2820
2995
|
}
|
|
2821
2996
|
export async function prepareNode<T0 = any, T1 = any>(
|
|
2822
2997
|
client: SuiClient,
|
|
@@ -2826,14 +3001,17 @@ export namespace linked_list {
|
|
|
2826
3001
|
T1 | TransactionArgument,
|
|
2827
3002
|
],
|
|
2828
3003
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2829
|
-
) {
|
|
3004
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2830
3005
|
const tx = new TransactionBlock();
|
|
2831
3006
|
builder.prepareNode(tx, args, typeArguments);
|
|
2832
|
-
const
|
|
3007
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2833
3008
|
transactionBlock: tx,
|
|
2834
3009
|
sender: ZERO_ADDRESS,
|
|
2835
3010
|
});
|
|
2836
|
-
|
|
3011
|
+
|
|
3012
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
3013
|
+
insepctRes,
|
|
3014
|
+
);
|
|
2837
3015
|
}
|
|
2838
3016
|
export async function prev<T0 = any, T1 = any>(
|
|
2839
3017
|
client: SuiClient,
|
|
@@ -2843,14 +3021,17 @@ export namespace linked_list {
|
|
|
2843
3021
|
T0 | TransactionArgument,
|
|
2844
3022
|
],
|
|
2845
3023
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2846
|
-
) {
|
|
3024
|
+
): Promise<TypedDevInspectResults<[_0x1.option.Option<T0>]>> {
|
|
2847
3025
|
const tx = new TransactionBlock();
|
|
2848
3026
|
builder.prev(tx, args, typeArguments);
|
|
2849
|
-
const
|
|
3027
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2850
3028
|
transactionBlock: tx,
|
|
2851
3029
|
sender: ZERO_ADDRESS,
|
|
2852
3030
|
});
|
|
2853
|
-
|
|
3031
|
+
|
|
3032
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3033
|
+
[_0x1.option.Option<T0>]
|
|
3034
|
+
>(insepctRes);
|
|
2854
3035
|
}
|
|
2855
3036
|
export async function pushBack<T0 = any, T1 = any>(
|
|
2856
3037
|
client: SuiClient,
|
|
@@ -2861,14 +3042,17 @@ export namespace linked_list {
|
|
|
2861
3042
|
T1 | TransactionArgument,
|
|
2862
3043
|
],
|
|
2863
3044
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2864
|
-
) {
|
|
3045
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2865
3046
|
const tx = new TransactionBlock();
|
|
2866
3047
|
builder.pushBack(tx, args, typeArguments);
|
|
2867
|
-
const
|
|
3048
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2868
3049
|
transactionBlock: tx,
|
|
2869
3050
|
sender: ZERO_ADDRESS,
|
|
2870
3051
|
});
|
|
2871
|
-
|
|
3052
|
+
|
|
3053
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
3054
|
+
insepctRes,
|
|
3055
|
+
);
|
|
2872
3056
|
}
|
|
2873
3057
|
export async function pushFront<T0 = any, T1 = any>(
|
|
2874
3058
|
client: SuiClient,
|
|
@@ -2879,14 +3063,17 @@ export namespace linked_list {
|
|
|
2879
3063
|
T1 | TransactionArgument,
|
|
2880
3064
|
],
|
|
2881
3065
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2882
|
-
) {
|
|
3066
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2883
3067
|
const tx = new TransactionBlock();
|
|
2884
3068
|
builder.pushFront(tx, args, typeArguments);
|
|
2885
|
-
const
|
|
3069
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2886
3070
|
transactionBlock: tx,
|
|
2887
3071
|
sender: ZERO_ADDRESS,
|
|
2888
3072
|
});
|
|
2889
|
-
|
|
3073
|
+
|
|
3074
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
3075
|
+
insepctRes,
|
|
3076
|
+
);
|
|
2890
3077
|
}
|
|
2891
3078
|
export async function pushNode<T0 = any, T1 = any>(
|
|
2892
3079
|
client: SuiClient,
|
|
@@ -2896,14 +3083,17 @@ export namespace linked_list {
|
|
|
2896
3083
|
linked_list.Node<T0, T1> | TransactionArgument,
|
|
2897
3084
|
],
|
|
2898
3085
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2899
|
-
) {
|
|
3086
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2900
3087
|
const tx = new TransactionBlock();
|
|
2901
3088
|
builder.pushNode(tx, args, typeArguments);
|
|
2902
|
-
const
|
|
3089
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2903
3090
|
transactionBlock: tx,
|
|
2904
3091
|
sender: ZERO_ADDRESS,
|
|
2905
3092
|
});
|
|
2906
|
-
|
|
3093
|
+
|
|
3094
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
3095
|
+
insepctRes,
|
|
3096
|
+
);
|
|
2907
3097
|
}
|
|
2908
3098
|
export async function putBack<T0 = any, T1 = any>(
|
|
2909
3099
|
client: SuiClient,
|
|
@@ -2914,14 +3104,17 @@ export namespace linked_list {
|
|
|
2914
3104
|
T1 | TransactionArgument,
|
|
2915
3105
|
],
|
|
2916
3106
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2917
|
-
) {
|
|
3107
|
+
): Promise<TypedDevInspectResults<[_0x1.option.Option<T1>]>> {
|
|
2918
3108
|
const tx = new TransactionBlock();
|
|
2919
3109
|
builder.putBack(tx, args, typeArguments);
|
|
2920
|
-
const
|
|
3110
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2921
3111
|
transactionBlock: tx,
|
|
2922
3112
|
sender: ZERO_ADDRESS,
|
|
2923
3113
|
});
|
|
2924
|
-
|
|
3114
|
+
|
|
3115
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3116
|
+
[_0x1.option.Option<T1>]
|
|
3117
|
+
>(insepctRes);
|
|
2925
3118
|
}
|
|
2926
3119
|
export async function putFront<T0 = any, T1 = any>(
|
|
2927
3120
|
client: SuiClient,
|
|
@@ -2932,14 +3125,17 @@ export namespace linked_list {
|
|
|
2932
3125
|
T1 | TransactionArgument,
|
|
2933
3126
|
],
|
|
2934
3127
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2935
|
-
) {
|
|
3128
|
+
): Promise<TypedDevInspectResults<[_0x1.option.Option<T1>]>> {
|
|
2936
3129
|
const tx = new TransactionBlock();
|
|
2937
3130
|
builder.putFront(tx, args, typeArguments);
|
|
2938
|
-
const
|
|
3131
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2939
3132
|
transactionBlock: tx,
|
|
2940
3133
|
sender: ZERO_ADDRESS,
|
|
2941
3134
|
});
|
|
2942
|
-
|
|
3135
|
+
|
|
3136
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3137
|
+
[_0x1.option.Option<T1>]
|
|
3138
|
+
>(insepctRes);
|
|
2943
3139
|
}
|
|
2944
3140
|
export async function putNode<T0 = any, T1 = any>(
|
|
2945
3141
|
client: SuiClient,
|
|
@@ -2949,14 +3145,17 @@ export namespace linked_list {
|
|
|
2949
3145
|
linked_list.Node<T0, T1> | TransactionArgument,
|
|
2950
3146
|
],
|
|
2951
3147
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2952
|
-
) {
|
|
3148
|
+
): Promise<TypedDevInspectResults<[_0x1.option.Option<T1>]>> {
|
|
2953
3149
|
const tx = new TransactionBlock();
|
|
2954
3150
|
builder.putNode(tx, args, typeArguments);
|
|
2955
|
-
const
|
|
3151
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2956
3152
|
transactionBlock: tx,
|
|
2957
3153
|
sender: ZERO_ADDRESS,
|
|
2958
3154
|
});
|
|
2959
|
-
|
|
3155
|
+
|
|
3156
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3157
|
+
[_0x1.option.Option<T1>]
|
|
3158
|
+
>(insepctRes);
|
|
2960
3159
|
}
|
|
2961
3160
|
export async function remove<T0 = any, T1 = any>(
|
|
2962
3161
|
client: SuiClient,
|
|
@@ -2966,14 +3165,17 @@ export namespace linked_list {
|
|
|
2966
3165
|
T0 | TransactionArgument,
|
|
2967
3166
|
],
|
|
2968
3167
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2969
|
-
) {
|
|
3168
|
+
): Promise<TypedDevInspectResults<[T1]>> {
|
|
2970
3169
|
const tx = new TransactionBlock();
|
|
2971
3170
|
builder.remove(tx, args, typeArguments);
|
|
2972
|
-
const
|
|
3171
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2973
3172
|
transactionBlock: tx,
|
|
2974
3173
|
sender: ZERO_ADDRESS,
|
|
2975
3174
|
});
|
|
2976
|
-
|
|
3175
|
+
|
|
3176
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[T1]>(
|
|
3177
|
+
insepctRes,
|
|
3178
|
+
);
|
|
2977
3179
|
}
|
|
2978
3180
|
export async function takeBack<T0 = any, T1 = any>(
|
|
2979
3181
|
client: SuiClient,
|
|
@@ -2982,14 +3184,17 @@ export namespace linked_list {
|
|
|
2982
3184
|
string | ObjectCallArg | TransactionArgument,
|
|
2983
3185
|
],
|
|
2984
3186
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
2985
|
-
) {
|
|
3187
|
+
): Promise<TypedDevInspectResults<[T0, T1]>> {
|
|
2986
3188
|
const tx = new TransactionBlock();
|
|
2987
3189
|
builder.takeBack(tx, args, typeArguments);
|
|
2988
|
-
const
|
|
3190
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2989
3191
|
transactionBlock: tx,
|
|
2990
3192
|
sender: ZERO_ADDRESS,
|
|
2991
3193
|
});
|
|
2992
|
-
|
|
3194
|
+
|
|
3195
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[T0, T1]>(
|
|
3196
|
+
insepctRes,
|
|
3197
|
+
);
|
|
2993
3198
|
}
|
|
2994
3199
|
export async function takeFront<T0 = any, T1 = any>(
|
|
2995
3200
|
client: SuiClient,
|
|
@@ -2998,14 +3203,17 @@ export namespace linked_list {
|
|
|
2998
3203
|
string | ObjectCallArg | TransactionArgument,
|
|
2999
3204
|
],
|
|
3000
3205
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
3001
|
-
) {
|
|
3206
|
+
): Promise<TypedDevInspectResults<[T0, T1]>> {
|
|
3002
3207
|
const tx = new TransactionBlock();
|
|
3003
3208
|
builder.takeFront(tx, args, typeArguments);
|
|
3004
|
-
const
|
|
3209
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3005
3210
|
transactionBlock: tx,
|
|
3006
3211
|
sender: ZERO_ADDRESS,
|
|
3007
3212
|
});
|
|
3008
|
-
|
|
3213
|
+
|
|
3214
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[T0, T1]>(
|
|
3215
|
+
insepctRes,
|
|
3216
|
+
);
|
|
3009
3217
|
}
|
|
3010
3218
|
export async function takeNode<T0 = any, T1 = any>(
|
|
3011
3219
|
client: SuiClient,
|
|
@@ -3014,14 +3222,17 @@ export namespace linked_list {
|
|
|
3014
3222
|
T0 | TransactionArgument,
|
|
3015
3223
|
],
|
|
3016
3224
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
3017
|
-
) {
|
|
3225
|
+
): Promise<TypedDevInspectResults<[T1]>> {
|
|
3018
3226
|
const tx = new TransactionBlock();
|
|
3019
3227
|
builder.takeNode(tx, args, typeArguments);
|
|
3020
|
-
const
|
|
3228
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3021
3229
|
transactionBlock: tx,
|
|
3022
3230
|
sender: ZERO_ADDRESS,
|
|
3023
3231
|
});
|
|
3024
|
-
|
|
3232
|
+
|
|
3233
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[T1]>(
|
|
3234
|
+
insepctRes,
|
|
3235
|
+
);
|
|
3025
3236
|
}
|
|
3026
3237
|
}
|
|
3027
3238
|
}
|
|
@@ -6162,14 +6373,17 @@ export namespace single_collateral {
|
|
|
6162
6373
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
6163
6374
|
string | ObjectCallArg | TransactionArgument,
|
|
6164
6375
|
],
|
|
6165
|
-
) {
|
|
6376
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6166
6377
|
const tx = new TransactionBlock();
|
|
6167
6378
|
builder.addAuthorizedUser(tx, args);
|
|
6168
|
-
const
|
|
6379
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6169
6380
|
transactionBlock: tx,
|
|
6170
6381
|
sender: ZERO_ADDRESS,
|
|
6171
6382
|
});
|
|
6172
|
-
|
|
6383
|
+
|
|
6384
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6385
|
+
insepctRes,
|
|
6386
|
+
);
|
|
6173
6387
|
}
|
|
6174
6388
|
export async function addPortfolioVaultAuthorizedUser<
|
|
6175
6389
|
T0 = any,
|
|
@@ -6189,14 +6403,17 @@ export namespace single_collateral {
|
|
|
6189
6403
|
TypeDescriptor<T1> | string,
|
|
6190
6404
|
TypeDescriptor<T2> | string,
|
|
6191
6405
|
],
|
|
6192
|
-
) {
|
|
6406
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6193
6407
|
const tx = new TransactionBlock();
|
|
6194
6408
|
builder.addPortfolioVaultAuthorizedUser(tx, args, typeArguments);
|
|
6195
|
-
const
|
|
6409
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6196
6410
|
transactionBlock: tx,
|
|
6197
6411
|
sender: ZERO_ADDRESS,
|
|
6198
6412
|
});
|
|
6199
|
-
|
|
6413
|
+
|
|
6414
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6415
|
+
insepctRes,
|
|
6416
|
+
);
|
|
6200
6417
|
}
|
|
6201
6418
|
export async function authorizedAddPortfolioVaultAuthorizedUser<
|
|
6202
6419
|
T0 = any,
|
|
@@ -6215,18 +6432,21 @@ export namespace single_collateral {
|
|
|
6215
6432
|
TypeDescriptor<T1> | string,
|
|
6216
6433
|
TypeDescriptor<T2> | string,
|
|
6217
6434
|
],
|
|
6218
|
-
) {
|
|
6435
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6219
6436
|
const tx = new TransactionBlock();
|
|
6220
6437
|
builder.authorizedAddPortfolioVaultAuthorizedUser(
|
|
6221
6438
|
tx,
|
|
6222
6439
|
args,
|
|
6223
6440
|
typeArguments,
|
|
6224
6441
|
);
|
|
6225
|
-
const
|
|
6442
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6226
6443
|
transactionBlock: tx,
|
|
6227
6444
|
sender: ZERO_ADDRESS,
|
|
6228
6445
|
});
|
|
6229
|
-
|
|
6446
|
+
|
|
6447
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6448
|
+
insepctRes,
|
|
6449
|
+
);
|
|
6230
6450
|
}
|
|
6231
6451
|
export async function authorizedDelivery<T0 = any, T1 = any, T2 = any>(
|
|
6232
6452
|
client: SuiClient,
|
|
@@ -6242,14 +6462,17 @@ export namespace single_collateral {
|
|
|
6242
6462
|
TypeDescriptor<T1> | string,
|
|
6243
6463
|
TypeDescriptor<T2> | string,
|
|
6244
6464
|
],
|
|
6245
|
-
) {
|
|
6465
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6246
6466
|
const tx = new TransactionBlock();
|
|
6247
6467
|
builder.authorizedDelivery(tx, args, typeArguments);
|
|
6248
|
-
const
|
|
6468
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6249
6469
|
transactionBlock: tx,
|
|
6250
6470
|
sender: ZERO_ADDRESS,
|
|
6251
6471
|
});
|
|
6252
|
-
|
|
6472
|
+
|
|
6473
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6474
|
+
insepctRes,
|
|
6475
|
+
);
|
|
6253
6476
|
}
|
|
6254
6477
|
export async function authorizedNewPortfolioVault<
|
|
6255
6478
|
T0 = any,
|
|
@@ -6287,14 +6510,17 @@ export namespace single_collateral {
|
|
|
6287
6510
|
TypeDescriptor<T1> | string,
|
|
6288
6511
|
TypeDescriptor<T2> | string,
|
|
6289
6512
|
],
|
|
6290
|
-
) {
|
|
6513
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6291
6514
|
const tx = new TransactionBlock();
|
|
6292
6515
|
builder.authorizedNewPortfolioVault(tx, args, typeArguments);
|
|
6293
|
-
const
|
|
6516
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6294
6517
|
transactionBlock: tx,
|
|
6295
6518
|
sender: ZERO_ADDRESS,
|
|
6296
6519
|
});
|
|
6297
|
-
|
|
6520
|
+
|
|
6521
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6522
|
+
insepctRes,
|
|
6523
|
+
);
|
|
6298
6524
|
}
|
|
6299
6525
|
export async function authorizedRemovePortfolioVaultAuthorizedUser<
|
|
6300
6526
|
T0 = any,
|
|
@@ -6313,18 +6539,21 @@ export namespace single_collateral {
|
|
|
6313
6539
|
TypeDescriptor<T1> | string,
|
|
6314
6540
|
TypeDescriptor<T2> | string,
|
|
6315
6541
|
],
|
|
6316
|
-
) {
|
|
6542
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6317
6543
|
const tx = new TransactionBlock();
|
|
6318
6544
|
builder.authorizedRemovePortfolioVaultAuthorizedUser(
|
|
6319
6545
|
tx,
|
|
6320
6546
|
args,
|
|
6321
6547
|
typeArguments,
|
|
6322
6548
|
);
|
|
6323
|
-
const
|
|
6549
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6324
6550
|
transactionBlock: tx,
|
|
6325
6551
|
sender: ZERO_ADDRESS,
|
|
6326
6552
|
});
|
|
6327
|
-
|
|
6553
|
+
|
|
6554
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6555
|
+
insepctRes,
|
|
6556
|
+
);
|
|
6328
6557
|
}
|
|
6329
6558
|
export async function authorizedUpdateCapacity<
|
|
6330
6559
|
T0 = any,
|
|
@@ -6343,14 +6572,17 @@ export namespace single_collateral {
|
|
|
6343
6572
|
TypeDescriptor<T1> | string,
|
|
6344
6573
|
TypeDescriptor<T2> | string,
|
|
6345
6574
|
],
|
|
6346
|
-
) {
|
|
6575
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6347
6576
|
const tx = new TransactionBlock();
|
|
6348
6577
|
builder.authorizedUpdateCapacity(tx, args, typeArguments);
|
|
6349
|
-
const
|
|
6578
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6350
6579
|
transactionBlock: tx,
|
|
6351
6580
|
sender: ZERO_ADDRESS,
|
|
6352
6581
|
});
|
|
6353
|
-
|
|
6582
|
+
|
|
6583
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6584
|
+
insepctRes,
|
|
6585
|
+
);
|
|
6354
6586
|
}
|
|
6355
6587
|
export async function authorizedUpdateUpcomingVaultConfig<
|
|
6356
6588
|
T0 = any,
|
|
@@ -6376,14 +6608,17 @@ export namespace single_collateral {
|
|
|
6376
6608
|
TypeDescriptor<T1> | string,
|
|
6377
6609
|
TypeDescriptor<T2> | string,
|
|
6378
6610
|
],
|
|
6379
|
-
) {
|
|
6611
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6380
6612
|
const tx = new TransactionBlock();
|
|
6381
6613
|
builder.authorizedUpdateUpcomingVaultConfig(tx, args, typeArguments);
|
|
6382
|
-
const
|
|
6614
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6383
6615
|
transactionBlock: tx,
|
|
6384
6616
|
sender: ZERO_ADDRESS,
|
|
6385
6617
|
});
|
|
6386
|
-
|
|
6618
|
+
|
|
6619
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6620
|
+
insepctRes,
|
|
6621
|
+
);
|
|
6387
6622
|
}
|
|
6388
6623
|
export async function authorizedUpdateWarmupVaultConfig<
|
|
6389
6624
|
T0 = any,
|
|
@@ -6406,14 +6641,17 @@ export namespace single_collateral {
|
|
|
6406
6641
|
TypeDescriptor<T1> | string,
|
|
6407
6642
|
TypeDescriptor<T2> | string,
|
|
6408
6643
|
],
|
|
6409
|
-
) {
|
|
6644
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6410
6645
|
const tx = new TransactionBlock();
|
|
6411
6646
|
builder.authorizedUpdateWarmupVaultConfig(tx, args, typeArguments);
|
|
6412
|
-
const
|
|
6647
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6413
6648
|
transactionBlock: tx,
|
|
6414
6649
|
sender: ZERO_ADDRESS,
|
|
6415
6650
|
});
|
|
6416
|
-
|
|
6651
|
+
|
|
6652
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6653
|
+
insepctRes,
|
|
6654
|
+
);
|
|
6417
6655
|
}
|
|
6418
6656
|
export async function claim<T0 = any, T1 = any, T2 = any>(
|
|
6419
6657
|
client: SuiClient,
|
|
@@ -6427,14 +6665,17 @@ export namespace single_collateral {
|
|
|
6427
6665
|
TypeDescriptor<T1> | string,
|
|
6428
6666
|
TypeDescriptor<T2> | string,
|
|
6429
6667
|
],
|
|
6430
|
-
) {
|
|
6668
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6431
6669
|
const tx = new TransactionBlock();
|
|
6432
6670
|
builder.claim(tx, args, typeArguments);
|
|
6433
|
-
const
|
|
6671
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6434
6672
|
transactionBlock: tx,
|
|
6435
6673
|
sender: ZERO_ADDRESS,
|
|
6436
6674
|
});
|
|
6437
|
-
|
|
6675
|
+
|
|
6676
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6677
|
+
insepctRes,
|
|
6678
|
+
);
|
|
6438
6679
|
}
|
|
6439
6680
|
export async function claimAndHarvest<T0 = any, T1 = any, T2 = any>(
|
|
6440
6681
|
client: SuiClient,
|
|
@@ -6448,14 +6689,17 @@ export namespace single_collateral {
|
|
|
6448
6689
|
TypeDescriptor<T1> | string,
|
|
6449
6690
|
TypeDescriptor<T2> | string,
|
|
6450
6691
|
],
|
|
6451
|
-
) {
|
|
6692
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6452
6693
|
const tx = new TransactionBlock();
|
|
6453
6694
|
builder.claimAndHarvest(tx, args, typeArguments);
|
|
6454
|
-
const
|
|
6695
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6455
6696
|
transactionBlock: tx,
|
|
6456
6697
|
sender: ZERO_ADDRESS,
|
|
6457
6698
|
});
|
|
6458
|
-
|
|
6699
|
+
|
|
6700
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6701
|
+
insepctRes,
|
|
6702
|
+
);
|
|
6459
6703
|
}
|
|
6460
6704
|
export async function close<T0 = any, T1 = any, T2 = any>(
|
|
6461
6705
|
client: SuiClient,
|
|
@@ -6470,14 +6714,17 @@ export namespace single_collateral {
|
|
|
6470
6714
|
TypeDescriptor<T1> | string,
|
|
6471
6715
|
TypeDescriptor<T2> | string,
|
|
6472
6716
|
],
|
|
6473
|
-
) {
|
|
6717
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6474
6718
|
const tx = new TransactionBlock();
|
|
6475
6719
|
builder.close(tx, args, typeArguments);
|
|
6476
|
-
const
|
|
6720
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6477
6721
|
transactionBlock: tx,
|
|
6478
6722
|
sender: ZERO_ADDRESS,
|
|
6479
6723
|
});
|
|
6480
|
-
|
|
6724
|
+
|
|
6725
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6726
|
+
insepctRes,
|
|
6727
|
+
);
|
|
6481
6728
|
}
|
|
6482
6729
|
export async function compound<T0 = any, T1 = any>(
|
|
6483
6730
|
client: SuiClient,
|
|
@@ -6487,14 +6734,17 @@ export namespace single_collateral {
|
|
|
6487
6734
|
string | ObjectCallArg | TransactionArgument,
|
|
6488
6735
|
],
|
|
6489
6736
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
6490
|
-
) {
|
|
6737
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6491
6738
|
const tx = new TransactionBlock();
|
|
6492
6739
|
builder.compound(tx, args, typeArguments);
|
|
6493
|
-
const
|
|
6740
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6494
6741
|
transactionBlock: tx,
|
|
6495
6742
|
sender: ZERO_ADDRESS,
|
|
6496
6743
|
});
|
|
6497
|
-
|
|
6744
|
+
|
|
6745
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6746
|
+
insepctRes,
|
|
6747
|
+
);
|
|
6498
6748
|
}
|
|
6499
6749
|
export async function delivery<T0 = any, T1 = any, T2 = any>(
|
|
6500
6750
|
client: SuiClient,
|
|
@@ -6511,14 +6761,17 @@ export namespace single_collateral {
|
|
|
6511
6761
|
TypeDescriptor<T1> | string,
|
|
6512
6762
|
TypeDescriptor<T2> | string,
|
|
6513
6763
|
],
|
|
6514
|
-
) {
|
|
6764
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6515
6765
|
const tx = new TransactionBlock();
|
|
6516
6766
|
builder.delivery(tx, args, typeArguments);
|
|
6517
|
-
const
|
|
6767
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6518
6768
|
transactionBlock: tx,
|
|
6519
6769
|
sender: ZERO_ADDRESS,
|
|
6520
6770
|
});
|
|
6521
|
-
|
|
6771
|
+
|
|
6772
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6773
|
+
insepctRes,
|
|
6774
|
+
);
|
|
6522
6775
|
}
|
|
6523
6776
|
export async function deposit<T0 = any, T1 = any, T2 = any>(
|
|
6524
6777
|
client: SuiClient,
|
|
@@ -6534,14 +6787,17 @@ export namespace single_collateral {
|
|
|
6534
6787
|
TypeDescriptor<T1> | string,
|
|
6535
6788
|
TypeDescriptor<T2> | string,
|
|
6536
6789
|
],
|
|
6537
|
-
) {
|
|
6790
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6538
6791
|
const tx = new TransactionBlock();
|
|
6539
6792
|
builder.deposit(tx, args, typeArguments);
|
|
6540
|
-
const
|
|
6793
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6541
6794
|
transactionBlock: tx,
|
|
6542
6795
|
sender: ZERO_ADDRESS,
|
|
6543
6796
|
});
|
|
6544
|
-
|
|
6797
|
+
|
|
6798
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6799
|
+
insepctRes,
|
|
6800
|
+
);
|
|
6545
6801
|
}
|
|
6546
6802
|
export async function evolution<T0 = any, T1 = any, T2 = any>(
|
|
6547
6803
|
client: SuiClient,
|
|
@@ -6558,14 +6814,17 @@ export namespace single_collateral {
|
|
|
6558
6814
|
TypeDescriptor<T1> | string,
|
|
6559
6815
|
TypeDescriptor<T2> | string,
|
|
6560
6816
|
],
|
|
6561
|
-
) {
|
|
6817
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6562
6818
|
const tx = new TransactionBlock();
|
|
6563
6819
|
builder.evolution(tx, args, typeArguments);
|
|
6564
|
-
const
|
|
6820
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6565
6821
|
transactionBlock: tx,
|
|
6566
6822
|
sender: ZERO_ADDRESS,
|
|
6567
6823
|
});
|
|
6568
|
-
|
|
6824
|
+
|
|
6825
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6826
|
+
insepctRes,
|
|
6827
|
+
);
|
|
6569
6828
|
}
|
|
6570
6829
|
export async function getAuctionMaxSize<T0 = any, T1 = any, T2 = any>(
|
|
6571
6830
|
client: SuiClient,
|
|
@@ -6579,14 +6838,17 @@ export namespace single_collateral {
|
|
|
6579
6838
|
TypeDescriptor<T1> | string,
|
|
6580
6839
|
TypeDescriptor<T2> | string,
|
|
6581
6840
|
],
|
|
6582
|
-
) {
|
|
6841
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
6583
6842
|
const tx = new TransactionBlock();
|
|
6584
6843
|
builder.getAuctionMaxSize(tx, args, typeArguments);
|
|
6585
|
-
const
|
|
6844
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6586
6845
|
transactionBlock: tx,
|
|
6587
6846
|
sender: ZERO_ADDRESS,
|
|
6588
6847
|
});
|
|
6589
|
-
|
|
6848
|
+
|
|
6849
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
6850
|
+
insepctRes,
|
|
6851
|
+
);
|
|
6590
6852
|
}
|
|
6591
6853
|
export async function getMaxLossPerUnit<T0 = any, T1 = any, T2 = any>(
|
|
6592
6854
|
client: SuiClient,
|
|
@@ -6600,14 +6862,17 @@ export namespace single_collateral {
|
|
|
6600
6862
|
TypeDescriptor<T1> | string,
|
|
6601
6863
|
TypeDescriptor<T2> | string,
|
|
6602
6864
|
],
|
|
6603
|
-
) {
|
|
6865
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
6604
6866
|
const tx = new TransactionBlock();
|
|
6605
6867
|
builder.getMaxLossPerUnit(tx, args, typeArguments);
|
|
6606
|
-
const
|
|
6868
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6607
6869
|
transactionBlock: tx,
|
|
6608
6870
|
sender: ZERO_ADDRESS,
|
|
6609
6871
|
});
|
|
6610
|
-
|
|
6872
|
+
|
|
6873
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
6874
|
+
insepctRes,
|
|
6875
|
+
);
|
|
6611
6876
|
}
|
|
6612
6877
|
export async function getUserStatus<T0 = any, T1 = any, T2 = any>(
|
|
6613
6878
|
client: SuiClient,
|
|
@@ -6621,14 +6886,19 @@ export namespace single_collateral {
|
|
|
6621
6886
|
TypeDescriptor<T1> | string,
|
|
6622
6887
|
TypeDescriptor<T2> | string,
|
|
6623
6888
|
],
|
|
6624
|
-
)
|
|
6889
|
+
): Promise<
|
|
6890
|
+
TypedDevInspectResults<[single_collateral.GetUserStatusResult]>
|
|
6891
|
+
> {
|
|
6625
6892
|
const tx = new TransactionBlock();
|
|
6626
6893
|
builder.getUserStatus(tx, args, typeArguments);
|
|
6627
|
-
const
|
|
6894
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6628
6895
|
transactionBlock: tx,
|
|
6629
6896
|
sender: ZERO_ADDRESS,
|
|
6630
6897
|
});
|
|
6631
|
-
|
|
6898
|
+
|
|
6899
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
6900
|
+
[single_collateral.GetUserStatusResult]
|
|
6901
|
+
>(insepctRes);
|
|
6632
6902
|
}
|
|
6633
6903
|
export async function harvest<T0 = any, T1 = any, T2 = any>(
|
|
6634
6904
|
client: SuiClient,
|
|
@@ -6642,14 +6912,17 @@ export namespace single_collateral {
|
|
|
6642
6912
|
TypeDescriptor<T1> | string,
|
|
6643
6913
|
TypeDescriptor<T2> | string,
|
|
6644
6914
|
],
|
|
6645
|
-
) {
|
|
6915
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6646
6916
|
const tx = new TransactionBlock();
|
|
6647
6917
|
builder.harvest(tx, args, typeArguments);
|
|
6648
|
-
const
|
|
6918
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6649
6919
|
transactionBlock: tx,
|
|
6650
6920
|
sender: ZERO_ADDRESS,
|
|
6651
6921
|
});
|
|
6652
|
-
|
|
6922
|
+
|
|
6923
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6924
|
+
insepctRes,
|
|
6925
|
+
);
|
|
6653
6926
|
}
|
|
6654
6927
|
export async function newAuction<T0 = any, T1 = any, T2 = any>(
|
|
6655
6928
|
client: SuiClient,
|
|
@@ -6667,14 +6940,17 @@ export namespace single_collateral {
|
|
|
6667
6940
|
TypeDescriptor<T1> | string,
|
|
6668
6941
|
TypeDescriptor<T2> | string,
|
|
6669
6942
|
],
|
|
6670
|
-
) {
|
|
6943
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6671
6944
|
const tx = new TransactionBlock();
|
|
6672
6945
|
builder.newAuction(tx, args, typeArguments);
|
|
6673
|
-
const
|
|
6946
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6674
6947
|
transactionBlock: tx,
|
|
6675
6948
|
sender: ZERO_ADDRESS,
|
|
6676
6949
|
});
|
|
6677
|
-
|
|
6950
|
+
|
|
6951
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6952
|
+
insepctRes,
|
|
6953
|
+
);
|
|
6678
6954
|
}
|
|
6679
6955
|
export async function newBid<T0 = any, T1 = any, T2 = any>(
|
|
6680
6956
|
client: SuiClient,
|
|
@@ -6692,14 +6968,17 @@ export namespace single_collateral {
|
|
|
6692
6968
|
TypeDescriptor<T1> | string,
|
|
6693
6969
|
TypeDescriptor<T2> | string,
|
|
6694
6970
|
],
|
|
6695
|
-
) {
|
|
6971
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6696
6972
|
const tx = new TransactionBlock();
|
|
6697
6973
|
builder.newBid(tx, args, typeArguments);
|
|
6698
|
-
const
|
|
6974
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6699
6975
|
transactionBlock: tx,
|
|
6700
6976
|
sender: ZERO_ADDRESS,
|
|
6701
6977
|
});
|
|
6702
|
-
|
|
6978
|
+
|
|
6979
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6980
|
+
insepctRes,
|
|
6981
|
+
);
|
|
6703
6982
|
}
|
|
6704
6983
|
export async function newManager(
|
|
6705
6984
|
client: SuiClient,
|
|
@@ -6708,14 +6987,17 @@ export namespace single_collateral {
|
|
|
6708
6987
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
6709
6988
|
string | ObjectCallArg | TransactionArgument,
|
|
6710
6989
|
],
|
|
6711
|
-
) {
|
|
6990
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6712
6991
|
const tx = new TransactionBlock();
|
|
6713
6992
|
builder.newManager(tx, args);
|
|
6714
|
-
const
|
|
6993
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6715
6994
|
transactionBlock: tx,
|
|
6716
6995
|
sender: ZERO_ADDRESS,
|
|
6717
6996
|
});
|
|
6718
|
-
|
|
6997
|
+
|
|
6998
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
6999
|
+
insepctRes,
|
|
7000
|
+
);
|
|
6719
7001
|
}
|
|
6720
7002
|
export async function newPortfolioVault<T0 = any, T1 = any, T2 = any>(
|
|
6721
7003
|
client: SuiClient,
|
|
@@ -6750,14 +7032,17 @@ export namespace single_collateral {
|
|
|
6750
7032
|
TypeDescriptor<T1> | string,
|
|
6751
7033
|
TypeDescriptor<T2> | string,
|
|
6752
7034
|
],
|
|
6753
|
-
) {
|
|
7035
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6754
7036
|
const tx = new TransactionBlock();
|
|
6755
7037
|
builder.newPortfolioVault(tx, args, typeArguments);
|
|
6756
|
-
const
|
|
7038
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6757
7039
|
transactionBlock: tx,
|
|
6758
7040
|
sender: ZERO_ADDRESS,
|
|
6759
7041
|
});
|
|
6760
|
-
|
|
7042
|
+
|
|
7043
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
7044
|
+
insepctRes,
|
|
7045
|
+
);
|
|
6761
7046
|
}
|
|
6762
7047
|
export async function removeAuthorizedUser(
|
|
6763
7048
|
client: SuiClient,
|
|
@@ -6767,14 +7052,17 @@ export namespace single_collateral {
|
|
|
6767
7052
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
6768
7053
|
string | ObjectCallArg | TransactionArgument,
|
|
6769
7054
|
],
|
|
6770
|
-
) {
|
|
7055
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6771
7056
|
const tx = new TransactionBlock();
|
|
6772
7057
|
builder.removeAuthorizedUser(tx, args);
|
|
6773
|
-
const
|
|
7058
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6774
7059
|
transactionBlock: tx,
|
|
6775
7060
|
sender: ZERO_ADDRESS,
|
|
6776
7061
|
});
|
|
6777
|
-
|
|
7062
|
+
|
|
7063
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
7064
|
+
insepctRes,
|
|
7065
|
+
);
|
|
6778
7066
|
}
|
|
6779
7067
|
export async function removeManager(
|
|
6780
7068
|
client: SuiClient,
|
|
@@ -6782,14 +7070,17 @@ export namespace single_collateral {
|
|
|
6782
7070
|
single_collateral.ManagerCap | TransactionArgument,
|
|
6783
7071
|
string | ObjectCallArg | TransactionArgument,
|
|
6784
7072
|
],
|
|
6785
|
-
) {
|
|
7073
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6786
7074
|
const tx = new TransactionBlock();
|
|
6787
7075
|
builder.removeManager(tx, args);
|
|
6788
|
-
const
|
|
7076
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6789
7077
|
transactionBlock: tx,
|
|
6790
7078
|
sender: ZERO_ADDRESS,
|
|
6791
7079
|
});
|
|
6792
|
-
|
|
7080
|
+
|
|
7081
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
7082
|
+
insepctRes,
|
|
7083
|
+
);
|
|
6793
7084
|
}
|
|
6794
7085
|
export async function removePortfolioVaultAuthorizedUser<
|
|
6795
7086
|
T0 = any,
|
|
@@ -6809,14 +7100,17 @@ export namespace single_collateral {
|
|
|
6809
7100
|
TypeDescriptor<T1> | string,
|
|
6810
7101
|
TypeDescriptor<T2> | string,
|
|
6811
7102
|
],
|
|
6812
|
-
) {
|
|
7103
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6813
7104
|
const tx = new TransactionBlock();
|
|
6814
7105
|
builder.removePortfolioVaultAuthorizedUser(tx, args, typeArguments);
|
|
6815
|
-
const
|
|
7106
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6816
7107
|
transactionBlock: tx,
|
|
6817
7108
|
sender: ZERO_ADDRESS,
|
|
6818
7109
|
});
|
|
6819
|
-
|
|
7110
|
+
|
|
7111
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
7112
|
+
insepctRes,
|
|
7113
|
+
);
|
|
6820
7114
|
}
|
|
6821
7115
|
export async function terminateAuction<T0 = any, T1 = any, T2 = any>(
|
|
6822
7116
|
client: SuiClient,
|
|
@@ -6832,14 +7126,17 @@ export namespace single_collateral {
|
|
|
6832
7126
|
TypeDescriptor<T1> | string,
|
|
6833
7127
|
TypeDescriptor<T2> | string,
|
|
6834
7128
|
],
|
|
6835
|
-
) {
|
|
7129
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6836
7130
|
const tx = new TransactionBlock();
|
|
6837
7131
|
builder.terminateAuction(tx, args, typeArguments);
|
|
6838
|
-
const
|
|
7132
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6839
7133
|
transactionBlock: tx,
|
|
6840
7134
|
sender: ZERO_ADDRESS,
|
|
6841
7135
|
});
|
|
6842
|
-
|
|
7136
|
+
|
|
7137
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
7138
|
+
insepctRes,
|
|
7139
|
+
);
|
|
6843
7140
|
}
|
|
6844
7141
|
export async function terminateVault<T0 = any, T1 = any, T2 = any>(
|
|
6845
7142
|
client: SuiClient,
|
|
@@ -6855,14 +7152,17 @@ export namespace single_collateral {
|
|
|
6855
7152
|
TypeDescriptor<T1> | string,
|
|
6856
7153
|
TypeDescriptor<T2> | string,
|
|
6857
7154
|
],
|
|
6858
|
-
) {
|
|
7155
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6859
7156
|
const tx = new TransactionBlock();
|
|
6860
7157
|
builder.terminateVault(tx, args, typeArguments);
|
|
6861
|
-
const
|
|
7158
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6862
7159
|
transactionBlock: tx,
|
|
6863
7160
|
sender: ZERO_ADDRESS,
|
|
6864
7161
|
});
|
|
6865
|
-
|
|
7162
|
+
|
|
7163
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
7164
|
+
insepctRes,
|
|
7165
|
+
);
|
|
6866
7166
|
}
|
|
6867
7167
|
export async function unsubscribe<T0 = any, T1 = any, T2 = any>(
|
|
6868
7168
|
client: SuiClient,
|
|
@@ -6877,14 +7177,17 @@ export namespace single_collateral {
|
|
|
6877
7177
|
TypeDescriptor<T1> | string,
|
|
6878
7178
|
TypeDescriptor<T2> | string,
|
|
6879
7179
|
],
|
|
6880
|
-
) {
|
|
7180
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6881
7181
|
const tx = new TransactionBlock();
|
|
6882
7182
|
builder.unsubscribe(tx, args, typeArguments);
|
|
6883
|
-
const
|
|
7183
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6884
7184
|
transactionBlock: tx,
|
|
6885
7185
|
sender: ZERO_ADDRESS,
|
|
6886
7186
|
});
|
|
6887
|
-
|
|
7187
|
+
|
|
7188
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
7189
|
+
insepctRes,
|
|
7190
|
+
);
|
|
6888
7191
|
}
|
|
6889
7192
|
export async function updateActiveVaultConfig<T0 = any, T1 = any, T2 = any>(
|
|
6890
7193
|
client: SuiClient,
|
|
@@ -6904,14 +7207,17 @@ export namespace single_collateral {
|
|
|
6904
7207
|
TypeDescriptor<T1> | string,
|
|
6905
7208
|
TypeDescriptor<T2> | string,
|
|
6906
7209
|
],
|
|
6907
|
-
) {
|
|
7210
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6908
7211
|
const tx = new TransactionBlock();
|
|
6909
7212
|
builder.updateActiveVaultConfig(tx, args, typeArguments);
|
|
6910
|
-
const
|
|
7213
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6911
7214
|
transactionBlock: tx,
|
|
6912
7215
|
sender: ZERO_ADDRESS,
|
|
6913
7216
|
});
|
|
6914
|
-
|
|
7217
|
+
|
|
7218
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
7219
|
+
insepctRes,
|
|
7220
|
+
);
|
|
6915
7221
|
}
|
|
6916
7222
|
export async function updateCapacity<T0 = any, T1 = any, T2 = any>(
|
|
6917
7223
|
client: SuiClient,
|
|
@@ -6927,14 +7233,17 @@ export namespace single_collateral {
|
|
|
6927
7233
|
TypeDescriptor<T1> | string,
|
|
6928
7234
|
TypeDescriptor<T2> | string,
|
|
6929
7235
|
],
|
|
6930
|
-
) {
|
|
7236
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6931
7237
|
const tx = new TransactionBlock();
|
|
6932
7238
|
builder.updateCapacity(tx, args, typeArguments);
|
|
6933
|
-
const
|
|
7239
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6934
7240
|
transactionBlock: tx,
|
|
6935
7241
|
sender: ZERO_ADDRESS,
|
|
6936
7242
|
});
|
|
6937
|
-
|
|
7243
|
+
|
|
7244
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
7245
|
+
insepctRes,
|
|
7246
|
+
);
|
|
6938
7247
|
}
|
|
6939
7248
|
export async function updateRestrictActivationTimePeriod(
|
|
6940
7249
|
client: SuiClient,
|
|
@@ -6945,14 +7254,17 @@ export namespace single_collateral {
|
|
|
6945
7254
|
bigint | TransactionArgument,
|
|
6946
7255
|
string | ObjectCallArg | TransactionArgument,
|
|
6947
7256
|
],
|
|
6948
|
-
) {
|
|
7257
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6949
7258
|
const tx = new TransactionBlock();
|
|
6950
7259
|
builder.updateRestrictActivationTimePeriod(tx, args);
|
|
6951
|
-
const
|
|
7260
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6952
7261
|
transactionBlock: tx,
|
|
6953
7262
|
sender: ZERO_ADDRESS,
|
|
6954
7263
|
});
|
|
6955
|
-
|
|
7264
|
+
|
|
7265
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
7266
|
+
insepctRes,
|
|
7267
|
+
);
|
|
6956
7268
|
}
|
|
6957
7269
|
export async function updateUpcomingVaultConfig<
|
|
6958
7270
|
T0 = any,
|
|
@@ -6979,14 +7291,17 @@ export namespace single_collateral {
|
|
|
6979
7291
|
TypeDescriptor<T1> | string,
|
|
6980
7292
|
TypeDescriptor<T2> | string,
|
|
6981
7293
|
],
|
|
6982
|
-
) {
|
|
7294
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
6983
7295
|
const tx = new TransactionBlock();
|
|
6984
7296
|
builder.updateUpcomingVaultConfig(tx, args, typeArguments);
|
|
6985
|
-
const
|
|
7297
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
6986
7298
|
transactionBlock: tx,
|
|
6987
7299
|
sender: ZERO_ADDRESS,
|
|
6988
7300
|
});
|
|
6989
|
-
|
|
7301
|
+
|
|
7302
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
7303
|
+
insepctRes,
|
|
7304
|
+
);
|
|
6990
7305
|
}
|
|
6991
7306
|
export async function updateWarmupVaultConfig<T0 = any, T1 = any, T2 = any>(
|
|
6992
7307
|
client: SuiClient,
|
|
@@ -7006,14 +7321,17 @@ export namespace single_collateral {
|
|
|
7006
7321
|
TypeDescriptor<T1> | string,
|
|
7007
7322
|
TypeDescriptor<T2> | string,
|
|
7008
7323
|
],
|
|
7009
|
-
) {
|
|
7324
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
7010
7325
|
const tx = new TransactionBlock();
|
|
7011
7326
|
builder.updateWarmupVaultConfig(tx, args, typeArguments);
|
|
7012
|
-
const
|
|
7327
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
7013
7328
|
transactionBlock: tx,
|
|
7014
7329
|
sender: ZERO_ADDRESS,
|
|
7015
7330
|
});
|
|
7016
|
-
|
|
7331
|
+
|
|
7332
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
7333
|
+
insepctRes,
|
|
7334
|
+
);
|
|
7017
7335
|
}
|
|
7018
7336
|
export async function withdraw<T0 = any, T1 = any, T2 = any>(
|
|
7019
7337
|
client: SuiClient,
|
|
@@ -7028,14 +7346,17 @@ export namespace single_collateral {
|
|
|
7028
7346
|
TypeDescriptor<T1> | string,
|
|
7029
7347
|
TypeDescriptor<T2> | string,
|
|
7030
7348
|
],
|
|
7031
|
-
) {
|
|
7349
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
7032
7350
|
const tx = new TransactionBlock();
|
|
7033
7351
|
builder.withdraw(tx, args, typeArguments);
|
|
7034
|
-
const
|
|
7352
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
7035
7353
|
transactionBlock: tx,
|
|
7036
7354
|
sender: ZERO_ADDRESS,
|
|
7037
7355
|
});
|
|
7038
|
-
|
|
7356
|
+
|
|
7357
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
7358
|
+
insepctRes,
|
|
7359
|
+
);
|
|
7039
7360
|
}
|
|
7040
7361
|
}
|
|
7041
7362
|
}
|
|
@@ -7138,51 +7459,63 @@ export namespace utils {
|
|
|
7138
7459
|
string | ObjectCallArg | TransactionArgument,
|
|
7139
7460
|
],
|
|
7140
7461
|
typeArguments: [TypeDescriptor<T0> | string],
|
|
7141
|
-
) {
|
|
7462
|
+
): Promise<TypedDevInspectResults<[_0x2.balance.Balance<T0>]>> {
|
|
7142
7463
|
const tx = new TransactionBlock();
|
|
7143
7464
|
builder.extractBalance(tx, args, typeArguments);
|
|
7144
|
-
const
|
|
7465
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
7145
7466
|
transactionBlock: tx,
|
|
7146
7467
|
sender: ZERO_ADDRESS,
|
|
7147
7468
|
});
|
|
7148
|
-
|
|
7469
|
+
|
|
7470
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
7471
|
+
[_0x2.balance.Balance<T0>]
|
|
7472
|
+
>(insepctRes);
|
|
7149
7473
|
}
|
|
7150
7474
|
export async function getDateFromTs(
|
|
7151
7475
|
client: SuiClient,
|
|
7152
7476
|
args: [bigint | TransactionArgument],
|
|
7153
|
-
) {
|
|
7477
|
+
): Promise<TypedDevInspectResults<[bigint, bigint, bigint]>> {
|
|
7154
7478
|
const tx = new TransactionBlock();
|
|
7155
7479
|
builder.getDateFromTs(tx, args);
|
|
7156
|
-
const
|
|
7480
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
7157
7481
|
transactionBlock: tx,
|
|
7158
7482
|
sender: ZERO_ADDRESS,
|
|
7159
7483
|
});
|
|
7160
|
-
|
|
7484
|
+
|
|
7485
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
7486
|
+
[bigint, bigint, bigint]
|
|
7487
|
+
>(insepctRes);
|
|
7161
7488
|
}
|
|
7162
7489
|
export async function matchTypes<T0 = any, T1 = any>(
|
|
7163
7490
|
client: SuiClient,
|
|
7164
7491
|
args: [],
|
|
7165
7492
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
7166
|
-
) {
|
|
7493
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
7167
7494
|
const tx = new TransactionBlock();
|
|
7168
7495
|
builder.matchTypes(tx, args, typeArguments);
|
|
7169
|
-
const
|
|
7496
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
7170
7497
|
transactionBlock: tx,
|
|
7171
7498
|
sender: ZERO_ADDRESS,
|
|
7172
7499
|
});
|
|
7173
|
-
|
|
7500
|
+
|
|
7501
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
7502
|
+
insepctRes,
|
|
7503
|
+
);
|
|
7174
7504
|
}
|
|
7175
7505
|
export async function multiplier(
|
|
7176
7506
|
client: SuiClient,
|
|
7177
7507
|
args: [bigint | TransactionArgument],
|
|
7178
|
-
) {
|
|
7508
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
7179
7509
|
const tx = new TransactionBlock();
|
|
7180
7510
|
builder.multiplier(tx, args);
|
|
7181
|
-
const
|
|
7511
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
7182
7512
|
transactionBlock: tx,
|
|
7183
7513
|
sender: ZERO_ADDRESS,
|
|
7184
7514
|
});
|
|
7185
|
-
|
|
7515
|
+
|
|
7516
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
7517
|
+
insepctRes,
|
|
7518
|
+
);
|
|
7186
7519
|
}
|
|
7187
7520
|
}
|
|
7188
7521
|
}
|
|
@@ -9613,92 +9946,113 @@ export namespace vault {
|
|
|
9613
9946
|
string | ObjectCallArg | TransactionArgument,
|
|
9614
9947
|
],
|
|
9615
9948
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9616
|
-
) {
|
|
9949
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
9617
9950
|
const tx = new TransactionBlock();
|
|
9618
9951
|
builder.activate(tx, args, typeArguments);
|
|
9619
|
-
const
|
|
9952
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9620
9953
|
transactionBlock: tx,
|
|
9621
9954
|
sender: ZERO_ADDRESS,
|
|
9622
9955
|
});
|
|
9623
|
-
|
|
9956
|
+
|
|
9957
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
9958
|
+
insepctRes,
|
|
9959
|
+
);
|
|
9624
9960
|
}
|
|
9625
9961
|
export async function activeBalance<T0 = any, T1 = any>(
|
|
9626
9962
|
client: SuiClient,
|
|
9627
9963
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
9628
9964
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9629
|
-
) {
|
|
9965
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
9630
9966
|
const tx = new TransactionBlock();
|
|
9631
9967
|
builder.activeBalance(tx, args, typeArguments);
|
|
9632
|
-
const
|
|
9968
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9633
9969
|
transactionBlock: tx,
|
|
9634
9970
|
sender: ZERO_ADDRESS,
|
|
9635
9971
|
});
|
|
9636
|
-
|
|
9972
|
+
|
|
9973
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
9974
|
+
insepctRes,
|
|
9975
|
+
);
|
|
9637
9976
|
}
|
|
9638
9977
|
export async function activeShareSupply<T0 = any, T1 = any>(
|
|
9639
9978
|
client: SuiClient,
|
|
9640
9979
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
9641
9980
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9642
|
-
) {
|
|
9981
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
9643
9982
|
const tx = new TransactionBlock();
|
|
9644
9983
|
builder.activeShareSupply(tx, args, typeArguments);
|
|
9645
|
-
const
|
|
9984
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9646
9985
|
transactionBlock: tx,
|
|
9647
9986
|
sender: ZERO_ADDRESS,
|
|
9648
9987
|
});
|
|
9649
|
-
|
|
9988
|
+
|
|
9989
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
9990
|
+
insepctRes,
|
|
9991
|
+
);
|
|
9650
9992
|
}
|
|
9651
9993
|
export async function activeUserShares<T0 = any, T1 = any>(
|
|
9652
9994
|
client: SuiClient,
|
|
9653
9995
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
9654
9996
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9655
|
-
) {
|
|
9997
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
9656
9998
|
const tx = new TransactionBlock();
|
|
9657
9999
|
builder.activeUserShares(tx, args, typeArguments);
|
|
9658
|
-
const
|
|
10000
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9659
10001
|
transactionBlock: tx,
|
|
9660
10002
|
sender: ZERO_ADDRESS,
|
|
9661
10003
|
});
|
|
9662
|
-
|
|
10004
|
+
|
|
10005
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
10006
|
+
insepctRes,
|
|
10007
|
+
);
|
|
9663
10008
|
}
|
|
9664
10009
|
export async function bidderBalance<T0 = any, T1 = any>(
|
|
9665
10010
|
client: SuiClient,
|
|
9666
10011
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
9667
10012
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9668
|
-
) {
|
|
10013
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
9669
10014
|
const tx = new TransactionBlock();
|
|
9670
10015
|
builder.bidderBalance(tx, args, typeArguments);
|
|
9671
|
-
const
|
|
10016
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9672
10017
|
transactionBlock: tx,
|
|
9673
10018
|
sender: ZERO_ADDRESS,
|
|
9674
10019
|
});
|
|
9675
|
-
|
|
10020
|
+
|
|
10021
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10022
|
+
insepctRes,
|
|
10023
|
+
);
|
|
9676
10024
|
}
|
|
9677
10025
|
export async function bidderShareSupply<T0 = any, T1 = any>(
|
|
9678
10026
|
client: SuiClient,
|
|
9679
10027
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
9680
10028
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9681
|
-
) {
|
|
10029
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
9682
10030
|
const tx = new TransactionBlock();
|
|
9683
10031
|
builder.bidderShareSupply(tx, args, typeArguments);
|
|
9684
|
-
const
|
|
10032
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9685
10033
|
transactionBlock: tx,
|
|
9686
10034
|
sender: ZERO_ADDRESS,
|
|
9687
10035
|
});
|
|
9688
|
-
|
|
10036
|
+
|
|
10037
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10038
|
+
insepctRes,
|
|
10039
|
+
);
|
|
9689
10040
|
}
|
|
9690
10041
|
export async function bidderShares<T0 = any, T1 = any>(
|
|
9691
10042
|
client: SuiClient,
|
|
9692
10043
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
9693
10044
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9694
|
-
) {
|
|
10045
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
9695
10046
|
const tx = new TransactionBlock();
|
|
9696
10047
|
builder.bidderShares(tx, args, typeArguments);
|
|
9697
|
-
const
|
|
10048
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9698
10049
|
transactionBlock: tx,
|
|
9699
10050
|
sender: ZERO_ADDRESS,
|
|
9700
10051
|
});
|
|
9701
|
-
|
|
10052
|
+
|
|
10053
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
10054
|
+
insepctRes,
|
|
10055
|
+
);
|
|
9702
10056
|
}
|
|
9703
10057
|
export async function claim<T0 = any, T1 = any>(
|
|
9704
10058
|
client: SuiClient,
|
|
@@ -9708,14 +10062,17 @@ export namespace vault {
|
|
|
9708
10062
|
string | ObjectCallArg | TransactionArgument,
|
|
9709
10063
|
],
|
|
9710
10064
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9711
|
-
) {
|
|
10065
|
+
): Promise<TypedDevInspectResults<[bigint, bigint]>> {
|
|
9712
10066
|
const tx = new TransactionBlock();
|
|
9713
10067
|
builder.claim(tx, args, typeArguments);
|
|
9714
|
-
const
|
|
10068
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9715
10069
|
transactionBlock: tx,
|
|
9716
10070
|
sender: ZERO_ADDRESS,
|
|
9717
10071
|
});
|
|
9718
|
-
|
|
10072
|
+
|
|
10073
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
10074
|
+
[bigint, bigint]
|
|
10075
|
+
>(insepctRes);
|
|
9719
10076
|
}
|
|
9720
10077
|
export async function closeBidVault<T0 = any, T1 = any>(
|
|
9721
10078
|
client: SuiClient,
|
|
@@ -9726,14 +10083,29 @@ export namespace vault {
|
|
|
9726
10083
|
string | ObjectCallArg | TransactionArgument,
|
|
9727
10084
|
],
|
|
9728
10085
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9729
|
-
)
|
|
10086
|
+
): Promise<
|
|
10087
|
+
TypedDevInspectResults<
|
|
10088
|
+
[
|
|
10089
|
+
_0x2.vec_map.VecMap<string, bigint>,
|
|
10090
|
+
_0x2.vec_map.VecMap<string, bigint>,
|
|
10091
|
+
_0x2.vec_map.VecMap<string, bigint>,
|
|
10092
|
+
]
|
|
10093
|
+
>
|
|
10094
|
+
> {
|
|
9730
10095
|
const tx = new TransactionBlock();
|
|
9731
10096
|
builder.closeBidVault(tx, args, typeArguments);
|
|
9732
|
-
const
|
|
10097
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9733
10098
|
transactionBlock: tx,
|
|
9734
10099
|
sender: ZERO_ADDRESS,
|
|
9735
10100
|
});
|
|
9736
|
-
|
|
10101
|
+
|
|
10102
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
10103
|
+
[
|
|
10104
|
+
_0x2.vec_map.VecMap<string, bigint>,
|
|
10105
|
+
_0x2.vec_map.VecMap<string, bigint>,
|
|
10106
|
+
_0x2.vec_map.VecMap<string, bigint>,
|
|
10107
|
+
]
|
|
10108
|
+
>(insepctRes);
|
|
9737
10109
|
}
|
|
9738
10110
|
export async function closeDepositVault<T0 = any, T1 = any>(
|
|
9739
10111
|
client: SuiClient,
|
|
@@ -9744,14 +10116,31 @@ export namespace vault {
|
|
|
9744
10116
|
string | ObjectCallArg | TransactionArgument,
|
|
9745
10117
|
],
|
|
9746
10118
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9747
|
-
)
|
|
10119
|
+
): Promise<
|
|
10120
|
+
TypedDevInspectResults<
|
|
10121
|
+
[
|
|
10122
|
+
_0x2.vec_map.VecMap<string, bigint>,
|
|
10123
|
+
_0x2.vec_map.VecMap<string, bigint>,
|
|
10124
|
+
_0x2.vec_map.VecMap<string, bigint>,
|
|
10125
|
+
_0x2.vec_map.VecMap<string, bigint>,
|
|
10126
|
+
]
|
|
10127
|
+
>
|
|
10128
|
+
> {
|
|
9748
10129
|
const tx = new TransactionBlock();
|
|
9749
10130
|
builder.closeDepositVault(tx, args, typeArguments);
|
|
9750
|
-
const
|
|
10131
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9751
10132
|
transactionBlock: tx,
|
|
9752
10133
|
sender: ZERO_ADDRESS,
|
|
9753
10134
|
});
|
|
9754
|
-
|
|
10135
|
+
|
|
10136
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
10137
|
+
[
|
|
10138
|
+
_0x2.vec_map.VecMap<string, bigint>,
|
|
10139
|
+
_0x2.vec_map.VecMap<string, bigint>,
|
|
10140
|
+
_0x2.vec_map.VecMap<string, bigint>,
|
|
10141
|
+
_0x2.vec_map.VecMap<string, bigint>,
|
|
10142
|
+
]
|
|
10143
|
+
>(insepctRes);
|
|
9755
10144
|
}
|
|
9756
10145
|
export async function compound<T0 = any, T1 = any>(
|
|
9757
10146
|
client: SuiClient,
|
|
@@ -9762,53 +10151,65 @@ export namespace vault {
|
|
|
9762
10151
|
string | ObjectCallArg | TransactionArgument,
|
|
9763
10152
|
],
|
|
9764
10153
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9765
|
-
) {
|
|
10154
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
9766
10155
|
const tx = new TransactionBlock();
|
|
9767
10156
|
builder.compound(tx, args, typeArguments);
|
|
9768
|
-
const
|
|
10157
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9769
10158
|
transactionBlock: tx,
|
|
9770
10159
|
sender: ZERO_ADDRESS,
|
|
9771
10160
|
});
|
|
9772
|
-
|
|
10161
|
+
|
|
10162
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10163
|
+
insepctRes,
|
|
10164
|
+
);
|
|
9773
10165
|
}
|
|
9774
10166
|
export async function deactivatingBalance<T0 = any, T1 = any>(
|
|
9775
10167
|
client: SuiClient,
|
|
9776
10168
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
9777
10169
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9778
|
-
) {
|
|
10170
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
9779
10171
|
const tx = new TransactionBlock();
|
|
9780
10172
|
builder.deactivatingBalance(tx, args, typeArguments);
|
|
9781
|
-
const
|
|
10173
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9782
10174
|
transactionBlock: tx,
|
|
9783
10175
|
sender: ZERO_ADDRESS,
|
|
9784
10176
|
});
|
|
9785
|
-
|
|
10177
|
+
|
|
10178
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10179
|
+
insepctRes,
|
|
10180
|
+
);
|
|
9786
10181
|
}
|
|
9787
10182
|
export async function deactivatingShareSupply<T0 = any, T1 = any>(
|
|
9788
10183
|
client: SuiClient,
|
|
9789
10184
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
9790
10185
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9791
|
-
) {
|
|
10186
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
9792
10187
|
const tx = new TransactionBlock();
|
|
9793
10188
|
builder.deactivatingShareSupply(tx, args, typeArguments);
|
|
9794
|
-
const
|
|
10189
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9795
10190
|
transactionBlock: tx,
|
|
9796
10191
|
sender: ZERO_ADDRESS,
|
|
9797
10192
|
});
|
|
9798
|
-
|
|
10193
|
+
|
|
10194
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10195
|
+
insepctRes,
|
|
10196
|
+
);
|
|
9799
10197
|
}
|
|
9800
10198
|
export async function deactivatingUserShares<T0 = any, T1 = any>(
|
|
9801
10199
|
client: SuiClient,
|
|
9802
10200
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
9803
10201
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9804
|
-
) {
|
|
10202
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
9805
10203
|
const tx = new TransactionBlock();
|
|
9806
10204
|
builder.deactivatingUserShares(tx, args, typeArguments);
|
|
9807
|
-
const
|
|
10205
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9808
10206
|
transactionBlock: tx,
|
|
9809
10207
|
sender: ZERO_ADDRESS,
|
|
9810
10208
|
});
|
|
9811
|
-
|
|
10209
|
+
|
|
10210
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
10211
|
+
insepctRes,
|
|
10212
|
+
);
|
|
9812
10213
|
}
|
|
9813
10214
|
export async function delivery<T0 = any, T1 = any, T2 = any>(
|
|
9814
10215
|
client: SuiClient,
|
|
@@ -9827,14 +10228,17 @@ export namespace vault {
|
|
|
9827
10228
|
TypeDescriptor<T1> | string,
|
|
9828
10229
|
TypeDescriptor<T2> | string,
|
|
9829
10230
|
],
|
|
9830
|
-
) {
|
|
10231
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
9831
10232
|
const tx = new TransactionBlock();
|
|
9832
10233
|
builder.delivery(tx, args, typeArguments);
|
|
9833
|
-
const
|
|
10234
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9834
10235
|
transactionBlock: tx,
|
|
9835
10236
|
sender: ZERO_ADDRESS,
|
|
9836
10237
|
});
|
|
9837
|
-
|
|
10238
|
+
|
|
10239
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
10240
|
+
insepctRes,
|
|
10241
|
+
);
|
|
9838
10242
|
}
|
|
9839
10243
|
export async function deliveryMultiple<
|
|
9840
10244
|
T0 = any,
|
|
@@ -9860,14 +10264,17 @@ export namespace vault {
|
|
|
9860
10264
|
TypeDescriptor<T2> | string,
|
|
9861
10265
|
TypeDescriptor<T3> | string,
|
|
9862
10266
|
],
|
|
9863
|
-
) {
|
|
10267
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
9864
10268
|
const tx = new TransactionBlock();
|
|
9865
10269
|
builder.deliveryMultiple(tx, args, typeArguments);
|
|
9866
|
-
const
|
|
10270
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9867
10271
|
transactionBlock: tx,
|
|
9868
10272
|
sender: ZERO_ADDRESS,
|
|
9869
10273
|
});
|
|
9870
|
-
|
|
10274
|
+
|
|
10275
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
10276
|
+
insepctRes,
|
|
10277
|
+
);
|
|
9871
10278
|
}
|
|
9872
10279
|
export async function deposit<T0 = any, T1 = any>(
|
|
9873
10280
|
client: SuiClient,
|
|
@@ -9880,14 +10287,17 @@ export namespace vault {
|
|
|
9880
10287
|
string | ObjectCallArg | TransactionArgument,
|
|
9881
10288
|
],
|
|
9882
10289
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9883
|
-
) {
|
|
10290
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
9884
10291
|
const tx = new TransactionBlock();
|
|
9885
10292
|
builder.deposit(tx, args, typeArguments);
|
|
9886
|
-
const
|
|
10293
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9887
10294
|
transactionBlock: tx,
|
|
9888
10295
|
sender: ZERO_ADDRESS,
|
|
9889
10296
|
});
|
|
9890
|
-
|
|
10297
|
+
|
|
10298
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10299
|
+
insepctRes,
|
|
10300
|
+
);
|
|
9891
10301
|
}
|
|
9892
10302
|
export async function getActiveUserShare<T0 = any, T1 = any>(
|
|
9893
10303
|
client: SuiClient,
|
|
@@ -9897,40 +10307,49 @@ export namespace vault {
|
|
|
9897
10307
|
string | TransactionArgument,
|
|
9898
10308
|
],
|
|
9899
10309
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9900
|
-
) {
|
|
10310
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
9901
10311
|
const tx = new TransactionBlock();
|
|
9902
10312
|
builder.getActiveUserShare(tx, args, typeArguments);
|
|
9903
|
-
const
|
|
10313
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9904
10314
|
transactionBlock: tx,
|
|
9905
10315
|
sender: ZERO_ADDRESS,
|
|
9906
10316
|
});
|
|
9907
|
-
|
|
10317
|
+
|
|
10318
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10319
|
+
insepctRes,
|
|
10320
|
+
);
|
|
9908
10321
|
}
|
|
9909
10322
|
export async function getBidVaultBalance<T0 = any, T1 = any>(
|
|
9910
10323
|
client: SuiClient,
|
|
9911
10324
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
9912
10325
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9913
|
-
) {
|
|
10326
|
+
): Promise<TypedDevInspectResults<[bigint, bigint]>> {
|
|
9914
10327
|
const tx = new TransactionBlock();
|
|
9915
10328
|
builder.getBidVaultBalance(tx, args, typeArguments);
|
|
9916
|
-
const
|
|
10329
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9917
10330
|
transactionBlock: tx,
|
|
9918
10331
|
sender: ZERO_ADDRESS,
|
|
9919
10332
|
});
|
|
9920
|
-
|
|
10333
|
+
|
|
10334
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
10335
|
+
[bigint, bigint]
|
|
10336
|
+
>(insepctRes);
|
|
9921
10337
|
}
|
|
9922
10338
|
export async function getBidVaultShareSupply<T0 = any, T1 = any>(
|
|
9923
10339
|
client: SuiClient,
|
|
9924
10340
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
9925
10341
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9926
|
-
) {
|
|
10342
|
+
): Promise<TypedDevInspectResults<[bigint, bigint]>> {
|
|
9927
10343
|
const tx = new TransactionBlock();
|
|
9928
10344
|
builder.getBidVaultShareSupply(tx, args, typeArguments);
|
|
9929
|
-
const
|
|
10345
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9930
10346
|
transactionBlock: tx,
|
|
9931
10347
|
sender: ZERO_ADDRESS,
|
|
9932
10348
|
});
|
|
9933
|
-
|
|
10349
|
+
|
|
10350
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
10351
|
+
[bigint, bigint]
|
|
10352
|
+
>(insepctRes);
|
|
9934
10353
|
}
|
|
9935
10354
|
export async function getBidderUserShare<T0 = any, T1 = any>(
|
|
9936
10355
|
client: SuiClient,
|
|
@@ -9940,14 +10359,17 @@ export namespace vault {
|
|
|
9940
10359
|
string | TransactionArgument,
|
|
9941
10360
|
],
|
|
9942
10361
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9943
|
-
) {
|
|
10362
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
9944
10363
|
const tx = new TransactionBlock();
|
|
9945
10364
|
builder.getBidderUserShare(tx, args, typeArguments);
|
|
9946
|
-
const
|
|
10365
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9947
10366
|
transactionBlock: tx,
|
|
9948
10367
|
sender: ZERO_ADDRESS,
|
|
9949
10368
|
});
|
|
9950
|
-
|
|
10369
|
+
|
|
10370
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10371
|
+
insepctRes,
|
|
10372
|
+
);
|
|
9951
10373
|
}
|
|
9952
10374
|
export async function getDeactivatingUserShare<T0 = any, T1 = any>(
|
|
9953
10375
|
client: SuiClient,
|
|
@@ -9957,40 +10379,49 @@ export namespace vault {
|
|
|
9957
10379
|
string | TransactionArgument,
|
|
9958
10380
|
],
|
|
9959
10381
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9960
|
-
) {
|
|
10382
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
9961
10383
|
const tx = new TransactionBlock();
|
|
9962
10384
|
builder.getDeactivatingUserShare(tx, args, typeArguments);
|
|
9963
|
-
const
|
|
10385
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9964
10386
|
transactionBlock: tx,
|
|
9965
10387
|
sender: ZERO_ADDRESS,
|
|
9966
10388
|
});
|
|
9967
|
-
|
|
10389
|
+
|
|
10390
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10391
|
+
insepctRes,
|
|
10392
|
+
);
|
|
9968
10393
|
}
|
|
9969
10394
|
export async function getDepositVaultBalance<T0 = any, T1 = any>(
|
|
9970
10395
|
client: SuiClient,
|
|
9971
10396
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
9972
10397
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9973
|
-
) {
|
|
10398
|
+
): Promise<TypedDevInspectResults<[bigint, bigint, bigint, bigint]>> {
|
|
9974
10399
|
const tx = new TransactionBlock();
|
|
9975
10400
|
builder.getDepositVaultBalance(tx, args, typeArguments);
|
|
9976
|
-
const
|
|
10401
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9977
10402
|
transactionBlock: tx,
|
|
9978
10403
|
sender: ZERO_ADDRESS,
|
|
9979
10404
|
});
|
|
9980
|
-
|
|
10405
|
+
|
|
10406
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
10407
|
+
[bigint, bigint, bigint, bigint]
|
|
10408
|
+
>(insepctRes);
|
|
9981
10409
|
}
|
|
9982
10410
|
export async function getDepositVaultShareSupply<T0 = any, T1 = any>(
|
|
9983
10411
|
client: SuiClient,
|
|
9984
10412
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
9985
10413
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
9986
|
-
) {
|
|
10414
|
+
): Promise<TypedDevInspectResults<[bigint, bigint, bigint, bigint]>> {
|
|
9987
10415
|
const tx = new TransactionBlock();
|
|
9988
10416
|
builder.getDepositVaultShareSupply(tx, args, typeArguments);
|
|
9989
|
-
const
|
|
10417
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
9990
10418
|
transactionBlock: tx,
|
|
9991
10419
|
sender: ZERO_ADDRESS,
|
|
9992
10420
|
});
|
|
9993
|
-
|
|
10421
|
+
|
|
10422
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
10423
|
+
[bigint, bigint, bigint, bigint]
|
|
10424
|
+
>(insepctRes);
|
|
9994
10425
|
}
|
|
9995
10426
|
export async function getInactiveUserShare<T0 = any, T1 = any>(
|
|
9996
10427
|
client: SuiClient,
|
|
@@ -10000,14 +10431,17 @@ export namespace vault {
|
|
|
10000
10431
|
string | TransactionArgument,
|
|
10001
10432
|
],
|
|
10002
10433
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10003
|
-
) {
|
|
10434
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
10004
10435
|
const tx = new TransactionBlock();
|
|
10005
10436
|
builder.getInactiveUserShare(tx, args, typeArguments);
|
|
10006
|
-
const
|
|
10437
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10007
10438
|
transactionBlock: tx,
|
|
10008
10439
|
sender: ZERO_ADDRESS,
|
|
10009
10440
|
});
|
|
10010
|
-
|
|
10441
|
+
|
|
10442
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10443
|
+
insepctRes,
|
|
10444
|
+
);
|
|
10011
10445
|
}
|
|
10012
10446
|
export async function getPerformanceFeeUserShare<T0 = any, T1 = any>(
|
|
10013
10447
|
client: SuiClient,
|
|
@@ -10017,14 +10451,17 @@ export namespace vault {
|
|
|
10017
10451
|
string | TransactionArgument,
|
|
10018
10452
|
],
|
|
10019
10453
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10020
|
-
) {
|
|
10454
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
10021
10455
|
const tx = new TransactionBlock();
|
|
10022
10456
|
builder.getPerformanceFeeUserShare(tx, args, typeArguments);
|
|
10023
|
-
const
|
|
10457
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10024
10458
|
transactionBlock: tx,
|
|
10025
10459
|
sender: ZERO_ADDRESS,
|
|
10026
10460
|
});
|
|
10027
|
-
|
|
10461
|
+
|
|
10462
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10463
|
+
insepctRes,
|
|
10464
|
+
);
|
|
10028
10465
|
}
|
|
10029
10466
|
export async function getPremiumUserShare<T0 = any, T1 = any>(
|
|
10030
10467
|
client: SuiClient,
|
|
@@ -10034,14 +10471,17 @@ export namespace vault {
|
|
|
10034
10471
|
string | TransactionArgument,
|
|
10035
10472
|
],
|
|
10036
10473
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10037
|
-
) {
|
|
10474
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
10038
10475
|
const tx = new TransactionBlock();
|
|
10039
10476
|
builder.getPremiumUserShare(tx, args, typeArguments);
|
|
10040
|
-
const
|
|
10477
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10041
10478
|
transactionBlock: tx,
|
|
10042
10479
|
sender: ZERO_ADDRESS,
|
|
10043
10480
|
});
|
|
10044
|
-
|
|
10481
|
+
|
|
10482
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10483
|
+
insepctRes,
|
|
10484
|
+
);
|
|
10045
10485
|
}
|
|
10046
10486
|
export async function getWarmupUserShare<T0 = any, T1 = any>(
|
|
10047
10487
|
client: SuiClient,
|
|
@@ -10051,14 +10491,17 @@ export namespace vault {
|
|
|
10051
10491
|
string | TransactionArgument,
|
|
10052
10492
|
],
|
|
10053
10493
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10054
|
-
) {
|
|
10494
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
10055
10495
|
const tx = new TransactionBlock();
|
|
10056
10496
|
builder.getWarmupUserShare(tx, args, typeArguments);
|
|
10057
|
-
const
|
|
10497
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10058
10498
|
transactionBlock: tx,
|
|
10059
10499
|
sender: ZERO_ADDRESS,
|
|
10060
10500
|
});
|
|
10061
|
-
|
|
10501
|
+
|
|
10502
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10503
|
+
insepctRes,
|
|
10504
|
+
);
|
|
10062
10505
|
}
|
|
10063
10506
|
export async function harvest<T0 = any, T1 = any>(
|
|
10064
10507
|
client: SuiClient,
|
|
@@ -10068,66 +10511,81 @@ export namespace vault {
|
|
|
10068
10511
|
string | ObjectCallArg | TransactionArgument,
|
|
10069
10512
|
],
|
|
10070
10513
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10071
|
-
) {
|
|
10514
|
+
): Promise<TypedDevInspectResults<[bigint, bigint]>> {
|
|
10072
10515
|
const tx = new TransactionBlock();
|
|
10073
10516
|
builder.harvest(tx, args, typeArguments);
|
|
10074
|
-
const
|
|
10517
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10075
10518
|
transactionBlock: tx,
|
|
10076
10519
|
sender: ZERO_ADDRESS,
|
|
10077
10520
|
});
|
|
10078
|
-
|
|
10521
|
+
|
|
10522
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
10523
|
+
[bigint, bigint]
|
|
10524
|
+
>(insepctRes);
|
|
10079
10525
|
}
|
|
10080
10526
|
export async function hasNext<T0 = any, T1 = any>(
|
|
10081
10527
|
client: SuiClient,
|
|
10082
10528
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
10083
10529
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10084
|
-
) {
|
|
10530
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
10085
10531
|
const tx = new TransactionBlock();
|
|
10086
10532
|
builder.hasNext(tx, args, typeArguments);
|
|
10087
|
-
const
|
|
10533
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10088
10534
|
transactionBlock: tx,
|
|
10089
10535
|
sender: ZERO_ADDRESS,
|
|
10090
10536
|
});
|
|
10091
|
-
|
|
10537
|
+
|
|
10538
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
10539
|
+
insepctRes,
|
|
10540
|
+
);
|
|
10092
10541
|
}
|
|
10093
10542
|
export async function inactiveBalance<T0 = any, T1 = any>(
|
|
10094
10543
|
client: SuiClient,
|
|
10095
10544
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
10096
10545
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10097
|
-
) {
|
|
10546
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
10098
10547
|
const tx = new TransactionBlock();
|
|
10099
10548
|
builder.inactiveBalance(tx, args, typeArguments);
|
|
10100
|
-
const
|
|
10549
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10101
10550
|
transactionBlock: tx,
|
|
10102
10551
|
sender: ZERO_ADDRESS,
|
|
10103
10552
|
});
|
|
10104
|
-
|
|
10553
|
+
|
|
10554
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10555
|
+
insepctRes,
|
|
10556
|
+
);
|
|
10105
10557
|
}
|
|
10106
10558
|
export async function inactiveShareSupply<T0 = any, T1 = any>(
|
|
10107
10559
|
client: SuiClient,
|
|
10108
10560
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
10109
10561
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10110
|
-
) {
|
|
10562
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
10111
10563
|
const tx = new TransactionBlock();
|
|
10112
10564
|
builder.inactiveShareSupply(tx, args, typeArguments);
|
|
10113
|
-
const
|
|
10565
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10114
10566
|
transactionBlock: tx,
|
|
10115
10567
|
sender: ZERO_ADDRESS,
|
|
10116
10568
|
});
|
|
10117
|
-
|
|
10569
|
+
|
|
10570
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10571
|
+
insepctRes,
|
|
10572
|
+
);
|
|
10118
10573
|
}
|
|
10119
10574
|
export async function inactiveUserShares<T0 = any, T1 = any>(
|
|
10120
10575
|
client: SuiClient,
|
|
10121
10576
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
10122
10577
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10123
|
-
) {
|
|
10578
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
10124
10579
|
const tx = new TransactionBlock();
|
|
10125
10580
|
builder.inactiveUserShares(tx, args, typeArguments);
|
|
10126
|
-
const
|
|
10581
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10127
10582
|
transactionBlock: tx,
|
|
10128
10583
|
sender: ZERO_ADDRESS,
|
|
10129
10584
|
});
|
|
10130
|
-
|
|
10585
|
+
|
|
10586
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
10587
|
+
insepctRes,
|
|
10588
|
+
);
|
|
10131
10589
|
}
|
|
10132
10590
|
export async function isActiveUser<T0 = any, T1 = any>(
|
|
10133
10591
|
client: SuiClient,
|
|
@@ -10137,14 +10595,17 @@ export namespace vault {
|
|
|
10137
10595
|
string | TransactionArgument,
|
|
10138
10596
|
],
|
|
10139
10597
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10140
|
-
) {
|
|
10598
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
10141
10599
|
const tx = new TransactionBlock();
|
|
10142
10600
|
builder.isActiveUser(tx, args, typeArguments);
|
|
10143
|
-
const
|
|
10601
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10144
10602
|
transactionBlock: tx,
|
|
10145
10603
|
sender: ZERO_ADDRESS,
|
|
10146
10604
|
});
|
|
10147
|
-
|
|
10605
|
+
|
|
10606
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
10607
|
+
insepctRes,
|
|
10608
|
+
);
|
|
10148
10609
|
}
|
|
10149
10610
|
export async function isDeactivatingUser<T0 = any, T1 = any>(
|
|
10150
10611
|
client: SuiClient,
|
|
@@ -10154,14 +10615,17 @@ export namespace vault {
|
|
|
10154
10615
|
string | TransactionArgument,
|
|
10155
10616
|
],
|
|
10156
10617
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10157
|
-
) {
|
|
10618
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
10158
10619
|
const tx = new TransactionBlock();
|
|
10159
10620
|
builder.isDeactivatingUser(tx, args, typeArguments);
|
|
10160
|
-
const
|
|
10621
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10161
10622
|
transactionBlock: tx,
|
|
10162
10623
|
sender: ZERO_ADDRESS,
|
|
10163
10624
|
});
|
|
10164
|
-
|
|
10625
|
+
|
|
10626
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
10627
|
+
insepctRes,
|
|
10628
|
+
);
|
|
10165
10629
|
}
|
|
10166
10630
|
export async function isInactiveUser<T0 = any, T1 = any>(
|
|
10167
10631
|
client: SuiClient,
|
|
@@ -10171,14 +10635,17 @@ export namespace vault {
|
|
|
10171
10635
|
string | TransactionArgument,
|
|
10172
10636
|
],
|
|
10173
10637
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10174
|
-
) {
|
|
10638
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
10175
10639
|
const tx = new TransactionBlock();
|
|
10176
10640
|
builder.isInactiveUser(tx, args, typeArguments);
|
|
10177
|
-
const
|
|
10641
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10178
10642
|
transactionBlock: tx,
|
|
10179
10643
|
sender: ZERO_ADDRESS,
|
|
10180
10644
|
});
|
|
10181
|
-
|
|
10645
|
+
|
|
10646
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
10647
|
+
insepctRes,
|
|
10648
|
+
);
|
|
10182
10649
|
}
|
|
10183
10650
|
export async function isWarmupUser<T0 = any, T1 = any>(
|
|
10184
10651
|
client: SuiClient,
|
|
@@ -10188,14 +10655,17 @@ export namespace vault {
|
|
|
10188
10655
|
string | TransactionArgument,
|
|
10189
10656
|
],
|
|
10190
10657
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10191
|
-
) {
|
|
10658
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
10192
10659
|
const tx = new TransactionBlock();
|
|
10193
10660
|
builder.isWarmupUser(tx, args, typeArguments);
|
|
10194
|
-
const
|
|
10661
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10195
10662
|
transactionBlock: tx,
|
|
10196
10663
|
sender: ZERO_ADDRESS,
|
|
10197
10664
|
});
|
|
10198
|
-
|
|
10665
|
+
|
|
10666
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
10667
|
+
insepctRes,
|
|
10668
|
+
);
|
|
10199
10669
|
}
|
|
10200
10670
|
export async function newBidVault<T0 = any, T1 = any>(
|
|
10201
10671
|
client: SuiClient,
|
|
@@ -10205,14 +10675,17 @@ export namespace vault {
|
|
|
10205
10675
|
string | ObjectCallArg | TransactionArgument,
|
|
10206
10676
|
],
|
|
10207
10677
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10208
|
-
) {
|
|
10678
|
+
): Promise<TypedDevInspectResults<[vault.BidVault<T0, T1>]>> {
|
|
10209
10679
|
const tx = new TransactionBlock();
|
|
10210
10680
|
builder.newBidVault(tx, args, typeArguments);
|
|
10211
|
-
const
|
|
10681
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10212
10682
|
transactionBlock: tx,
|
|
10213
10683
|
sender: ZERO_ADDRESS,
|
|
10214
10684
|
});
|
|
10215
|
-
|
|
10685
|
+
|
|
10686
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
10687
|
+
[vault.BidVault<T0, T1>]
|
|
10688
|
+
>(insepctRes);
|
|
10216
10689
|
}
|
|
10217
10690
|
export async function newDepositVault<T0 = any, T1 = any>(
|
|
10218
10691
|
client: SuiClient,
|
|
@@ -10222,104 +10695,128 @@ export namespace vault {
|
|
|
10222
10695
|
string | ObjectCallArg | TransactionArgument,
|
|
10223
10696
|
],
|
|
10224
10697
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10225
|
-
) {
|
|
10698
|
+
): Promise<TypedDevInspectResults<[vault.DepositVault<T0, T1>]>> {
|
|
10226
10699
|
const tx = new TransactionBlock();
|
|
10227
10700
|
builder.newDepositVault(tx, args, typeArguments);
|
|
10228
|
-
const
|
|
10701
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10229
10702
|
transactionBlock: tx,
|
|
10230
10703
|
sender: ZERO_ADDRESS,
|
|
10231
10704
|
});
|
|
10232
|
-
|
|
10705
|
+
|
|
10706
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
10707
|
+
[vault.DepositVault<T0, T1>]
|
|
10708
|
+
>(insepctRes);
|
|
10233
10709
|
}
|
|
10234
10710
|
export async function newUserShareRegistry(
|
|
10235
10711
|
client: SuiClient,
|
|
10236
10712
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
10237
|
-
) {
|
|
10713
|
+
): Promise<TypedDevInspectResults<[vault.UserShareRegistry]>> {
|
|
10238
10714
|
const tx = new TransactionBlock();
|
|
10239
10715
|
builder.newUserShareRegistry(tx, args);
|
|
10240
|
-
const
|
|
10716
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10241
10717
|
transactionBlock: tx,
|
|
10242
10718
|
sender: ZERO_ADDRESS,
|
|
10243
10719
|
});
|
|
10244
|
-
|
|
10720
|
+
|
|
10721
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
10722
|
+
[vault.UserShareRegistry]
|
|
10723
|
+
>(insepctRes);
|
|
10245
10724
|
}
|
|
10246
10725
|
export async function performanceFeeBalance<T0 = any, T1 = any>(
|
|
10247
10726
|
client: SuiClient,
|
|
10248
10727
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
10249
10728
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10250
|
-
) {
|
|
10729
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
10251
10730
|
const tx = new TransactionBlock();
|
|
10252
10731
|
builder.performanceFeeBalance(tx, args, typeArguments);
|
|
10253
|
-
const
|
|
10732
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10254
10733
|
transactionBlock: tx,
|
|
10255
10734
|
sender: ZERO_ADDRESS,
|
|
10256
10735
|
});
|
|
10257
|
-
|
|
10736
|
+
|
|
10737
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10738
|
+
insepctRes,
|
|
10739
|
+
);
|
|
10258
10740
|
}
|
|
10259
10741
|
export async function performanceFeeShareSupply<T0 = any, T1 = any>(
|
|
10260
10742
|
client: SuiClient,
|
|
10261
10743
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
10262
10744
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10263
|
-
) {
|
|
10745
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
10264
10746
|
const tx = new TransactionBlock();
|
|
10265
10747
|
builder.performanceFeeShareSupply(tx, args, typeArguments);
|
|
10266
|
-
const
|
|
10748
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10267
10749
|
transactionBlock: tx,
|
|
10268
10750
|
sender: ZERO_ADDRESS,
|
|
10269
10751
|
});
|
|
10270
|
-
|
|
10752
|
+
|
|
10753
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10754
|
+
insepctRes,
|
|
10755
|
+
);
|
|
10271
10756
|
}
|
|
10272
10757
|
export async function performanceFeeShares<T0 = any, T1 = any>(
|
|
10273
10758
|
client: SuiClient,
|
|
10274
10759
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
10275
10760
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10276
|
-
) {
|
|
10761
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
10277
10762
|
const tx = new TransactionBlock();
|
|
10278
10763
|
builder.performanceFeeShares(tx, args, typeArguments);
|
|
10279
|
-
const
|
|
10764
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10280
10765
|
transactionBlock: tx,
|
|
10281
10766
|
sender: ZERO_ADDRESS,
|
|
10282
10767
|
});
|
|
10283
|
-
|
|
10768
|
+
|
|
10769
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
10770
|
+
insepctRes,
|
|
10771
|
+
);
|
|
10284
10772
|
}
|
|
10285
10773
|
export async function premiumBalance<T0 = any, T1 = any>(
|
|
10286
10774
|
client: SuiClient,
|
|
10287
10775
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
10288
10776
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10289
|
-
) {
|
|
10777
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
10290
10778
|
const tx = new TransactionBlock();
|
|
10291
10779
|
builder.premiumBalance(tx, args, typeArguments);
|
|
10292
|
-
const
|
|
10780
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10293
10781
|
transactionBlock: tx,
|
|
10294
10782
|
sender: ZERO_ADDRESS,
|
|
10295
10783
|
});
|
|
10296
|
-
|
|
10784
|
+
|
|
10785
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10786
|
+
insepctRes,
|
|
10787
|
+
);
|
|
10297
10788
|
}
|
|
10298
10789
|
export async function premiumShareSupply<T0 = any, T1 = any>(
|
|
10299
10790
|
client: SuiClient,
|
|
10300
10791
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
10301
10792
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10302
|
-
) {
|
|
10793
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
10303
10794
|
const tx = new TransactionBlock();
|
|
10304
10795
|
builder.premiumShareSupply(tx, args, typeArguments);
|
|
10305
|
-
const
|
|
10796
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10306
10797
|
transactionBlock: tx,
|
|
10307
10798
|
sender: ZERO_ADDRESS,
|
|
10308
10799
|
});
|
|
10309
|
-
|
|
10800
|
+
|
|
10801
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10802
|
+
insepctRes,
|
|
10803
|
+
);
|
|
10310
10804
|
}
|
|
10311
10805
|
export async function premiumShares<T0 = any, T1 = any>(
|
|
10312
10806
|
client: SuiClient,
|
|
10313
10807
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
10314
10808
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10315
|
-
) {
|
|
10809
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
10316
10810
|
const tx = new TransactionBlock();
|
|
10317
10811
|
builder.premiumShares(tx, args, typeArguments);
|
|
10318
|
-
const
|
|
10812
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10319
10813
|
transactionBlock: tx,
|
|
10320
10814
|
sender: ZERO_ADDRESS,
|
|
10321
10815
|
});
|
|
10322
|
-
|
|
10816
|
+
|
|
10817
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
10818
|
+
insepctRes,
|
|
10819
|
+
);
|
|
10323
10820
|
}
|
|
10324
10821
|
export async function refund<T0 = any, T1 = any>(
|
|
10325
10822
|
client: SuiClient,
|
|
@@ -10331,14 +10828,17 @@ export namespace vault {
|
|
|
10331
10828
|
string | ObjectCallArg | TransactionArgument,
|
|
10332
10829
|
],
|
|
10333
10830
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10334
|
-
) {
|
|
10831
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
10335
10832
|
const tx = new TransactionBlock();
|
|
10336
10833
|
builder.refund(tx, args, typeArguments);
|
|
10337
|
-
const
|
|
10834
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10338
10835
|
transactionBlock: tx,
|
|
10339
10836
|
sender: ZERO_ADDRESS,
|
|
10340
10837
|
});
|
|
10341
|
-
|
|
10838
|
+
|
|
10839
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
10840
|
+
insepctRes,
|
|
10841
|
+
);
|
|
10342
10842
|
}
|
|
10343
10843
|
export async function settleFund<T0 = any, T1 = any, T2 = any, T3 = any>(
|
|
10344
10844
|
client: SuiClient,
|
|
@@ -10359,14 +10859,17 @@ export namespace vault {
|
|
|
10359
10859
|
TypeDescriptor<T2> | string,
|
|
10360
10860
|
TypeDescriptor<T3> | string,
|
|
10361
10861
|
],
|
|
10362
|
-
) {
|
|
10862
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
10363
10863
|
const tx = new TransactionBlock();
|
|
10364
10864
|
builder.settleFund(tx, args, typeArguments);
|
|
10365
|
-
const
|
|
10865
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10366
10866
|
transactionBlock: tx,
|
|
10367
10867
|
sender: ZERO_ADDRESS,
|
|
10368
10868
|
});
|
|
10369
|
-
|
|
10869
|
+
|
|
10870
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10871
|
+
insepctRes,
|
|
10872
|
+
);
|
|
10370
10873
|
}
|
|
10371
10874
|
export async function settleFundMultiple<
|
|
10372
10875
|
T0 = any,
|
|
@@ -10397,14 +10900,17 @@ export namespace vault {
|
|
|
10397
10900
|
TypeDescriptor<T2> | string,
|
|
10398
10901
|
TypeDescriptor<T3> | string,
|
|
10399
10902
|
],
|
|
10400
|
-
) {
|
|
10903
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
10401
10904
|
const tx = new TransactionBlock();
|
|
10402
10905
|
builder.settleFundMultiple(tx, args, typeArguments);
|
|
10403
|
-
const
|
|
10906
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10404
10907
|
transactionBlock: tx,
|
|
10405
10908
|
sender: ZERO_ADDRESS,
|
|
10406
10909
|
});
|
|
10407
|
-
|
|
10910
|
+
|
|
10911
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10912
|
+
insepctRes,
|
|
10913
|
+
);
|
|
10408
10914
|
}
|
|
10409
10915
|
export async function unsubscribe<T0 = any, T1 = any>(
|
|
10410
10916
|
client: SuiClient,
|
|
@@ -10415,65 +10921,80 @@ export namespace vault {
|
|
|
10415
10921
|
string | ObjectCallArg | TransactionArgument,
|
|
10416
10922
|
],
|
|
10417
10923
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10418
|
-
) {
|
|
10924
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
10419
10925
|
const tx = new TransactionBlock();
|
|
10420
10926
|
builder.unsubscribe(tx, args, typeArguments);
|
|
10421
|
-
const
|
|
10927
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10422
10928
|
transactionBlock: tx,
|
|
10423
10929
|
sender: ZERO_ADDRESS,
|
|
10424
10930
|
});
|
|
10425
|
-
|
|
10931
|
+
|
|
10932
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10933
|
+
insepctRes,
|
|
10934
|
+
);
|
|
10426
10935
|
}
|
|
10427
10936
|
export async function userShareRegistryUid(
|
|
10428
10937
|
client: SuiClient,
|
|
10429
10938
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
10430
|
-
) {
|
|
10939
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
10431
10940
|
const tx = new TransactionBlock();
|
|
10432
10941
|
builder.userShareRegistryUid(tx, args);
|
|
10433
|
-
const
|
|
10942
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10434
10943
|
transactionBlock: tx,
|
|
10435
10944
|
sender: ZERO_ADDRESS,
|
|
10436
10945
|
});
|
|
10437
|
-
|
|
10946
|
+
|
|
10947
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
10948
|
+
insepctRes,
|
|
10949
|
+
);
|
|
10438
10950
|
}
|
|
10439
10951
|
export async function warmupBalance<T0 = any, T1 = any>(
|
|
10440
10952
|
client: SuiClient,
|
|
10441
10953
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
10442
10954
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10443
|
-
) {
|
|
10955
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
10444
10956
|
const tx = new TransactionBlock();
|
|
10445
10957
|
builder.warmupBalance(tx, args, typeArguments);
|
|
10446
|
-
const
|
|
10958
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10447
10959
|
transactionBlock: tx,
|
|
10448
10960
|
sender: ZERO_ADDRESS,
|
|
10449
10961
|
});
|
|
10450
|
-
|
|
10962
|
+
|
|
10963
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10964
|
+
insepctRes,
|
|
10965
|
+
);
|
|
10451
10966
|
}
|
|
10452
10967
|
export async function warmupShareSupply<T0 = any, T1 = any>(
|
|
10453
10968
|
client: SuiClient,
|
|
10454
10969
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
10455
10970
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10456
|
-
) {
|
|
10971
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
10457
10972
|
const tx = new TransactionBlock();
|
|
10458
10973
|
builder.warmupShareSupply(tx, args, typeArguments);
|
|
10459
|
-
const
|
|
10974
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10460
10975
|
transactionBlock: tx,
|
|
10461
10976
|
sender: ZERO_ADDRESS,
|
|
10462
10977
|
});
|
|
10463
|
-
|
|
10978
|
+
|
|
10979
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
10980
|
+
insepctRes,
|
|
10981
|
+
);
|
|
10464
10982
|
}
|
|
10465
10983
|
export async function warmupUserShares<T0 = any, T1 = any>(
|
|
10466
10984
|
client: SuiClient,
|
|
10467
10985
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
10468
10986
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10469
|
-
) {
|
|
10987
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
10470
10988
|
const tx = new TransactionBlock();
|
|
10471
10989
|
builder.warmupUserShares(tx, args, typeArguments);
|
|
10472
|
-
const
|
|
10990
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10473
10991
|
transactionBlock: tx,
|
|
10474
10992
|
sender: ZERO_ADDRESS,
|
|
10475
10993
|
});
|
|
10476
|
-
|
|
10994
|
+
|
|
10995
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
10996
|
+
insepctRes,
|
|
10997
|
+
);
|
|
10477
10998
|
}
|
|
10478
10999
|
export async function withdraw<T0 = any, T1 = any>(
|
|
10479
11000
|
client: SuiClient,
|
|
@@ -10484,14 +11005,17 @@ export namespace vault {
|
|
|
10484
11005
|
string | ObjectCallArg | TransactionArgument,
|
|
10485
11006
|
],
|
|
10486
11007
|
typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
|
|
10487
|
-
) {
|
|
11008
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
10488
11009
|
const tx = new TransactionBlock();
|
|
10489
11010
|
builder.withdraw(tx, args, typeArguments);
|
|
10490
|
-
const
|
|
11011
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
10491
11012
|
transactionBlock: tx,
|
|
10492
11013
|
sender: ZERO_ADDRESS,
|
|
10493
11014
|
});
|
|
10494
|
-
|
|
11015
|
+
|
|
11016
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
11017
|
+
insepctRes,
|
|
11018
|
+
);
|
|
10495
11019
|
}
|
|
10496
11020
|
}
|
|
10497
11021
|
}
|