@typemove/sui 1.6.10 → 1.6.11

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 (34) hide show
  1. package/dist/cjs/builtin/0x1.d.ts +166 -305
  2. package/dist/cjs/builtin/0x1.d.ts.map +1 -1
  3. package/dist/cjs/builtin/0x1.js.map +1 -1
  4. package/dist/cjs/builtin/0x2.d.ts +559 -1475
  5. package/dist/cjs/builtin/0x2.d.ts.map +1 -1
  6. package/dist/cjs/builtin/0x2.js.map +1 -1
  7. package/dist/cjs/builtin/0x3.d.ts +334 -806
  8. package/dist/cjs/builtin/0x3.d.ts.map +1 -1
  9. package/dist/cjs/builtin/0x3.js.map +1 -1
  10. package/dist/cjs/codegen/codegen.d.ts.map +1 -1
  11. package/dist/cjs/codegen/codegen.js +12 -6
  12. package/dist/cjs/codegen/codegen.js.map +1 -1
  13. package/dist/esm/builtin/0x1.d.ts +166 -305
  14. package/dist/esm/builtin/0x1.d.ts.map +1 -1
  15. package/dist/esm/builtin/0x1.js.map +1 -1
  16. package/dist/esm/builtin/0x2.d.ts +559 -1475
  17. package/dist/esm/builtin/0x2.d.ts.map +1 -1
  18. package/dist/esm/builtin/0x2.js.map +1 -1
  19. package/dist/esm/builtin/0x3.d.ts +334 -806
  20. package/dist/esm/builtin/0x3.d.ts.map +1 -1
  21. package/dist/esm/builtin/0x3.js.map +1 -1
  22. package/dist/esm/codegen/codegen.d.ts.map +1 -1
  23. package/dist/esm/codegen/codegen.js +12 -6
  24. package/dist/esm/codegen/codegen.js.map +1 -1
  25. package/package.json +2 -2
  26. package/src/builtin/0x1.ts +166 -305
  27. package/src/builtin/0x2.ts +552 -1468
  28. package/src/builtin/0x3.ts +331 -803
  29. package/src/codegen/codegen.ts +12 -6
  30. package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +4 -13
  31. package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +46 -188
  32. package/src/tests/types/testnet/0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e.ts +29 -78
  33. package/src/tests/types/testnet/0xdee9.ts +110 -346
  34. package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +245 -642
@@ -314,10 +314,7 @@ export namespace airdrop {
314
314
  export namespace view {
315
315
  export async function addRecord(
316
316
  client: SuiClient,
317
- args: [
318
- string | TransactionObjectArgument | TransactionArgument,
319
- string | TransactionArgument,
320
- ],
317
+ args: [string, string],
321
318
  ): Promise<TypedDevInspectResults<[]>> {
322
319
  const tx = new Transaction();
323
320
  builder.addRecord(tx, args);
@@ -332,11 +329,7 @@ export namespace airdrop {
332
329
  }
333
330
  export async function authorizeApi(
334
331
  client: SuiClient,
335
- args: [
336
- string | TransactionObjectArgument | TransactionArgument,
337
- string | TransactionObjectArgument | TransactionArgument,
338
- string | TransactionArgument,
339
- ],
332
+ args: [string, string, string],
340
333
  ): Promise<TypedDevInspectResults<[]>> {
341
334
  const tx = new Transaction();
342
335
  builder.authorizeApi(tx, args);
@@ -351,11 +344,7 @@ export namespace airdrop {
351
344
  }
352
345
  export async function deauthorizeApi(
353
346
  client: SuiClient,
354
- args: [
355
- string | TransactionObjectArgument | TransactionArgument,
356
- string | TransactionObjectArgument | TransactionArgument,
357
- string | TransactionArgument,
358
- ],
347
+ args: [string, string, string],
359
348
  ): Promise<TypedDevInspectResults<[]>> {
360
349
  const tx = new Transaction();
361
350
  builder.deauthorizeApi(tx, args);
@@ -370,10 +359,7 @@ export namespace airdrop {
370
359
  }
371
360
  export async function finalizeSend(
372
361
  client: SuiClient,
373
- args: [
374
- string | TransactionObjectArgument | TransactionArgument,
375
- airdrop.AirdropConfig | TransactionArgument,
376
- ],
362
+ args: [string, airdrop.AirdropConfig],
377
363
  ): Promise<TypedDevInspectResults<[]>> {
378
364
  const tx = new Transaction();
379
365
  builder.finalizeSend(tx, args);
@@ -388,7 +374,7 @@ export namespace airdrop {
388
374
  }
389
375
  export async function initSend(
390
376
  client: SuiClient,
391
- args: [string | TransactionObjectArgument | TransactionArgument],
377
+ args: [string],
392
378
  ): Promise<TypedDevInspectResults<[airdrop.AirdropConfig]>> {
393
379
  const tx = new Transaction();
394
380
  builder.initSend(tx, args);
@@ -403,10 +389,7 @@ export namespace airdrop {
403
389
  }
404
390
  export async function isAirdropped(
405
391
  client: SuiClient,
406
- args: [
407
- string | TransactionObjectArgument | TransactionArgument,
408
- string | TransactionArgument,
409
- ],
392
+ args: [string, string],
410
393
  ): Promise<TypedDevInspectResults<[boolean]>> {
411
394
  const tx = new Transaction();
412
395
  builder.isAirdropped(tx, args);
@@ -421,10 +404,7 @@ export namespace airdrop {
421
404
  }
422
405
  export async function removeRecord(
423
406
  client: SuiClient,
424
- args: [
425
- string | TransactionObjectArgument | TransactionArgument,
426
- string | TransactionArgument,
427
- ],
407
+ args: [string, string],
428
408
  ): Promise<TypedDevInspectResults<[]>> {
429
409
  const tx = new Transaction();
430
410
  builder.removeRecord(tx, args);
@@ -439,7 +419,7 @@ export namespace airdrop {
439
419
  }
440
420
  export async function roles(
441
421
  client: SuiClient,
442
- args: [string | TransactionObjectArgument | TransactionArgument],
422
+ args: [string],
443
423
  ): Promise<TypedDevInspectResults<[string]>> {
444
424
  const tx = new Transaction();
445
425
  builder.roles(tx, args);
@@ -454,7 +434,7 @@ export namespace airdrop {
454
434
  }
455
435
  export async function rolesMut(
456
436
  client: SuiClient,
457
- args: [string | TransactionObjectArgument | TransactionArgument],
437
+ args: [string],
458
438
  ): Promise<TypedDevInspectResults<[string]>> {
459
439
  const tx = new Transaction();
460
440
  builder.rolesMut(tx, args);
@@ -469,14 +449,7 @@ export namespace airdrop {
469
449
  }
470
450
  export async function sendToken<T0 = any>(
471
451
  client: SuiClient,
472
- args: [
473
- string | TransactionObjectArgument | TransactionArgument,
474
- bigint | TransactionArgument,
475
- string | TransactionArgument,
476
- string | TransactionArgument,
477
- string | TransactionObjectArgument | TransactionArgument,
478
- string | TransactionObjectArgument | TransactionArgument,
479
- ],
452
+ args: [string, bigint, string, string, string, string],
480
453
  typeArguments: [TypeDescriptor<T0> | string],
481
454
  ): Promise<TypedDevInspectResults<[]>> {
482
455
  const tx = new Transaction();
@@ -786,7 +759,7 @@ export namespace roles {
786
759
  export namespace view {
787
760
  export async function addr<T0 = any>(
788
761
  client: SuiClient,
789
- args: [string | TransactionObjectArgument | TransactionArgument],
762
+ args: [string],
790
763
  typeArguments: [TypeDescriptor<T0> | string],
791
764
  ): Promise<TypedDevInspectResults<[string]>> {
792
765
  const tx = new Transaction();
@@ -802,10 +775,7 @@ export namespace roles {
802
775
  }
803
776
  export async function assertHasRole<T0 = any>(
804
777
  client: SuiClient,
805
- args: [
806
- string | TransactionObjectArgument | TransactionArgument,
807
- string | TransactionArgument,
808
- ],
778
+ args: [string, string],
809
779
  typeArguments: [TypeDescriptor<T0> | string],
810
780
  ): Promise<TypedDevInspectResults<[]>> {
811
781
  const tx = new Transaction();
@@ -821,7 +791,7 @@ export namespace roles {
821
791
  }
822
792
  export async function assertPublisherFromPackage(
823
793
  client: SuiClient,
824
- args: [string | TransactionObjectArgument | TransactionArgument],
794
+ args: [string],
825
795
  ): Promise<TypedDevInspectResults<[]>> {
826
796
  const tx = new Transaction();
827
797
  builder.assertPublisherFromPackage(tx, args);
@@ -836,10 +806,7 @@ export namespace roles {
836
806
  }
837
807
  export async function authorize<T0 = any>(
838
808
  client: SuiClient,
839
- args: [
840
- string | TransactionObjectArgument | TransactionArgument,
841
- roles.Role<T0> | TransactionArgument,
842
- ],
809
+ args: [string, roles.Role<T0>],
843
810
  typeArguments: [TypeDescriptor<T0> | string],
844
811
  ): Promise<TypedDevInspectResults<[]>> {
845
812
  const tx = new Transaction();
@@ -855,10 +822,7 @@ export namespace roles {
855
822
  }
856
823
  export async function config<T0 = any, T1 = any>(
857
824
  client: SuiClient,
858
- args: [
859
- string | TransactionObjectArgument | TransactionArgument,
860
- string | TransactionArgument,
861
- ],
825
+ args: [string, string],
862
826
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
863
827
  ): Promise<TypedDevInspectResults<[string]>> {
864
828
  const tx = new Transaction();
@@ -874,7 +838,7 @@ export namespace roles {
874
838
  }
875
839
  export async function data(
876
840
  client: SuiClient,
877
- args: [string | TransactionObjectArgument | TransactionArgument],
841
+ args: [string],
878
842
  ): Promise<TypedDevInspectResults<[string]>> {
879
843
  const tx = new Transaction();
880
844
  builder.data(tx, args);
@@ -889,10 +853,7 @@ export namespace roles {
889
853
  }
890
854
  export async function deauthorize<T0 = any>(
891
855
  client: SuiClient,
892
- args: [
893
- string | TransactionObjectArgument | TransactionArgument,
894
- roles.Role<T0> | TransactionArgument,
895
- ],
856
+ args: [string, roles.Role<T0>],
896
857
  typeArguments: [TypeDescriptor<T0> | string],
897
858
  ): Promise<TypedDevInspectResults<[boolean]>> {
898
859
  const tx = new Transaction();
@@ -908,7 +869,7 @@ export namespace roles {
908
869
  }
909
870
  export async function destroyEmpty(
910
871
  client: SuiClient,
911
- args: [roles.Roles | TransactionArgument],
872
+ args: [roles.Roles],
912
873
  ): Promise<TypedDevInspectResults<[]>> {
913
874
  const tx = new Transaction();
914
875
  builder.destroyEmpty(tx, args);
@@ -923,10 +884,7 @@ export namespace roles {
923
884
  }
924
885
  export async function isAuthorized<T0 = any>(
925
886
  client: SuiClient,
926
- args: [
927
- string | TransactionObjectArgument | TransactionArgument,
928
- string | TransactionArgument,
929
- ],
887
+ args: [string, string],
930
888
  typeArguments: [TypeDescriptor<T0> | string],
931
889
  ): Promise<TypedDevInspectResults<[boolean]>> {
932
890
  const tx = new Transaction();
@@ -957,7 +915,7 @@ export namespace roles {
957
915
  }
958
916
  export async function newRole<T0 = any>(
959
917
  client: SuiClient,
960
- args: [string | TransactionArgument],
918
+ args: [string],
961
919
  typeArguments: [TypeDescriptor<T0> | string],
962
920
  ): Promise<TypedDevInspectResults<[roles.Role<T0>]>> {
963
921
  const tx = new Transaction();
@@ -1148,7 +1106,7 @@ export namespace safe {
1148
1106
  export namespace view {
1149
1107
  export async function balance<T0 = any>(
1150
1108
  client: SuiClient,
1151
- args: [string | TransactionObjectArgument | TransactionArgument],
1109
+ args: [string],
1152
1110
  typeArguments: [TypeDescriptor<T0> | string],
1153
1111
  ): Promise<TypedDevInspectResults<[bigint]>> {
1154
1112
  const tx = new Transaction();
@@ -1164,7 +1122,7 @@ export namespace safe {
1164
1122
  }
1165
1123
  export async function balanceMut<T0 = any>(
1166
1124
  client: SuiClient,
1167
- args: [string | TransactionObjectArgument | TransactionArgument],
1125
+ args: [string],
1168
1126
  typeArguments: [TypeDescriptor<T0> | string],
1169
1127
  ): Promise<TypedDevInspectResults<[string]>> {
1170
1128
  const tx = new Transaction();
@@ -1180,7 +1138,7 @@ export namespace safe {
1180
1138
  }
1181
1139
  export async function delete_<T0 = any>(
1182
1140
  client: SuiClient,
1183
- args: [safe.Safe<T0> | TransactionArgument],
1141
+ args: [safe.Safe<T0>],
1184
1142
  typeArguments: [TypeDescriptor<T0> | string],
1185
1143
  ): Promise<TypedDevInspectResults<[]>> {
1186
1144
  const tx = new Transaction();
@@ -1212,11 +1170,7 @@ export namespace safe {
1212
1170
  }
1213
1171
  export async function put<T0 = any>(
1214
1172
  client: SuiClient,
1215
- args: [
1216
- string | TransactionObjectArgument | TransactionArgument,
1217
- _0x2.coin.Coin<T0> | TransactionArgument,
1218
- string | TransactionObjectArgument | TransactionArgument,
1219
- ],
1173
+ args: [string, _0x2.coin.Coin<T0>, string],
1220
1174
  typeArguments: [TypeDescriptor<T0> | string],
1221
1175
  ): Promise<TypedDevInspectResults<[]>> {
1222
1176
  const tx = new Transaction();
@@ -1232,7 +1186,7 @@ export namespace safe {
1232
1186
  }
1233
1187
  export async function share<T0 = any>(
1234
1188
  client: SuiClient,
1235
- args: [safe.Safe<T0> | TransactionArgument],
1189
+ args: [safe.Safe<T0>],
1236
1190
  typeArguments: [TypeDescriptor<T0> | string],
1237
1191
  ): Promise<TypedDevInspectResults<[]>> {
1238
1192
  const tx = new Transaction();
@@ -1248,10 +1202,7 @@ export namespace safe {
1248
1202
  }
1249
1203
  export async function withdraw<T0 = any>(
1250
1204
  client: SuiClient,
1251
- args: [
1252
- string | TransactionObjectArgument | TransactionArgument,
1253
- string | TransactionObjectArgument | TransactionArgument,
1254
- ],
1205
+ args: [string, string],
1255
1206
  typeArguments: [TypeDescriptor<T0> | string],
1256
1207
  ): Promise<TypedDevInspectResults<[_0x2.coin.Coin<T0>]>> {
1257
1208
  const tx = new Transaction();
@@ -1374,7 +1325,7 @@ export namespace treasury {
1374
1325
  export namespace view {
1375
1326
  export async function share<T0 = any>(
1376
1327
  client: SuiClient,
1377
- args: [treasury.WrappedTreasury<T0> | TransactionArgument],
1328
+ args: [treasury.WrappedTreasury<T0>],
1378
1329
  typeArguments: [TypeDescriptor<T0> | string],
1379
1330
  ): Promise<TypedDevInspectResults<[]>> {
1380
1331
  const tx = new Transaction();
@@ -1390,7 +1341,7 @@ export namespace treasury {
1390
1341
  }
1391
1342
  export async function totalSupply<T0 = any>(
1392
1343
  client: SuiClient,
1393
- args: [string | TransactionObjectArgument | TransactionArgument],
1344
+ args: [string],
1394
1345
  typeArguments: [TypeDescriptor<T0> | string],
1395
1346
  ): Promise<TypedDevInspectResults<[bigint]>> {
1396
1347
  const tx = new Transaction();
@@ -1406,7 +1357,7 @@ export namespace treasury {
1406
1357
  }
1407
1358
  export async function wrap<T0 = any>(
1408
1359
  client: SuiClient,
1409
- args: [_0x2.coin.TreasuryCap<T0> | TransactionArgument],
1360
+ args: [_0x2.coin.TreasuryCap<T0>],
1410
1361
  typeArguments: [TypeDescriptor<T0> | string],
1411
1362
  ): Promise<TypedDevInspectResults<[treasury.WrappedTreasury<T0>]>> {
1412
1363
  const tx = new Transaction();