@typemove/sui 1.2.0 → 1.2.1

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 (57) hide show
  1. package/dist/cjs/builtin/0x1.d.ts +2 -2
  2. package/dist/cjs/builtin/0x1.d.ts.map +1 -1
  3. package/dist/cjs/builtin/0x1.js +113 -158
  4. package/dist/cjs/builtin/0x1.js.map +1 -1
  5. package/dist/cjs/builtin/0x2.d.ts +2 -2
  6. package/dist/cjs/builtin/0x2.d.ts.map +1 -1
  7. package/dist/cjs/builtin/0x2.js +594 -724
  8. package/dist/cjs/builtin/0x2.js.map +1 -1
  9. package/dist/cjs/builtin/0x3.d.ts +2 -2
  10. package/dist/cjs/builtin/0x3.d.ts.map +1 -1
  11. package/dist/cjs/builtin/0x3.js +194 -364
  12. package/dist/cjs/builtin/0x3.js.map +1 -1
  13. package/dist/cjs/codegen/codegen.d.ts.map +1 -1
  14. package/dist/cjs/codegen/codegen.js +6 -8
  15. package/dist/cjs/codegen/codegen.js.map +1 -1
  16. package/dist/cjs/index.d.ts +1 -0
  17. package/dist/cjs/index.d.ts.map +1 -1
  18. package/dist/cjs/index.js +1 -0
  19. package/dist/cjs/index.js.map +1 -1
  20. package/dist/cjs/transaction.d.ts +6 -0
  21. package/dist/cjs/transaction.d.ts.map +1 -0
  22. package/dist/cjs/transaction.js +35 -0
  23. package/dist/cjs/transaction.js.map +1 -0
  24. package/dist/esm/builtin/0x1.d.ts +2 -2
  25. package/dist/esm/builtin/0x1.d.ts.map +1 -1
  26. package/dist/esm/builtin/0x1.js +114 -159
  27. package/dist/esm/builtin/0x1.js.map +1 -1
  28. package/dist/esm/builtin/0x2.d.ts +2 -2
  29. package/dist/esm/builtin/0x2.d.ts.map +1 -1
  30. package/dist/esm/builtin/0x2.js +595 -725
  31. package/dist/esm/builtin/0x2.js.map +1 -1
  32. package/dist/esm/builtin/0x3.d.ts +2 -2
  33. package/dist/esm/builtin/0x3.d.ts.map +1 -1
  34. package/dist/esm/builtin/0x3.js +195 -365
  35. package/dist/esm/builtin/0x3.js.map +1 -1
  36. package/dist/esm/codegen/codegen.d.ts.map +1 -1
  37. package/dist/esm/codegen/codegen.js +6 -8
  38. package/dist/esm/codegen/codegen.js.map +1 -1
  39. package/dist/esm/index.d.ts +1 -0
  40. package/dist/esm/index.d.ts.map +1 -1
  41. package/dist/esm/index.js +1 -0
  42. package/dist/esm/index.js.map +1 -1
  43. package/dist/esm/transaction.d.ts +6 -0
  44. package/dist/esm/transaction.d.ts.map +1 -0
  45. package/dist/esm/transaction.js +28 -0
  46. package/dist/esm/transaction.js.map +1 -0
  47. package/package.json +3 -3
  48. package/src/builtin/0x1.ts +122 -285
  49. package/src/builtin/0x2.ts +603 -1479
  50. package/src/builtin/0x3.ts +203 -705
  51. package/src/codegen/codegen.ts +6 -8
  52. package/src/index.ts +1 -0
  53. package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +22 -28
  54. package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +166 -386
  55. package/src/tests/types/testnet/0xdee9.ts +175 -383
  56. package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +527 -1350
  57. package/src/transaction.ts +31 -0
@@ -14,9 +14,17 @@ import {
14
14
  TypedDevInspectResults,
15
15
  getMoveCoder,
16
16
  } from "@typemove/sui";
17
- import { TransactionBlock } from "@mysten/sui.js/transactions";
18
- import { ObjectCallArg, TransactionArgument } from "@mysten/sui.js";
17
+ import {
18
+ TransactionBlock,
19
+ TransactionArgument,
20
+ } from "@mysten/sui.js/transactions";
19
21
  import { SuiClient } from "@mysten/sui.js/client";
22
+ import { type ObjectCallArg } from "@mysten/sui.js/dist/esm/builder/Inputs.js";
23
+ import {
24
+ transactionArgumentOrObject,
25
+ transactionArgumentOrPure,
26
+ transactionArgumentOrVec,
27
+ } from "@typemove/sui";
20
28
 
21
29
  import * as _0x1 from "./0x1.js";
22
30
  import * as _0x2 from "./0x2.js";
@@ -156,9 +164,7 @@ export namespace stake_subsidy {
156
164
  args: [string | ObjectCallArg | TransactionArgument],
157
165
  ): TransactionArgument & [TransactionArgument] {
158
166
  const _args: any[] = [];
159
- _args.push(
160
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
161
- );
167
+ _args.push(transactionArgumentOrObject(args[0], tx));
162
168
 
163
169
  // @ts-ignore
164
170
  return tx.moveCall({
@@ -263,12 +269,8 @@ export namespace staking_pool {
263
269
  ],
264
270
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
265
271
  const _args: any[] = [];
266
- _args.push(
267
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
268
- );
269
- _args.push(
270
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
271
- );
272
+ _args.push(transactionArgumentOrObject(args[0], tx));
273
+ _args.push(transactionArgumentOrObject(args[1], tx));
272
274
 
273
275
  // @ts-ignore
274
276
  return tx.moveCall({
@@ -281,9 +283,7 @@ export namespace staking_pool {
281
283
  args: [string | ObjectCallArg | TransactionArgument],
282
284
  ): TransactionArgument & [TransactionArgument] {
283
285
  const _args: any[] = [];
284
- _args.push(
285
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
286
- );
286
+ _args.push(transactionArgumentOrObject(args[0], tx));
287
287
 
288
288
  // @ts-ignore
289
289
  return tx.moveCall({
@@ -296,9 +296,7 @@ export namespace staking_pool {
296
296
  args: [string | ObjectCallArg | TransactionArgument],
297
297
  ): TransactionArgument & [TransactionArgument] {
298
298
  const _args: any[] = [];
299
- _args.push(
300
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
301
- );
299
+ _args.push(transactionArgumentOrObject(args[0], tx));
302
300
 
303
301
  // @ts-ignore
304
302
  return tx.moveCall({
@@ -314,10 +312,8 @@ export namespace staking_pool {
314
312
  ],
315
313
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
316
314
  const _args: any[] = [];
317
- _args.push(
318
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
319
- );
320
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
315
+ _args.push(transactionArgumentOrObject(args[0], tx));
316
+ _args.push(transactionArgumentOrPure(args[1], tx));
321
317
 
322
318
  // @ts-ignore
323
319
  return tx.moveCall({
@@ -331,9 +327,7 @@ export namespace staking_pool {
331
327
  args: [string | ObjectCallArg | TransactionArgument],
332
328
  ): TransactionArgument & [TransactionArgument] {
333
329
  const _args: any[] = [];
334
- _args.push(
335
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
336
- );
330
+ _args.push(transactionArgumentOrObject(args[0], tx));
337
331
 
338
332
  // @ts-ignore
339
333
  return tx.moveCall({
@@ -346,9 +340,7 @@ export namespace staking_pool {
346
340
  args: [string | ObjectCallArg | TransactionArgument],
347
341
  ): TransactionArgument & [TransactionArgument] {
348
342
  const _args: any[] = [];
349
- _args.push(
350
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
351
- );
343
+ _args.push(transactionArgumentOrObject(args[0], tx));
352
344
 
353
345
  // @ts-ignore
354
346
  return tx.moveCall({
@@ -361,9 +353,7 @@ export namespace staking_pool {
361
353
  args: [string | ObjectCallArg | TransactionArgument],
362
354
  ): TransactionArgument & [TransactionArgument] {
363
355
  const _args: any[] = [];
364
- _args.push(
365
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
366
- );
356
+ _args.push(transactionArgumentOrObject(args[0], tx));
367
357
 
368
358
  // @ts-ignore
369
359
  return tx.moveCall({
@@ -379,10 +369,8 @@ export namespace staking_pool {
379
369
  ],
380
370
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
381
371
  const _args: any[] = [];
382
- _args.push(
383
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
384
- );
385
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
372
+ _args.push(transactionArgumentOrObject(args[0], tx));
373
+ _args.push(transactionArgumentOrPure(args[1], tx));
386
374
 
387
375
  // @ts-ignore
388
376
  return tx.moveCall({
@@ -401,13 +389,9 @@ export namespace staking_pool {
401
389
  ): TransactionArgument &
402
390
  [TransactionArgument, TransactionArgument, TransactionArgument] {
403
391
  const _args: any[] = [];
404
- _args.push(
405
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
406
- );
407
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
408
- _args.push(
409
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
410
- );
392
+ _args.push(transactionArgumentOrObject(args[0], tx));
393
+ _args.push(transactionArgumentOrPure(args[1], tx));
394
+ _args.push(transactionArgumentOrObject(args[2], tx));
411
395
 
412
396
  // @ts-ignore
413
397
  return tx.moveCall({
@@ -425,13 +409,9 @@ export namespace staking_pool {
425
409
  ): TransactionArgument &
426
410
  [TransactionArgument, TransactionArgument, TransactionArgument] {
427
411
  const _args: any[] = [];
428
- _args.push(
429
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
430
- );
431
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
432
- _args.push(
433
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
434
- );
412
+ _args.push(transactionArgumentOrObject(args[0], tx));
413
+ _args.push(transactionArgumentOrPure(args[1], tx));
414
+ _args.push(transactionArgumentOrObject(args[2], tx));
435
415
 
436
416
  // @ts-ignore
437
417
  return tx.moveCall({
@@ -444,9 +424,7 @@ export namespace staking_pool {
444
424
  args: [string | ObjectCallArg | TransactionArgument],
445
425
  ): TransactionArgument & [TransactionArgument] {
446
426
  const _args: any[] = [];
447
- _args.push(
448
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
449
- );
427
+ _args.push(transactionArgumentOrObject(args[0], tx));
450
428
 
451
429
  // @ts-ignore
452
430
  return tx.moveCall({
@@ -459,9 +437,7 @@ export namespace staking_pool {
459
437
  args: [string | ObjectCallArg | TransactionArgument],
460
438
  ): TransactionArgument & [TransactionArgument] {
461
439
  const _args: any[] = [];
462
- _args.push(
463
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
464
- );
440
+ _args.push(transactionArgumentOrObject(args[0], tx));
465
441
 
466
442
  // @ts-ignore
467
443
  return tx.moveCall({
@@ -474,9 +450,7 @@ export namespace staking_pool {
474
450
  args: [string | ObjectCallArg | TransactionArgument],
475
451
  ): TransactionArgument & [TransactionArgument] {
476
452
  const _args: any[] = [];
477
- _args.push(
478
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
479
- );
453
+ _args.push(transactionArgumentOrObject(args[0], tx));
480
454
 
481
455
  // @ts-ignore
482
456
  return tx.moveCall({
@@ -725,9 +699,7 @@ export namespace storage_fund {
725
699
  args: [string | ObjectCallArg | TransactionArgument],
726
700
  ): TransactionArgument & [TransactionArgument] {
727
701
  const _args: any[] = [];
728
- _args.push(
729
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
730
- );
702
+ _args.push(transactionArgumentOrObject(args[0], tx));
731
703
 
732
704
  // @ts-ignore
733
705
  return tx.moveCall({
@@ -740,9 +712,7 @@ export namespace storage_fund {
740
712
  args: [string | ObjectCallArg | TransactionArgument],
741
713
  ): TransactionArgument & [TransactionArgument] {
742
714
  const _args: any[] = [];
743
- _args.push(
744
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
745
- );
715
+ _args.push(transactionArgumentOrObject(args[0], tx));
746
716
 
747
717
  // @ts-ignore
748
718
  return tx.moveCall({
@@ -812,13 +782,9 @@ export namespace sui_system {
812
782
  ): TransactionArgument &
813
783
  [TransactionArgument, TransactionArgument, TransactionArgument] {
814
784
  const _args: any[] = [];
815
- _args.push(
816
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
817
- );
818
- _args.push(
819
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
820
- );
821
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
785
+ _args.push(transactionArgumentOrObject(args[0], tx));
786
+ _args.push(transactionArgumentOrObject(args[1], tx));
787
+ _args.push(transactionArgumentOrPure(args[2], tx));
822
788
 
823
789
  // @ts-ignore
824
790
  return tx.moveCall({
@@ -842,14 +808,10 @@ export namespace sui_system {
842
808
  TransactionArgument,
843
809
  ] {
844
810
  const _args: any[] = [];
845
- _args.push(
846
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
847
- );
848
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
849
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
850
- _args.push(
851
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
852
- );
811
+ _args.push(transactionArgumentOrObject(args[0], tx));
812
+ _args.push(transactionArgumentOrPure(args[1], tx));
813
+ _args.push(transactionArgumentOrPure(args[2], tx));
814
+ _args.push(transactionArgumentOrObject(args[3], tx));
853
815
 
854
816
  // @ts-ignore
855
817
  return tx.moveCall({
@@ -875,22 +837,11 @@ export namespace sui_system {
875
837
  TransactionArgument,
876
838
  ] {
877
839
  const _args: any[] = [];
878
- _args.push(
879
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
880
- );
881
- _args.push(
882
- TransactionArgument.is(args[1])
883
- ? args[1]
884
- : tx.makeMoveVec({
885
- objects: args[1].map((a: any) => tx.object(a)),
886
- // type: TODO
887
- }),
888
- );
889
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
890
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
891
- _args.push(
892
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
893
- );
840
+ _args.push(transactionArgumentOrObject(args[0], tx));
841
+ _args.push(transactionArgumentOrVec(args[1], tx));
842
+ _args.push(transactionArgumentOrPure(args[2], tx));
843
+ _args.push(transactionArgumentOrPure(args[3], tx));
844
+ _args.push(transactionArgumentOrObject(args[4], tx));
894
845
 
895
846
  // @ts-ignore
896
847
  return tx.moveCall({
@@ -906,12 +857,8 @@ export namespace sui_system {
906
857
  ],
907
858
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
908
859
  const _args: any[] = [];
909
- _args.push(
910
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
911
- );
912
- _args.push(
913
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
914
- );
860
+ _args.push(transactionArgumentOrObject(args[0], tx));
861
+ _args.push(transactionArgumentOrObject(args[1], tx));
915
862
 
916
863
  // @ts-ignore
917
864
  return tx.moveCall({
@@ -959,114 +906,22 @@ export namespace sui_system {
959
906
  TransactionArgument,
960
907
  ] {
961
908
  const _args: any[] = [];
962
- _args.push(
963
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
964
- );
965
- _args.push(
966
- TransactionArgument.is(args[1])
967
- ? args[1]
968
- : tx.makeMoveVec({
969
- objects: args[1].map((a: any) => tx.object(a)),
970
- // type: TODO
971
- }),
972
- );
973
- _args.push(
974
- TransactionArgument.is(args[2])
975
- ? args[2]
976
- : tx.makeMoveVec({
977
- objects: args[2].map((a: any) => tx.object(a)),
978
- // type: TODO
979
- }),
980
- );
981
- _args.push(
982
- TransactionArgument.is(args[3])
983
- ? args[3]
984
- : tx.makeMoveVec({
985
- objects: args[3].map((a: any) => tx.object(a)),
986
- // type: TODO
987
- }),
988
- );
989
- _args.push(
990
- TransactionArgument.is(args[4])
991
- ? args[4]
992
- : tx.makeMoveVec({
993
- objects: args[4].map((a: any) => tx.object(a)),
994
- // type: TODO
995
- }),
996
- );
997
- _args.push(
998
- TransactionArgument.is(args[5])
999
- ? args[5]
1000
- : tx.makeMoveVec({
1001
- objects: args[5].map((a: any) => tx.object(a)),
1002
- // type: TODO
1003
- }),
1004
- );
1005
- _args.push(
1006
- TransactionArgument.is(args[6])
1007
- ? args[6]
1008
- : tx.makeMoveVec({
1009
- objects: args[6].map((a: any) => tx.object(a)),
1010
- // type: TODO
1011
- }),
1012
- );
1013
- _args.push(
1014
- TransactionArgument.is(args[7])
1015
- ? args[7]
1016
- : tx.makeMoveVec({
1017
- objects: args[7].map((a: any) => tx.object(a)),
1018
- // type: TODO
1019
- }),
1020
- );
1021
- _args.push(
1022
- TransactionArgument.is(args[8])
1023
- ? args[8]
1024
- : tx.makeMoveVec({
1025
- objects: args[8].map((a: any) => tx.object(a)),
1026
- // type: TODO
1027
- }),
1028
- );
1029
- _args.push(
1030
- TransactionArgument.is(args[9])
1031
- ? args[9]
1032
- : tx.makeMoveVec({
1033
- objects: args[9].map((a: any) => tx.object(a)),
1034
- // type: TODO
1035
- }),
1036
- );
1037
- _args.push(
1038
- TransactionArgument.is(args[10])
1039
- ? args[10]
1040
- : tx.makeMoveVec({
1041
- objects: args[10].map((a: any) => tx.object(a)),
1042
- // type: TODO
1043
- }),
1044
- );
1045
- _args.push(
1046
- TransactionArgument.is(args[11])
1047
- ? args[11]
1048
- : tx.makeMoveVec({
1049
- objects: args[11].map((a: any) => tx.object(a)),
1050
- // type: TODO
1051
- }),
1052
- );
1053
- _args.push(
1054
- TransactionArgument.is(args[12])
1055
- ? args[12]
1056
- : tx.makeMoveVec({
1057
- objects: args[12].map((a: any) => tx.object(a)),
1058
- // type: TODO
1059
- }),
1060
- );
1061
- _args.push(
1062
- TransactionArgument.is(args[13]) ? args[13] : tx.pure(args[13]),
1063
- );
1064
- _args.push(
1065
- TransactionArgument.is(args[14]) ? args[14] : tx.pure(args[14]),
1066
- );
1067
- _args.push(
1068
- TransactionArgument.is(args[15]) ? args[15] : tx.object(args[15]),
1069
- );
909
+ _args.push(transactionArgumentOrObject(args[0], tx));
910
+ _args.push(transactionArgumentOrVec(args[1], tx));
911
+ _args.push(transactionArgumentOrVec(args[2], tx));
912
+ _args.push(transactionArgumentOrVec(args[3], tx));
913
+ _args.push(transactionArgumentOrVec(args[4], tx));
914
+ _args.push(transactionArgumentOrVec(args[5], tx));
915
+ _args.push(transactionArgumentOrVec(args[6], tx));
916
+ _args.push(transactionArgumentOrVec(args[7], tx));
917
+ _args.push(transactionArgumentOrVec(args[8], tx));
918
+ _args.push(transactionArgumentOrVec(args[9], tx));
919
+ _args.push(transactionArgumentOrVec(args[10], tx));
920
+ _args.push(transactionArgumentOrVec(args[11], tx));
921
+ _args.push(transactionArgumentOrVec(args[12], tx));
922
+ _args.push(transactionArgumentOrPure(args[13], tx));
923
+ _args.push(transactionArgumentOrPure(args[14], tx));
924
+ _args.push(transactionArgumentOrObject(args[15], tx));
1070
925
 
1071
926
  // @ts-ignore
1072
927
  return tx.moveCall({
@@ -1082,12 +937,8 @@ export namespace sui_system {
1082
937
  ],
1083
938
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1084
939
  const _args: any[] = [];
1085
- _args.push(
1086
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1087
- );
1088
- _args.push(
1089
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1090
- );
940
+ _args.push(transactionArgumentOrObject(args[0], tx));
941
+ _args.push(transactionArgumentOrObject(args[1], tx));
1091
942
 
1092
943
  // @ts-ignore
1093
944
  return tx.moveCall({
@@ -1103,12 +954,8 @@ export namespace sui_system {
1103
954
  ],
1104
955
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1105
956
  const _args: any[] = [];
1106
- _args.push(
1107
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1108
- );
1109
- _args.push(
1110
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1111
- );
957
+ _args.push(transactionArgumentOrObject(args[0], tx));
958
+ _args.push(transactionArgumentOrObject(args[1], tx));
1112
959
 
1113
960
  // @ts-ignore
1114
961
  return tx.moveCall({
@@ -1126,13 +973,9 @@ export namespace sui_system {
1126
973
  ): TransactionArgument &
1127
974
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1128
975
  const _args: any[] = [];
1129
- _args.push(
1130
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1131
- );
1132
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1133
- _args.push(
1134
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1135
- );
976
+ _args.push(transactionArgumentOrObject(args[0], tx));
977
+ _args.push(transactionArgumentOrPure(args[1], tx));
978
+ _args.push(transactionArgumentOrObject(args[2], tx));
1136
979
 
1137
980
  // @ts-ignore
1138
981
  return tx.moveCall({
@@ -1150,13 +993,9 @@ export namespace sui_system {
1150
993
  ): TransactionArgument &
1151
994
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1152
995
  const _args: any[] = [];
1153
- _args.push(
1154
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1155
- );
1156
- _args.push(
1157
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1158
- );
1159
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
996
+ _args.push(transactionArgumentOrObject(args[0], tx));
997
+ _args.push(transactionArgumentOrObject(args[1], tx));
998
+ _args.push(transactionArgumentOrPure(args[2], tx));
1160
999
 
1161
1000
  // @ts-ignore
1162
1001
  return tx.moveCall({
@@ -1174,13 +1013,9 @@ export namespace sui_system {
1174
1013
  ): TransactionArgument &
1175
1014
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1176
1015
  const _args: any[] = [];
1177
- _args.push(
1178
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1179
- );
1180
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1181
- _args.push(
1182
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1183
- );
1016
+ _args.push(transactionArgumentOrObject(args[0], tx));
1017
+ _args.push(transactionArgumentOrPure(args[1], tx));
1018
+ _args.push(transactionArgumentOrObject(args[2], tx));
1184
1019
 
1185
1020
  // @ts-ignore
1186
1021
  return tx.moveCall({
@@ -1196,12 +1031,8 @@ export namespace sui_system {
1196
1031
  ],
1197
1032
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1198
1033
  const _args: any[] = [];
1199
- _args.push(
1200
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1201
- );
1202
- _args.push(
1203
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1204
- );
1034
+ _args.push(transactionArgumentOrObject(args[0], tx));
1035
+ _args.push(transactionArgumentOrObject(args[1], tx));
1205
1036
 
1206
1037
  // @ts-ignore
1207
1038
  return tx.moveCall({
@@ -1219,13 +1050,9 @@ export namespace sui_system {
1219
1050
  ): TransactionArgument &
1220
1051
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1221
1052
  const _args: any[] = [];
1222
- _args.push(
1223
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1224
- );
1225
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1226
- _args.push(
1227
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1228
- );
1053
+ _args.push(transactionArgumentOrObject(args[0], tx));
1054
+ _args.push(transactionArgumentOrPure(args[1], tx));
1055
+ _args.push(transactionArgumentOrObject(args[2], tx));
1229
1056
 
1230
1057
  // @ts-ignore
1231
1058
  return tx.moveCall({
@@ -1243,13 +1070,9 @@ export namespace sui_system {
1243
1070
  ): TransactionArgument &
1244
1071
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1245
1072
  const _args: any[] = [];
1246
- _args.push(
1247
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1248
- );
1249
- _args.push(
1250
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1251
- );
1252
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1073
+ _args.push(transactionArgumentOrObject(args[0], tx));
1074
+ _args.push(transactionArgumentOrObject(args[1], tx));
1075
+ _args.push(transactionArgumentOrPure(args[2], tx));
1253
1076
 
1254
1077
  // @ts-ignore
1255
1078
  return tx.moveCall({
@@ -1267,13 +1090,9 @@ export namespace sui_system {
1267
1090
  ): TransactionArgument &
1268
1091
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1269
1092
  const _args: any[] = [];
1270
- _args.push(
1271
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1272
- );
1273
- _args.push(
1274
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1275
- );
1276
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1093
+ _args.push(transactionArgumentOrObject(args[0], tx));
1094
+ _args.push(transactionArgumentOrObject(args[1], tx));
1095
+ _args.push(transactionArgumentOrPure(args[2], tx));
1277
1096
 
1278
1097
  // @ts-ignore
1279
1098
  return tx.moveCall({
@@ -1291,20 +1110,9 @@ export namespace sui_system {
1291
1110
  ): TransactionArgument &
1292
1111
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1293
1112
  const _args: any[] = [];
1294
- _args.push(
1295
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1296
- );
1297
- _args.push(
1298
- TransactionArgument.is(args[1])
1299
- ? args[1]
1300
- : tx.makeMoveVec({
1301
- objects: args[1].map((a: any) => tx.object(a)),
1302
- // type: TODO
1303
- }),
1304
- );
1305
- _args.push(
1306
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1307
- );
1113
+ _args.push(transactionArgumentOrObject(args[0], tx));
1114
+ _args.push(transactionArgumentOrVec(args[1], tx));
1115
+ _args.push(transactionArgumentOrObject(args[2], tx));
1308
1116
 
1309
1117
  // @ts-ignore
1310
1118
  return tx.moveCall({
@@ -1322,20 +1130,9 @@ export namespace sui_system {
1322
1130
  ): TransactionArgument &
1323
1131
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1324
1132
  const _args: any[] = [];
1325
- _args.push(
1326
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1327
- );
1328
- _args.push(
1329
- TransactionArgument.is(args[1])
1330
- ? args[1]
1331
- : tx.makeMoveVec({
1332
- objects: args[1].map((a: any) => tx.object(a)),
1333
- // type: TODO
1334
- }),
1335
- );
1336
- _args.push(
1337
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1338
- );
1133
+ _args.push(transactionArgumentOrObject(args[0], tx));
1134
+ _args.push(transactionArgumentOrVec(args[1], tx));
1135
+ _args.push(transactionArgumentOrObject(args[2], tx));
1339
1136
 
1340
1137
  // @ts-ignore
1341
1138
  return tx.moveCall({
@@ -1353,20 +1150,9 @@ export namespace sui_system {
1353
1150
  ): TransactionArgument &
1354
1151
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1355
1152
  const _args: any[] = [];
1356
- _args.push(
1357
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1358
- );
1359
- _args.push(
1360
- TransactionArgument.is(args[1])
1361
- ? args[1]
1362
- : tx.makeMoveVec({
1363
- objects: args[1].map((a: any) => tx.object(a)),
1364
- // type: TODO
1365
- }),
1366
- );
1367
- _args.push(
1368
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1369
- );
1153
+ _args.push(transactionArgumentOrObject(args[0], tx));
1154
+ _args.push(transactionArgumentOrVec(args[1], tx));
1155
+ _args.push(transactionArgumentOrObject(args[2], tx));
1370
1156
 
1371
1157
  // @ts-ignore
1372
1158
  return tx.moveCall({
@@ -1384,20 +1170,9 @@ export namespace sui_system {
1384
1170
  ): TransactionArgument &
1385
1171
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1386
1172
  const _args: any[] = [];
1387
- _args.push(
1388
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1389
- );
1390
- _args.push(
1391
- TransactionArgument.is(args[1])
1392
- ? args[1]
1393
- : tx.makeMoveVec({
1394
- objects: args[1].map((a: any) => tx.object(a)),
1395
- // type: TODO
1396
- }),
1397
- );
1398
- _args.push(
1399
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1400
- );
1173
+ _args.push(transactionArgumentOrObject(args[0], tx));
1174
+ _args.push(transactionArgumentOrVec(args[1], tx));
1175
+ _args.push(transactionArgumentOrObject(args[2], tx));
1401
1176
 
1402
1177
  // @ts-ignore
1403
1178
  return tx.moveCall({
@@ -1421,28 +1196,10 @@ export namespace sui_system {
1421
1196
  TransactionArgument,
1422
1197
  ] {
1423
1198
  const _args: any[] = [];
1424
- _args.push(
1425
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1426
- );
1427
- _args.push(
1428
- TransactionArgument.is(args[1])
1429
- ? args[1]
1430
- : tx.makeMoveVec({
1431
- objects: args[1].map((a: any) => tx.object(a)),
1432
- // type: TODO
1433
- }),
1434
- );
1435
- _args.push(
1436
- TransactionArgument.is(args[2])
1437
- ? args[2]
1438
- : tx.makeMoveVec({
1439
- objects: args[2].map((a: any) => tx.object(a)),
1440
- // type: TODO
1441
- }),
1442
- );
1443
- _args.push(
1444
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
1445
- );
1199
+ _args.push(transactionArgumentOrObject(args[0], tx));
1200
+ _args.push(transactionArgumentOrVec(args[1], tx));
1201
+ _args.push(transactionArgumentOrVec(args[2], tx));
1202
+ _args.push(transactionArgumentOrObject(args[3], tx));
1446
1203
 
1447
1204
  // @ts-ignore
1448
1205
  return tx.moveCall({
@@ -1460,20 +1217,9 @@ export namespace sui_system {
1460
1217
  ): TransactionArgument &
1461
1218
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1462
1219
  const _args: any[] = [];
1463
- _args.push(
1464
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1465
- );
1466
- _args.push(
1467
- TransactionArgument.is(args[1])
1468
- ? args[1]
1469
- : tx.makeMoveVec({
1470
- objects: args[1].map((a: any) => tx.object(a)),
1471
- // type: TODO
1472
- }),
1473
- );
1474
- _args.push(
1475
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1476
- );
1220
+ _args.push(transactionArgumentOrObject(args[0], tx));
1221
+ _args.push(transactionArgumentOrVec(args[1], tx));
1222
+ _args.push(transactionArgumentOrObject(args[2], tx));
1477
1223
 
1478
1224
  // @ts-ignore
1479
1225
  return tx.moveCall({
@@ -1491,20 +1237,9 @@ export namespace sui_system {
1491
1237
  ): TransactionArgument &
1492
1238
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1493
1239
  const _args: any[] = [];
1494
- _args.push(
1495
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1496
- );
1497
- _args.push(
1498
- TransactionArgument.is(args[1])
1499
- ? args[1]
1500
- : tx.makeMoveVec({
1501
- objects: args[1].map((a: any) => tx.object(a)),
1502
- // type: TODO
1503
- }),
1504
- );
1505
- _args.push(
1506
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1507
- );
1240
+ _args.push(transactionArgumentOrObject(args[0], tx));
1241
+ _args.push(transactionArgumentOrVec(args[1], tx));
1242
+ _args.push(transactionArgumentOrObject(args[2], tx));
1508
1243
 
1509
1244
  // @ts-ignore
1510
1245
  return tx.moveCall({
@@ -1522,20 +1257,9 @@ export namespace sui_system {
1522
1257
  ): TransactionArgument &
1523
1258
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1524
1259
  const _args: any[] = [];
1525
- _args.push(
1526
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1527
- );
1528
- _args.push(
1529
- TransactionArgument.is(args[1])
1530
- ? args[1]
1531
- : tx.makeMoveVec({
1532
- objects: args[1].map((a: any) => tx.object(a)),
1533
- // type: TODO
1534
- }),
1535
- );
1536
- _args.push(
1537
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1538
- );
1260
+ _args.push(transactionArgumentOrObject(args[0], tx));
1261
+ _args.push(transactionArgumentOrVec(args[1], tx));
1262
+ _args.push(transactionArgumentOrObject(args[2], tx));
1539
1263
 
1540
1264
  // @ts-ignore
1541
1265
  return tx.moveCall({
@@ -1553,20 +1277,9 @@ export namespace sui_system {
1553
1277
  ): TransactionArgument &
1554
1278
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1555
1279
  const _args: any[] = [];
1556
- _args.push(
1557
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1558
- );
1559
- _args.push(
1560
- TransactionArgument.is(args[1])
1561
- ? args[1]
1562
- : tx.makeMoveVec({
1563
- objects: args[1].map((a: any) => tx.object(a)),
1564
- // type: TODO
1565
- }),
1566
- );
1567
- _args.push(
1568
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1569
- );
1280
+ _args.push(transactionArgumentOrObject(args[0], tx));
1281
+ _args.push(transactionArgumentOrVec(args[1], tx));
1282
+ _args.push(transactionArgumentOrObject(args[2], tx));
1570
1283
 
1571
1284
  // @ts-ignore
1572
1285
  return tx.moveCall({
@@ -1584,20 +1297,9 @@ export namespace sui_system {
1584
1297
  ): TransactionArgument &
1585
1298
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1586
1299
  const _args: any[] = [];
1587
- _args.push(
1588
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1589
- );
1590
- _args.push(
1591
- TransactionArgument.is(args[1])
1592
- ? args[1]
1593
- : tx.makeMoveVec({
1594
- objects: args[1].map((a: any) => tx.object(a)),
1595
- // type: TODO
1596
- }),
1597
- );
1598
- _args.push(
1599
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1600
- );
1300
+ _args.push(transactionArgumentOrObject(args[0], tx));
1301
+ _args.push(transactionArgumentOrVec(args[1], tx));
1302
+ _args.push(transactionArgumentOrObject(args[2], tx));
1601
1303
 
1602
1304
  // @ts-ignore
1603
1305
  return tx.moveCall({
@@ -1615,20 +1317,9 @@ export namespace sui_system {
1615
1317
  ): TransactionArgument &
1616
1318
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1617
1319
  const _args: any[] = [];
1618
- _args.push(
1619
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1620
- );
1621
- _args.push(
1622
- TransactionArgument.is(args[1])
1623
- ? args[1]
1624
- : tx.makeMoveVec({
1625
- objects: args[1].map((a: any) => tx.object(a)),
1626
- // type: TODO
1627
- }),
1628
- );
1629
- _args.push(
1630
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1631
- );
1320
+ _args.push(transactionArgumentOrObject(args[0], tx));
1321
+ _args.push(transactionArgumentOrVec(args[1], tx));
1322
+ _args.push(transactionArgumentOrObject(args[2], tx));
1632
1323
 
1633
1324
  // @ts-ignore
1634
1325
  return tx.moveCall({
@@ -1646,20 +1337,9 @@ export namespace sui_system {
1646
1337
  ): TransactionArgument &
1647
1338
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1648
1339
  const _args: any[] = [];
1649
- _args.push(
1650
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1651
- );
1652
- _args.push(
1653
- TransactionArgument.is(args[1])
1654
- ? args[1]
1655
- : tx.makeMoveVec({
1656
- objects: args[1].map((a: any) => tx.object(a)),
1657
- // type: TODO
1658
- }),
1659
- );
1660
- _args.push(
1661
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1662
- );
1340
+ _args.push(transactionArgumentOrObject(args[0], tx));
1341
+ _args.push(transactionArgumentOrVec(args[1], tx));
1342
+ _args.push(transactionArgumentOrObject(args[2], tx));
1663
1343
 
1664
1344
  // @ts-ignore
1665
1345
  return tx.moveCall({
@@ -1677,20 +1357,9 @@ export namespace sui_system {
1677
1357
  ): TransactionArgument &
1678
1358
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1679
1359
  const _args: any[] = [];
1680
- _args.push(
1681
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1682
- );
1683
- _args.push(
1684
- TransactionArgument.is(args[1])
1685
- ? args[1]
1686
- : tx.makeMoveVec({
1687
- objects: args[1].map((a: any) => tx.object(a)),
1688
- // type: TODO
1689
- }),
1690
- );
1691
- _args.push(
1692
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1693
- );
1360
+ _args.push(transactionArgumentOrObject(args[0], tx));
1361
+ _args.push(transactionArgumentOrVec(args[1], tx));
1362
+ _args.push(transactionArgumentOrObject(args[2], tx));
1694
1363
 
1695
1364
  // @ts-ignore
1696
1365
  return tx.moveCall({
@@ -1708,20 +1377,9 @@ export namespace sui_system {
1708
1377
  ): TransactionArgument &
1709
1378
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1710
1379
  const _args: any[] = [];
1711
- _args.push(
1712
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1713
- );
1714
- _args.push(
1715
- TransactionArgument.is(args[1])
1716
- ? args[1]
1717
- : tx.makeMoveVec({
1718
- objects: args[1].map((a: any) => tx.object(a)),
1719
- // type: TODO
1720
- }),
1721
- );
1722
- _args.push(
1723
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1724
- );
1380
+ _args.push(transactionArgumentOrObject(args[0], tx));
1381
+ _args.push(transactionArgumentOrVec(args[1], tx));
1382
+ _args.push(transactionArgumentOrObject(args[2], tx));
1725
1383
 
1726
1384
  // @ts-ignore
1727
1385
  return tx.moveCall({
@@ -1745,28 +1403,10 @@ export namespace sui_system {
1745
1403
  TransactionArgument,
1746
1404
  ] {
1747
1405
  const _args: any[] = [];
1748
- _args.push(
1749
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1750
- );
1751
- _args.push(
1752
- TransactionArgument.is(args[1])
1753
- ? args[1]
1754
- : tx.makeMoveVec({
1755
- objects: args[1].map((a: any) => tx.object(a)),
1756
- // type: TODO
1757
- }),
1758
- );
1759
- _args.push(
1760
- TransactionArgument.is(args[2])
1761
- ? args[2]
1762
- : tx.makeMoveVec({
1763
- objects: args[2].map((a: any) => tx.object(a)),
1764
- // type: TODO
1765
- }),
1766
- );
1767
- _args.push(
1768
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
1769
- );
1406
+ _args.push(transactionArgumentOrObject(args[0], tx));
1407
+ _args.push(transactionArgumentOrVec(args[1], tx));
1408
+ _args.push(transactionArgumentOrVec(args[2], tx));
1409
+ _args.push(transactionArgumentOrObject(args[3], tx));
1770
1410
 
1771
1411
  // @ts-ignore
1772
1412
  return tx.moveCall({
@@ -1784,20 +1424,9 @@ export namespace sui_system {
1784
1424
  ): TransactionArgument &
1785
1425
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1786
1426
  const _args: any[] = [];
1787
- _args.push(
1788
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1789
- );
1790
- _args.push(
1791
- TransactionArgument.is(args[1])
1792
- ? args[1]
1793
- : tx.makeMoveVec({
1794
- objects: args[1].map((a: any) => tx.object(a)),
1795
- // type: TODO
1796
- }),
1797
- );
1798
- _args.push(
1799
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1800
- );
1427
+ _args.push(transactionArgumentOrObject(args[0], tx));
1428
+ _args.push(transactionArgumentOrVec(args[1], tx));
1429
+ _args.push(transactionArgumentOrObject(args[2], tx));
1801
1430
 
1802
1431
  // @ts-ignore
1803
1432
  return tx.moveCall({
@@ -1815,20 +1444,9 @@ export namespace sui_system {
1815
1444
  ): TransactionArgument &
1816
1445
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1817
1446
  const _args: any[] = [];
1818
- _args.push(
1819
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1820
- );
1821
- _args.push(
1822
- TransactionArgument.is(args[1])
1823
- ? args[1]
1824
- : tx.makeMoveVec({
1825
- objects: args[1].map((a: any) => tx.object(a)),
1826
- // type: TODO
1827
- }),
1828
- );
1829
- _args.push(
1830
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1831
- );
1447
+ _args.push(transactionArgumentOrObject(args[0], tx));
1448
+ _args.push(transactionArgumentOrVec(args[1], tx));
1449
+ _args.push(transactionArgumentOrObject(args[2], tx));
1832
1450
 
1833
1451
  // @ts-ignore
1834
1452
  return tx.moveCall({
@@ -1846,20 +1464,9 @@ export namespace sui_system {
1846
1464
  ): TransactionArgument &
1847
1465
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1848
1466
  const _args: any[] = [];
1849
- _args.push(
1850
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1851
- );
1852
- _args.push(
1853
- TransactionArgument.is(args[1])
1854
- ? args[1]
1855
- : tx.makeMoveVec({
1856
- objects: args[1].map((a: any) => tx.object(a)),
1857
- // type: TODO
1858
- }),
1859
- );
1860
- _args.push(
1861
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1862
- );
1467
+ _args.push(transactionArgumentOrObject(args[0], tx));
1468
+ _args.push(transactionArgumentOrVec(args[1], tx));
1469
+ _args.push(transactionArgumentOrObject(args[2], tx));
1863
1470
 
1864
1471
  // @ts-ignore
1865
1472
  return tx.moveCall({
@@ -2771,9 +2378,7 @@ export namespace validator {
2771
2378
  args: [string | ObjectCallArg | TransactionArgument],
2772
2379
  ): TransactionArgument & [TransactionArgument] {
2773
2380
  const _args: any[] = [];
2774
- _args.push(
2775
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2776
- );
2381
+ _args.push(transactionArgumentOrObject(args[0], tx));
2777
2382
 
2778
2383
  // @ts-ignore
2779
2384
  return tx.moveCall({
@@ -2787,9 +2392,7 @@ export namespace validator {
2787
2392
  args: [string | ObjectCallArg | TransactionArgument],
2788
2393
  ): TransactionArgument & [TransactionArgument] {
2789
2394
  const _args: any[] = [];
2790
- _args.push(
2791
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2792
- );
2395
+ _args.push(transactionArgumentOrObject(args[0], tx));
2793
2396
 
2794
2397
  // @ts-ignore
2795
2398
  return tx.moveCall({
@@ -2803,9 +2406,7 @@ export namespace validator {
2803
2406
  args: [string | ObjectCallArg | TransactionArgument],
2804
2407
  ): TransactionArgument & [TransactionArgument] {
2805
2408
  const _args: any[] = [];
2806
- _args.push(
2807
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2808
- );
2409
+ _args.push(transactionArgumentOrObject(args[0], tx));
2809
2410
 
2810
2411
  // @ts-ignore
2811
2412
  return tx.moveCall({
@@ -2818,9 +2419,7 @@ export namespace validator {
2818
2419
  args: [string | ObjectCallArg | TransactionArgument],
2819
2420
  ): TransactionArgument & [TransactionArgument] {
2820
2421
  const _args: any[] = [];
2821
- _args.push(
2822
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2823
- );
2422
+ _args.push(transactionArgumentOrObject(args[0], tx));
2824
2423
 
2825
2424
  // @ts-ignore
2826
2425
  return tx.moveCall({
@@ -2836,12 +2435,8 @@ export namespace validator {
2836
2435
  ],
2837
2436
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2838
2437
  const _args: any[] = [];
2839
- _args.push(
2840
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2841
- );
2842
- _args.push(
2843
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
2844
- );
2438
+ _args.push(transactionArgumentOrObject(args[0], tx));
2439
+ _args.push(transactionArgumentOrObject(args[1], tx));
2845
2440
 
2846
2441
  // @ts-ignore
2847
2442
  return tx.moveCall({
@@ -2854,9 +2449,7 @@ export namespace validator {
2854
2449
  args: [string | ObjectCallArg | TransactionArgument],
2855
2450
  ): TransactionArgument & [TransactionArgument] {
2856
2451
  const _args: any[] = [];
2857
- _args.push(
2858
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2859
- );
2452
+ _args.push(transactionArgumentOrObject(args[0], tx));
2860
2453
 
2861
2454
  // @ts-ignore
2862
2455
  return tx.moveCall({
@@ -2869,9 +2462,7 @@ export namespace validator {
2869
2462
  args: [string | ObjectCallArg | TransactionArgument],
2870
2463
  ): TransactionArgument & [TransactionArgument] {
2871
2464
  const _args: any[] = [];
2872
- _args.push(
2873
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2874
- );
2465
+ _args.push(transactionArgumentOrObject(args[0], tx));
2875
2466
 
2876
2467
  // @ts-ignore
2877
2468
  return tx.moveCall({
@@ -2884,9 +2475,7 @@ export namespace validator {
2884
2475
  args: [string | ObjectCallArg | TransactionArgument],
2885
2476
  ): TransactionArgument & [TransactionArgument] {
2886
2477
  const _args: any[] = [];
2887
- _args.push(
2888
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2889
- );
2478
+ _args.push(transactionArgumentOrObject(args[0], tx));
2890
2479
 
2891
2480
  // @ts-ignore
2892
2481
  return tx.moveCall({
@@ -2899,9 +2488,7 @@ export namespace validator {
2899
2488
  args: [string | ObjectCallArg | TransactionArgument],
2900
2489
  ): TransactionArgument & [TransactionArgument] {
2901
2490
  const _args: any[] = [];
2902
- _args.push(
2903
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2904
- );
2491
+ _args.push(transactionArgumentOrObject(args[0], tx));
2905
2492
 
2906
2493
  // @ts-ignore
2907
2494
  return tx.moveCall({
@@ -2914,9 +2501,7 @@ export namespace validator {
2914
2501
  args: [string | ObjectCallArg | TransactionArgument],
2915
2502
  ): TransactionArgument & [TransactionArgument] {
2916
2503
  const _args: any[] = [];
2917
- _args.push(
2918
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2919
- );
2504
+ _args.push(transactionArgumentOrObject(args[0], tx));
2920
2505
 
2921
2506
  // @ts-ignore
2922
2507
  return tx.moveCall({
@@ -2930,9 +2515,7 @@ export namespace validator {
2930
2515
  args: [string | ObjectCallArg | TransactionArgument],
2931
2516
  ): TransactionArgument & [TransactionArgument] {
2932
2517
  const _args: any[] = [];
2933
- _args.push(
2934
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2935
- );
2518
+ _args.push(transactionArgumentOrObject(args[0], tx));
2936
2519
 
2937
2520
  // @ts-ignore
2938
2521
  return tx.moveCall({
@@ -2945,9 +2528,7 @@ export namespace validator {
2945
2528
  args: [string | ObjectCallArg | TransactionArgument],
2946
2529
  ): TransactionArgument & [TransactionArgument] {
2947
2530
  const _args: any[] = [];
2948
- _args.push(
2949
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2950
- );
2531
+ _args.push(transactionArgumentOrObject(args[0], tx));
2951
2532
 
2952
2533
  // @ts-ignore
2953
2534
  return tx.moveCall({
@@ -2960,9 +2541,7 @@ export namespace validator {
2960
2541
  args: [string | ObjectCallArg | TransactionArgument],
2961
2542
  ): TransactionArgument & [TransactionArgument] {
2962
2543
  const _args: any[] = [];
2963
- _args.push(
2964
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2965
- );
2544
+ _args.push(transactionArgumentOrObject(args[0], tx));
2966
2545
 
2967
2546
  // @ts-ignore
2968
2547
  return tx.moveCall({
@@ -2975,9 +2554,7 @@ export namespace validator {
2975
2554
  args: [string | ObjectCallArg | TransactionArgument],
2976
2555
  ): TransactionArgument & [TransactionArgument] {
2977
2556
  const _args: any[] = [];
2978
- _args.push(
2979
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2980
- );
2557
+ _args.push(transactionArgumentOrObject(args[0], tx));
2981
2558
 
2982
2559
  // @ts-ignore
2983
2560
  return tx.moveCall({
@@ -2990,9 +2567,7 @@ export namespace validator {
2990
2567
  args: [string | ObjectCallArg | TransactionArgument],
2991
2568
  ): TransactionArgument & [TransactionArgument] {
2992
2569
  const _args: any[] = [];
2993
- _args.push(
2994
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2995
- );
2570
+ _args.push(transactionArgumentOrObject(args[0], tx));
2996
2571
 
2997
2572
  // @ts-ignore
2998
2573
  return tx.moveCall({
@@ -3005,9 +2580,7 @@ export namespace validator {
3005
2580
  args: [string | ObjectCallArg | TransactionArgument],
3006
2581
  ): TransactionArgument & [TransactionArgument] {
3007
2582
  const _args: any[] = [];
3008
- _args.push(
3009
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3010
- );
2583
+ _args.push(transactionArgumentOrObject(args[0], tx));
3011
2584
 
3012
2585
  // @ts-ignore
3013
2586
  return tx.moveCall({
@@ -3020,9 +2593,7 @@ export namespace validator {
3020
2593
  args: [string | ObjectCallArg | TransactionArgument],
3021
2594
  ): TransactionArgument & [TransactionArgument] {
3022
2595
  const _args: any[] = [];
3023
- _args.push(
3024
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3025
- );
2596
+ _args.push(transactionArgumentOrObject(args[0], tx));
3026
2597
 
3027
2598
  // @ts-ignore
3028
2599
  return tx.moveCall({
@@ -3035,9 +2606,7 @@ export namespace validator {
3035
2606
  args: [string | ObjectCallArg | TransactionArgument],
3036
2607
  ): TransactionArgument & [TransactionArgument] {
3037
2608
  const _args: any[] = [];
3038
- _args.push(
3039
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3040
- );
2609
+ _args.push(transactionArgumentOrObject(args[0], tx));
3041
2610
 
3042
2611
  // @ts-ignore
3043
2612
  return tx.moveCall({
@@ -3050,9 +2619,7 @@ export namespace validator {
3050
2619
  args: [string | ObjectCallArg | TransactionArgument],
3051
2620
  ): TransactionArgument & [TransactionArgument] {
3052
2621
  const _args: any[] = [];
3053
- _args.push(
3054
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3055
- );
2622
+ _args.push(transactionArgumentOrObject(args[0], tx));
3056
2623
 
3057
2624
  // @ts-ignore
3058
2625
  return tx.moveCall({
@@ -3065,9 +2632,7 @@ export namespace validator {
3065
2632
  args: [string | ObjectCallArg | TransactionArgument],
3066
2633
  ): TransactionArgument & [TransactionArgument] {
3067
2634
  const _args: any[] = [];
3068
- _args.push(
3069
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3070
- );
2635
+ _args.push(transactionArgumentOrObject(args[0], tx));
3071
2636
 
3072
2637
  // @ts-ignore
3073
2638
  return tx.moveCall({
@@ -3080,9 +2645,7 @@ export namespace validator {
3080
2645
  args: [string | ObjectCallArg | TransactionArgument],
3081
2646
  ): TransactionArgument & [TransactionArgument] {
3082
2647
  const _args: any[] = [];
3083
- _args.push(
3084
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3085
- );
2648
+ _args.push(transactionArgumentOrObject(args[0], tx));
3086
2649
 
3087
2650
  // @ts-ignore
3088
2651
  return tx.moveCall({
@@ -3095,9 +2658,7 @@ export namespace validator {
3095
2658
  args: [string | ObjectCallArg | TransactionArgument],
3096
2659
  ): TransactionArgument & [TransactionArgument] {
3097
2660
  const _args: any[] = [];
3098
- _args.push(
3099
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3100
- );
2661
+ _args.push(transactionArgumentOrObject(args[0], tx));
3101
2662
 
3102
2663
  // @ts-ignore
3103
2664
  return tx.moveCall({
@@ -3110,9 +2671,7 @@ export namespace validator {
3110
2671
  args: [string | ObjectCallArg | TransactionArgument],
3111
2672
  ): TransactionArgument & [TransactionArgument] {
3112
2673
  const _args: any[] = [];
3113
- _args.push(
3114
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3115
- );
2674
+ _args.push(transactionArgumentOrObject(args[0], tx));
3116
2675
 
3117
2676
  // @ts-ignore
3118
2677
  return tx.moveCall({
@@ -3128,10 +2687,8 @@ export namespace validator {
3128
2687
  ],
3129
2688
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
3130
2689
  const _args: any[] = [];
3131
- _args.push(
3132
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3133
- );
3134
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2690
+ _args.push(transactionArgumentOrObject(args[0], tx));
2691
+ _args.push(transactionArgumentOrPure(args[1], tx));
3135
2692
 
3136
2693
  // @ts-ignore
3137
2694
  return tx.moveCall({
@@ -3144,9 +2701,7 @@ export namespace validator {
3144
2701
  args: [string | ObjectCallArg | TransactionArgument],
3145
2702
  ): TransactionArgument & [TransactionArgument] {
3146
2703
  const _args: any[] = [];
3147
- _args.push(
3148
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3149
- );
2704
+ _args.push(transactionArgumentOrObject(args[0], tx));
3150
2705
 
3151
2706
  // @ts-ignore
3152
2707
  return tx.moveCall({
@@ -3160,9 +2715,7 @@ export namespace validator {
3160
2715
  args: [string | ObjectCallArg | TransactionArgument],
3161
2716
  ): TransactionArgument & [TransactionArgument] {
3162
2717
  const _args: any[] = [];
3163
- _args.push(
3164
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3165
- );
2718
+ _args.push(transactionArgumentOrObject(args[0], tx));
3166
2719
 
3167
2720
  // @ts-ignore
3168
2721
  return tx.moveCall({
@@ -3175,9 +2728,7 @@ export namespace validator {
3175
2728
  args: [string | ObjectCallArg | TransactionArgument],
3176
2729
  ): TransactionArgument & [TransactionArgument] {
3177
2730
  const _args: any[] = [];
3178
- _args.push(
3179
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3180
- );
2731
+ _args.push(transactionArgumentOrObject(args[0], tx));
3181
2732
 
3182
2733
  // @ts-ignore
3183
2734
  return tx.moveCall({
@@ -3190,9 +2741,7 @@ export namespace validator {
3190
2741
  args: [string | ObjectCallArg | TransactionArgument],
3191
2742
  ): TransactionArgument & [TransactionArgument] {
3192
2743
  const _args: any[] = [];
3193
- _args.push(
3194
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3195
- );
2744
+ _args.push(transactionArgumentOrObject(args[0], tx));
3196
2745
 
3197
2746
  // @ts-ignore
3198
2747
  return tx.moveCall({
@@ -3206,9 +2755,7 @@ export namespace validator {
3206
2755
  args: [string | ObjectCallArg | TransactionArgument],
3207
2756
  ): TransactionArgument & [TransactionArgument] {
3208
2757
  const _args: any[] = [];
3209
- _args.push(
3210
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3211
- );
2758
+ _args.push(transactionArgumentOrObject(args[0], tx));
3212
2759
 
3213
2760
  // @ts-ignore
3214
2761
  return tx.moveCall({
@@ -3221,9 +2768,7 @@ export namespace validator {
3221
2768
  args: [string | ObjectCallArg | TransactionArgument],
3222
2769
  ): TransactionArgument & [TransactionArgument] {
3223
2770
  const _args: any[] = [];
3224
- _args.push(
3225
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3226
- );
2771
+ _args.push(transactionArgumentOrObject(args[0], tx));
3227
2772
 
3228
2773
  // @ts-ignore
3229
2774
  return tx.moveCall({
@@ -3236,9 +2781,7 @@ export namespace validator {
3236
2781
  args: [string | ObjectCallArg | TransactionArgument],
3237
2782
  ): TransactionArgument & [TransactionArgument] {
3238
2783
  const _args: any[] = [];
3239
- _args.push(
3240
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3241
- );
2784
+ _args.push(transactionArgumentOrObject(args[0], tx));
3242
2785
 
3243
2786
  // @ts-ignore
3244
2787
  return tx.moveCall({
@@ -3251,9 +2794,7 @@ export namespace validator {
3251
2794
  args: [string | ObjectCallArg | TransactionArgument],
3252
2795
  ): TransactionArgument & [TransactionArgument] {
3253
2796
  const _args: any[] = [];
3254
- _args.push(
3255
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3256
- );
2797
+ _args.push(transactionArgumentOrObject(args[0], tx));
3257
2798
 
3258
2799
  // @ts-ignore
3259
2800
  return tx.moveCall({
@@ -3266,9 +2807,7 @@ export namespace validator {
3266
2807
  args: [string | ObjectCallArg | TransactionArgument],
3267
2808
  ): TransactionArgument & [TransactionArgument] {
3268
2809
  const _args: any[] = [];
3269
- _args.push(
3270
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3271
- );
2810
+ _args.push(transactionArgumentOrObject(args[0], tx));
3272
2811
 
3273
2812
  // @ts-ignore
3274
2813
  return tx.moveCall({
@@ -3282,9 +2821,7 @@ export namespace validator {
3282
2821
  args: [string | ObjectCallArg | TransactionArgument],
3283
2822
  ): TransactionArgument & [TransactionArgument] {
3284
2823
  const _args: any[] = [];
3285
- _args.push(
3286
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3287
- );
2824
+ _args.push(transactionArgumentOrObject(args[0], tx));
3288
2825
 
3289
2826
  // @ts-ignore
3290
2827
  return tx.moveCall({
@@ -3297,14 +2834,7 @@ export namespace validator {
3297
2834
  args: [(string | ObjectCallArg)[] | TransactionArgument],
3298
2835
  ): TransactionArgument & [TransactionArgument] {
3299
2836
  const _args: any[] = [];
3300
- _args.push(
3301
- TransactionArgument.is(args[0])
3302
- ? args[0]
3303
- : tx.makeMoveVec({
3304
- objects: args[0].map((a: any) => tx.object(a)),
3305
- // type: TODO
3306
- }),
3307
- );
2837
+ _args.push(transactionArgumentOrVec(args[0], tx));
3308
2838
 
3309
2839
  // @ts-ignore
3310
2840
  return tx.moveCall({
@@ -3317,9 +2847,7 @@ export namespace validator {
3317
2847
  args: [string | ObjectCallArg | TransactionArgument],
3318
2848
  ): TransactionArgument & [TransactionArgument] {
3319
2849
  const _args: any[] = [];
3320
- _args.push(
3321
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3322
- );
2850
+ _args.push(transactionArgumentOrObject(args[0], tx));
3323
2851
 
3324
2852
  // @ts-ignore
3325
2853
  return tx.moveCall({
@@ -3332,9 +2860,7 @@ export namespace validator {
3332
2860
  args: [string | ObjectCallArg | TransactionArgument],
3333
2861
  ): TransactionArgument & [TransactionArgument] {
3334
2862
  const _args: any[] = [];
3335
- _args.push(
3336
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3337
- );
2863
+ _args.push(transactionArgumentOrObject(args[0], tx));
3338
2864
 
3339
2865
  // @ts-ignore
3340
2866
  return tx.moveCall({
@@ -3347,9 +2873,7 @@ export namespace validator {
3347
2873
  args: [string | ObjectCallArg | TransactionArgument],
3348
2874
  ): TransactionArgument & [TransactionArgument] {
3349
2875
  const _args: any[] = [];
3350
- _args.push(
3351
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3352
- );
2876
+ _args.push(transactionArgumentOrObject(args[0], tx));
3353
2877
 
3354
2878
  // @ts-ignore
3355
2879
  return tx.moveCall({
@@ -4130,9 +3654,7 @@ export namespace validator_set {
4130
3654
  args: [string | ObjectCallArg | TransactionArgument],
4131
3655
  ): TransactionArgument & [TransactionArgument] {
4132
3656
  const _args: any[] = [];
4133
- _args.push(
4134
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4135
- );
3657
+ _args.push(transactionArgumentOrObject(args[0], tx));
4136
3658
 
4137
3659
  // @ts-ignore
4138
3660
  return tx.moveCall({
@@ -4146,9 +3668,7 @@ export namespace validator_set {
4146
3668
  args: [string | ObjectCallArg | TransactionArgument],
4147
3669
  ): TransactionArgument & [TransactionArgument] {
4148
3670
  const _args: any[] = [];
4149
- _args.push(
4150
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4151
- );
3671
+ _args.push(transactionArgumentOrObject(args[0], tx));
4152
3672
 
4153
3673
  // @ts-ignore
4154
3674
  return tx.moveCall({
@@ -4165,10 +3685,8 @@ export namespace validator_set {
4165
3685
  ],
4166
3686
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4167
3687
  const _args: any[] = [];
4168
- _args.push(
4169
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4170
- );
4171
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3688
+ _args.push(transactionArgumentOrObject(args[0], tx));
3689
+ _args.push(transactionArgumentOrPure(args[1], tx));
4172
3690
 
4173
3691
  // @ts-ignore
4174
3692
  return tx.moveCall({
@@ -4184,10 +3702,8 @@ export namespace validator_set {
4184
3702
  ],
4185
3703
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4186
3704
  const _args: any[] = [];
4187
- _args.push(
4188
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4189
- );
4190
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3705
+ _args.push(transactionArgumentOrObject(args[0], tx));
3706
+ _args.push(transactionArgumentOrPure(args[1], tx));
4191
3707
 
4192
3708
  // @ts-ignore
4193
3709
  return tx.moveCall({
@@ -4204,10 +3720,8 @@ export namespace validator_set {
4204
3720
  ],
4205
3721
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4206
3722
  const _args: any[] = [];
4207
- _args.push(
4208
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4209
- );
4210
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3723
+ _args.push(transactionArgumentOrObject(args[0], tx));
3724
+ _args.push(transactionArgumentOrPure(args[1], tx));
4211
3725
 
4212
3726
  // @ts-ignore
4213
3727
  return tx.moveCall({
@@ -4223,10 +3737,8 @@ export namespace validator_set {
4223
3737
  ],
4224
3738
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4225
3739
  const _args: any[] = [];
4226
- _args.push(
4227
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4228
- );
4229
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3740
+ _args.push(transactionArgumentOrObject(args[0], tx));
3741
+ _args.push(transactionArgumentOrPure(args[1], tx));
4230
3742
 
4231
3743
  // @ts-ignore
4232
3744
  return tx.moveCall({
@@ -4240,9 +3752,7 @@ export namespace validator_set {
4240
3752
  args: [string | ObjectCallArg | TransactionArgument],
4241
3753
  ): TransactionArgument & [TransactionArgument] {
4242
3754
  const _args: any[] = [];
4243
- _args.push(
4244
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4245
- );
3755
+ _args.push(transactionArgumentOrObject(args[0], tx));
4246
3756
 
4247
3757
  // @ts-ignore
4248
3758
  return tx.moveCall({
@@ -4258,12 +3768,8 @@ export namespace validator_set {
4258
3768
  ],
4259
3769
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4260
3770
  const _args: any[] = [];
4261
- _args.push(
4262
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4263
- );
4264
- _args.push(
4265
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
4266
- );
3771
+ _args.push(transactionArgumentOrObject(args[0], tx));
3772
+ _args.push(transactionArgumentOrObject(args[1], tx));
4267
3773
 
4268
3774
  // @ts-ignore
4269
3775
  return tx.moveCall({
@@ -4276,9 +3782,7 @@ export namespace validator_set {
4276
3782
  args: [string | ObjectCallArg | TransactionArgument],
4277
3783
  ): TransactionArgument & [TransactionArgument] {
4278
3784
  const _args: any[] = [];
4279
- _args.push(
4280
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4281
- );
3785
+ _args.push(transactionArgumentOrObject(args[0], tx));
4282
3786
 
4283
3787
  // @ts-ignore
4284
3788
  return tx.moveCall({
@@ -4294,10 +3798,8 @@ export namespace validator_set {
4294
3798
  ],
4295
3799
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4296
3800
  const _args: any[] = [];
4297
- _args.push(
4298
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4299
- );
4300
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3801
+ _args.push(transactionArgumentOrObject(args[0], tx));
3802
+ _args.push(transactionArgumentOrPure(args[1], tx));
4301
3803
 
4302
3804
  // @ts-ignore
4303
3805
  return tx.moveCall({
@@ -4313,10 +3815,8 @@ export namespace validator_set {
4313
3815
  ],
4314
3816
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4315
3817
  const _args: any[] = [];
4316
- _args.push(
4317
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4318
- );
4319
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3818
+ _args.push(transactionArgumentOrObject(args[0], tx));
3819
+ _args.push(transactionArgumentOrPure(args[1], tx));
4320
3820
 
4321
3821
  // @ts-ignore
4322
3822
  return tx.moveCall({
@@ -4332,10 +3832,8 @@ export namespace validator_set {
4332
3832
  ],
4333
3833
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4334
3834
  const _args: any[] = [];
4335
- _args.push(
4336
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4337
- );
4338
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3835
+ _args.push(transactionArgumentOrObject(args[0], tx));
3836
+ _args.push(transactionArgumentOrPure(args[1], tx));
4339
3837
 
4340
3838
  // @ts-ignore
4341
3839
  return tx.moveCall({