@typemove/sui 1.2.0-rc.2 → 1.2.0-rc.4

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.
Files changed (76) hide show
  1. package/Readme.md +33 -24
  2. package/dist/cjs/builtin/0x1.d.ts +83 -82
  3. package/dist/cjs/builtin/0x1.d.ts.map +1 -1
  4. package/dist/cjs/builtin/0x1.js +164 -164
  5. package/dist/cjs/builtin/0x1.js.map +1 -1
  6. package/dist/cjs/builtin/0x2.d.ts +353 -349
  7. package/dist/cjs/builtin/0x2.d.ts.map +1 -1
  8. package/dist/cjs/builtin/0x2.js +698 -698
  9. package/dist/cjs/builtin/0x2.js.map +1 -1
  10. package/dist/cjs/builtin/0x3.d.ts +101 -100
  11. package/dist/cjs/builtin/0x3.d.ts.map +1 -1
  12. package/dist/cjs/builtin/0x3.js +200 -200
  13. package/dist/cjs/builtin/0x3.js.map +1 -1
  14. package/dist/cjs/codegen/codegen.d.ts.map +1 -1
  15. package/dist/cjs/codegen/codegen.js +11 -8
  16. package/dist/cjs/codegen/codegen.js.map +1 -1
  17. package/dist/cjs/index.d.ts +1 -1
  18. package/dist/cjs/index.d.ts.map +1 -1
  19. package/dist/cjs/index.js +2 -1
  20. package/dist/cjs/index.js.map +1 -1
  21. package/dist/cjs/models.d.ts +7 -1
  22. package/dist/cjs/models.d.ts.map +1 -1
  23. package/dist/cjs/models.js +0 -3
  24. package/dist/cjs/models.js.map +1 -1
  25. package/dist/cjs/move-coder.d.ts +6 -3
  26. package/dist/cjs/move-coder.d.ts.map +1 -1
  27. package/dist/cjs/move-coder.js +50 -5
  28. package/dist/cjs/move-coder.js.map +1 -1
  29. package/dist/cjs/sui-chain-adapter.d.ts +4 -1
  30. package/dist/cjs/sui-chain-adapter.d.ts.map +1 -1
  31. package/dist/cjs/sui-chain-adapter.js +10 -4
  32. package/dist/cjs/sui-chain-adapter.js.map +1 -1
  33. package/dist/esm/builtin/0x1.d.ts +83 -82
  34. package/dist/esm/builtin/0x1.d.ts.map +1 -1
  35. package/dist/esm/builtin/0x1.js +165 -165
  36. package/dist/esm/builtin/0x1.js.map +1 -1
  37. package/dist/esm/builtin/0x2.d.ts +353 -349
  38. package/dist/esm/builtin/0x2.d.ts.map +1 -1
  39. package/dist/esm/builtin/0x2.js +699 -699
  40. package/dist/esm/builtin/0x2.js.map +1 -1
  41. package/dist/esm/builtin/0x3.d.ts +101 -100
  42. package/dist/esm/builtin/0x3.d.ts.map +1 -1
  43. package/dist/esm/builtin/0x3.js +201 -201
  44. package/dist/esm/builtin/0x3.js.map +1 -1
  45. package/dist/esm/codegen/codegen.d.ts.map +1 -1
  46. package/dist/esm/codegen/codegen.js +12 -9
  47. package/dist/esm/codegen/codegen.js.map +1 -1
  48. package/dist/esm/index.d.ts +1 -1
  49. package/dist/esm/index.d.ts.map +1 -1
  50. package/dist/esm/index.js +1 -1
  51. package/dist/esm/index.js.map +1 -1
  52. package/dist/esm/models.d.ts +7 -1
  53. package/dist/esm/models.d.ts.map +1 -1
  54. package/dist/esm/models.js +0 -3
  55. package/dist/esm/models.js.map +1 -1
  56. package/dist/esm/move-coder.d.ts +6 -3
  57. package/dist/esm/move-coder.d.ts.map +1 -1
  58. package/dist/esm/move-coder.js +48 -4
  59. package/dist/esm/move-coder.js.map +1 -1
  60. package/dist/esm/sui-chain-adapter.d.ts +4 -1
  61. package/dist/esm/sui-chain-adapter.d.ts.map +1 -1
  62. package/dist/esm/sui-chain-adapter.js +10 -4
  63. package/dist/esm/sui-chain-adapter.js.map +1 -1
  64. package/package.json +2 -2
  65. package/src/builtin/0x1.ts +503 -247
  66. package/src/builtin/0x2.ts +2137 -1049
  67. package/src/builtin/0x3.ts +611 -301
  68. package/src/codegen/codegen.ts +14 -10
  69. package/src/index.ts +1 -1
  70. package/src/models.ts +7 -4
  71. package/src/move-coder.ts +57 -6
  72. package/src/sui-chain-adapter.ts +11 -4
  73. package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +29 -13
  74. package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +319 -145
  75. package/src/tests/types/testnet/0xdee9.ts +303 -142
  76. 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 { ZERO_ADDRESS } from "@typemove/sui";
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";
@@ -984,14 +988,17 @@ export namespace clob {
984
988
  string | ObjectCallArg | TransactionArgument,
985
989
  ],
986
990
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
987
- ) {
991
+ ): Promise<TypedDevInspectResults<[bigint, bigint, bigint, bigint]>> {
988
992
  const tx = new TransactionBlock();
989
993
  builder.accountBalance(tx, args, typeArguments);
990
- const res = await client.devInspectTransactionBlock({
994
+ const insepctRes = await client.devInspectTransactionBlock({
991
995
  transactionBlock: tx,
992
996
  sender: ZERO_ADDRESS,
993
997
  });
994
- return res;
998
+
999
+ return (await getMoveCoder(client)).decodeDevInspectResult<
1000
+ [bigint, bigint, bigint, bigint]
1001
+ >(insepctRes);
995
1002
  }
996
1003
  export async function batchCancelOrder<T0 = any, T1 = any>(
997
1004
  client: SuiClient,
@@ -1001,14 +1008,17 @@ export namespace clob {
1001
1008
  string | ObjectCallArg | TransactionArgument,
1002
1009
  ],
1003
1010
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1004
- ) {
1011
+ ): Promise<TypedDevInspectResults<[]>> {
1005
1012
  const tx = new TransactionBlock();
1006
1013
  builder.batchCancelOrder(tx, args, typeArguments);
1007
- const res = await client.devInspectTransactionBlock({
1014
+ const insepctRes = await client.devInspectTransactionBlock({
1008
1015
  transactionBlock: tx,
1009
1016
  sender: ZERO_ADDRESS,
1010
1017
  });
1011
- return res;
1018
+
1019
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
1020
+ insepctRes,
1021
+ );
1012
1022
  }
1013
1023
  export async function cancelAllOrders<T0 = any, T1 = any>(
1014
1024
  client: SuiClient,
@@ -1017,14 +1027,17 @@ export namespace clob {
1017
1027
  string | ObjectCallArg | TransactionArgument,
1018
1028
  ],
1019
1029
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1020
- ) {
1030
+ ): Promise<TypedDevInspectResults<[]>> {
1021
1031
  const tx = new TransactionBlock();
1022
1032
  builder.cancelAllOrders(tx, args, typeArguments);
1023
- const res = await client.devInspectTransactionBlock({
1033
+ const insepctRes = await client.devInspectTransactionBlock({
1024
1034
  transactionBlock: tx,
1025
1035
  sender: ZERO_ADDRESS,
1026
1036
  });
1027
- return res;
1037
+
1038
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
1039
+ insepctRes,
1040
+ );
1028
1041
  }
1029
1042
  export async function cancelOrder<T0 = any, T1 = any>(
1030
1043
  client: SuiClient,
@@ -1034,26 +1047,32 @@ export namespace clob {
1034
1047
  string | ObjectCallArg | TransactionArgument,
1035
1048
  ],
1036
1049
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1037
- ) {
1050
+ ): Promise<TypedDevInspectResults<[]>> {
1038
1051
  const tx = new TransactionBlock();
1039
1052
  builder.cancelOrder(tx, args, typeArguments);
1040
- const res = await client.devInspectTransactionBlock({
1053
+ const insepctRes = await client.devInspectTransactionBlock({
1041
1054
  transactionBlock: tx,
1042
1055
  sender: ZERO_ADDRESS,
1043
1056
  });
1044
- return res;
1057
+
1058
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
1059
+ insepctRes,
1060
+ );
1045
1061
  }
1046
1062
  export async function createAccount(
1047
1063
  client: SuiClient,
1048
1064
  args: [string | ObjectCallArg | TransactionArgument],
1049
- ) {
1065
+ ): Promise<TypedDevInspectResults<[custodian.AccountCap]>> {
1050
1066
  const tx = new TransactionBlock();
1051
1067
  builder.createAccount(tx, args);
1052
- const res = await client.devInspectTransactionBlock({
1068
+ const insepctRes = await client.devInspectTransactionBlock({
1053
1069
  transactionBlock: tx,
1054
1070
  sender: ZERO_ADDRESS,
1055
1071
  });
1056
- return res;
1072
+
1073
+ return (await getMoveCoder(client)).decodeDevInspectResult<
1074
+ [custodian.AccountCap]
1075
+ >(insepctRes);
1057
1076
  }
1058
1077
  export async function createPool<T0 = any, T1 = any>(
1059
1078
  client: SuiClient,
@@ -1064,14 +1083,17 @@ export namespace clob {
1064
1083
  string | ObjectCallArg | TransactionArgument,
1065
1084
  ],
1066
1085
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1067
- ) {
1086
+ ): Promise<TypedDevInspectResults<[]>> {
1068
1087
  const tx = new TransactionBlock();
1069
1088
  builder.createPool(tx, args, typeArguments);
1070
- const res = await client.devInspectTransactionBlock({
1089
+ const insepctRes = await client.devInspectTransactionBlock({
1071
1090
  transactionBlock: tx,
1072
1091
  sender: ZERO_ADDRESS,
1073
1092
  });
1074
- return res;
1093
+
1094
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
1095
+ insepctRes,
1096
+ );
1075
1097
  }
1076
1098
  export async function depositBase<T0 = any, T1 = any>(
1077
1099
  client: SuiClient,
@@ -1081,14 +1103,17 @@ export namespace clob {
1081
1103
  string | ObjectCallArg | TransactionArgument,
1082
1104
  ],
1083
1105
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1084
- ) {
1106
+ ): Promise<TypedDevInspectResults<[]>> {
1085
1107
  const tx = new TransactionBlock();
1086
1108
  builder.depositBase(tx, args, typeArguments);
1087
- const res = await client.devInspectTransactionBlock({
1109
+ const insepctRes = await client.devInspectTransactionBlock({
1088
1110
  transactionBlock: tx,
1089
1111
  sender: ZERO_ADDRESS,
1090
1112
  });
1091
- return res;
1113
+
1114
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
1115
+ insepctRes,
1116
+ );
1092
1117
  }
1093
1118
  export async function depositQuote<T0 = any, T1 = any>(
1094
1119
  client: SuiClient,
@@ -1098,14 +1123,17 @@ export namespace clob {
1098
1123
  string | ObjectCallArg | TransactionArgument,
1099
1124
  ],
1100
1125
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1101
- ) {
1126
+ ): Promise<TypedDevInspectResults<[]>> {
1102
1127
  const tx = new TransactionBlock();
1103
1128
  builder.depositQuote(tx, args, typeArguments);
1104
- const res = await client.devInspectTransactionBlock({
1129
+ const insepctRes = await client.devInspectTransactionBlock({
1105
1130
  transactionBlock: tx,
1106
1131
  sender: ZERO_ADDRESS,
1107
1132
  });
1108
- return res;
1133
+
1134
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
1135
+ insepctRes,
1136
+ );
1109
1137
  }
1110
1138
  export async function getLevel2BookStatusAskSide<T0 = any, T1 = any>(
1111
1139
  client: SuiClient,
@@ -1116,14 +1144,17 @@ export namespace clob {
1116
1144
  string | ObjectCallArg | TransactionArgument,
1117
1145
  ],
1118
1146
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1119
- ) {
1147
+ ): Promise<TypedDevInspectResults<[bigint[], bigint[]]>> {
1120
1148
  const tx = new TransactionBlock();
1121
1149
  builder.getLevel2BookStatusAskSide(tx, args, typeArguments);
1122
- const res = await client.devInspectTransactionBlock({
1150
+ const insepctRes = await client.devInspectTransactionBlock({
1123
1151
  transactionBlock: tx,
1124
1152
  sender: ZERO_ADDRESS,
1125
1153
  });
1126
- return res;
1154
+
1155
+ return (await getMoveCoder(client)).decodeDevInspectResult<
1156
+ [bigint[], bigint[]]
1157
+ >(insepctRes);
1127
1158
  }
1128
1159
  export async function getLevel2BookStatusBidSide<T0 = any, T1 = any>(
1129
1160
  client: SuiClient,
@@ -1134,27 +1165,33 @@ export namespace clob {
1134
1165
  string | ObjectCallArg | TransactionArgument,
1135
1166
  ],
1136
1167
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1137
- ) {
1168
+ ): Promise<TypedDevInspectResults<[bigint[], bigint[]]>> {
1138
1169
  const tx = new TransactionBlock();
1139
1170
  builder.getLevel2BookStatusBidSide(tx, args, typeArguments);
1140
- const res = await client.devInspectTransactionBlock({
1171
+ const insepctRes = await client.devInspectTransactionBlock({
1141
1172
  transactionBlock: tx,
1142
1173
  sender: ZERO_ADDRESS,
1143
1174
  });
1144
- return res;
1175
+
1176
+ return (await getMoveCoder(client)).decodeDevInspectResult<
1177
+ [bigint[], bigint[]]
1178
+ >(insepctRes);
1145
1179
  }
1146
1180
  export async function getMarketPrice<T0 = any, T1 = any>(
1147
1181
  client: SuiClient,
1148
1182
  args: [string | ObjectCallArg | TransactionArgument],
1149
1183
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1150
- ) {
1184
+ ): Promise<TypedDevInspectResults<[bigint, bigint]>> {
1151
1185
  const tx = new TransactionBlock();
1152
1186
  builder.getMarketPrice(tx, args, typeArguments);
1153
- const res = await client.devInspectTransactionBlock({
1187
+ const insepctRes = await client.devInspectTransactionBlock({
1154
1188
  transactionBlock: tx,
1155
1189
  sender: ZERO_ADDRESS,
1156
1190
  });
1157
- return res;
1191
+
1192
+ return (await getMoveCoder(client)).decodeDevInspectResult<
1193
+ [bigint, bigint]
1194
+ >(insepctRes);
1158
1195
  }
1159
1196
  export async function getOrderStatus<T0 = any, T1 = any>(
1160
1197
  client: SuiClient,
@@ -1164,14 +1201,17 @@ export namespace clob {
1164
1201
  string | ObjectCallArg | TransactionArgument,
1165
1202
  ],
1166
1203
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1167
- ) {
1204
+ ): Promise<TypedDevInspectResults<[string]>> {
1168
1205
  const tx = new TransactionBlock();
1169
1206
  builder.getOrderStatus(tx, args, typeArguments);
1170
- const res = await client.devInspectTransactionBlock({
1207
+ const insepctRes = await client.devInspectTransactionBlock({
1171
1208
  transactionBlock: tx,
1172
1209
  sender: ZERO_ADDRESS,
1173
1210
  });
1174
- return res;
1211
+
1212
+ return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
1213
+ insepctRes,
1214
+ );
1175
1215
  }
1176
1216
  export async function listOpenOrders<T0 = any, T1 = any>(
1177
1217
  client: SuiClient,
@@ -1180,14 +1220,17 @@ export namespace clob {
1180
1220
  string | ObjectCallArg | TransactionArgument,
1181
1221
  ],
1182
1222
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1183
- ) {
1223
+ ): Promise<TypedDevInspectResults<[clob.Order[]]>> {
1184
1224
  const tx = new TransactionBlock();
1185
1225
  builder.listOpenOrders(tx, args, typeArguments);
1186
- const res = await client.devInspectTransactionBlock({
1226
+ const insepctRes = await client.devInspectTransactionBlock({
1187
1227
  transactionBlock: tx,
1188
1228
  sender: ZERO_ADDRESS,
1189
1229
  });
1190
- return res;
1230
+
1231
+ return (await getMoveCoder(client)).decodeDevInspectResult<
1232
+ [clob.Order[]]
1233
+ >(insepctRes);
1191
1234
  }
1192
1235
  export async function placeLimitOrder<T0 = any, T1 = any>(
1193
1236
  client: SuiClient,
@@ -1203,14 +1246,17 @@ export namespace clob {
1203
1246
  string | ObjectCallArg | TransactionArgument,
1204
1247
  ],
1205
1248
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1206
- ) {
1249
+ ): Promise<TypedDevInspectResults<[bigint, bigint, Boolean, bigint]>> {
1207
1250
  const tx = new TransactionBlock();
1208
1251
  builder.placeLimitOrder(tx, args, typeArguments);
1209
- const res = await client.devInspectTransactionBlock({
1252
+ const insepctRes = await client.devInspectTransactionBlock({
1210
1253
  transactionBlock: tx,
1211
1254
  sender: ZERO_ADDRESS,
1212
1255
  });
1213
- return res;
1256
+
1257
+ return (await getMoveCoder(client)).decodeDevInspectResult<
1258
+ [bigint, bigint, Boolean, bigint]
1259
+ >(insepctRes);
1214
1260
  }
1215
1261
  export async function placeMarketOrder<T0 = any, T1 = any>(
1216
1262
  client: SuiClient,
@@ -1224,14 +1270,19 @@ export namespace clob {
1224
1270
  string | ObjectCallArg | TransactionArgument,
1225
1271
  ],
1226
1272
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1227
- ) {
1273
+ ): Promise<
1274
+ TypedDevInspectResults<[_0x2.coin.Coin<T0>, _0x2.coin.Coin<T1>]>
1275
+ > {
1228
1276
  const tx = new TransactionBlock();
1229
1277
  builder.placeMarketOrder(tx, args, typeArguments);
1230
- const res = await client.devInspectTransactionBlock({
1278
+ const insepctRes = await client.devInspectTransactionBlock({
1231
1279
  transactionBlock: tx,
1232
1280
  sender: ZERO_ADDRESS,
1233
1281
  });
1234
- return res;
1282
+
1283
+ return (await getMoveCoder(client)).decodeDevInspectResult<
1284
+ [_0x2.coin.Coin<T0>, _0x2.coin.Coin<T1>]
1285
+ >(insepctRes);
1235
1286
  }
1236
1287
  export async function swapExactBaseForQuote<T0 = any, T1 = any>(
1237
1288
  client: SuiClient,
@@ -1244,14 +1295,19 @@ export namespace clob {
1244
1295
  string | ObjectCallArg | TransactionArgument,
1245
1296
  ],
1246
1297
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1247
- ) {
1298
+ ): Promise<
1299
+ TypedDevInspectResults<[_0x2.coin.Coin<T0>, _0x2.coin.Coin<T1>, bigint]>
1300
+ > {
1248
1301
  const tx = new TransactionBlock();
1249
1302
  builder.swapExactBaseForQuote(tx, args, typeArguments);
1250
- const res = await client.devInspectTransactionBlock({
1303
+ const insepctRes = await client.devInspectTransactionBlock({
1251
1304
  transactionBlock: tx,
1252
1305
  sender: ZERO_ADDRESS,
1253
1306
  });
1254
- return res;
1307
+
1308
+ return (await getMoveCoder(client)).decodeDevInspectResult<
1309
+ [_0x2.coin.Coin<T0>, _0x2.coin.Coin<T1>, bigint]
1310
+ >(insepctRes);
1255
1311
  }
1256
1312
  export async function swapExactQuoteForBase<T0 = any, T1 = any>(
1257
1313
  client: SuiClient,
@@ -1263,14 +1319,19 @@ export namespace clob {
1263
1319
  string | ObjectCallArg | TransactionArgument,
1264
1320
  ],
1265
1321
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1266
- ) {
1322
+ ): Promise<
1323
+ TypedDevInspectResults<[_0x2.coin.Coin<T0>, _0x2.coin.Coin<T1>, bigint]>
1324
+ > {
1267
1325
  const tx = new TransactionBlock();
1268
1326
  builder.swapExactQuoteForBase(tx, args, typeArguments);
1269
- const res = await client.devInspectTransactionBlock({
1327
+ const insepctRes = await client.devInspectTransactionBlock({
1270
1328
  transactionBlock: tx,
1271
1329
  sender: ZERO_ADDRESS,
1272
1330
  });
1273
- return res;
1331
+
1332
+ return (await getMoveCoder(client)).decodeDevInspectResult<
1333
+ [_0x2.coin.Coin<T0>, _0x2.coin.Coin<T1>, bigint]
1334
+ >(insepctRes);
1274
1335
  }
1275
1336
  export async function withdrawBase<T0 = any, T1 = any>(
1276
1337
  client: SuiClient,
@@ -1281,14 +1342,17 @@ export namespace clob {
1281
1342
  string | ObjectCallArg | TransactionArgument,
1282
1343
  ],
1283
1344
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1284
- ) {
1345
+ ): Promise<TypedDevInspectResults<[_0x2.coin.Coin<T0>]>> {
1285
1346
  const tx = new TransactionBlock();
1286
1347
  builder.withdrawBase(tx, args, typeArguments);
1287
- const res = await client.devInspectTransactionBlock({
1348
+ const insepctRes = await client.devInspectTransactionBlock({
1288
1349
  transactionBlock: tx,
1289
1350
  sender: ZERO_ADDRESS,
1290
1351
  });
1291
- return res;
1352
+
1353
+ return (await getMoveCoder(client)).decodeDevInspectResult<
1354
+ [_0x2.coin.Coin<T0>]
1355
+ >(insepctRes);
1292
1356
  }
1293
1357
  export async function withdrawQuote<T0 = any, T1 = any>(
1294
1358
  client: SuiClient,
@@ -1299,14 +1363,17 @@ export namespace clob {
1299
1363
  string | ObjectCallArg | TransactionArgument,
1300
1364
  ],
1301
1365
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1302
- ) {
1366
+ ): Promise<TypedDevInspectResults<[_0x2.coin.Coin<T1>]>> {
1303
1367
  const tx = new TransactionBlock();
1304
1368
  builder.withdrawQuote(tx, args, typeArguments);
1305
- const res = await client.devInspectTransactionBlock({
1369
+ const insepctRes = await client.devInspectTransactionBlock({
1306
1370
  transactionBlock: tx,
1307
1371
  sender: ZERO_ADDRESS,
1308
1372
  });
1309
- return res;
1373
+
1374
+ return (await getMoveCoder(client)).decodeDevInspectResult<
1375
+ [_0x2.coin.Coin<T1>]
1376
+ >(insepctRes);
1310
1377
  }
1311
1378
  }
1312
1379
  }
@@ -2360,14 +2427,17 @@ export namespace clob_v2 {
2360
2427
  string | ObjectCallArg | TransactionArgument,
2361
2428
  ],
2362
2429
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2363
- ) {
2430
+ ): Promise<TypedDevInspectResults<[bigint, bigint, bigint, bigint]>> {
2364
2431
  const tx = new TransactionBlock();
2365
2432
  builder.accountBalance(tx, args, typeArguments);
2366
- const res = await client.devInspectTransactionBlock({
2433
+ const insepctRes = await client.devInspectTransactionBlock({
2367
2434
  transactionBlock: tx,
2368
2435
  sender: ZERO_ADDRESS,
2369
2436
  });
2370
- return res;
2437
+
2438
+ return (await getMoveCoder(client)).decodeDevInspectResult<
2439
+ [bigint, bigint, bigint, bigint]
2440
+ >(insepctRes);
2371
2441
  }
2372
2442
  export async function batchCancelOrder<T0 = any, T1 = any>(
2373
2443
  client: SuiClient,
@@ -2377,14 +2447,17 @@ export namespace clob_v2 {
2377
2447
  string | ObjectCallArg | TransactionArgument,
2378
2448
  ],
2379
2449
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2380
- ) {
2450
+ ): Promise<TypedDevInspectResults<[]>> {
2381
2451
  const tx = new TransactionBlock();
2382
2452
  builder.batchCancelOrder(tx, args, typeArguments);
2383
- const res = await client.devInspectTransactionBlock({
2453
+ const insepctRes = await client.devInspectTransactionBlock({
2384
2454
  transactionBlock: tx,
2385
2455
  sender: ZERO_ADDRESS,
2386
2456
  });
2387
- return res;
2457
+
2458
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
2459
+ insepctRes,
2460
+ );
2388
2461
  }
2389
2462
  export async function cancelAllOrders<T0 = any, T1 = any>(
2390
2463
  client: SuiClient,
@@ -2393,14 +2466,17 @@ export namespace clob_v2 {
2393
2466
  string | ObjectCallArg | TransactionArgument,
2394
2467
  ],
2395
2468
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2396
- ) {
2469
+ ): Promise<TypedDevInspectResults<[]>> {
2397
2470
  const tx = new TransactionBlock();
2398
2471
  builder.cancelAllOrders(tx, args, typeArguments);
2399
- const res = await client.devInspectTransactionBlock({
2472
+ const insepctRes = await client.devInspectTransactionBlock({
2400
2473
  transactionBlock: tx,
2401
2474
  sender: ZERO_ADDRESS,
2402
2475
  });
2403
- return res;
2476
+
2477
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
2478
+ insepctRes,
2479
+ );
2404
2480
  }
2405
2481
  export async function cancelOrder<T0 = any, T1 = any>(
2406
2482
  client: SuiClient,
@@ -2410,14 +2486,17 @@ export namespace clob_v2 {
2410
2486
  string | ObjectCallArg | TransactionArgument,
2411
2487
  ],
2412
2488
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2413
- ) {
2489
+ ): Promise<TypedDevInspectResults<[]>> {
2414
2490
  const tx = new TransactionBlock();
2415
2491
  builder.cancelOrder(tx, args, typeArguments);
2416
- const res = await client.devInspectTransactionBlock({
2492
+ const insepctRes = await client.devInspectTransactionBlock({
2417
2493
  transactionBlock: tx,
2418
2494
  sender: ZERO_ADDRESS,
2419
2495
  });
2420
- return res;
2496
+
2497
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
2498
+ insepctRes,
2499
+ );
2421
2500
  }
2422
2501
  export async function cleanUpExpiredOrders<T0 = any, T1 = any>(
2423
2502
  client: SuiClient,
@@ -2428,26 +2507,32 @@ export namespace clob_v2 {
2428
2507
  (string | ObjectCallArg)[] | TransactionArgument,
2429
2508
  ],
2430
2509
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2431
- ) {
2510
+ ): Promise<TypedDevInspectResults<[]>> {
2432
2511
  const tx = new TransactionBlock();
2433
2512
  builder.cleanUpExpiredOrders(tx, args, typeArguments);
2434
- const res = await client.devInspectTransactionBlock({
2513
+ const insepctRes = await client.devInspectTransactionBlock({
2435
2514
  transactionBlock: tx,
2436
2515
  sender: ZERO_ADDRESS,
2437
2516
  });
2438
- return res;
2517
+
2518
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
2519
+ insepctRes,
2520
+ );
2439
2521
  }
2440
2522
  export async function createAccount(
2441
2523
  client: SuiClient,
2442
2524
  args: [string | ObjectCallArg | TransactionArgument],
2443
- ) {
2525
+ ): Promise<TypedDevInspectResults<[custodian_v2.AccountCap]>> {
2444
2526
  const tx = new TransactionBlock();
2445
2527
  builder.createAccount(tx, args);
2446
- const res = await client.devInspectTransactionBlock({
2528
+ const insepctRes = await client.devInspectTransactionBlock({
2447
2529
  transactionBlock: tx,
2448
2530
  sender: ZERO_ADDRESS,
2449
2531
  });
2450
- return res;
2532
+
2533
+ return (await getMoveCoder(client)).decodeDevInspectResult<
2534
+ [custodian_v2.AccountCap]
2535
+ >(insepctRes);
2451
2536
  }
2452
2537
  export async function createPool<T0 = any, T1 = any>(
2453
2538
  client: SuiClient,
@@ -2458,14 +2543,17 @@ export namespace clob_v2 {
2458
2543
  string | ObjectCallArg | TransactionArgument,
2459
2544
  ],
2460
2545
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2461
- ) {
2546
+ ): Promise<TypedDevInspectResults<[]>> {
2462
2547
  const tx = new TransactionBlock();
2463
2548
  builder.createPool(tx, args, typeArguments);
2464
- const res = await client.devInspectTransactionBlock({
2549
+ const insepctRes = await client.devInspectTransactionBlock({
2465
2550
  transactionBlock: tx,
2466
2551
  sender: ZERO_ADDRESS,
2467
2552
  });
2468
- return res;
2553
+
2554
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
2555
+ insepctRes,
2556
+ );
2469
2557
  }
2470
2558
  export async function depositBase<T0 = any, T1 = any>(
2471
2559
  client: SuiClient,
@@ -2475,14 +2563,17 @@ export namespace clob_v2 {
2475
2563
  string | ObjectCallArg | TransactionArgument,
2476
2564
  ],
2477
2565
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2478
- ) {
2566
+ ): Promise<TypedDevInspectResults<[]>> {
2479
2567
  const tx = new TransactionBlock();
2480
2568
  builder.depositBase(tx, args, typeArguments);
2481
- const res = await client.devInspectTransactionBlock({
2569
+ const insepctRes = await client.devInspectTransactionBlock({
2482
2570
  transactionBlock: tx,
2483
2571
  sender: ZERO_ADDRESS,
2484
2572
  });
2485
- return res;
2573
+
2574
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
2575
+ insepctRes,
2576
+ );
2486
2577
  }
2487
2578
  export async function depositQuote<T0 = any, T1 = any>(
2488
2579
  client: SuiClient,
@@ -2492,14 +2583,17 @@ export namespace clob_v2 {
2492
2583
  string | ObjectCallArg | TransactionArgument,
2493
2584
  ],
2494
2585
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2495
- ) {
2586
+ ): Promise<TypedDevInspectResults<[]>> {
2496
2587
  const tx = new TransactionBlock();
2497
2588
  builder.depositQuote(tx, args, typeArguments);
2498
- const res = await client.devInspectTransactionBlock({
2589
+ const insepctRes = await client.devInspectTransactionBlock({
2499
2590
  transactionBlock: tx,
2500
2591
  sender: ZERO_ADDRESS,
2501
2592
  });
2502
- return res;
2593
+
2594
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
2595
+ insepctRes,
2596
+ );
2503
2597
  }
2504
2598
  export async function getLevel2BookStatusAskSide<T0 = any, T1 = any>(
2505
2599
  client: SuiClient,
@@ -2510,14 +2604,17 @@ export namespace clob_v2 {
2510
2604
  string | ObjectCallArg | TransactionArgument,
2511
2605
  ],
2512
2606
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2513
- ) {
2607
+ ): Promise<TypedDevInspectResults<[bigint[], bigint[]]>> {
2514
2608
  const tx = new TransactionBlock();
2515
2609
  builder.getLevel2BookStatusAskSide(tx, args, typeArguments);
2516
- const res = await client.devInspectTransactionBlock({
2610
+ const insepctRes = await client.devInspectTransactionBlock({
2517
2611
  transactionBlock: tx,
2518
2612
  sender: ZERO_ADDRESS,
2519
2613
  });
2520
- return res;
2614
+
2615
+ return (await getMoveCoder(client)).decodeDevInspectResult<
2616
+ [bigint[], bigint[]]
2617
+ >(insepctRes);
2521
2618
  }
2522
2619
  export async function getLevel2BookStatusBidSide<T0 = any, T1 = any>(
2523
2620
  client: SuiClient,
@@ -2528,27 +2625,37 @@ export namespace clob_v2 {
2528
2625
  string | ObjectCallArg | TransactionArgument,
2529
2626
  ],
2530
2627
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2531
- ) {
2628
+ ): Promise<TypedDevInspectResults<[bigint[], bigint[]]>> {
2532
2629
  const tx = new TransactionBlock();
2533
2630
  builder.getLevel2BookStatusBidSide(tx, args, typeArguments);
2534
- const res = await client.devInspectTransactionBlock({
2631
+ const insepctRes = await client.devInspectTransactionBlock({
2535
2632
  transactionBlock: tx,
2536
2633
  sender: ZERO_ADDRESS,
2537
2634
  });
2538
- return res;
2635
+
2636
+ return (await getMoveCoder(client)).decodeDevInspectResult<
2637
+ [bigint[], bigint[]]
2638
+ >(insepctRes);
2539
2639
  }
2540
2640
  export async function getMarketPrice<T0 = any, T1 = any>(
2541
2641
  client: SuiClient,
2542
2642
  args: [string | ObjectCallArg | TransactionArgument],
2543
2643
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2544
- ) {
2644
+ ): Promise<
2645
+ TypedDevInspectResults<
2646
+ [_0x1.option.Option<bigint>, _0x1.option.Option<bigint>]
2647
+ >
2648
+ > {
2545
2649
  const tx = new TransactionBlock();
2546
2650
  builder.getMarketPrice(tx, args, typeArguments);
2547
- const res = await client.devInspectTransactionBlock({
2651
+ const insepctRes = await client.devInspectTransactionBlock({
2548
2652
  transactionBlock: tx,
2549
2653
  sender: ZERO_ADDRESS,
2550
2654
  });
2551
- return res;
2655
+
2656
+ return (await getMoveCoder(client)).decodeDevInspectResult<
2657
+ [_0x1.option.Option<bigint>, _0x1.option.Option<bigint>]
2658
+ >(insepctRes);
2552
2659
  }
2553
2660
  export async function getOrderStatus<T0 = any, T1 = any>(
2554
2661
  client: SuiClient,
@@ -2558,14 +2665,17 @@ export namespace clob_v2 {
2558
2665
  string | ObjectCallArg | TransactionArgument,
2559
2666
  ],
2560
2667
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2561
- ) {
2668
+ ): Promise<TypedDevInspectResults<[string]>> {
2562
2669
  const tx = new TransactionBlock();
2563
2670
  builder.getOrderStatus(tx, args, typeArguments);
2564
- const res = await client.devInspectTransactionBlock({
2671
+ const insepctRes = await client.devInspectTransactionBlock({
2565
2672
  transactionBlock: tx,
2566
2673
  sender: ZERO_ADDRESS,
2567
2674
  });
2568
- return res;
2675
+
2676
+ return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
2677
+ insepctRes,
2678
+ );
2569
2679
  }
2570
2680
  export async function listOpenOrders<T0 = any, T1 = any>(
2571
2681
  client: SuiClient,
@@ -2574,14 +2684,17 @@ export namespace clob_v2 {
2574
2684
  string | ObjectCallArg | TransactionArgument,
2575
2685
  ],
2576
2686
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2577
- ) {
2687
+ ): Promise<TypedDevInspectResults<[clob_v2.Order[]]>> {
2578
2688
  const tx = new TransactionBlock();
2579
2689
  builder.listOpenOrders(tx, args, typeArguments);
2580
- const res = await client.devInspectTransactionBlock({
2690
+ const insepctRes = await client.devInspectTransactionBlock({
2581
2691
  transactionBlock: tx,
2582
2692
  sender: ZERO_ADDRESS,
2583
2693
  });
2584
- return res;
2694
+
2695
+ return (await getMoveCoder(client)).decodeDevInspectResult<
2696
+ [clob_v2.Order[]]
2697
+ >(insepctRes);
2585
2698
  }
2586
2699
  export async function placeLimitOrder<T0 = any, T1 = any>(
2587
2700
  client: SuiClient,
@@ -2599,14 +2712,17 @@ export namespace clob_v2 {
2599
2712
  string | ObjectCallArg | TransactionArgument,
2600
2713
  ],
2601
2714
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2602
- ) {
2715
+ ): Promise<TypedDevInspectResults<[bigint, bigint, Boolean, bigint]>> {
2603
2716
  const tx = new TransactionBlock();
2604
2717
  builder.placeLimitOrder(tx, args, typeArguments);
2605
- const res = await client.devInspectTransactionBlock({
2718
+ const insepctRes = await client.devInspectTransactionBlock({
2606
2719
  transactionBlock: tx,
2607
2720
  sender: ZERO_ADDRESS,
2608
2721
  });
2609
- return res;
2722
+
2723
+ return (await getMoveCoder(client)).decodeDevInspectResult<
2724
+ [bigint, bigint, Boolean, bigint]
2725
+ >(insepctRes);
2610
2726
  }
2611
2727
  export async function placeMarketOrder<T0 = any, T1 = any>(
2612
2728
  client: SuiClient,
@@ -2622,14 +2738,19 @@ export namespace clob_v2 {
2622
2738
  string | ObjectCallArg | TransactionArgument,
2623
2739
  ],
2624
2740
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2625
- ) {
2741
+ ): Promise<
2742
+ TypedDevInspectResults<[_0x2.coin.Coin<T0>, _0x2.coin.Coin<T1>]>
2743
+ > {
2626
2744
  const tx = new TransactionBlock();
2627
2745
  builder.placeMarketOrder(tx, args, typeArguments);
2628
- const res = await client.devInspectTransactionBlock({
2746
+ const insepctRes = await client.devInspectTransactionBlock({
2629
2747
  transactionBlock: tx,
2630
2748
  sender: ZERO_ADDRESS,
2631
2749
  });
2632
- return res;
2750
+
2751
+ return (await getMoveCoder(client)).decodeDevInspectResult<
2752
+ [_0x2.coin.Coin<T0>, _0x2.coin.Coin<T1>]
2753
+ >(insepctRes);
2633
2754
  }
2634
2755
  export async function swapExactBaseForQuote<T0 = any, T1 = any>(
2635
2756
  client: SuiClient,
@@ -2644,14 +2765,19 @@ export namespace clob_v2 {
2644
2765
  string | ObjectCallArg | TransactionArgument,
2645
2766
  ],
2646
2767
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2647
- ) {
2768
+ ): Promise<
2769
+ TypedDevInspectResults<[_0x2.coin.Coin<T0>, _0x2.coin.Coin<T1>, bigint]>
2770
+ > {
2648
2771
  const tx = new TransactionBlock();
2649
2772
  builder.swapExactBaseForQuote(tx, args, typeArguments);
2650
- const res = await client.devInspectTransactionBlock({
2773
+ const insepctRes = await client.devInspectTransactionBlock({
2651
2774
  transactionBlock: tx,
2652
2775
  sender: ZERO_ADDRESS,
2653
2776
  });
2654
- return res;
2777
+
2778
+ return (await getMoveCoder(client)).decodeDevInspectResult<
2779
+ [_0x2.coin.Coin<T0>, _0x2.coin.Coin<T1>, bigint]
2780
+ >(insepctRes);
2655
2781
  }
2656
2782
  export async function swapExactQuoteForBase<T0 = any, T1 = any>(
2657
2783
  client: SuiClient,
@@ -2665,14 +2791,19 @@ export namespace clob_v2 {
2665
2791
  string | ObjectCallArg | TransactionArgument,
2666
2792
  ],
2667
2793
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2668
- ) {
2794
+ ): Promise<
2795
+ TypedDevInspectResults<[_0x2.coin.Coin<T0>, _0x2.coin.Coin<T1>, bigint]>
2796
+ > {
2669
2797
  const tx = new TransactionBlock();
2670
2798
  builder.swapExactQuoteForBase(tx, args, typeArguments);
2671
- const res = await client.devInspectTransactionBlock({
2799
+ const insepctRes = await client.devInspectTransactionBlock({
2672
2800
  transactionBlock: tx,
2673
2801
  sender: ZERO_ADDRESS,
2674
2802
  });
2675
- return res;
2803
+
2804
+ return (await getMoveCoder(client)).decodeDevInspectResult<
2805
+ [_0x2.coin.Coin<T0>, _0x2.coin.Coin<T1>, bigint]
2806
+ >(insepctRes);
2676
2807
  }
2677
2808
  export async function withdrawBase<T0 = any, T1 = any>(
2678
2809
  client: SuiClient,
@@ -2683,14 +2814,17 @@ export namespace clob_v2 {
2683
2814
  string | ObjectCallArg | TransactionArgument,
2684
2815
  ],
2685
2816
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2686
- ) {
2817
+ ): Promise<TypedDevInspectResults<[_0x2.coin.Coin<T0>]>> {
2687
2818
  const tx = new TransactionBlock();
2688
2819
  builder.withdrawBase(tx, args, typeArguments);
2689
- const res = await client.devInspectTransactionBlock({
2820
+ const insepctRes = await client.devInspectTransactionBlock({
2690
2821
  transactionBlock: tx,
2691
2822
  sender: ZERO_ADDRESS,
2692
2823
  });
2693
- return res;
2824
+
2825
+ return (await getMoveCoder(client)).decodeDevInspectResult<
2826
+ [_0x2.coin.Coin<T0>]
2827
+ >(insepctRes);
2694
2828
  }
2695
2829
  export async function withdrawQuote<T0 = any, T1 = any>(
2696
2830
  client: SuiClient,
@@ -2701,14 +2835,17 @@ export namespace clob_v2 {
2701
2835
  string | ObjectCallArg | TransactionArgument,
2702
2836
  ],
2703
2837
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2704
- ) {
2838
+ ): Promise<TypedDevInspectResults<[_0x2.coin.Coin<T1>]>> {
2705
2839
  const tx = new TransactionBlock();
2706
2840
  builder.withdrawQuote(tx, args, typeArguments);
2707
- const res = await client.devInspectTransactionBlock({
2841
+ const insepctRes = await client.devInspectTransactionBlock({
2708
2842
  transactionBlock: tx,
2709
2843
  sender: ZERO_ADDRESS,
2710
2844
  });
2711
- return res;
2845
+
2846
+ return (await getMoveCoder(client)).decodeDevInspectResult<
2847
+ [_0x2.coin.Coin<T1>]
2848
+ >(insepctRes);
2712
2849
  }
2713
2850
  }
2714
2851
  }
@@ -2806,14 +2943,17 @@ export namespace critbit {
2806
2943
  bigint | TransactionArgument,
2807
2944
  ],
2808
2945
  typeArguments: [TypeDescriptor<T0> | string],
2809
- ) {
2946
+ ): Promise<TypedDevInspectResults<[bigint, bigint]>> {
2810
2947
  const tx = new TransactionBlock();
2811
2948
  builder.previousLeaf(tx, args, typeArguments);
2812
- const res = await client.devInspectTransactionBlock({
2949
+ const insepctRes = await client.devInspectTransactionBlock({
2813
2950
  transactionBlock: tx,
2814
2951
  sender: ZERO_ADDRESS,
2815
2952
  });
2816
- return res;
2953
+
2954
+ return (await getMoveCoder(client)).decodeDevInspectResult<
2955
+ [bigint, bigint]
2956
+ >(insepctRes);
2817
2957
  }
2818
2958
  }
2819
2959
  }
@@ -2888,14 +3028,17 @@ export namespace custodian {
2888
3028
  export async function mintAccountCap(
2889
3029
  client: SuiClient,
2890
3030
  args: [string | ObjectCallArg | TransactionArgument],
2891
- ) {
3031
+ ): Promise<TypedDevInspectResults<[custodian.AccountCap]>> {
2892
3032
  const tx = new TransactionBlock();
2893
3033
  builder.mintAccountCap(tx, args);
2894
- const res = await client.devInspectTransactionBlock({
3034
+ const insepctRes = await client.devInspectTransactionBlock({
2895
3035
  transactionBlock: tx,
2896
3036
  sender: ZERO_ADDRESS,
2897
3037
  });
2898
- return res;
3038
+
3039
+ return (await getMoveCoder(client)).decodeDevInspectResult<
3040
+ [custodian.AccountCap]
3041
+ >(insepctRes);
2899
3042
  }
2900
3043
  }
2901
3044
  }
@@ -3006,14 +3149,17 @@ export namespace custodian_v2 {
3006
3149
  export async function accountOwner(
3007
3150
  client: SuiClient,
3008
3151
  args: [string | ObjectCallArg | TransactionArgument],
3009
- ) {
3152
+ ): Promise<TypedDevInspectResults<[string]>> {
3010
3153
  const tx = new TransactionBlock();
3011
3154
  builder.accountOwner(tx, args);
3012
- const res = await client.devInspectTransactionBlock({
3155
+ const insepctRes = await client.devInspectTransactionBlock({
3013
3156
  transactionBlock: tx,
3014
3157
  sender: ZERO_ADDRESS,
3015
3158
  });
3016
- return res;
3159
+
3160
+ return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
3161
+ insepctRes,
3162
+ );
3017
3163
  }
3018
3164
  export async function createChildAccountCap(
3019
3165
  client: SuiClient,
@@ -3021,27 +3167,33 @@ export namespace custodian_v2 {
3021
3167
  string | ObjectCallArg | TransactionArgument,
3022
3168
  string | ObjectCallArg | TransactionArgument,
3023
3169
  ],
3024
- ) {
3170
+ ): Promise<TypedDevInspectResults<[custodian_v2.AccountCap]>> {
3025
3171
  const tx = new TransactionBlock();
3026
3172
  builder.createChildAccountCap(tx, args);
3027
- const res = await client.devInspectTransactionBlock({
3173
+ const insepctRes = await client.devInspectTransactionBlock({
3028
3174
  transactionBlock: tx,
3029
3175
  sender: ZERO_ADDRESS,
3030
3176
  });
3031
- return res;
3177
+
3178
+ return (await getMoveCoder(client)).decodeDevInspectResult<
3179
+ [custodian_v2.AccountCap]
3180
+ >(insepctRes);
3032
3181
  }
3033
3182
 
3034
3183
  export async function deleteAccountCap(
3035
3184
  client: SuiClient,
3036
3185
  args: [custodian_v2.AccountCap | TransactionArgument],
3037
- ) {
3186
+ ): Promise<TypedDevInspectResults<[]>> {
3038
3187
  const tx = new TransactionBlock();
3039
3188
  builder.deleteAccountCap(tx, args);
3040
- const res = await client.devInspectTransactionBlock({
3189
+ const insepctRes = await client.devInspectTransactionBlock({
3041
3190
  transactionBlock: tx,
3042
3191
  sender: ZERO_ADDRESS,
3043
3192
  });
3044
- return res;
3193
+
3194
+ return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
3195
+ insepctRes,
3196
+ );
3045
3197
  }
3046
3198
  }
3047
3199
  }
@@ -3095,38 +3247,47 @@ export namespace math {
3095
3247
  export async function divRound(
3096
3248
  client: SuiClient,
3097
3249
  args: [bigint | TransactionArgument, bigint | TransactionArgument],
3098
- ) {
3250
+ ): Promise<TypedDevInspectResults<[Boolean, bigint]>> {
3099
3251
  const tx = new TransactionBlock();
3100
3252
  builder.divRound(tx, args);
3101
- const res = await client.devInspectTransactionBlock({
3253
+ const insepctRes = await client.devInspectTransactionBlock({
3102
3254
  transactionBlock: tx,
3103
3255
  sender: ZERO_ADDRESS,
3104
3256
  });
3105
- return res;
3257
+
3258
+ return (await getMoveCoder(client)).decodeDevInspectResult<
3259
+ [Boolean, bigint]
3260
+ >(insepctRes);
3106
3261
  }
3107
3262
  export async function mul(
3108
3263
  client: SuiClient,
3109
3264
  args: [bigint | TransactionArgument, bigint | TransactionArgument],
3110
- ) {
3265
+ ): Promise<TypedDevInspectResults<[bigint]>> {
3111
3266
  const tx = new TransactionBlock();
3112
3267
  builder.mul(tx, args);
3113
- const res = await client.devInspectTransactionBlock({
3268
+ const insepctRes = await client.devInspectTransactionBlock({
3114
3269
  transactionBlock: tx,
3115
3270
  sender: ZERO_ADDRESS,
3116
3271
  });
3117
- return res;
3272
+
3273
+ return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
3274
+ insepctRes,
3275
+ );
3118
3276
  }
3119
3277
  export async function mulRound(
3120
3278
  client: SuiClient,
3121
3279
  args: [bigint | TransactionArgument, bigint | TransactionArgument],
3122
- ) {
3280
+ ): Promise<TypedDevInspectResults<[Boolean, bigint]>> {
3123
3281
  const tx = new TransactionBlock();
3124
3282
  builder.mulRound(tx, args);
3125
- const res = await client.devInspectTransactionBlock({
3283
+ const insepctRes = await client.devInspectTransactionBlock({
3126
3284
  transactionBlock: tx,
3127
3285
  sender: ZERO_ADDRESS,
3128
3286
  });
3129
- return res;
3287
+
3288
+ return (await getMoveCoder(client)).decodeDevInspectResult<
3289
+ [Boolean, bigint]
3290
+ >(insepctRes);
3130
3291
  }
3131
3292
  }
3132
3293
  }