@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
 
@@ -27,14 +35,7 @@ export namespace address {
27
35
  args: [(string | ObjectCallArg)[] | TransactionArgument],
28
36
  ): TransactionArgument & [TransactionArgument] {
29
37
  const _args: any[] = [];
30
- _args.push(
31
- TransactionArgument.is(args[0])
32
- ? args[0]
33
- : tx.makeMoveVec({
34
- objects: args[0].map((a: any) => tx.object(a)),
35
- // type: TODO
36
- }),
37
- );
38
+ _args.push(transactionArgumentOrVec(args[0], tx));
38
39
 
39
40
  // @ts-ignore
40
41
  return tx.moveCall({
@@ -47,7 +48,7 @@ export namespace address {
47
48
  args: [bigint | TransactionArgument],
48
49
  ): TransactionArgument & [TransactionArgument] {
49
50
  const _args: any[] = [];
50
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
51
+ _args.push(transactionArgumentOrPure(args[0], tx));
51
52
 
52
53
  // @ts-ignore
53
54
  return tx.moveCall({
@@ -84,7 +85,7 @@ export namespace address {
84
85
  args: [string | TransactionArgument],
85
86
  ): TransactionArgument & [TransactionArgument] {
86
87
  const _args: any[] = [];
87
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
88
+ _args.push(transactionArgumentOrPure(args[0], tx));
88
89
 
89
90
  // @ts-ignore
90
91
  return tx.moveCall({
@@ -97,7 +98,7 @@ export namespace address {
97
98
  args: [string | TransactionArgument],
98
99
  ): TransactionArgument & [TransactionArgument] {
99
100
  const _args: any[] = [];
100
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
101
+ _args.push(transactionArgumentOrPure(args[0], tx));
101
102
 
102
103
  // @ts-ignore
103
104
  return tx.moveCall({
@@ -110,7 +111,7 @@ export namespace address {
110
111
  args: [string | TransactionArgument],
111
112
  ): TransactionArgument & [TransactionArgument] {
112
113
  const _args: any[] = [];
113
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
114
+ _args.push(transactionArgumentOrPure(args[0], tx));
114
115
 
115
116
  // @ts-ignore
116
117
  return tx.moveCall({
@@ -123,7 +124,7 @@ export namespace address {
123
124
  args: [string | TransactionArgument],
124
125
  ): TransactionArgument & [TransactionArgument] {
125
126
  const _args: any[] = [];
126
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
127
+ _args.push(transactionArgumentOrPure(args[0], tx));
127
128
 
128
129
  // @ts-ignore
129
130
  return tx.moveCall({
@@ -284,11 +285,9 @@ export namespace bag {
284
285
  ): TransactionArgument &
285
286
  [TransactionArgument, TransactionArgument, TransactionArgument] {
286
287
  const _args: any[] = [];
287
- _args.push(
288
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
289
- );
290
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
291
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
288
+ _args.push(transactionArgumentOrObject(args[0], tx));
289
+ _args.push(transactionArgumentOrPure(args[1], tx));
290
+ _args.push(transactionArgumentOrPure(args[2], tx));
292
291
 
293
292
  // @ts-ignore
294
293
  return tx.moveCall({
@@ -313,10 +312,8 @@ export namespace bag {
313
312
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
314
313
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
315
314
  const _args: any[] = [];
316
- _args.push(
317
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
318
- );
319
- _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));
320
317
 
321
318
  // @ts-ignore
322
319
  return tx.moveCall({
@@ -341,10 +338,8 @@ export namespace bag {
341
338
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
342
339
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
343
340
  const _args: any[] = [];
344
- _args.push(
345
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
346
- );
347
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
341
+ _args.push(transactionArgumentOrObject(args[0], tx));
342
+ _args.push(transactionArgumentOrPure(args[1], tx));
348
343
 
349
344
  // @ts-ignore
350
345
  return tx.moveCall({
@@ -369,10 +364,8 @@ export namespace bag {
369
364
  typeArguments: [TypeDescriptor<T0> | string],
370
365
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
371
366
  const _args: any[] = [];
372
- _args.push(
373
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
374
- );
375
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
367
+ _args.push(transactionArgumentOrObject(args[0], tx));
368
+ _args.push(transactionArgumentOrPure(args[1], tx));
376
369
 
377
370
  // @ts-ignore
378
371
  return tx.moveCall({
@@ -394,10 +387,8 @@ export namespace bag {
394
387
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
395
388
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
396
389
  const _args: any[] = [];
397
- _args.push(
398
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
399
- );
400
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
390
+ _args.push(transactionArgumentOrObject(args[0], tx));
391
+ _args.push(transactionArgumentOrPure(args[1], tx));
401
392
 
402
393
  // @ts-ignore
403
394
  return tx.moveCall({
@@ -418,7 +409,7 @@ export namespace bag {
418
409
  args: [bag.Bag | TransactionArgument],
419
410
  ): TransactionArgument & [TransactionArgument] {
420
411
  const _args: any[] = [];
421
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
412
+ _args.push(transactionArgumentOrPure(args[0], tx));
422
413
 
423
414
  // @ts-ignore
424
415
  return tx.moveCall({
@@ -431,9 +422,7 @@ export namespace bag {
431
422
  args: [string | ObjectCallArg | TransactionArgument],
432
423
  ): TransactionArgument & [TransactionArgument] {
433
424
  const _args: any[] = [];
434
- _args.push(
435
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
436
- );
425
+ _args.push(transactionArgumentOrObject(args[0], tx));
437
426
 
438
427
  // @ts-ignore
439
428
  return tx.moveCall({
@@ -446,9 +435,7 @@ export namespace bag {
446
435
  args: [string | ObjectCallArg | TransactionArgument],
447
436
  ): TransactionArgument & [TransactionArgument] {
448
437
  const _args: any[] = [];
449
- _args.push(
450
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
451
- );
438
+ _args.push(transactionArgumentOrObject(args[0], tx));
452
439
 
453
440
  // @ts-ignore
454
441
  return tx.moveCall({
@@ -461,9 +448,7 @@ export namespace bag {
461
448
  args: [string | ObjectCallArg | TransactionArgument],
462
449
  ): TransactionArgument & [TransactionArgument] {
463
450
  const _args: any[] = [];
464
- _args.push(
465
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
466
- );
451
+ _args.push(transactionArgumentOrObject(args[0], tx));
467
452
 
468
453
  // @ts-ignore
469
454
  return tx.moveCall({
@@ -480,10 +465,8 @@ export namespace bag {
480
465
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
481
466
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
482
467
  const _args: any[] = [];
483
- _args.push(
484
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
485
- );
486
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
468
+ _args.push(transactionArgumentOrObject(args[0], tx));
469
+ _args.push(transactionArgumentOrPure(args[1], tx));
487
470
 
488
471
  // @ts-ignore
489
472
  return tx.moveCall({
@@ -716,7 +699,7 @@ export namespace balance {
716
699
  typeArguments: [TypeDescriptor<T0> | string],
717
700
  ): TransactionArgument & [TransactionArgument] {
718
701
  const _args: any[] = [];
719
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
702
+ _args.push(transactionArgumentOrPure(args[0], tx));
720
703
 
721
704
  // @ts-ignore
722
705
  return tx.moveCall({
@@ -738,10 +721,8 @@ export namespace balance {
738
721
  typeArguments: [TypeDescriptor<T0> | string],
739
722
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
740
723
  const _args: any[] = [];
741
- _args.push(
742
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
743
- );
744
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
724
+ _args.push(transactionArgumentOrObject(args[0], tx));
725
+ _args.push(transactionArgumentOrPure(args[1], tx));
745
726
 
746
727
  // @ts-ignore
747
728
  return tx.moveCall({
@@ -761,7 +742,7 @@ export namespace balance {
761
742
  typeArguments: [TypeDescriptor<T0> | string],
762
743
  ): TransactionArgument & [TransactionArgument] {
763
744
  const _args: any[] = [];
764
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
745
+ _args.push(transactionArgumentOrPure(args[0], tx));
765
746
 
766
747
  // @ts-ignore
767
748
  return tx.moveCall({
@@ -783,10 +764,8 @@ export namespace balance {
783
764
  typeArguments: [TypeDescriptor<T0> | string],
784
765
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
785
766
  const _args: any[] = [];
786
- _args.push(
787
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
788
- );
789
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
767
+ _args.push(transactionArgumentOrObject(args[0], tx));
768
+ _args.push(transactionArgumentOrPure(args[1], tx));
790
769
 
791
770
  // @ts-ignore
792
771
  return tx.moveCall({
@@ -808,10 +787,8 @@ export namespace balance {
808
787
  typeArguments: [TypeDescriptor<T0> | string],
809
788
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
810
789
  const _args: any[] = [];
811
- _args.push(
812
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
813
- );
814
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
790
+ _args.push(transactionArgumentOrObject(args[0], tx));
791
+ _args.push(transactionArgumentOrPure(args[1], tx));
815
792
 
816
793
  // @ts-ignore
817
794
  return tx.moveCall({
@@ -833,10 +810,8 @@ export namespace balance {
833
810
  typeArguments: [TypeDescriptor<T0> | string],
834
811
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
835
812
  const _args: any[] = [];
836
- _args.push(
837
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
838
- );
839
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
813
+ _args.push(transactionArgumentOrObject(args[0], tx));
814
+ _args.push(transactionArgumentOrPure(args[1], tx));
840
815
 
841
816
  // @ts-ignore
842
817
  return tx.moveCall({
@@ -855,9 +830,7 @@ export namespace balance {
855
830
  typeArguments: [TypeDescriptor<T0> | string],
856
831
  ): TransactionArgument & [TransactionArgument] {
857
832
  const _args: any[] = [];
858
- _args.push(
859
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
860
- );
833
+ _args.push(transactionArgumentOrObject(args[0], tx));
861
834
 
862
835
  // @ts-ignore
863
836
  return tx.moveCall({
@@ -876,9 +849,7 @@ export namespace balance {
876
849
  typeArguments: [TypeDescriptor<T0> | string],
877
850
  ): TransactionArgument & [TransactionArgument] {
878
851
  const _args: any[] = [];
879
- _args.push(
880
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
881
- );
852
+ _args.push(transactionArgumentOrObject(args[0], tx));
882
853
 
883
854
  // @ts-ignore
884
855
  return tx.moveCall({
@@ -897,9 +868,7 @@ export namespace balance {
897
868
  typeArguments: [TypeDescriptor<T0> | string],
898
869
  ): TransactionArgument & [TransactionArgument] {
899
870
  const _args: any[] = [];
900
- _args.push(
901
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
902
- );
871
+ _args.push(transactionArgumentOrObject(args[0], tx));
903
872
 
904
873
  // @ts-ignore
905
874
  return tx.moveCall({
@@ -1134,7 +1103,7 @@ export namespace bcs {
1134
1103
  args: [bcs.BCS | TransactionArgument],
1135
1104
  ): TransactionArgument & [TransactionArgument] {
1136
1105
  const _args: any[] = [];
1137
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1106
+ _args.push(transactionArgumentOrPure(args[0], tx));
1138
1107
 
1139
1108
  // @ts-ignore
1140
1109
  return tx.moveCall({
@@ -1147,14 +1116,7 @@ export namespace bcs {
1147
1116
  args: [(string | ObjectCallArg)[] | TransactionArgument],
1148
1117
  ): TransactionArgument & [TransactionArgument] {
1149
1118
  const _args: any[] = [];
1150
- _args.push(
1151
- TransactionArgument.is(args[0])
1152
- ? args[0]
1153
- : tx.makeMoveVec({
1154
- objects: args[0].map((a: any) => tx.object(a)),
1155
- // type: TODO
1156
- }),
1157
- );
1119
+ _args.push(transactionArgumentOrVec(args[0], tx));
1158
1120
 
1159
1121
  // @ts-ignore
1160
1122
  return tx.moveCall({
@@ -1167,9 +1129,7 @@ export namespace bcs {
1167
1129
  args: [string | ObjectCallArg | TransactionArgument],
1168
1130
  ): TransactionArgument & [TransactionArgument] {
1169
1131
  const _args: any[] = [];
1170
- _args.push(
1171
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1172
- );
1132
+ _args.push(transactionArgumentOrObject(args[0], tx));
1173
1133
 
1174
1134
  // @ts-ignore
1175
1135
  return tx.moveCall({
@@ -1182,9 +1142,7 @@ export namespace bcs {
1182
1142
  args: [string | ObjectCallArg | TransactionArgument],
1183
1143
  ): TransactionArgument & [TransactionArgument] {
1184
1144
  const _args: any[] = [];
1185
- _args.push(
1186
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1187
- );
1145
+ _args.push(transactionArgumentOrObject(args[0], tx));
1188
1146
 
1189
1147
  // @ts-ignore
1190
1148
  return tx.moveCall({
@@ -1197,9 +1155,7 @@ export namespace bcs {
1197
1155
  args: [string | ObjectCallArg | TransactionArgument],
1198
1156
  ): TransactionArgument & [TransactionArgument] {
1199
1157
  const _args: any[] = [];
1200
- _args.push(
1201
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1202
- );
1158
+ _args.push(transactionArgumentOrObject(args[0], tx));
1203
1159
 
1204
1160
  // @ts-ignore
1205
1161
  return tx.moveCall({
@@ -1212,9 +1168,7 @@ export namespace bcs {
1212
1168
  args: [string | ObjectCallArg | TransactionArgument],
1213
1169
  ): TransactionArgument & [TransactionArgument] {
1214
1170
  const _args: any[] = [];
1215
- _args.push(
1216
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1217
- );
1171
+ _args.push(transactionArgumentOrObject(args[0], tx));
1218
1172
 
1219
1173
  // @ts-ignore
1220
1174
  return tx.moveCall({
@@ -1227,9 +1181,7 @@ export namespace bcs {
1227
1181
  args: [string | ObjectCallArg | TransactionArgument],
1228
1182
  ): TransactionArgument & [TransactionArgument] {
1229
1183
  const _args: any[] = [];
1230
- _args.push(
1231
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1232
- );
1184
+ _args.push(transactionArgumentOrObject(args[0], tx));
1233
1185
 
1234
1186
  // @ts-ignore
1235
1187
  return tx.moveCall({
@@ -1242,9 +1194,7 @@ export namespace bcs {
1242
1194
  args: [string | ObjectCallArg | TransactionArgument],
1243
1195
  ): TransactionArgument & [TransactionArgument] {
1244
1196
  const _args: any[] = [];
1245
- _args.push(
1246
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1247
- );
1197
+ _args.push(transactionArgumentOrObject(args[0], tx));
1248
1198
 
1249
1199
  // @ts-ignore
1250
1200
  return tx.moveCall({
@@ -1257,9 +1207,7 @@ export namespace bcs {
1257
1207
  args: [string | ObjectCallArg | TransactionArgument],
1258
1208
  ): TransactionArgument & [TransactionArgument] {
1259
1209
  const _args: any[] = [];
1260
- _args.push(
1261
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1262
- );
1210
+ _args.push(transactionArgumentOrObject(args[0], tx));
1263
1211
 
1264
1212
  // @ts-ignore
1265
1213
  return tx.moveCall({
@@ -1272,9 +1220,7 @@ export namespace bcs {
1272
1220
  args: [string | ObjectCallArg | TransactionArgument],
1273
1221
  ): TransactionArgument & [TransactionArgument] {
1274
1222
  const _args: any[] = [];
1275
- _args.push(
1276
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1277
- );
1223
+ _args.push(transactionArgumentOrObject(args[0], tx));
1278
1224
 
1279
1225
  // @ts-ignore
1280
1226
  return tx.moveCall({
@@ -1287,9 +1233,7 @@ export namespace bcs {
1287
1233
  args: [string | ObjectCallArg | TransactionArgument],
1288
1234
  ): TransactionArgument & [TransactionArgument] {
1289
1235
  const _args: any[] = [];
1290
- _args.push(
1291
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1292
- );
1236
+ _args.push(transactionArgumentOrObject(args[0], tx));
1293
1237
 
1294
1238
  // @ts-ignore
1295
1239
  return tx.moveCall({
@@ -1302,9 +1246,7 @@ export namespace bcs {
1302
1246
  args: [string | ObjectCallArg | TransactionArgument],
1303
1247
  ): TransactionArgument & [TransactionArgument] {
1304
1248
  const _args: any[] = [];
1305
- _args.push(
1306
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1307
- );
1249
+ _args.push(transactionArgumentOrObject(args[0], tx));
1308
1250
 
1309
1251
  // @ts-ignore
1310
1252
  return tx.moveCall({
@@ -1317,9 +1259,7 @@ export namespace bcs {
1317
1259
  args: [string | ObjectCallArg | TransactionArgument],
1318
1260
  ): TransactionArgument & [TransactionArgument] {
1319
1261
  const _args: any[] = [];
1320
- _args.push(
1321
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1322
- );
1262
+ _args.push(transactionArgumentOrObject(args[0], tx));
1323
1263
 
1324
1264
  // @ts-ignore
1325
1265
  return tx.moveCall({
@@ -1332,9 +1272,7 @@ export namespace bcs {
1332
1272
  args: [string | ObjectCallArg | TransactionArgument],
1333
1273
  ): TransactionArgument & [TransactionArgument] {
1334
1274
  const _args: any[] = [];
1335
- _args.push(
1336
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1337
- );
1275
+ _args.push(transactionArgumentOrObject(args[0], tx));
1338
1276
 
1339
1277
  // @ts-ignore
1340
1278
  return tx.moveCall({
@@ -1347,9 +1285,7 @@ export namespace bcs {
1347
1285
  args: [string | ObjectCallArg | TransactionArgument],
1348
1286
  ): TransactionArgument & [TransactionArgument] {
1349
1287
  const _args: any[] = [];
1350
- _args.push(
1351
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1352
- );
1288
+ _args.push(transactionArgumentOrObject(args[0], tx));
1353
1289
 
1354
1290
  // @ts-ignore
1355
1291
  return tx.moveCall({
@@ -1362,9 +1298,7 @@ export namespace bcs {
1362
1298
  args: [string | ObjectCallArg | TransactionArgument],
1363
1299
  ): TransactionArgument & [TransactionArgument] {
1364
1300
  const _args: any[] = [];
1365
- _args.push(
1366
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1367
- );
1301
+ _args.push(transactionArgumentOrObject(args[0], tx));
1368
1302
 
1369
1303
  // @ts-ignore
1370
1304
  return tx.moveCall({
@@ -1377,9 +1311,7 @@ export namespace bcs {
1377
1311
  args: [string | ObjectCallArg | TransactionArgument],
1378
1312
  ): TransactionArgument & [TransactionArgument] {
1379
1313
  const _args: any[] = [];
1380
- _args.push(
1381
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1382
- );
1314
+ _args.push(transactionArgumentOrObject(args[0], tx));
1383
1315
 
1384
1316
  // @ts-ignore
1385
1317
  return tx.moveCall({
@@ -1392,9 +1324,7 @@ export namespace bcs {
1392
1324
  args: [string | ObjectCallArg | TransactionArgument],
1393
1325
  ): TransactionArgument & [TransactionArgument] {
1394
1326
  const _args: any[] = [];
1395
- _args.push(
1396
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1397
- );
1327
+ _args.push(transactionArgumentOrObject(args[0], tx));
1398
1328
 
1399
1329
  // @ts-ignore
1400
1330
  return tx.moveCall({
@@ -1407,9 +1337,7 @@ export namespace bcs {
1407
1337
  args: [string | ObjectCallArg | TransactionArgument],
1408
1338
  ): TransactionArgument & [TransactionArgument] {
1409
1339
  const _args: any[] = [];
1410
- _args.push(
1411
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1412
- );
1340
+ _args.push(transactionArgumentOrObject(args[0], tx));
1413
1341
 
1414
1342
  // @ts-ignore
1415
1343
  return tx.moveCall({
@@ -1423,9 +1351,7 @@ export namespace bcs {
1423
1351
  typeArguments: [TypeDescriptor<T0> | string],
1424
1352
  ): TransactionArgument & [TransactionArgument] {
1425
1353
  const _args: any[] = [];
1426
- _args.push(
1427
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1428
- );
1354
+ _args.push(transactionArgumentOrObject(args[0], tx));
1429
1355
 
1430
1356
  // @ts-ignore
1431
1357
  return tx.moveCall({
@@ -1756,15 +1682,9 @@ export namespace bls12381 {
1756
1682
  ): TransactionArgument &
1757
1683
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1758
1684
  const _args: any[] = [];
1759
- _args.push(
1760
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1761
- );
1762
- _args.push(
1763
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1764
- );
1765
- _args.push(
1766
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1767
- );
1685
+ _args.push(transactionArgumentOrObject(args[0], tx));
1686
+ _args.push(transactionArgumentOrObject(args[1], tx));
1687
+ _args.push(transactionArgumentOrObject(args[2], tx));
1768
1688
 
1769
1689
  // @ts-ignore
1770
1690
  return tx.moveCall({
@@ -1782,15 +1702,9 @@ export namespace bls12381 {
1782
1702
  ): TransactionArgument &
1783
1703
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1784
1704
  const _args: any[] = [];
1785
- _args.push(
1786
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1787
- );
1788
- _args.push(
1789
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1790
- );
1791
- _args.push(
1792
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1793
- );
1705
+ _args.push(transactionArgumentOrObject(args[0], tx));
1706
+ _args.push(transactionArgumentOrObject(args[1], tx));
1707
+ _args.push(transactionArgumentOrObject(args[2], tx));
1794
1708
 
1795
1709
  // @ts-ignore
1796
1710
  return tx.moveCall({
@@ -1881,9 +1795,7 @@ export namespace borrow {
1881
1795
  typeArguments: [TypeDescriptor<T0> | string],
1882
1796
  ): TransactionArgument & [TransactionArgument] {
1883
1797
  const _args: any[] = [];
1884
- _args.push(
1885
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1886
- );
1798
+ _args.push(transactionArgumentOrObject(args[0], tx));
1887
1799
 
1888
1800
  // @ts-ignore
1889
1801
  return tx.moveCall({
@@ -1902,7 +1814,7 @@ export namespace borrow {
1902
1814
  typeArguments: [TypeDescriptor<T0> | string],
1903
1815
  ): TransactionArgument & [TransactionArgument] {
1904
1816
  const _args: any[] = [];
1905
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1817
+ _args.push(transactionArgumentOrPure(args[0], tx));
1906
1818
 
1907
1819
  // @ts-ignore
1908
1820
  return tx.moveCall({
@@ -1924,10 +1836,8 @@ export namespace borrow {
1924
1836
  typeArguments: [TypeDescriptor<T0> | string],
1925
1837
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1926
1838
  const _args: any[] = [];
1927
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1928
- _args.push(
1929
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1930
- );
1839
+ _args.push(transactionArgumentOrPure(args[0], tx));
1840
+ _args.push(transactionArgumentOrObject(args[1], tx));
1931
1841
 
1932
1842
  // @ts-ignore
1933
1843
  return tx.moveCall({
@@ -1951,11 +1861,9 @@ export namespace borrow {
1951
1861
  ): TransactionArgument &
1952
1862
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1953
1863
  const _args: any[] = [];
1954
- _args.push(
1955
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1956
- );
1957
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1958
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1864
+ _args.push(transactionArgumentOrObject(args[0], tx));
1865
+ _args.push(transactionArgumentOrPure(args[1], tx));
1866
+ _args.push(transactionArgumentOrPure(args[2], tx));
1959
1867
 
1960
1868
  // @ts-ignore
1961
1869
  return tx.moveCall({
@@ -2066,9 +1974,7 @@ export namespace clock {
2066
1974
  args: [string | ObjectCallArg | TransactionArgument],
2067
1975
  ): TransactionArgument & [TransactionArgument] {
2068
1976
  const _args: any[] = [];
2069
- _args.push(
2070
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2071
- );
1977
+ _args.push(transactionArgumentOrObject(args[0], tx));
2072
1978
 
2073
1979
  // @ts-ignore
2074
1980
  return tx.moveCall({
@@ -2179,9 +2085,7 @@ export namespace coin {
2179
2085
  typeArguments: [TypeDescriptor<T0> | string],
2180
2086
  ): TransactionArgument & [TransactionArgument] {
2181
2087
  const _args: any[] = [];
2182
- _args.push(
2183
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2184
- );
2088
+ _args.push(transactionArgumentOrObject(args[0], tx));
2185
2089
 
2186
2090
  // @ts-ignore
2187
2091
  return tx.moveCall({
@@ -2200,9 +2104,7 @@ export namespace coin {
2200
2104
  typeArguments: [TypeDescriptor<T0> | string],
2201
2105
  ): TransactionArgument & [TransactionArgument] {
2202
2106
  const _args: any[] = [];
2203
- _args.push(
2204
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2205
- );
2107
+ _args.push(transactionArgumentOrObject(args[0], tx));
2206
2108
 
2207
2109
  // @ts-ignore
2208
2110
  return tx.moveCall({
@@ -2224,10 +2126,8 @@ export namespace coin {
2224
2126
  typeArguments: [TypeDescriptor<T0> | string],
2225
2127
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2226
2128
  const _args: any[] = [];
2227
- _args.push(
2228
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2229
- );
2230
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2129
+ _args.push(transactionArgumentOrObject(args[0], tx));
2130
+ _args.push(transactionArgumentOrPure(args[1], tx));
2231
2131
 
2232
2132
  // @ts-ignore
2233
2133
  return tx.moveCall({
@@ -2263,36 +2163,13 @@ export namespace coin {
2263
2163
  TransactionArgument,
2264
2164
  ] {
2265
2165
  const _args: any[] = [];
2266
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
2267
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2268
- _args.push(
2269
- TransactionArgument.is(args[2])
2270
- ? args[2]
2271
- : tx.makeMoveVec({
2272
- objects: args[2].map((a: any) => tx.object(a)),
2273
- // type: TODO
2274
- }),
2275
- );
2276
- _args.push(
2277
- TransactionArgument.is(args[3])
2278
- ? args[3]
2279
- : tx.makeMoveVec({
2280
- objects: args[3].map((a: any) => tx.object(a)),
2281
- // type: TODO
2282
- }),
2283
- );
2284
- _args.push(
2285
- TransactionArgument.is(args[4])
2286
- ? args[4]
2287
- : tx.makeMoveVec({
2288
- objects: args[4].map((a: any) => tx.object(a)),
2289
- // type: TODO
2290
- }),
2291
- );
2292
- _args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
2293
- _args.push(
2294
- TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6]),
2295
- );
2166
+ _args.push(transactionArgumentOrPure(args[0], tx));
2167
+ _args.push(transactionArgumentOrPure(args[1], tx));
2168
+ _args.push(transactionArgumentOrVec(args[2], tx));
2169
+ _args.push(transactionArgumentOrVec(args[3], tx));
2170
+ _args.push(transactionArgumentOrVec(args[4], tx));
2171
+ _args.push(transactionArgumentOrPure(args[5], tx));
2172
+ _args.push(transactionArgumentOrObject(args[6], tx));
2296
2173
 
2297
2174
  // @ts-ignore
2298
2175
  return tx.moveCall({
@@ -2311,7 +2188,7 @@ export namespace coin {
2311
2188
  typeArguments: [TypeDescriptor<T0> | string],
2312
2189
  ): TransactionArgument & [TransactionArgument] {
2313
2190
  const _args: any[] = [];
2314
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
2191
+ _args.push(transactionArgumentOrPure(args[0], tx));
2315
2192
 
2316
2193
  // @ts-ignore
2317
2194
  return tx.moveCall({
@@ -2335,13 +2212,9 @@ export namespace coin {
2335
2212
  ): TransactionArgument &
2336
2213
  [TransactionArgument, TransactionArgument, TransactionArgument] {
2337
2214
  const _args: any[] = [];
2338
- _args.push(
2339
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2340
- );
2341
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2342
- _args.push(
2343
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
2344
- );
2215
+ _args.push(transactionArgumentOrObject(args[0], tx));
2216
+ _args.push(transactionArgumentOrPure(args[1], tx));
2217
+ _args.push(transactionArgumentOrObject(args[2], tx));
2345
2218
 
2346
2219
  // @ts-ignore
2347
2220
  return tx.moveCall({
@@ -2363,10 +2236,8 @@ export namespace coin {
2363
2236
  typeArguments: [TypeDescriptor<T0> | string],
2364
2237
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2365
2238
  const _args: any[] = [];
2366
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
2367
- _args.push(
2368
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
2369
- );
2239
+ _args.push(transactionArgumentOrPure(args[0], tx));
2240
+ _args.push(transactionArgumentOrObject(args[1], tx));
2370
2241
 
2371
2242
  // @ts-ignore
2372
2243
  return tx.moveCall({
@@ -2385,9 +2256,7 @@ export namespace coin {
2385
2256
  typeArguments: [TypeDescriptor<T0> | string],
2386
2257
  ): TransactionArgument & [TransactionArgument] {
2387
2258
  const _args: any[] = [];
2388
- _args.push(
2389
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2390
- );
2259
+ _args.push(transactionArgumentOrObject(args[0], tx));
2391
2260
 
2392
2261
  // @ts-ignore
2393
2262
  return tx.moveCall({
@@ -2406,9 +2275,7 @@ export namespace coin {
2406
2275
  typeArguments: [TypeDescriptor<T0> | string],
2407
2276
  ): TransactionArgument & [TransactionArgument] {
2408
2277
  const _args: any[] = [];
2409
- _args.push(
2410
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2411
- );
2278
+ _args.push(transactionArgumentOrObject(args[0], tx));
2412
2279
 
2413
2280
  // @ts-ignore
2414
2281
  return tx.moveCall({
@@ -2427,9 +2294,7 @@ export namespace coin {
2427
2294
  typeArguments: [TypeDescriptor<T0> | string],
2428
2295
  ): TransactionArgument & [TransactionArgument] {
2429
2296
  const _args: any[] = [];
2430
- _args.push(
2431
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2432
- );
2297
+ _args.push(transactionArgumentOrObject(args[0], tx));
2433
2298
 
2434
2299
  // @ts-ignore
2435
2300
  return tx.moveCall({
@@ -2448,9 +2313,7 @@ export namespace coin {
2448
2313
  typeArguments: [TypeDescriptor<T0> | string],
2449
2314
  ): TransactionArgument & [TransactionArgument] {
2450
2315
  const _args: any[] = [];
2451
- _args.push(
2452
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2453
- );
2316
+ _args.push(transactionArgumentOrObject(args[0], tx));
2454
2317
 
2455
2318
  // @ts-ignore
2456
2319
  return tx.moveCall({
@@ -2469,9 +2332,7 @@ export namespace coin {
2469
2332
  typeArguments: [TypeDescriptor<T0> | string],
2470
2333
  ): TransactionArgument & [TransactionArgument] {
2471
2334
  const _args: any[] = [];
2472
- _args.push(
2473
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2474
- );
2335
+ _args.push(transactionArgumentOrObject(args[0], tx));
2475
2336
 
2476
2337
  // @ts-ignore
2477
2338
  return tx.moveCall({
@@ -2490,7 +2351,7 @@ export namespace coin {
2490
2351
  typeArguments: [TypeDescriptor<T0> | string],
2491
2352
  ): TransactionArgument & [TransactionArgument] {
2492
2353
  const _args: any[] = [];
2493
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
2354
+ _args.push(transactionArgumentOrPure(args[0], tx));
2494
2355
 
2495
2356
  // @ts-ignore
2496
2357
  return tx.moveCall({
@@ -2512,10 +2373,8 @@ export namespace coin {
2512
2373
  typeArguments: [TypeDescriptor<T0> | string],
2513
2374
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2514
2375
  const _args: any[] = [];
2515
- _args.push(
2516
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2517
- );
2518
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2376
+ _args.push(transactionArgumentOrObject(args[0], tx));
2377
+ _args.push(transactionArgumentOrPure(args[1], tx));
2519
2378
 
2520
2379
  // @ts-ignore
2521
2380
  return tx.moveCall({
@@ -2539,13 +2398,9 @@ export namespace coin {
2539
2398
  ): TransactionArgument &
2540
2399
  [TransactionArgument, TransactionArgument, TransactionArgument] {
2541
2400
  const _args: any[] = [];
2542
- _args.push(
2543
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2544
- );
2545
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2546
- _args.push(
2547
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
2548
- );
2401
+ _args.push(transactionArgumentOrObject(args[0], tx));
2402
+ _args.push(transactionArgumentOrPure(args[1], tx));
2403
+ _args.push(transactionArgumentOrObject(args[2], tx));
2549
2404
 
2550
2405
  // @ts-ignore
2551
2406
  return tx.moveCall({
@@ -2575,14 +2430,10 @@ export namespace coin {
2575
2430
  TransactionArgument,
2576
2431
  ] {
2577
2432
  const _args: any[] = [];
2578
- _args.push(
2579
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2580
- );
2581
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2582
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
2583
- _args.push(
2584
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
2585
- );
2433
+ _args.push(transactionArgumentOrObject(args[0], tx));
2434
+ _args.push(transactionArgumentOrPure(args[1], tx));
2435
+ _args.push(transactionArgumentOrPure(args[2], tx));
2436
+ _args.push(transactionArgumentOrObject(args[3], tx));
2586
2437
 
2587
2438
  // @ts-ignore
2588
2439
  return tx.moveCall({
@@ -2604,10 +2455,8 @@ export namespace coin {
2604
2455
  typeArguments: [TypeDescriptor<T0> | string],
2605
2456
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2606
2457
  const _args: any[] = [];
2607
- _args.push(
2608
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2609
- );
2610
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2458
+ _args.push(transactionArgumentOrObject(args[0], tx));
2459
+ _args.push(transactionArgumentOrPure(args[1], tx));
2611
2460
 
2612
2461
  // @ts-ignore
2613
2462
  return tx.moveCall({
@@ -2629,10 +2478,8 @@ export namespace coin {
2629
2478
  typeArguments: [TypeDescriptor<T0> | string],
2630
2479
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2631
2480
  const _args: any[] = [];
2632
- _args.push(
2633
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2634
- );
2635
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2481
+ _args.push(transactionArgumentOrObject(args[0], tx));
2482
+ _args.push(transactionArgumentOrPure(args[1], tx));
2636
2483
 
2637
2484
  // @ts-ignore
2638
2485
  return tx.moveCall({
@@ -2656,13 +2503,9 @@ export namespace coin {
2656
2503
  ): TransactionArgument &
2657
2504
  [TransactionArgument, TransactionArgument, TransactionArgument] {
2658
2505
  const _args: any[] = [];
2659
- _args.push(
2660
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2661
- );
2662
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2663
- _args.push(
2664
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
2665
- );
2506
+ _args.push(transactionArgumentOrObject(args[0], tx));
2507
+ _args.push(transactionArgumentOrPure(args[1], tx));
2508
+ _args.push(transactionArgumentOrObject(args[2], tx));
2666
2509
 
2667
2510
  // @ts-ignore
2668
2511
  return tx.moveCall({
@@ -2681,9 +2524,7 @@ export namespace coin {
2681
2524
  typeArguments: [TypeDescriptor<T0> | string],
2682
2525
  ): TransactionArgument & [TransactionArgument] {
2683
2526
  const _args: any[] = [];
2684
- _args.push(
2685
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2686
- );
2527
+ _args.push(transactionArgumentOrObject(args[0], tx));
2687
2528
 
2688
2529
  // @ts-ignore
2689
2530
  return tx.moveCall({
@@ -2702,9 +2543,7 @@ export namespace coin {
2702
2543
  typeArguments: [TypeDescriptor<T0> | string],
2703
2544
  ): TransactionArgument & [TransactionArgument] {
2704
2545
  const _args: any[] = [];
2705
- _args.push(
2706
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2707
- );
2546
+ _args.push(transactionArgumentOrObject(args[0], tx));
2708
2547
 
2709
2548
  // @ts-ignore
2710
2549
  return tx.moveCall({
@@ -2723,9 +2562,7 @@ export namespace coin {
2723
2562
  typeArguments: [TypeDescriptor<T0> | string],
2724
2563
  ): TransactionArgument & [TransactionArgument] {
2725
2564
  const _args: any[] = [];
2726
- _args.push(
2727
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2728
- );
2565
+ _args.push(transactionArgumentOrObject(args[0], tx));
2729
2566
 
2730
2567
  // @ts-ignore
2731
2568
  return tx.moveCall({
@@ -2749,13 +2586,9 @@ export namespace coin {
2749
2586
  ): TransactionArgument &
2750
2587
  [TransactionArgument, TransactionArgument, TransactionArgument] {
2751
2588
  const _args: any[] = [];
2752
- _args.push(
2753
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2754
- );
2755
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2756
- _args.push(
2757
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
2758
- );
2589
+ _args.push(transactionArgumentOrObject(args[0], tx));
2590
+ _args.push(transactionArgumentOrPure(args[1], tx));
2591
+ _args.push(transactionArgumentOrObject(args[2], tx));
2759
2592
 
2760
2593
  // @ts-ignore
2761
2594
  return tx.moveCall({
@@ -2774,9 +2607,7 @@ export namespace coin {
2774
2607
  typeArguments: [TypeDescriptor<T0> | string],
2775
2608
  ): TransactionArgument & [TransactionArgument] {
2776
2609
  const _args: any[] = [];
2777
- _args.push(
2778
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2779
- );
2610
+ _args.push(transactionArgumentOrObject(args[0], tx));
2780
2611
 
2781
2612
  // @ts-ignore
2782
2613
  return tx.moveCall({
@@ -2795,7 +2626,7 @@ export namespace coin {
2795
2626
  typeArguments: [TypeDescriptor<T0> | string],
2796
2627
  ): TransactionArgument & [TransactionArgument] {
2797
2628
  const _args: any[] = [];
2798
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
2629
+ _args.push(transactionArgumentOrPure(args[0], tx));
2799
2630
 
2800
2631
  // @ts-ignore
2801
2632
  return tx.moveCall({
@@ -2819,13 +2650,9 @@ export namespace coin {
2819
2650
  ): TransactionArgument &
2820
2651
  [TransactionArgument, TransactionArgument, TransactionArgument] {
2821
2652
  const _args: any[] = [];
2822
- _args.push(
2823
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2824
- );
2825
- _args.push(
2826
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
2827
- );
2828
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
2653
+ _args.push(transactionArgumentOrObject(args[0], tx));
2654
+ _args.push(transactionArgumentOrObject(args[1], tx));
2655
+ _args.push(transactionArgumentOrPure(args[2], tx));
2829
2656
 
2830
2657
  // @ts-ignore
2831
2658
  return tx.moveCall({
@@ -2849,13 +2676,9 @@ export namespace coin {
2849
2676
  ): TransactionArgument &
2850
2677
  [TransactionArgument, TransactionArgument, TransactionArgument] {
2851
2678
  const _args: any[] = [];
2852
- _args.push(
2853
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2854
- );
2855
- _args.push(
2856
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
2857
- );
2858
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
2679
+ _args.push(transactionArgumentOrObject(args[0], tx));
2680
+ _args.push(transactionArgumentOrObject(args[1], tx));
2681
+ _args.push(transactionArgumentOrPure(args[2], tx));
2859
2682
 
2860
2683
  // @ts-ignore
2861
2684
  return tx.moveCall({
@@ -2879,13 +2702,9 @@ export namespace coin {
2879
2702
  ): TransactionArgument &
2880
2703
  [TransactionArgument, TransactionArgument, TransactionArgument] {
2881
2704
  const _args: any[] = [];
2882
- _args.push(
2883
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2884
- );
2885
- _args.push(
2886
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
2887
- );
2888
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
2705
+ _args.push(transactionArgumentOrObject(args[0], tx));
2706
+ _args.push(transactionArgumentOrObject(args[1], tx));
2707
+ _args.push(transactionArgumentOrPure(args[2], tx));
2889
2708
 
2890
2709
  // @ts-ignore
2891
2710
  return tx.moveCall({
@@ -2909,13 +2728,9 @@ export namespace coin {
2909
2728
  ): TransactionArgument &
2910
2729
  [TransactionArgument, TransactionArgument, TransactionArgument] {
2911
2730
  const _args: any[] = [];
2912
- _args.push(
2913
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2914
- );
2915
- _args.push(
2916
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
2917
- );
2918
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
2731
+ _args.push(transactionArgumentOrObject(args[0], tx));
2732
+ _args.push(transactionArgumentOrObject(args[1], tx));
2733
+ _args.push(transactionArgumentOrPure(args[2], tx));
2919
2734
 
2920
2735
  // @ts-ignore
2921
2736
  return tx.moveCall({
@@ -2934,9 +2749,7 @@ export namespace coin {
2934
2749
  typeArguments: [TypeDescriptor<T0> | string],
2935
2750
  ): TransactionArgument & [TransactionArgument] {
2936
2751
  const _args: any[] = [];
2937
- _args.push(
2938
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2939
- );
2752
+ _args.push(transactionArgumentOrObject(args[0], tx));
2940
2753
 
2941
2754
  // @ts-ignore
2942
2755
  return tx.moveCall({
@@ -2955,9 +2768,7 @@ export namespace coin {
2955
2768
  typeArguments: [TypeDescriptor<T0> | string],
2956
2769
  ): TransactionArgument & [TransactionArgument] {
2957
2770
  const _args: any[] = [];
2958
- _args.push(
2959
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2960
- );
2771
+ _args.push(transactionArgumentOrObject(args[0], tx));
2961
2772
 
2962
2773
  // @ts-ignore
2963
2774
  return tx.moveCall({
@@ -3614,11 +3425,9 @@ export namespace display {
3614
3425
  ): TransactionArgument &
3615
3426
  [TransactionArgument, TransactionArgument, TransactionArgument] {
3616
3427
  const _args: any[] = [];
3617
- _args.push(
3618
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3619
- );
3620
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3621
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
3428
+ _args.push(transactionArgumentOrObject(args[0], tx));
3429
+ _args.push(transactionArgumentOrPure(args[1], tx));
3430
+ _args.push(transactionArgumentOrPure(args[2], tx));
3622
3431
 
3623
3432
  // @ts-ignore
3624
3433
  return tx.moveCall({
@@ -3642,25 +3451,9 @@ export namespace display {
3642
3451
  ): TransactionArgument &
3643
3452
  [TransactionArgument, TransactionArgument, TransactionArgument] {
3644
3453
  const _args: any[] = [];
3645
- _args.push(
3646
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3647
- );
3648
- _args.push(
3649
- TransactionArgument.is(args[1])
3650
- ? args[1]
3651
- : tx.makeMoveVec({
3652
- objects: args[1].map((a: any) => tx.object(a)),
3653
- // type: TODO
3654
- }),
3655
- );
3656
- _args.push(
3657
- TransactionArgument.is(args[2])
3658
- ? args[2]
3659
- : tx.makeMoveVec({
3660
- objects: args[2].map((a: any) => tx.object(a)),
3661
- // type: TODO
3662
- }),
3663
- );
3454
+ _args.push(transactionArgumentOrObject(args[0], tx));
3455
+ _args.push(transactionArgumentOrVec(args[1], tx));
3456
+ _args.push(transactionArgumentOrVec(args[2], tx));
3664
3457
 
3665
3458
  // @ts-ignore
3666
3459
  return tx.moveCall({
@@ -3682,12 +3475,8 @@ export namespace display {
3682
3475
  typeArguments: [TypeDescriptor<T0> | string],
3683
3476
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
3684
3477
  const _args: any[] = [];
3685
- _args.push(
3686
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3687
- );
3688
- _args.push(
3689
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
3690
- );
3478
+ _args.push(transactionArgumentOrObject(args[0], tx));
3479
+ _args.push(transactionArgumentOrObject(args[1], tx));
3691
3480
 
3692
3481
  // @ts-ignore
3693
3482
  return tx.moveCall({
@@ -3711,11 +3500,9 @@ export namespace display {
3711
3500
  ): TransactionArgument &
3712
3501
  [TransactionArgument, TransactionArgument, TransactionArgument] {
3713
3502
  const _args: any[] = [];
3714
- _args.push(
3715
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3716
- );
3717
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3718
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
3503
+ _args.push(transactionArgumentOrObject(args[0], tx));
3504
+ _args.push(transactionArgumentOrPure(args[1], tx));
3505
+ _args.push(transactionArgumentOrPure(args[2], tx));
3719
3506
 
3720
3507
  // @ts-ignore
3721
3508
  return tx.moveCall({
@@ -3734,9 +3521,7 @@ export namespace display {
3734
3521
  typeArguments: [TypeDescriptor<T0> | string],
3735
3522
  ): TransactionArgument & [TransactionArgument] {
3736
3523
  const _args: any[] = [];
3737
- _args.push(
3738
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3739
- );
3524
+ _args.push(transactionArgumentOrObject(args[0], tx));
3740
3525
 
3741
3526
  // @ts-ignore
3742
3527
  return tx.moveCall({
@@ -3755,9 +3540,7 @@ export namespace display {
3755
3540
  typeArguments: [TypeDescriptor<T0> | string],
3756
3541
  ): TransactionArgument & [TransactionArgument] {
3757
3542
  const _args: any[] = [];
3758
- _args.push(
3759
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3760
- );
3543
+ _args.push(transactionArgumentOrObject(args[0], tx));
3761
3544
 
3762
3545
  // @ts-ignore
3763
3546
  return tx.moveCall({
@@ -3779,12 +3562,8 @@ export namespace display {
3779
3562
  typeArguments: [TypeDescriptor<T0> | string],
3780
3563
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
3781
3564
  const _args: any[] = [];
3782
- _args.push(
3783
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3784
- );
3785
- _args.push(
3786
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
3787
- );
3565
+ _args.push(transactionArgumentOrObject(args[0], tx));
3566
+ _args.push(transactionArgumentOrObject(args[1], tx));
3788
3567
 
3789
3568
  // @ts-ignore
3790
3569
  return tx.moveCall({
@@ -3814,28 +3593,10 @@ export namespace display {
3814
3593
  TransactionArgument,
3815
3594
  ] {
3816
3595
  const _args: any[] = [];
3817
- _args.push(
3818
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3819
- );
3820
- _args.push(
3821
- TransactionArgument.is(args[1])
3822
- ? args[1]
3823
- : tx.makeMoveVec({
3824
- objects: args[1].map((a: any) => tx.object(a)),
3825
- // type: TODO
3826
- }),
3827
- );
3828
- _args.push(
3829
- TransactionArgument.is(args[2])
3830
- ? args[2]
3831
- : tx.makeMoveVec({
3832
- objects: args[2].map((a: any) => tx.object(a)),
3833
- // type: TODO
3834
- }),
3835
- );
3836
- _args.push(
3837
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
3838
- );
3596
+ _args.push(transactionArgumentOrObject(args[0], tx));
3597
+ _args.push(transactionArgumentOrVec(args[1], tx));
3598
+ _args.push(transactionArgumentOrVec(args[2], tx));
3599
+ _args.push(transactionArgumentOrObject(args[3], tx));
3839
3600
 
3840
3601
  // @ts-ignore
3841
3602
  return tx.moveCall({
@@ -3857,10 +3618,8 @@ export namespace display {
3857
3618
  typeArguments: [TypeDescriptor<T0> | string],
3858
3619
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
3859
3620
  const _args: any[] = [];
3860
- _args.push(
3861
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3862
- );
3863
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3621
+ _args.push(transactionArgumentOrObject(args[0], tx));
3622
+ _args.push(transactionArgumentOrPure(args[1], tx));
3864
3623
 
3865
3624
  // @ts-ignore
3866
3625
  return tx.moveCall({
@@ -3879,9 +3638,7 @@ export namespace display {
3879
3638
  typeArguments: [TypeDescriptor<T0> | string],
3880
3639
  ): TransactionArgument & [TransactionArgument] {
3881
3640
  const _args: any[] = [];
3882
- _args.push(
3883
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3884
- );
3641
+ _args.push(transactionArgumentOrObject(args[0], tx));
3885
3642
 
3886
3643
  // @ts-ignore
3887
3644
  return tx.moveCall({
@@ -3900,9 +3657,7 @@ export namespace display {
3900
3657
  typeArguments: [TypeDescriptor<T0> | string],
3901
3658
  ): TransactionArgument & [TransactionArgument] {
3902
3659
  const _args: any[] = [];
3903
- _args.push(
3904
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3905
- );
3660
+ _args.push(transactionArgumentOrObject(args[0], tx));
3906
3661
 
3907
3662
  // @ts-ignore
3908
3663
  return tx.moveCall({
@@ -4154,11 +3909,9 @@ export namespace dynamic_field {
4154
3909
  ): TransactionArgument &
4155
3910
  [TransactionArgument, TransactionArgument, TransactionArgument] {
4156
3911
  const _args: any[] = [];
4157
- _args.push(
4158
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4159
- );
4160
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
4161
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
3912
+ _args.push(transactionArgumentOrObject(args[0], tx));
3913
+ _args.push(transactionArgumentOrPure(args[1], tx));
3914
+ _args.push(transactionArgumentOrPure(args[2], tx));
4162
3915
 
4163
3916
  // @ts-ignore
4164
3917
  return tx.moveCall({
@@ -4184,10 +3937,8 @@ export namespace dynamic_field {
4184
3937
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
4185
3938
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4186
3939
  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]));
3940
+ _args.push(transactionArgumentOrObject(args[0], tx));
3941
+ _args.push(transactionArgumentOrPure(args[1], tx));
4191
3942
 
4192
3943
  // @ts-ignore
4193
3944
  return tx.moveCall({
@@ -4213,10 +3964,8 @@ export namespace dynamic_field {
4213
3964
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
4214
3965
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4215
3966
  const _args: any[] = [];
4216
- _args.push(
4217
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4218
- );
4219
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3967
+ _args.push(transactionArgumentOrObject(args[0], tx));
3968
+ _args.push(transactionArgumentOrPure(args[1], tx));
4220
3969
 
4221
3970
  // @ts-ignore
4222
3971
  return tx.moveCall({
@@ -4241,10 +3990,8 @@ export namespace dynamic_field {
4241
3990
  typeArguments: [TypeDescriptor<T0> | string],
4242
3991
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4243
3992
  const _args: any[] = [];
4244
- _args.push(
4245
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4246
- );
4247
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3993
+ _args.push(transactionArgumentOrObject(args[0], tx));
3994
+ _args.push(transactionArgumentOrPure(args[1], tx));
4248
3995
 
4249
3996
  // @ts-ignore
4250
3997
  return tx.moveCall({
@@ -4266,10 +4013,8 @@ export namespace dynamic_field {
4266
4013
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
4267
4014
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4268
4015
  const _args: any[] = [];
4269
- _args.push(
4270
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4271
- );
4272
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
4016
+ _args.push(transactionArgumentOrObject(args[0], tx));
4017
+ _args.push(transactionArgumentOrPure(args[1], tx));
4273
4018
 
4274
4019
  // @ts-ignore
4275
4020
  return tx.moveCall({
@@ -4295,10 +4040,8 @@ export namespace dynamic_field {
4295
4040
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
4296
4041
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4297
4042
  const _args: any[] = [];
4298
- _args.push(
4299
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4300
- );
4301
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
4043
+ _args.push(transactionArgumentOrObject(args[0], tx));
4044
+ _args.push(transactionArgumentOrPure(args[1], tx));
4302
4045
 
4303
4046
  // @ts-ignore
4304
4047
  return tx.moveCall({
@@ -4324,10 +4067,8 @@ export namespace dynamic_field {
4324
4067
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
4325
4068
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4326
4069
  const _args: any[] = [];
4327
- _args.push(
4328
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4329
- );
4330
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
4070
+ _args.push(transactionArgumentOrObject(args[0], tx));
4071
+ _args.push(transactionArgumentOrPure(args[1], tx));
4331
4072
 
4332
4073
  // @ts-ignore
4333
4074
  return tx.moveCall({
@@ -4520,11 +4261,9 @@ export namespace dynamic_object_field {
4520
4261
  ): TransactionArgument &
4521
4262
  [TransactionArgument, TransactionArgument, TransactionArgument] {
4522
4263
  const _args: any[] = [];
4523
- _args.push(
4524
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4525
- );
4526
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
4527
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
4264
+ _args.push(transactionArgumentOrObject(args[0], tx));
4265
+ _args.push(transactionArgumentOrPure(args[1], tx));
4266
+ _args.push(transactionArgumentOrPure(args[2], tx));
4528
4267
 
4529
4268
  // @ts-ignore
4530
4269
  return tx.moveCall({
@@ -4549,10 +4288,8 @@ export namespace dynamic_object_field {
4549
4288
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
4550
4289
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4551
4290
  const _args: any[] = [];
4552
- _args.push(
4553
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4554
- );
4555
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
4291
+ _args.push(transactionArgumentOrObject(args[0], tx));
4292
+ _args.push(transactionArgumentOrPure(args[1], tx));
4556
4293
 
4557
4294
  // @ts-ignore
4558
4295
  return tx.moveCall({
@@ -4577,10 +4314,8 @@ export namespace dynamic_object_field {
4577
4314
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
4578
4315
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4579
4316
  const _args: any[] = [];
4580
- _args.push(
4581
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4582
- );
4583
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
4317
+ _args.push(transactionArgumentOrObject(args[0], tx));
4318
+ _args.push(transactionArgumentOrPure(args[1], tx));
4584
4319
 
4585
4320
  // @ts-ignore
4586
4321
  return tx.moveCall({
@@ -4605,10 +4340,8 @@ export namespace dynamic_object_field {
4605
4340
  typeArguments: [TypeDescriptor<T0> | string],
4606
4341
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4607
4342
  const _args: any[] = [];
4608
- _args.push(
4609
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4610
- );
4611
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
4343
+ _args.push(transactionArgumentOrObject(args[0], tx));
4344
+ _args.push(transactionArgumentOrPure(args[1], tx));
4612
4345
 
4613
4346
  // @ts-ignore
4614
4347
  return tx.moveCall({
@@ -4630,10 +4363,8 @@ export namespace dynamic_object_field {
4630
4363
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
4631
4364
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4632
4365
  const _args: any[] = [];
4633
- _args.push(
4634
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4635
- );
4636
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
4366
+ _args.push(transactionArgumentOrObject(args[0], tx));
4367
+ _args.push(transactionArgumentOrPure(args[1], tx));
4637
4368
 
4638
4369
  // @ts-ignore
4639
4370
  return tx.moveCall({
@@ -4658,10 +4389,8 @@ export namespace dynamic_object_field {
4658
4389
  typeArguments: [TypeDescriptor<T0> | string],
4659
4390
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4660
4391
  const _args: any[] = [];
4661
- _args.push(
4662
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4663
- );
4664
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
4392
+ _args.push(transactionArgumentOrObject(args[0], tx));
4393
+ _args.push(transactionArgumentOrPure(args[1], tx));
4665
4394
 
4666
4395
  // @ts-ignore
4667
4396
  return tx.moveCall({
@@ -4683,10 +4412,8 @@ export namespace dynamic_object_field {
4683
4412
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
4684
4413
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4685
4414
  const _args: any[] = [];
4686
- _args.push(
4687
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4688
- );
4689
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
4415
+ _args.push(transactionArgumentOrObject(args[0], tx));
4416
+ _args.push(transactionArgumentOrPure(args[1], tx));
4690
4417
 
4691
4418
  // @ts-ignore
4692
4419
  return tx.moveCall({
@@ -4848,9 +4575,7 @@ export namespace ecdsa_k1 {
4848
4575
  args: [string | ObjectCallArg | TransactionArgument],
4849
4576
  ): TransactionArgument & [TransactionArgument] {
4850
4577
  const _args: any[] = [];
4851
- _args.push(
4852
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4853
- );
4578
+ _args.push(transactionArgumentOrObject(args[0], tx));
4854
4579
 
4855
4580
  // @ts-ignore
4856
4581
  return tx.moveCall({
@@ -4868,13 +4593,9 @@ export namespace ecdsa_k1 {
4868
4593
  ): TransactionArgument &
4869
4594
  [TransactionArgument, TransactionArgument, TransactionArgument] {
4870
4595
  const _args: any[] = [];
4871
- _args.push(
4872
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4873
- );
4874
- _args.push(
4875
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
4876
- );
4877
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
4596
+ _args.push(transactionArgumentOrObject(args[0], tx));
4597
+ _args.push(transactionArgumentOrObject(args[1], tx));
4598
+ _args.push(transactionArgumentOrPure(args[2], tx));
4878
4599
 
4879
4600
  // @ts-ignore
4880
4601
  return tx.moveCall({
@@ -4898,16 +4619,10 @@ export namespace ecdsa_k1 {
4898
4619
  TransactionArgument,
4899
4620
  ] {
4900
4621
  const _args: any[] = [];
4901
- _args.push(
4902
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4903
- );
4904
- _args.push(
4905
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
4906
- );
4907
- _args.push(
4908
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
4909
- );
4910
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
4622
+ _args.push(transactionArgumentOrObject(args[0], tx));
4623
+ _args.push(transactionArgumentOrObject(args[1], tx));
4624
+ _args.push(transactionArgumentOrObject(args[2], tx));
4625
+ _args.push(transactionArgumentOrPure(args[3], tx));
4911
4626
 
4912
4627
  // @ts-ignore
4913
4628
  return tx.moveCall({
@@ -4986,13 +4701,9 @@ export namespace ecdsa_r1 {
4986
4701
  ): TransactionArgument &
4987
4702
  [TransactionArgument, TransactionArgument, TransactionArgument] {
4988
4703
  const _args: any[] = [];
4989
- _args.push(
4990
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
4991
- );
4992
- _args.push(
4993
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
4994
- );
4995
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
4704
+ _args.push(transactionArgumentOrObject(args[0], tx));
4705
+ _args.push(transactionArgumentOrObject(args[1], tx));
4706
+ _args.push(transactionArgumentOrPure(args[2], tx));
4996
4707
 
4997
4708
  // @ts-ignore
4998
4709
  return tx.moveCall({
@@ -5016,16 +4727,10 @@ export namespace ecdsa_r1 {
5016
4727
  TransactionArgument,
5017
4728
  ] {
5018
4729
  const _args: any[] = [];
5019
- _args.push(
5020
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
5021
- );
5022
- _args.push(
5023
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
5024
- );
5025
- _args.push(
5026
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
5027
- );
5028
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
4730
+ _args.push(transactionArgumentOrObject(args[0], tx));
4731
+ _args.push(transactionArgumentOrObject(args[1], tx));
4732
+ _args.push(transactionArgumentOrObject(args[2], tx));
4733
+ _args.push(transactionArgumentOrPure(args[3], tx));
5029
4734
 
5030
4735
  // @ts-ignore
5031
4736
  return tx.moveCall({
@@ -5095,18 +4800,10 @@ export namespace ecvrf {
5095
4800
  TransactionArgument,
5096
4801
  ] {
5097
4802
  const _args: any[] = [];
5098
- _args.push(
5099
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
5100
- );
5101
- _args.push(
5102
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
5103
- );
5104
- _args.push(
5105
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
5106
- );
5107
- _args.push(
5108
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
5109
- );
4803
+ _args.push(transactionArgumentOrObject(args[0], tx));
4804
+ _args.push(transactionArgumentOrObject(args[1], tx));
4805
+ _args.push(transactionArgumentOrObject(args[2], tx));
4806
+ _args.push(transactionArgumentOrObject(args[3], tx));
5110
4807
 
5111
4808
  // @ts-ignore
5112
4809
  return tx.moveCall({
@@ -5151,15 +4848,9 @@ export namespace ed25519 {
5151
4848
  ): TransactionArgument &
5152
4849
  [TransactionArgument, TransactionArgument, TransactionArgument] {
5153
4850
  const _args: any[] = [];
5154
- _args.push(
5155
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
5156
- );
5157
- _args.push(
5158
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
5159
- );
5160
- _args.push(
5161
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
5162
- );
4851
+ _args.push(transactionArgumentOrObject(args[0], tx));
4852
+ _args.push(transactionArgumentOrObject(args[1], tx));
4853
+ _args.push(transactionArgumentOrObject(args[2], tx));
5163
4854
 
5164
4855
  // @ts-ignore
5165
4856
  return tx.moveCall({
@@ -5199,7 +4890,7 @@ export namespace event {
5199
4890
  typeArguments: [TypeDescriptor<T0> | string],
5200
4891
  ): TransactionArgument & [TransactionArgument] {
5201
4892
  const _args: any[] = [];
5202
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
4893
+ _args.push(transactionArgumentOrPure(args[0], tx));
5203
4894
 
5204
4895
  // @ts-ignore
5205
4896
  return tx.moveCall({
@@ -5352,12 +5043,8 @@ export namespace groth16 {
5352
5043
  ],
5353
5044
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
5354
5045
  const _args: any[] = [];
5355
- _args.push(
5356
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
5357
- );
5358
- _args.push(
5359
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
5360
- );
5046
+ _args.push(transactionArgumentOrObject(args[0], tx));
5047
+ _args.push(transactionArgumentOrObject(args[1], tx));
5361
5048
 
5362
5049
  // @ts-ignore
5363
5050
  return tx.moveCall({
@@ -5370,14 +5057,7 @@ export namespace groth16 {
5370
5057
  args: [(string | ObjectCallArg)[] | TransactionArgument],
5371
5058
  ): TransactionArgument & [TransactionArgument] {
5372
5059
  const _args: any[] = [];
5373
- _args.push(
5374
- TransactionArgument.is(args[0])
5375
- ? args[0]
5376
- : tx.makeMoveVec({
5377
- objects: args[0].map((a: any) => tx.object(a)),
5378
- // type: TODO
5379
- }),
5380
- );
5060
+ _args.push(transactionArgumentOrVec(args[0], tx));
5381
5061
 
5382
5062
  // @ts-ignore
5383
5063
  return tx.moveCall({
@@ -5390,14 +5070,7 @@ export namespace groth16 {
5390
5070
  args: [(string | ObjectCallArg)[] | TransactionArgument],
5391
5071
  ): TransactionArgument & [TransactionArgument] {
5392
5072
  const _args: any[] = [];
5393
- _args.push(
5394
- TransactionArgument.is(args[0])
5395
- ? args[0]
5396
- : tx.makeMoveVec({
5397
- objects: args[0].map((a: any) => tx.object(a)),
5398
- // type: TODO
5399
- }),
5400
- );
5073
+ _args.push(transactionArgumentOrVec(args[0], tx));
5401
5074
 
5402
5075
  // @ts-ignore
5403
5076
  return tx.moveCall({
@@ -5421,38 +5094,10 @@ export namespace groth16 {
5421
5094
  TransactionArgument,
5422
5095
  ] {
5423
5096
  const _args: any[] = [];
5424
- _args.push(
5425
- TransactionArgument.is(args[0])
5426
- ? args[0]
5427
- : tx.makeMoveVec({
5428
- objects: args[0].map((a: any) => tx.object(a)),
5429
- // type: TODO
5430
- }),
5431
- );
5432
- _args.push(
5433
- TransactionArgument.is(args[1])
5434
- ? args[1]
5435
- : tx.makeMoveVec({
5436
- objects: args[1].map((a: any) => tx.object(a)),
5437
- // type: TODO
5438
- }),
5439
- );
5440
- _args.push(
5441
- TransactionArgument.is(args[2])
5442
- ? args[2]
5443
- : tx.makeMoveVec({
5444
- objects: args[2].map((a: any) => tx.object(a)),
5445
- // type: TODO
5446
- }),
5447
- );
5448
- _args.push(
5449
- TransactionArgument.is(args[3])
5450
- ? args[3]
5451
- : tx.makeMoveVec({
5452
- objects: args[3].map((a: any) => tx.object(a)),
5453
- // type: TODO
5454
- }),
5455
- );
5097
+ _args.push(transactionArgumentOrVec(args[0], tx));
5098
+ _args.push(transactionArgumentOrVec(args[1], tx));
5099
+ _args.push(transactionArgumentOrVec(args[2], tx));
5100
+ _args.push(transactionArgumentOrVec(args[3], tx));
5456
5101
 
5457
5102
  // @ts-ignore
5458
5103
  return tx.moveCall({
@@ -5465,7 +5110,7 @@ export namespace groth16 {
5465
5110
  args: [groth16.PreparedVerifyingKey | TransactionArgument],
5466
5111
  ): TransactionArgument & [TransactionArgument] {
5467
5112
  const _args: any[] = [];
5468
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
5113
+ _args.push(transactionArgumentOrPure(args[0], tx));
5469
5114
 
5470
5115
  // @ts-ignore
5471
5116
  return tx.moveCall({
@@ -5489,18 +5134,10 @@ export namespace groth16 {
5489
5134
  TransactionArgument,
5490
5135
  ] {
5491
5136
  const _args: any[] = [];
5492
- _args.push(
5493
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
5494
- );
5495
- _args.push(
5496
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
5497
- );
5498
- _args.push(
5499
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
5500
- );
5501
- _args.push(
5502
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
5503
- );
5137
+ _args.push(transactionArgumentOrObject(args[0], tx));
5138
+ _args.push(transactionArgumentOrObject(args[1], tx));
5139
+ _args.push(transactionArgumentOrObject(args[2], tx));
5140
+ _args.push(transactionArgumentOrObject(args[3], tx));
5504
5141
 
5505
5142
  // @ts-ignore
5506
5143
  return tx.moveCall({
@@ -5653,9 +5290,7 @@ export namespace hash {
5653
5290
  args: [string | ObjectCallArg | TransactionArgument],
5654
5291
  ): TransactionArgument & [TransactionArgument] {
5655
5292
  const _args: any[] = [];
5656
- _args.push(
5657
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
5658
- );
5293
+ _args.push(transactionArgumentOrObject(args[0], tx));
5659
5294
 
5660
5295
  // @ts-ignore
5661
5296
  return tx.moveCall({
@@ -5668,9 +5303,7 @@ export namespace hash {
5668
5303
  args: [string | ObjectCallArg | TransactionArgument],
5669
5304
  ): TransactionArgument & [TransactionArgument] {
5670
5305
  const _args: any[] = [];
5671
- _args.push(
5672
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
5673
- );
5306
+ _args.push(transactionArgumentOrObject(args[0], tx));
5674
5307
 
5675
5308
  // @ts-ignore
5676
5309
  return tx.moveCall({
@@ -5720,14 +5353,7 @@ export namespace hex {
5720
5353
  args: [(string | ObjectCallArg)[] | TransactionArgument],
5721
5354
  ): TransactionArgument & [TransactionArgument] {
5722
5355
  const _args: any[] = [];
5723
- _args.push(
5724
- TransactionArgument.is(args[0])
5725
- ? args[0]
5726
- : tx.makeMoveVec({
5727
- objects: args[0].map((a: any) => tx.object(a)),
5728
- // type: TODO
5729
- }),
5730
- );
5356
+ _args.push(transactionArgumentOrVec(args[0], tx));
5731
5357
 
5732
5358
  // @ts-ignore
5733
5359
  return tx.moveCall({
@@ -5740,14 +5366,7 @@ export namespace hex {
5740
5366
  args: [(string | ObjectCallArg)[] | TransactionArgument],
5741
5367
  ): TransactionArgument & [TransactionArgument] {
5742
5368
  const _args: any[] = [];
5743
- _args.push(
5744
- TransactionArgument.is(args[0])
5745
- ? args[0]
5746
- : tx.makeMoveVec({
5747
- objects: args[0].map((a: any) => tx.object(a)),
5748
- // type: TODO
5749
- }),
5750
- );
5369
+ _args.push(transactionArgumentOrVec(args[0], tx));
5751
5370
 
5752
5371
  // @ts-ignore
5753
5372
  return tx.moveCall({
@@ -5800,12 +5419,8 @@ export namespace hmac {
5800
5419
  ],
5801
5420
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
5802
5421
  const _args: any[] = [];
5803
- _args.push(
5804
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
5805
- );
5806
- _args.push(
5807
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
5808
- );
5422
+ _args.push(transactionArgumentOrObject(args[0], tx));
5423
+ _args.push(transactionArgumentOrObject(args[1], tx));
5809
5424
 
5810
5425
  // @ts-ignore
5811
5426
  return tx.moveCall({
@@ -6047,13 +5662,9 @@ export namespace kiosk {
6047
5662
  ): TransactionArgument &
6048
5663
  [TransactionArgument, TransactionArgument, TransactionArgument] {
6049
5664
  const _args: any[] = [];
6050
- _args.push(
6051
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6052
- );
6053
- _args.push(
6054
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6055
- );
6056
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
5665
+ _args.push(transactionArgumentOrObject(args[0], tx));
5666
+ _args.push(transactionArgumentOrObject(args[1], tx));
5667
+ _args.push(transactionArgumentOrPure(args[2], tx));
6057
5668
 
6058
5669
  // @ts-ignore
6059
5670
  return tx.moveCall({
@@ -6077,13 +5688,9 @@ export namespace kiosk {
6077
5688
  ): TransactionArgument &
6078
5689
  [TransactionArgument, TransactionArgument, TransactionArgument] {
6079
5690
  const _args: any[] = [];
6080
- _args.push(
6081
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6082
- );
6083
- _args.push(
6084
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6085
- );
6086
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
5691
+ _args.push(transactionArgumentOrObject(args[0], tx));
5692
+ _args.push(transactionArgumentOrObject(args[1], tx));
5693
+ _args.push(transactionArgumentOrPure(args[2], tx));
6087
5694
 
6088
5695
  // @ts-ignore
6089
5696
  return tx.moveCall({
@@ -6107,13 +5714,9 @@ export namespace kiosk {
6107
5714
  ): TransactionArgument &
6108
5715
  [TransactionArgument, TransactionArgument, TransactionArgument] {
6109
5716
  const _args: any[] = [];
6110
- _args.push(
6111
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6112
- );
6113
- _args.push(
6114
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6115
- );
6116
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
5717
+ _args.push(transactionArgumentOrObject(args[0], tx));
5718
+ _args.push(transactionArgumentOrObject(args[1], tx));
5719
+ _args.push(transactionArgumentOrPure(args[2], tx));
6117
5720
 
6118
5721
  // @ts-ignore
6119
5722
  return tx.moveCall({
@@ -6136,11 +5739,9 @@ export namespace kiosk {
6136
5739
  ): TransactionArgument &
6137
5740
  [TransactionArgument, TransactionArgument, TransactionArgument] {
6138
5741
  const _args: any[] = [];
6139
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
6140
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
6141
- _args.push(
6142
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
6143
- );
5742
+ _args.push(transactionArgumentOrPure(args[0], tx));
5743
+ _args.push(transactionArgumentOrPure(args[1], tx));
5744
+ _args.push(transactionArgumentOrObject(args[2], tx));
6144
5745
 
6145
5746
  // @ts-ignore
6146
5747
  return tx.moveCall({
@@ -6159,13 +5760,9 @@ export namespace kiosk {
6159
5760
  ): TransactionArgument &
6160
5761
  [TransactionArgument, TransactionArgument, TransactionArgument] {
6161
5762
  const _args: any[] = [];
6162
- _args.push(
6163
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6164
- );
6165
- _args.push(
6166
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6167
- );
6168
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
5763
+ _args.push(transactionArgumentOrObject(args[0], tx));
5764
+ _args.push(transactionArgumentOrObject(args[1], tx));
5765
+ _args.push(transactionArgumentOrPure(args[2], tx));
6169
5766
 
6170
5767
  // @ts-ignore
6171
5768
  return tx.moveCall({
@@ -6186,12 +5783,8 @@ export namespace kiosk {
6186
5783
  ],
6187
5784
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6188
5785
  const _args: any[] = [];
6189
- _args.push(
6190
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6191
- );
6192
- _args.push(
6193
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6194
- );
5786
+ _args.push(transactionArgumentOrObject(args[0], tx));
5787
+ _args.push(transactionArgumentOrObject(args[1], tx));
6195
5788
 
6196
5789
  // @ts-ignore
6197
5790
  return tx.moveCall({
@@ -6207,10 +5800,8 @@ export namespace kiosk {
6207
5800
  ],
6208
5801
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6209
5802
  const _args: any[] = [];
6210
- _args.push(
6211
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6212
- );
6213
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
5803
+ _args.push(transactionArgumentOrObject(args[0], tx));
5804
+ _args.push(transactionArgumentOrPure(args[1], tx));
6214
5805
 
6215
5806
  // @ts-ignore
6216
5807
  return tx.moveCall({
@@ -6227,10 +5818,8 @@ export namespace kiosk {
6227
5818
  typeArguments: [TypeDescriptor<T0> | string],
6228
5819
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6229
5820
  const _args: any[] = [];
6230
- _args.push(
6231
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6232
- );
6233
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
5821
+ _args.push(transactionArgumentOrObject(args[0], tx));
5822
+ _args.push(transactionArgumentOrPure(args[1], tx));
6234
5823
 
6235
5824
  // @ts-ignore
6236
5825
  return tx.moveCall({
@@ -6251,10 +5840,8 @@ export namespace kiosk {
6251
5840
  ],
6252
5841
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6253
5842
  const _args: any[] = [];
6254
- _args.push(
6255
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6256
- );
6257
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
5843
+ _args.push(transactionArgumentOrObject(args[0], tx));
5844
+ _args.push(transactionArgumentOrPure(args[1], tx));
6258
5845
 
6259
5846
  // @ts-ignore
6260
5847
  return tx.moveCall({
@@ -6270,10 +5857,8 @@ export namespace kiosk {
6270
5857
  ],
6271
5858
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6272
5859
  const _args: any[] = [];
6273
- _args.push(
6274
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6275
- );
6276
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
5860
+ _args.push(transactionArgumentOrObject(args[0], tx));
5861
+ _args.push(transactionArgumentOrPure(args[1], tx));
6277
5862
 
6278
5863
  // @ts-ignore
6279
5864
  return tx.moveCall({
@@ -6289,10 +5874,8 @@ export namespace kiosk {
6289
5874
  ],
6290
5875
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6291
5876
  const _args: any[] = [];
6292
- _args.push(
6293
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6294
- );
6295
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
5877
+ _args.push(transactionArgumentOrObject(args[0], tx));
5878
+ _args.push(transactionArgumentOrPure(args[1], tx));
6296
5879
 
6297
5880
  // @ts-ignore
6298
5881
  return tx.moveCall({
@@ -6305,9 +5888,7 @@ export namespace kiosk {
6305
5888
  args: [string | ObjectCallArg | TransactionArgument],
6306
5889
  ): TransactionArgument & [TransactionArgument] {
6307
5890
  const _args: any[] = [];
6308
- _args.push(
6309
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6310
- );
5891
+ _args.push(transactionArgumentOrObject(args[0], tx));
6311
5892
 
6312
5893
  // @ts-ignore
6313
5894
  return tx.moveCall({
@@ -6332,14 +5913,10 @@ export namespace kiosk {
6332
5913
  TransactionArgument,
6333
5914
  ] {
6334
5915
  const _args: any[] = [];
6335
- _args.push(
6336
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6337
- );
6338
- _args.push(
6339
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6340
- );
6341
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
6342
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
5916
+ _args.push(transactionArgumentOrObject(args[0], tx));
5917
+ _args.push(transactionArgumentOrObject(args[1], tx));
5918
+ _args.push(transactionArgumentOrPure(args[2], tx));
5919
+ _args.push(transactionArgumentOrPure(args[3], tx));
6343
5920
 
6344
5921
  // @ts-ignore
6345
5922
  return tx.moveCall({
@@ -6371,17 +5948,11 @@ export namespace kiosk {
6371
5948
  TransactionArgument,
6372
5949
  ] {
6373
5950
  const _args: any[] = [];
6374
- _args.push(
6375
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6376
- );
6377
- _args.push(
6378
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6379
- );
6380
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
6381
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
6382
- _args.push(
6383
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
6384
- );
5951
+ _args.push(transactionArgumentOrObject(args[0], tx));
5952
+ _args.push(transactionArgumentOrObject(args[1], tx));
5953
+ _args.push(transactionArgumentOrPure(args[2], tx));
5954
+ _args.push(transactionArgumentOrPure(args[3], tx));
5955
+ _args.push(transactionArgumentOrObject(args[4], tx));
6385
5956
 
6386
5957
  // @ts-ignore
6387
5958
  return tx.moveCall({
@@ -6411,16 +5982,10 @@ export namespace kiosk {
6411
5982
  TransactionArgument,
6412
5983
  ] {
6413
5984
  const _args: any[] = [];
6414
- _args.push(
6415
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6416
- );
6417
- _args.push(
6418
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6419
- );
6420
- _args.push(
6421
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
6422
- );
6423
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
5985
+ _args.push(transactionArgumentOrObject(args[0], tx));
5986
+ _args.push(transactionArgumentOrObject(args[1], tx));
5987
+ _args.push(transactionArgumentOrObject(args[2], tx));
5988
+ _args.push(transactionArgumentOrPure(args[3], tx));
6424
5989
 
6425
5990
  // @ts-ignore
6426
5991
  return tx.moveCall({
@@ -6438,9 +6003,7 @@ export namespace kiosk {
6438
6003
  args: [string | ObjectCallArg | TransactionArgument],
6439
6004
  ): TransactionArgument & [TransactionArgument] {
6440
6005
  const _args: any[] = [];
6441
- _args.push(
6442
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6443
- );
6006
+ _args.push(transactionArgumentOrObject(args[0], tx));
6444
6007
 
6445
6008
  // @ts-ignore
6446
6009
  return tx.moveCall({
@@ -6453,9 +6016,7 @@ export namespace kiosk {
6453
6016
  args: [string | ObjectCallArg | TransactionArgument],
6454
6017
  ): TransactionArgument & [TransactionArgument] {
6455
6018
  const _args: any[] = [];
6456
- _args.push(
6457
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6458
- );
6019
+ _args.push(transactionArgumentOrObject(args[0], tx));
6459
6020
 
6460
6021
  // @ts-ignore
6461
6022
  return tx.moveCall({
@@ -6474,13 +6035,9 @@ export namespace kiosk {
6474
6035
  ): TransactionArgument &
6475
6036
  [TransactionArgument, TransactionArgument, TransactionArgument] {
6476
6037
  const _args: any[] = [];
6477
- _args.push(
6478
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6479
- );
6480
- _args.push(
6481
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6482
- );
6483
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
6038
+ _args.push(transactionArgumentOrObject(args[0], tx));
6039
+ _args.push(transactionArgumentOrObject(args[1], tx));
6040
+ _args.push(transactionArgumentOrPure(args[2], tx));
6484
6041
 
6485
6042
  // @ts-ignore
6486
6043
  return tx.moveCall({
@@ -6510,14 +6067,10 @@ export namespace kiosk {
6510
6067
  TransactionArgument,
6511
6068
  ] {
6512
6069
  const _args: any[] = [];
6513
- _args.push(
6514
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6515
- );
6516
- _args.push(
6517
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6518
- );
6519
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
6520
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
6070
+ _args.push(transactionArgumentOrObject(args[0], tx));
6071
+ _args.push(transactionArgumentOrObject(args[1], tx));
6072
+ _args.push(transactionArgumentOrPure(args[2], tx));
6073
+ _args.push(transactionArgumentOrPure(args[3], tx));
6521
6074
 
6522
6075
  // @ts-ignore
6523
6076
  return tx.moveCall({
@@ -6535,9 +6088,7 @@ export namespace kiosk {
6535
6088
  args: [string | ObjectCallArg | TransactionArgument],
6536
6089
  ): TransactionArgument & [TransactionArgument] {
6537
6090
  const _args: any[] = [];
6538
- _args.push(
6539
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6540
- );
6091
+ _args.push(transactionArgumentOrObject(args[0], tx));
6541
6092
 
6542
6093
  // @ts-ignore
6543
6094
  return tx.moveCall({
@@ -6553,12 +6104,8 @@ export namespace kiosk {
6553
6104
  ],
6554
6105
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6555
6106
  const _args: any[] = [];
6556
- _args.push(
6557
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6558
- );
6559
- _args.push(
6560
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6561
- );
6107
+ _args.push(transactionArgumentOrObject(args[0], tx));
6108
+ _args.push(transactionArgumentOrObject(args[1], tx));
6562
6109
 
6563
6110
  // @ts-ignore
6564
6111
  return tx.moveCall({
@@ -6577,11 +6124,9 @@ export namespace kiosk {
6577
6124
  ): TransactionArgument &
6578
6125
  [TransactionArgument, TransactionArgument, TransactionArgument] {
6579
6126
  const _args: any[] = [];
6580
- _args.push(
6581
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6582
- );
6583
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
6584
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
6127
+ _args.push(transactionArgumentOrObject(args[0], tx));
6128
+ _args.push(transactionArgumentOrPure(args[1], tx));
6129
+ _args.push(transactionArgumentOrPure(args[2], tx));
6585
6130
 
6586
6131
  // @ts-ignore
6587
6132
  return tx.moveCall({
@@ -6600,9 +6145,7 @@ export namespace kiosk {
6600
6145
  typeArguments: [TypeDescriptor<T0> | string],
6601
6146
  ): TransactionArgument & [TransactionArgument] {
6602
6147
  const _args: any[] = [];
6603
- _args.push(
6604
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6605
- );
6148
+ _args.push(transactionArgumentOrObject(args[0], tx));
6606
6149
 
6607
6150
  // @ts-ignore
6608
6151
  return tx.moveCall({
@@ -6621,9 +6164,7 @@ export namespace kiosk {
6621
6164
  typeArguments: [TypeDescriptor<T0> | string],
6622
6165
  ): TransactionArgument & [TransactionArgument] {
6623
6166
  const _args: any[] = [];
6624
- _args.push(
6625
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6626
- );
6167
+ _args.push(transactionArgumentOrObject(args[0], tx));
6627
6168
 
6628
6169
  // @ts-ignore
6629
6170
  return tx.moveCall({
@@ -6642,9 +6183,7 @@ export namespace kiosk {
6642
6183
  typeArguments: [TypeDescriptor<T0> | string],
6643
6184
  ): TransactionArgument & [TransactionArgument] {
6644
6185
  const _args: any[] = [];
6645
- _args.push(
6646
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6647
- );
6186
+ _args.push(transactionArgumentOrObject(args[0], tx));
6648
6187
 
6649
6188
  // @ts-ignore
6650
6189
  return tx.moveCall({
@@ -6668,11 +6207,9 @@ export namespace kiosk {
6668
6207
  ): TransactionArgument &
6669
6208
  [TransactionArgument, TransactionArgument, TransactionArgument] {
6670
6209
  const _args: any[] = [];
6671
- _args.push(
6672
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6673
- );
6674
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
6675
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
6210
+ _args.push(transactionArgumentOrObject(args[0], tx));
6211
+ _args.push(transactionArgumentOrPure(args[1], tx));
6212
+ _args.push(transactionArgumentOrPure(args[2], tx));
6676
6213
 
6677
6214
  // @ts-ignore
6678
6215
  return tx.moveCall({
@@ -6694,10 +6231,8 @@ export namespace kiosk {
6694
6231
  typeArguments: [TypeDescriptor<T0> | string],
6695
6232
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6696
6233
  const _args: any[] = [];
6697
- _args.push(
6698
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6699
- );
6700
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
6234
+ _args.push(transactionArgumentOrObject(args[0], tx));
6235
+ _args.push(transactionArgumentOrPure(args[1], tx));
6701
6236
 
6702
6237
  // @ts-ignore
6703
6238
  return tx.moveCall({
@@ -6721,11 +6256,9 @@ export namespace kiosk {
6721
6256
  ): TransactionArgument &
6722
6257
  [TransactionArgument, TransactionArgument, TransactionArgument] {
6723
6258
  const _args: any[] = [];
6724
- _args.push(
6725
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6726
- );
6727
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
6728
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
6259
+ _args.push(transactionArgumentOrObject(args[0], tx));
6260
+ _args.push(transactionArgumentOrPure(args[1], tx));
6261
+ _args.push(transactionArgumentOrPure(args[2], tx));
6729
6262
 
6730
6263
  // @ts-ignore
6731
6264
  return tx.moveCall({
@@ -6748,13 +6281,9 @@ export namespace kiosk {
6748
6281
  ): TransactionArgument &
6749
6282
  [TransactionArgument, TransactionArgument, TransactionArgument] {
6750
6283
  const _args: any[] = [];
6751
- _args.push(
6752
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6753
- );
6754
- _args.push(
6755
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6756
- );
6757
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
6284
+ _args.push(transactionArgumentOrObject(args[0], tx));
6285
+ _args.push(transactionArgumentOrObject(args[1], tx));
6286
+ _args.push(transactionArgumentOrPure(args[2], tx));
6758
6287
 
6759
6288
  // @ts-ignore
6760
6289
  return tx.moveCall({
@@ -6772,15 +6301,9 @@ export namespace kiosk {
6772
6301
  ): TransactionArgument &
6773
6302
  [TransactionArgument, TransactionArgument, TransactionArgument] {
6774
6303
  const _args: any[] = [];
6775
- _args.push(
6776
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6777
- );
6778
- _args.push(
6779
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6780
- );
6781
- _args.push(
6782
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
6783
- );
6304
+ _args.push(transactionArgumentOrObject(args[0], tx));
6305
+ _args.push(transactionArgumentOrObject(args[1], tx));
6306
+ _args.push(transactionArgumentOrObject(args[2], tx));
6784
6307
 
6785
6308
  // @ts-ignore
6786
6309
  return tx.moveCall({
@@ -6798,13 +6321,9 @@ export namespace kiosk {
6798
6321
  ): TransactionArgument &
6799
6322
  [TransactionArgument, TransactionArgument, TransactionArgument] {
6800
6323
  const _args: any[] = [];
6801
- _args.push(
6802
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6803
- );
6804
- _args.push(
6805
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6806
- );
6807
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
6324
+ _args.push(transactionArgumentOrObject(args[0], tx));
6325
+ _args.push(transactionArgumentOrObject(args[1], tx));
6326
+ _args.push(transactionArgumentOrPure(args[2], tx));
6808
6327
 
6809
6328
  // @ts-ignore
6810
6329
  return tx.moveCall({
@@ -6823,13 +6342,9 @@ export namespace kiosk {
6823
6342
  ): TransactionArgument &
6824
6343
  [TransactionArgument, TransactionArgument, TransactionArgument] {
6825
6344
  const _args: any[] = [];
6826
- _args.push(
6827
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6828
- );
6829
- _args.push(
6830
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6831
- );
6832
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
6345
+ _args.push(transactionArgumentOrObject(args[0], tx));
6346
+ _args.push(transactionArgumentOrObject(args[1], tx));
6347
+ _args.push(transactionArgumentOrPure(args[2], tx));
6833
6348
 
6834
6349
  // @ts-ignore
6835
6350
  return tx.moveCall({
@@ -6847,9 +6362,7 @@ export namespace kiosk {
6847
6362
  args: [string | ObjectCallArg | TransactionArgument],
6848
6363
  ): TransactionArgument & [TransactionArgument] {
6849
6364
  const _args: any[] = [];
6850
- _args.push(
6851
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6852
- );
6365
+ _args.push(transactionArgumentOrObject(args[0], tx));
6853
6366
 
6854
6367
  // @ts-ignore
6855
6368
  return tx.moveCall({
@@ -6862,9 +6375,7 @@ export namespace kiosk {
6862
6375
  args: [string | ObjectCallArg | TransactionArgument],
6863
6376
  ): TransactionArgument & [TransactionArgument] {
6864
6377
  const _args: any[] = [];
6865
- _args.push(
6866
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6867
- );
6378
+ _args.push(transactionArgumentOrObject(args[0], tx));
6868
6379
 
6869
6380
  // @ts-ignore
6870
6381
  return tx.moveCall({
@@ -6880,12 +6391,8 @@ export namespace kiosk {
6880
6391
  ],
6881
6392
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
6882
6393
  const _args: any[] = [];
6883
- _args.push(
6884
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6885
- );
6886
- _args.push(
6887
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6888
- );
6394
+ _args.push(transactionArgumentOrObject(args[0], tx));
6395
+ _args.push(transactionArgumentOrObject(args[1], tx));
6889
6396
 
6890
6397
  // @ts-ignore
6891
6398
  return tx.moveCall({
@@ -6909,16 +6416,10 @@ export namespace kiosk {
6909
6416
  TransactionArgument,
6910
6417
  ] {
6911
6418
  const _args: any[] = [];
6912
- _args.push(
6913
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
6914
- );
6915
- _args.push(
6916
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
6917
- );
6918
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
6919
- _args.push(
6920
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
6921
- );
6419
+ _args.push(transactionArgumentOrObject(args[0], tx));
6420
+ _args.push(transactionArgumentOrObject(args[1], tx));
6421
+ _args.push(transactionArgumentOrPure(args[2], tx));
6422
+ _args.push(transactionArgumentOrObject(args[3], tx));
6922
6423
 
6923
6424
  // @ts-ignore
6924
6425
  return tx.moveCall({
@@ -7647,9 +7148,7 @@ export namespace linked_table {
7647
7148
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7648
7149
  ): TransactionArgument & [TransactionArgument] {
7649
7150
  const _args: any[] = [];
7650
- _args.push(
7651
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
7652
- );
7151
+ _args.push(transactionArgumentOrObject(args[0], tx));
7653
7152
 
7654
7153
  // @ts-ignore
7655
7154
  return tx.moveCall({
@@ -7674,10 +7173,8 @@ export namespace linked_table {
7674
7173
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7675
7174
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
7676
7175
  const _args: any[] = [];
7677
- _args.push(
7678
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
7679
- );
7680
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
7176
+ _args.push(transactionArgumentOrObject(args[0], tx));
7177
+ _args.push(transactionArgumentOrPure(args[1], tx));
7681
7178
 
7682
7179
  // @ts-ignore
7683
7180
  return tx.moveCall({
@@ -7702,10 +7199,8 @@ export namespace linked_table {
7702
7199
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7703
7200
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
7704
7201
  const _args: any[] = [];
7705
- _args.push(
7706
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
7707
- );
7708
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
7202
+ _args.push(transactionArgumentOrObject(args[0], tx));
7203
+ _args.push(transactionArgumentOrPure(args[1], tx));
7709
7204
 
7710
7205
  // @ts-ignore
7711
7206
  return tx.moveCall({
@@ -7730,10 +7225,8 @@ export namespace linked_table {
7730
7225
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7731
7226
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
7732
7227
  const _args: any[] = [];
7733
- _args.push(
7734
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
7735
- );
7736
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
7228
+ _args.push(transactionArgumentOrObject(args[0], tx));
7229
+ _args.push(transactionArgumentOrPure(args[1], tx));
7737
7230
 
7738
7231
  // @ts-ignore
7739
7232
  return tx.moveCall({
@@ -7755,7 +7248,7 @@ export namespace linked_table {
7755
7248
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7756
7249
  ): TransactionArgument & [TransactionArgument] {
7757
7250
  const _args: any[] = [];
7758
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
7251
+ _args.push(transactionArgumentOrPure(args[0], tx));
7759
7252
 
7760
7253
  // @ts-ignore
7761
7254
  return tx.moveCall({
@@ -7777,7 +7270,7 @@ export namespace linked_table {
7777
7270
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7778
7271
  ): TransactionArgument & [TransactionArgument] {
7779
7272
  const _args: any[] = [];
7780
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
7273
+ _args.push(transactionArgumentOrPure(args[0], tx));
7781
7274
 
7782
7275
  // @ts-ignore
7783
7276
  return tx.moveCall({
@@ -7799,9 +7292,7 @@ export namespace linked_table {
7799
7292
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7800
7293
  ): TransactionArgument & [TransactionArgument] {
7801
7294
  const _args: any[] = [];
7802
- _args.push(
7803
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
7804
- );
7295
+ _args.push(transactionArgumentOrObject(args[0], tx));
7805
7296
 
7806
7297
  // @ts-ignore
7807
7298
  return tx.moveCall({
@@ -7823,9 +7314,7 @@ export namespace linked_table {
7823
7314
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7824
7315
  ): TransactionArgument & [TransactionArgument] {
7825
7316
  const _args: any[] = [];
7826
- _args.push(
7827
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
7828
- );
7317
+ _args.push(transactionArgumentOrObject(args[0], tx));
7829
7318
 
7830
7319
  // @ts-ignore
7831
7320
  return tx.moveCall({
@@ -7847,9 +7336,7 @@ export namespace linked_table {
7847
7336
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7848
7337
  ): TransactionArgument & [TransactionArgument] {
7849
7338
  const _args: any[] = [];
7850
- _args.push(
7851
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
7852
- );
7339
+ _args.push(transactionArgumentOrObject(args[0], tx));
7853
7340
 
7854
7341
  // @ts-ignore
7855
7342
  return tx.moveCall({
@@ -7871,9 +7358,7 @@ export namespace linked_table {
7871
7358
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7872
7359
  ): TransactionArgument & [TransactionArgument] {
7873
7360
  const _args: any[] = [];
7874
- _args.push(
7875
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
7876
- );
7361
+ _args.push(transactionArgumentOrObject(args[0], tx));
7877
7362
 
7878
7363
  // @ts-ignore
7879
7364
  return tx.moveCall({
@@ -7898,10 +7383,8 @@ export namespace linked_table {
7898
7383
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7899
7384
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
7900
7385
  const _args: any[] = [];
7901
- _args.push(
7902
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
7903
- );
7904
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
7386
+ _args.push(transactionArgumentOrObject(args[0], tx));
7387
+ _args.push(transactionArgumentOrPure(args[1], tx));
7905
7388
 
7906
7389
  // @ts-ignore
7907
7390
  return tx.moveCall({
@@ -7923,9 +7406,7 @@ export namespace linked_table {
7923
7406
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7924
7407
  ): TransactionArgument & [TransactionArgument] {
7925
7408
  const _args: any[] = [];
7926
- _args.push(
7927
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
7928
- );
7409
+ _args.push(transactionArgumentOrObject(args[0], tx));
7929
7410
 
7930
7411
  // @ts-ignore
7931
7412
  return tx.moveCall({
@@ -7947,9 +7428,7 @@ export namespace linked_table {
7947
7428
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7948
7429
  ): TransactionArgument & [TransactionArgument] {
7949
7430
  const _args: any[] = [];
7950
- _args.push(
7951
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
7952
- );
7431
+ _args.push(transactionArgumentOrObject(args[0], tx));
7953
7432
 
7954
7433
  // @ts-ignore
7955
7434
  return tx.moveCall({
@@ -7974,10 +7453,8 @@ export namespace linked_table {
7974
7453
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
7975
7454
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
7976
7455
  const _args: any[] = [];
7977
- _args.push(
7978
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
7979
- );
7980
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
7456
+ _args.push(transactionArgumentOrObject(args[0], tx));
7457
+ _args.push(transactionArgumentOrPure(args[1], tx));
7981
7458
 
7982
7459
  // @ts-ignore
7983
7460
  return tx.moveCall({
@@ -8004,11 +7481,9 @@ export namespace linked_table {
8004
7481
  ): TransactionArgument &
8005
7482
  [TransactionArgument, TransactionArgument, TransactionArgument] {
8006
7483
  const _args: any[] = [];
8007
- _args.push(
8008
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
8009
- );
8010
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
8011
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
7484
+ _args.push(transactionArgumentOrObject(args[0], tx));
7485
+ _args.push(transactionArgumentOrPure(args[1], tx));
7486
+ _args.push(transactionArgumentOrPure(args[2], tx));
8012
7487
 
8013
7488
  // @ts-ignore
8014
7489
  return tx.moveCall({
@@ -8035,11 +7510,9 @@ export namespace linked_table {
8035
7510
  ): TransactionArgument &
8036
7511
  [TransactionArgument, TransactionArgument, TransactionArgument] {
8037
7512
  const _args: any[] = [];
8038
- _args.push(
8039
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
8040
- );
8041
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
8042
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
7513
+ _args.push(transactionArgumentOrObject(args[0], tx));
7514
+ _args.push(transactionArgumentOrPure(args[1], tx));
7515
+ _args.push(transactionArgumentOrPure(args[2], tx));
8043
7516
 
8044
7517
  // @ts-ignore
8045
7518
  return tx.moveCall({
@@ -8064,10 +7537,8 @@ export namespace linked_table {
8064
7537
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
8065
7538
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
8066
7539
  const _args: any[] = [];
8067
- _args.push(
8068
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
8069
- );
8070
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
7540
+ _args.push(transactionArgumentOrObject(args[0], tx));
7541
+ _args.push(transactionArgumentOrPure(args[1], tx));
8071
7542
 
8072
7543
  // @ts-ignore
8073
7544
  return tx.moveCall({
@@ -8393,8 +7864,8 @@ export namespace math {
8393
7864
  args: [bigint | TransactionArgument, bigint | TransactionArgument],
8394
7865
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
8395
7866
  const _args: any[] = [];
8396
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
8397
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
7867
+ _args.push(transactionArgumentOrPure(args[0], tx));
7868
+ _args.push(transactionArgumentOrPure(args[1], tx));
8398
7869
 
8399
7870
  // @ts-ignore
8400
7871
  return tx.moveCall({
@@ -8407,8 +7878,8 @@ export namespace math {
8407
7878
  args: [bigint | TransactionArgument, bigint | TransactionArgument],
8408
7879
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
8409
7880
  const _args: any[] = [];
8410
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
8411
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
7881
+ _args.push(transactionArgumentOrPure(args[0], tx));
7882
+ _args.push(transactionArgumentOrPure(args[1], tx));
8412
7883
 
8413
7884
  // @ts-ignore
8414
7885
  return tx.moveCall({
@@ -8421,8 +7892,8 @@ export namespace math {
8421
7892
  args: [bigint | TransactionArgument, bigint | TransactionArgument],
8422
7893
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
8423
7894
  const _args: any[] = [];
8424
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
8425
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
7895
+ _args.push(transactionArgumentOrPure(args[0], tx));
7896
+ _args.push(transactionArgumentOrPure(args[1], tx));
8426
7897
 
8427
7898
  // @ts-ignore
8428
7899
  return tx.moveCall({
@@ -8435,8 +7906,8 @@ export namespace math {
8435
7906
  args: [bigint | TransactionArgument, bigint | TransactionArgument],
8436
7907
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
8437
7908
  const _args: any[] = [];
8438
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
8439
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
7909
+ _args.push(transactionArgumentOrPure(args[0], tx));
7910
+ _args.push(transactionArgumentOrPure(args[1], tx));
8440
7911
 
8441
7912
  // @ts-ignore
8442
7913
  return tx.moveCall({
@@ -8449,8 +7920,8 @@ export namespace math {
8449
7920
  args: [bigint | TransactionArgument, number | TransactionArgument],
8450
7921
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
8451
7922
  const _args: any[] = [];
8452
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
8453
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
7923
+ _args.push(transactionArgumentOrPure(args[0], tx));
7924
+ _args.push(transactionArgumentOrPure(args[1], tx));
8454
7925
 
8455
7926
  // @ts-ignore
8456
7927
  return tx.moveCall({
@@ -8463,7 +7934,7 @@ export namespace math {
8463
7934
  args: [bigint | TransactionArgument],
8464
7935
  ): TransactionArgument & [TransactionArgument] {
8465
7936
  const _args: any[] = [];
8466
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
7937
+ _args.push(transactionArgumentOrPure(args[0], tx));
8467
7938
 
8468
7939
  // @ts-ignore
8469
7940
  return tx.moveCall({
@@ -8476,7 +7947,7 @@ export namespace math {
8476
7947
  args: [bigint | TransactionArgument],
8477
7948
  ): TransactionArgument & [TransactionArgument] {
8478
7949
  const _args: any[] = [];
8479
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
7950
+ _args.push(transactionArgumentOrPure(args[0], tx));
8480
7951
 
8481
7952
  // @ts-ignore
8482
7953
  return tx.moveCall({
@@ -8627,9 +8098,7 @@ export namespace object_ {
8627
8098
  typeArguments: [TypeDescriptor<T0> | string],
8628
8099
  ): TransactionArgument & [TransactionArgument] {
8629
8100
  const _args: any[] = [];
8630
- _args.push(
8631
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
8632
- );
8101
+ _args.push(transactionArgumentOrObject(args[0], tx));
8633
8102
 
8634
8103
  // @ts-ignore
8635
8104
  return tx.moveCall({
@@ -8648,7 +8117,7 @@ export namespace object_ {
8648
8117
  args: [object_.UID | TransactionArgument],
8649
8118
  ): TransactionArgument & [TransactionArgument] {
8650
8119
  const _args: any[] = [];
8651
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
8120
+ _args.push(transactionArgumentOrPure(args[0], tx));
8652
8121
 
8653
8122
  // @ts-ignore
8654
8123
  return tx.moveCall({
@@ -8662,9 +8131,7 @@ export namespace object_ {
8662
8131
  typeArguments: [TypeDescriptor<T0> | string],
8663
8132
  ): TransactionArgument & [TransactionArgument] {
8664
8133
  const _args: any[] = [];
8665
- _args.push(
8666
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
8667
- );
8134
+ _args.push(transactionArgumentOrObject(args[0], tx));
8668
8135
 
8669
8136
  // @ts-ignore
8670
8137
  return tx.moveCall({
@@ -8683,9 +8150,7 @@ export namespace object_ {
8683
8150
  typeArguments: [TypeDescriptor<T0> | string],
8684
8151
  ): TransactionArgument & [TransactionArgument] {
8685
8152
  const _args: any[] = [];
8686
- _args.push(
8687
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
8688
- );
8153
+ _args.push(transactionArgumentOrObject(args[0], tx));
8689
8154
 
8690
8155
  // @ts-ignore
8691
8156
  return tx.moveCall({
@@ -8704,9 +8169,7 @@ export namespace object_ {
8704
8169
  typeArguments: [TypeDescriptor<T0> | string],
8705
8170
  ): TransactionArgument & [TransactionArgument] {
8706
8171
  const _args: any[] = [];
8707
- _args.push(
8708
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
8709
- );
8172
+ _args.push(transactionArgumentOrObject(args[0], tx));
8710
8173
 
8711
8174
  // @ts-ignore
8712
8175
  return tx.moveCall({
@@ -8724,7 +8187,7 @@ export namespace object_ {
8724
8187
  args: [string | TransactionArgument],
8725
8188
  ): TransactionArgument & [TransactionArgument] {
8726
8189
  const _args: any[] = [];
8727
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
8190
+ _args.push(transactionArgumentOrPure(args[0], tx));
8728
8191
 
8729
8192
  // @ts-ignore
8730
8193
  return tx.moveCall({
@@ -8737,14 +8200,7 @@ export namespace object_ {
8737
8200
  args: [(string | ObjectCallArg)[] | TransactionArgument],
8738
8201
  ): TransactionArgument & [TransactionArgument] {
8739
8202
  const _args: any[] = [];
8740
- _args.push(
8741
- TransactionArgument.is(args[0])
8742
- ? args[0]
8743
- : tx.makeMoveVec({
8744
- objects: args[0].map((a: any) => tx.object(a)),
8745
- // type: TODO
8746
- }),
8747
- );
8203
+ _args.push(transactionArgumentOrVec(args[0], tx));
8748
8204
 
8749
8205
  // @ts-ignore
8750
8206
  return tx.moveCall({
@@ -8757,9 +8213,7 @@ export namespace object_ {
8757
8213
  args: [string | ObjectCallArg | TransactionArgument],
8758
8214
  ): TransactionArgument & [TransactionArgument] {
8759
8215
  const _args: any[] = [];
8760
- _args.push(
8761
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
8762
- );
8216
+ _args.push(transactionArgumentOrObject(args[0], tx));
8763
8217
 
8764
8218
  // @ts-ignore
8765
8219
  return tx.moveCall({
@@ -8772,9 +8226,7 @@ export namespace object_ {
8772
8226
  args: [string | ObjectCallArg | TransactionArgument],
8773
8227
  ): TransactionArgument & [TransactionArgument] {
8774
8228
  const _args: any[] = [];
8775
- _args.push(
8776
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
8777
- );
8229
+ _args.push(transactionArgumentOrObject(args[0], tx));
8778
8230
 
8779
8231
  // @ts-ignore
8780
8232
  return tx.moveCall({
@@ -8787,9 +8239,7 @@ export namespace object_ {
8787
8239
  args: [string | ObjectCallArg | TransactionArgument],
8788
8240
  ): TransactionArgument & [TransactionArgument] {
8789
8241
  const _args: any[] = [];
8790
- _args.push(
8791
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
8792
- );
8242
+ _args.push(transactionArgumentOrObject(args[0], tx));
8793
8243
 
8794
8244
  // @ts-ignore
8795
8245
  return tx.moveCall({
@@ -8803,9 +8253,7 @@ export namespace object_ {
8803
8253
  args: [string | ObjectCallArg | TransactionArgument],
8804
8254
  ): TransactionArgument & [TransactionArgument] {
8805
8255
  const _args: any[] = [];
8806
- _args.push(
8807
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
8808
- );
8256
+ _args.push(transactionArgumentOrObject(args[0], tx));
8809
8257
 
8810
8258
  // @ts-ignore
8811
8259
  return tx.moveCall({
@@ -8818,9 +8266,7 @@ export namespace object_ {
8818
8266
  args: [string | ObjectCallArg | TransactionArgument],
8819
8267
  ): TransactionArgument & [TransactionArgument] {
8820
8268
  const _args: any[] = [];
8821
- _args.push(
8822
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
8823
- );
8269
+ _args.push(transactionArgumentOrObject(args[0], tx));
8824
8270
 
8825
8271
  // @ts-ignore
8826
8272
  return tx.moveCall({
@@ -8833,9 +8279,7 @@ export namespace object_ {
8833
8279
  args: [string | ObjectCallArg | TransactionArgument],
8834
8280
  ): TransactionArgument & [TransactionArgument] {
8835
8281
  const _args: any[] = [];
8836
- _args.push(
8837
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
8838
- );
8282
+ _args.push(transactionArgumentOrObject(args[0], tx));
8839
8283
 
8840
8284
  // @ts-ignore
8841
8285
  return tx.moveCall({
@@ -8848,9 +8292,7 @@ export namespace object_ {
8848
8292
  args: [string | ObjectCallArg | TransactionArgument],
8849
8293
  ): TransactionArgument & [TransactionArgument] {
8850
8294
  const _args: any[] = [];
8851
- _args.push(
8852
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
8853
- );
8295
+ _args.push(transactionArgumentOrObject(args[0], tx));
8854
8296
 
8855
8297
  // @ts-ignore
8856
8298
  return tx.moveCall({
@@ -9107,11 +8549,9 @@ export namespace object_bag {
9107
8549
  ): TransactionArgument &
9108
8550
  [TransactionArgument, TransactionArgument, TransactionArgument] {
9109
8551
  const _args: any[] = [];
9110
- _args.push(
9111
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9112
- );
9113
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
9114
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
8552
+ _args.push(transactionArgumentOrObject(args[0], tx));
8553
+ _args.push(transactionArgumentOrPure(args[1], tx));
8554
+ _args.push(transactionArgumentOrPure(args[2], tx));
9115
8555
 
9116
8556
  // @ts-ignore
9117
8557
  return tx.moveCall({
@@ -9136,10 +8576,8 @@ export namespace object_bag {
9136
8576
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
9137
8577
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
9138
8578
  const _args: any[] = [];
9139
- _args.push(
9140
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9141
- );
9142
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
8579
+ _args.push(transactionArgumentOrObject(args[0], tx));
8580
+ _args.push(transactionArgumentOrPure(args[1], tx));
9143
8581
 
9144
8582
  // @ts-ignore
9145
8583
  return tx.moveCall({
@@ -9164,10 +8602,8 @@ export namespace object_bag {
9164
8602
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
9165
8603
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
9166
8604
  const _args: any[] = [];
9167
- _args.push(
9168
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9169
- );
9170
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
8605
+ _args.push(transactionArgumentOrObject(args[0], tx));
8606
+ _args.push(transactionArgumentOrPure(args[1], tx));
9171
8607
 
9172
8608
  // @ts-ignore
9173
8609
  return tx.moveCall({
@@ -9192,10 +8628,8 @@ export namespace object_bag {
9192
8628
  typeArguments: [TypeDescriptor<T0> | string],
9193
8629
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
9194
8630
  const _args: any[] = [];
9195
- _args.push(
9196
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9197
- );
9198
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
8631
+ _args.push(transactionArgumentOrObject(args[0], tx));
8632
+ _args.push(transactionArgumentOrPure(args[1], tx));
9199
8633
 
9200
8634
  // @ts-ignore
9201
8635
  return tx.moveCall({
@@ -9217,10 +8651,8 @@ export namespace object_bag {
9217
8651
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
9218
8652
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
9219
8653
  const _args: any[] = [];
9220
- _args.push(
9221
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9222
- );
9223
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
8654
+ _args.push(transactionArgumentOrObject(args[0], tx));
8655
+ _args.push(transactionArgumentOrPure(args[1], tx));
9224
8656
 
9225
8657
  // @ts-ignore
9226
8658
  return tx.moveCall({
@@ -9241,7 +8673,7 @@ export namespace object_bag {
9241
8673
  args: [object_bag.ObjectBag | TransactionArgument],
9242
8674
  ): TransactionArgument & [TransactionArgument] {
9243
8675
  const _args: any[] = [];
9244
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
8676
+ _args.push(transactionArgumentOrPure(args[0], tx));
9245
8677
 
9246
8678
  // @ts-ignore
9247
8679
  return tx.moveCall({
@@ -9254,9 +8686,7 @@ export namespace object_bag {
9254
8686
  args: [string | ObjectCallArg | TransactionArgument],
9255
8687
  ): TransactionArgument & [TransactionArgument] {
9256
8688
  const _args: any[] = [];
9257
- _args.push(
9258
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9259
- );
8689
+ _args.push(transactionArgumentOrObject(args[0], tx));
9260
8690
 
9261
8691
  // @ts-ignore
9262
8692
  return tx.moveCall({
@@ -9269,9 +8699,7 @@ export namespace object_bag {
9269
8699
  args: [string | ObjectCallArg | TransactionArgument],
9270
8700
  ): TransactionArgument & [TransactionArgument] {
9271
8701
  const _args: any[] = [];
9272
- _args.push(
9273
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9274
- );
8702
+ _args.push(transactionArgumentOrObject(args[0], tx));
9275
8703
 
9276
8704
  // @ts-ignore
9277
8705
  return tx.moveCall({
@@ -9284,9 +8712,7 @@ export namespace object_bag {
9284
8712
  args: [string | ObjectCallArg | TransactionArgument],
9285
8713
  ): TransactionArgument & [TransactionArgument] {
9286
8714
  const _args: any[] = [];
9287
- _args.push(
9288
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9289
- );
8715
+ _args.push(transactionArgumentOrObject(args[0], tx));
9290
8716
 
9291
8717
  // @ts-ignore
9292
8718
  return tx.moveCall({
@@ -9303,10 +8729,8 @@ export namespace object_bag {
9303
8729
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
9304
8730
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
9305
8731
  const _args: any[] = [];
9306
- _args.push(
9307
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9308
- );
9309
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
8732
+ _args.push(transactionArgumentOrObject(args[0], tx));
8733
+ _args.push(transactionArgumentOrPure(args[1], tx));
9310
8734
 
9311
8735
  // @ts-ignore
9312
8736
  return tx.moveCall({
@@ -9331,10 +8755,8 @@ export namespace object_bag {
9331
8755
  typeArguments: [TypeDescriptor<T0> | string],
9332
8756
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
9333
8757
  const _args: any[] = [];
9334
- _args.push(
9335
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9336
- );
9337
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
8758
+ _args.push(transactionArgumentOrObject(args[0], tx));
8759
+ _args.push(transactionArgumentOrPure(args[1], tx));
9338
8760
 
9339
8761
  // @ts-ignore
9340
8762
  return tx.moveCall({
@@ -9579,11 +9001,9 @@ export namespace object_table {
9579
9001
  ): TransactionArgument &
9580
9002
  [TransactionArgument, TransactionArgument, TransactionArgument] {
9581
9003
  const _args: any[] = [];
9582
- _args.push(
9583
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9584
- );
9585
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
9586
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
9004
+ _args.push(transactionArgumentOrObject(args[0], tx));
9005
+ _args.push(transactionArgumentOrPure(args[1], tx));
9006
+ _args.push(transactionArgumentOrPure(args[2], tx));
9587
9007
 
9588
9008
  // @ts-ignore
9589
9009
  return tx.moveCall({
@@ -9608,10 +9028,8 @@ export namespace object_table {
9608
9028
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
9609
9029
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
9610
9030
  const _args: any[] = [];
9611
- _args.push(
9612
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9613
- );
9614
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
9031
+ _args.push(transactionArgumentOrObject(args[0], tx));
9032
+ _args.push(transactionArgumentOrPure(args[1], tx));
9615
9033
 
9616
9034
  // @ts-ignore
9617
9035
  return tx.moveCall({
@@ -9636,10 +9054,8 @@ export namespace object_table {
9636
9054
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
9637
9055
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
9638
9056
  const _args: any[] = [];
9639
- _args.push(
9640
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9641
- );
9642
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
9057
+ _args.push(transactionArgumentOrObject(args[0], tx));
9058
+ _args.push(transactionArgumentOrPure(args[1], tx));
9643
9059
 
9644
9060
  // @ts-ignore
9645
9061
  return tx.moveCall({
@@ -9664,10 +9080,8 @@ export namespace object_table {
9664
9080
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
9665
9081
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
9666
9082
  const _args: any[] = [];
9667
- _args.push(
9668
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9669
- );
9670
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
9083
+ _args.push(transactionArgumentOrObject(args[0], tx));
9084
+ _args.push(transactionArgumentOrPure(args[1], tx));
9671
9085
 
9672
9086
  // @ts-ignore
9673
9087
  return tx.moveCall({
@@ -9689,7 +9103,7 @@ export namespace object_table {
9689
9103
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
9690
9104
  ): TransactionArgument & [TransactionArgument] {
9691
9105
  const _args: any[] = [];
9692
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
9106
+ _args.push(transactionArgumentOrPure(args[0], tx));
9693
9107
 
9694
9108
  // @ts-ignore
9695
9109
  return tx.moveCall({
@@ -9711,9 +9125,7 @@ export namespace object_table {
9711
9125
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
9712
9126
  ): TransactionArgument & [TransactionArgument] {
9713
9127
  const _args: any[] = [];
9714
- _args.push(
9715
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9716
- );
9128
+ _args.push(transactionArgumentOrObject(args[0], tx));
9717
9129
 
9718
9130
  // @ts-ignore
9719
9131
  return tx.moveCall({
@@ -9735,9 +9147,7 @@ export namespace object_table {
9735
9147
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
9736
9148
  ): TransactionArgument & [TransactionArgument] {
9737
9149
  const _args: any[] = [];
9738
- _args.push(
9739
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9740
- );
9150
+ _args.push(transactionArgumentOrObject(args[0], tx));
9741
9151
 
9742
9152
  // @ts-ignore
9743
9153
  return tx.moveCall({
@@ -9759,9 +9169,7 @@ export namespace object_table {
9759
9169
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
9760
9170
  ): TransactionArgument & [TransactionArgument] {
9761
9171
  const _args: any[] = [];
9762
- _args.push(
9763
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9764
- );
9172
+ _args.push(transactionArgumentOrObject(args[0], tx));
9765
9173
 
9766
9174
  // @ts-ignore
9767
9175
  return tx.moveCall({
@@ -9786,10 +9194,8 @@ export namespace object_table {
9786
9194
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
9787
9195
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
9788
9196
  const _args: any[] = [];
9789
- _args.push(
9790
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9791
- );
9792
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
9197
+ _args.push(transactionArgumentOrObject(args[0], tx));
9198
+ _args.push(transactionArgumentOrPure(args[1], tx));
9793
9199
 
9794
9200
  // @ts-ignore
9795
9201
  return tx.moveCall({
@@ -9814,10 +9220,8 @@ export namespace object_table {
9814
9220
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
9815
9221
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
9816
9222
  const _args: any[] = [];
9817
- _args.push(
9818
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
9819
- );
9820
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
9223
+ _args.push(transactionArgumentOrObject(args[0], tx));
9224
+ _args.push(transactionArgumentOrPure(args[1], tx));
9821
9225
 
9822
9226
  // @ts-ignore
9823
9227
  return tx.moveCall({
@@ -10106,18 +9510,9 @@ export namespace package_ {
10106
9510
  ): TransactionArgument &
10107
9511
  [TransactionArgument, TransactionArgument, TransactionArgument] {
10108
9512
  const _args: any[] = [];
10109
- _args.push(
10110
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10111
- );
10112
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
10113
- _args.push(
10114
- TransactionArgument.is(args[2])
10115
- ? args[2]
10116
- : tx.makeMoveVec({
10117
- objects: args[2].map((a: any) => tx.object(a)),
10118
- // type: TODO
10119
- }),
10120
- );
9513
+ _args.push(transactionArgumentOrObject(args[0], tx));
9514
+ _args.push(transactionArgumentOrPure(args[1], tx));
9515
+ _args.push(transactionArgumentOrVec(args[2], tx));
10121
9516
 
10122
9517
  // @ts-ignore
10123
9518
  return tx.moveCall({
@@ -10130,7 +9525,7 @@ export namespace package_ {
10130
9525
  args: [package_.Publisher | TransactionArgument],
10131
9526
  ): TransactionArgument & [TransactionArgument] {
10132
9527
  const _args: any[] = [];
10133
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
9528
+ _args.push(transactionArgumentOrPure(args[0], tx));
10134
9529
 
10135
9530
  // @ts-ignore
10136
9531
  return tx.moveCall({
@@ -10147,10 +9542,8 @@ export namespace package_ {
10147
9542
  typeArguments: [TypeDescriptor<T0> | string],
10148
9543
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
10149
9544
  const _args: any[] = [];
10150
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
10151
- _args.push(
10152
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
10153
- );
9545
+ _args.push(transactionArgumentOrPure(args[0], tx));
9546
+ _args.push(transactionArgumentOrObject(args[1], tx));
10154
9547
 
10155
9548
  // @ts-ignore
10156
9549
  return tx.moveCall({
@@ -10172,10 +9565,8 @@ export namespace package_ {
10172
9565
  typeArguments: [TypeDescriptor<T0> | string],
10173
9566
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
10174
9567
  const _args: any[] = [];
10175
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
10176
- _args.push(
10177
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
10178
- );
9568
+ _args.push(transactionArgumentOrPure(args[0], tx));
9569
+ _args.push(transactionArgumentOrObject(args[1], tx));
10179
9570
 
10180
9571
  // @ts-ignore
10181
9572
  return tx.moveCall({
@@ -10196,10 +9587,8 @@ export namespace package_ {
10196
9587
  ],
10197
9588
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
10198
9589
  const _args: any[] = [];
10199
- _args.push(
10200
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10201
- );
10202
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
9590
+ _args.push(transactionArgumentOrObject(args[0], tx));
9591
+ _args.push(transactionArgumentOrPure(args[1], tx));
10203
9592
 
10204
9593
  // @ts-ignore
10205
9594
  return tx.moveCall({
@@ -10237,9 +9626,7 @@ export namespace package_ {
10237
9626
  typeArguments: [TypeDescriptor<T0> | string],
10238
9627
  ): TransactionArgument & [TransactionArgument] {
10239
9628
  const _args: any[] = [];
10240
- _args.push(
10241
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10242
- );
9629
+ _args.push(transactionArgumentOrObject(args[0], tx));
10243
9630
 
10244
9631
  // @ts-ignore
10245
9632
  return tx.moveCall({
@@ -10258,9 +9645,7 @@ export namespace package_ {
10258
9645
  typeArguments: [TypeDescriptor<T0> | string],
10259
9646
  ): TransactionArgument & [TransactionArgument] {
10260
9647
  const _args: any[] = [];
10261
- _args.push(
10262
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10263
- );
9648
+ _args.push(transactionArgumentOrObject(args[0], tx));
10264
9649
 
10265
9650
  // @ts-ignore
10266
9651
  return tx.moveCall({
@@ -10278,7 +9663,7 @@ export namespace package_ {
10278
9663
  args: [package_.UpgradeCap | TransactionArgument],
10279
9664
  ): TransactionArgument & [TransactionArgument] {
10280
9665
  const _args: any[] = [];
10281
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
9666
+ _args.push(transactionArgumentOrPure(args[0], tx));
10282
9667
 
10283
9668
  // @ts-ignore
10284
9669
  return tx.moveCall({
@@ -10291,9 +9676,7 @@ export namespace package_ {
10291
9676
  args: [string | ObjectCallArg | TransactionArgument],
10292
9677
  ): TransactionArgument & [TransactionArgument] {
10293
9678
  const _args: any[] = [];
10294
- _args.push(
10295
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10296
- );
9679
+ _args.push(transactionArgumentOrObject(args[0], tx));
10297
9680
 
10298
9681
  // @ts-ignore
10299
9682
  return tx.moveCall({
@@ -10306,9 +9689,7 @@ export namespace package_ {
10306
9689
  args: [string | ObjectCallArg | TransactionArgument],
10307
9690
  ): TransactionArgument & [TransactionArgument] {
10308
9691
  const _args: any[] = [];
10309
- _args.push(
10310
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10311
- );
9692
+ _args.push(transactionArgumentOrObject(args[0], tx));
10312
9693
 
10313
9694
  // @ts-ignore
10314
9695
  return tx.moveCall({
@@ -10321,9 +9702,7 @@ export namespace package_ {
10321
9702
  args: [string | ObjectCallArg | TransactionArgument],
10322
9703
  ): TransactionArgument & [TransactionArgument] {
10323
9704
  const _args: any[] = [];
10324
- _args.push(
10325
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10326
- );
9705
+ _args.push(transactionArgumentOrObject(args[0], tx));
10327
9706
 
10328
9707
  // @ts-ignore
10329
9708
  return tx.moveCall({
@@ -10336,9 +9715,7 @@ export namespace package_ {
10336
9715
  args: [string | ObjectCallArg | TransactionArgument],
10337
9716
  ): TransactionArgument & [TransactionArgument] {
10338
9717
  const _args: any[] = [];
10339
- _args.push(
10340
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10341
- );
9718
+ _args.push(transactionArgumentOrObject(args[0], tx));
10342
9719
 
10343
9720
  // @ts-ignore
10344
9721
  return tx.moveCall({
@@ -10351,9 +9728,7 @@ export namespace package_ {
10351
9728
  args: [string | ObjectCallArg | TransactionArgument],
10352
9729
  ): TransactionArgument & [TransactionArgument] {
10353
9730
  const _args: any[] = [];
10354
- _args.push(
10355
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10356
- );
9731
+ _args.push(transactionArgumentOrObject(args[0], tx));
10357
9732
 
10358
9733
  // @ts-ignore
10359
9734
  return tx.moveCall({
@@ -10366,9 +9741,7 @@ export namespace package_ {
10366
9741
  args: [string | ObjectCallArg | TransactionArgument],
10367
9742
  ): TransactionArgument & [TransactionArgument] {
10368
9743
  const _args: any[] = [];
10369
- _args.push(
10370
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10371
- );
9744
+ _args.push(transactionArgumentOrObject(args[0], tx));
10372
9745
 
10373
9746
  // @ts-ignore
10374
9747
  return tx.moveCall({
@@ -10381,9 +9754,7 @@ export namespace package_ {
10381
9754
  args: [string | ObjectCallArg | TransactionArgument],
10382
9755
  ): TransactionArgument & [TransactionArgument] {
10383
9756
  const _args: any[] = [];
10384
- _args.push(
10385
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10386
- );
9757
+ _args.push(transactionArgumentOrObject(args[0], tx));
10387
9758
 
10388
9759
  // @ts-ignore
10389
9760
  return tx.moveCall({
@@ -10396,9 +9767,7 @@ export namespace package_ {
10396
9767
  args: [string | ObjectCallArg | TransactionArgument],
10397
9768
  ): TransactionArgument & [TransactionArgument] {
10398
9769
  const _args: any[] = [];
10399
- _args.push(
10400
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10401
- );
9770
+ _args.push(transactionArgumentOrObject(args[0], tx));
10402
9771
 
10403
9772
  // @ts-ignore
10404
9773
  return tx.moveCall({
@@ -10411,9 +9780,7 @@ export namespace package_ {
10411
9780
  args: [string | ObjectCallArg | TransactionArgument],
10412
9781
  ): TransactionArgument & [TransactionArgument] {
10413
9782
  const _args: any[] = [];
10414
- _args.push(
10415
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10416
- );
9783
+ _args.push(transactionArgumentOrObject(args[0], tx));
10417
9784
 
10418
9785
  // @ts-ignore
10419
9786
  return tx.moveCall({
@@ -10426,9 +9793,7 @@ export namespace package_ {
10426
9793
  args: [string | ObjectCallArg | TransactionArgument],
10427
9794
  ): TransactionArgument & [TransactionArgument] {
10428
9795
  const _args: any[] = [];
10429
- _args.push(
10430
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10431
- );
9796
+ _args.push(transactionArgumentOrObject(args[0], tx));
10432
9797
 
10433
9798
  // @ts-ignore
10434
9799
  return tx.moveCall({
@@ -10441,9 +9806,7 @@ export namespace package_ {
10441
9806
  args: [string | ObjectCallArg | TransactionArgument],
10442
9807
  ): TransactionArgument & [TransactionArgument] {
10443
9808
  const _args: any[] = [];
10444
- _args.push(
10445
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10446
- );
9809
+ _args.push(transactionArgumentOrObject(args[0], tx));
10447
9810
 
10448
9811
  // @ts-ignore
10449
9812
  return tx.moveCall({
@@ -10456,9 +9819,7 @@ export namespace package_ {
10456
9819
  args: [string | ObjectCallArg | TransactionArgument],
10457
9820
  ): TransactionArgument & [TransactionArgument] {
10458
9821
  const _args: any[] = [];
10459
- _args.push(
10460
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10461
- );
9822
+ _args.push(transactionArgumentOrObject(args[0], tx));
10462
9823
 
10463
9824
  // @ts-ignore
10464
9825
  return tx.moveCall({
@@ -10846,13 +10207,9 @@ export namespace pay {
10846
10207
  ): TransactionArgument &
10847
10208
  [TransactionArgument, TransactionArgument, TransactionArgument] {
10848
10209
  const _args: any[] = [];
10849
- _args.push(
10850
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10851
- );
10852
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
10853
- _args.push(
10854
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
10855
- );
10210
+ _args.push(transactionArgumentOrObject(args[0], tx));
10211
+ _args.push(transactionArgumentOrPure(args[1], tx));
10212
+ _args.push(transactionArgumentOrObject(args[2], tx));
10856
10213
 
10857
10214
  // @ts-ignore
10858
10215
  return tx.moveCall({
@@ -10874,10 +10231,8 @@ export namespace pay {
10874
10231
  typeArguments: [TypeDescriptor<T0> | string],
10875
10232
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
10876
10233
  const _args: any[] = [];
10877
- _args.push(
10878
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10879
- );
10880
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
10234
+ _args.push(transactionArgumentOrObject(args[0], tx));
10235
+ _args.push(transactionArgumentOrPure(args[1], tx));
10881
10236
 
10882
10237
  // @ts-ignore
10883
10238
  return tx.moveCall({
@@ -10899,17 +10254,8 @@ export namespace pay {
10899
10254
  typeArguments: [TypeDescriptor<T0> | string],
10900
10255
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
10901
10256
  const _args: any[] = [];
10902
- _args.push(
10903
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10904
- );
10905
- _args.push(
10906
- TransactionArgument.is(args[1])
10907
- ? args[1]
10908
- : tx.makeMoveVec({
10909
- objects: args[1].map((a: any) => tx.object(a)),
10910
- // type: TODO
10911
- }),
10912
- );
10257
+ _args.push(transactionArgumentOrObject(args[0], tx));
10258
+ _args.push(transactionArgumentOrVec(args[1], tx));
10913
10259
 
10914
10260
  // @ts-ignore
10915
10261
  return tx.moveCall({
@@ -10931,15 +10277,8 @@ export namespace pay {
10931
10277
  typeArguments: [TypeDescriptor<T0> | string],
10932
10278
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
10933
10279
  const _args: any[] = [];
10934
- _args.push(
10935
- TransactionArgument.is(args[0])
10936
- ? args[0]
10937
- : tx.makeMoveVec({
10938
- objects: args[0].map((a: any) => tx.object(a)),
10939
- // type: TODO
10940
- }),
10941
- );
10942
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
10280
+ _args.push(transactionArgumentOrVec(args[0], tx));
10281
+ _args.push(transactionArgumentOrPure(args[1], tx));
10943
10282
 
10944
10283
  // @ts-ignore
10945
10284
  return tx.moveCall({
@@ -10961,10 +10300,8 @@ export namespace pay {
10961
10300
  typeArguments: [TypeDescriptor<T0> | string],
10962
10301
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
10963
10302
  const _args: any[] = [];
10964
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
10965
- _args.push(
10966
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
10967
- );
10303
+ _args.push(transactionArgumentOrPure(args[0], tx));
10304
+ _args.push(transactionArgumentOrObject(args[1], tx));
10968
10305
 
10969
10306
  // @ts-ignore
10970
10307
  return tx.moveCall({
@@ -10988,13 +10325,9 @@ export namespace pay {
10988
10325
  ): TransactionArgument &
10989
10326
  [TransactionArgument, TransactionArgument, TransactionArgument] {
10990
10327
  const _args: any[] = [];
10991
- _args.push(
10992
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
10993
- );
10994
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
10995
- _args.push(
10996
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
10997
- );
10328
+ _args.push(transactionArgumentOrObject(args[0], tx));
10329
+ _args.push(transactionArgumentOrPure(args[1], tx));
10330
+ _args.push(transactionArgumentOrObject(args[2], tx));
10998
10331
 
10999
10332
  // @ts-ignore
11000
10333
  return tx.moveCall({
@@ -11024,14 +10357,10 @@ export namespace pay {
11024
10357
  TransactionArgument,
11025
10358
  ] {
11026
10359
  const _args: any[] = [];
11027
- _args.push(
11028
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
11029
- );
11030
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
11031
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
11032
- _args.push(
11033
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
11034
- );
10360
+ _args.push(transactionArgumentOrObject(args[0], tx));
10361
+ _args.push(transactionArgumentOrPure(args[1], tx));
10362
+ _args.push(transactionArgumentOrPure(args[2], tx));
10363
+ _args.push(transactionArgumentOrObject(args[3], tx));
11035
10364
 
11036
10365
  // @ts-ignore
11037
10366
  return tx.moveCall({
@@ -11055,20 +10384,9 @@ export namespace pay {
11055
10384
  ): TransactionArgument &
11056
10385
  [TransactionArgument, TransactionArgument, TransactionArgument] {
11057
10386
  const _args: any[] = [];
11058
- _args.push(
11059
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
11060
- );
11061
- _args.push(
11062
- TransactionArgument.is(args[1])
11063
- ? args[1]
11064
- : tx.makeMoveVec({
11065
- objects: args[1].map((a: any) => tx.object(a)),
11066
- // type: TODO
11067
- }),
11068
- );
11069
- _args.push(
11070
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
11071
- );
10387
+ _args.push(transactionArgumentOrObject(args[0], tx));
10388
+ _args.push(transactionArgumentOrVec(args[1], tx));
10389
+ _args.push(transactionArgumentOrObject(args[2], tx));
11072
10390
 
11073
10391
  // @ts-ignore
11074
10392
  return tx.moveCall({
@@ -11289,22 +10607,8 @@ export namespace priority_queue {
11289
10607
  typeArguments: [TypeDescriptor<T0> | string],
11290
10608
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
11291
10609
  const _args: any[] = [];
11292
- _args.push(
11293
- TransactionArgument.is(args[0])
11294
- ? args[0]
11295
- : tx.makeMoveVec({
11296
- objects: args[0].map((a: any) => tx.object(a)),
11297
- // type: TODO
11298
- }),
11299
- );
11300
- _args.push(
11301
- TransactionArgument.is(args[1])
11302
- ? args[1]
11303
- : tx.makeMoveVec({
11304
- objects: args[1].map((a: any) => tx.object(a)),
11305
- // type: TODO
11306
- }),
11307
- );
10610
+ _args.push(transactionArgumentOrVec(args[0], tx));
10611
+ _args.push(transactionArgumentOrVec(args[1], tx));
11308
10612
 
11309
10613
  // @ts-ignore
11310
10614
  return tx.moveCall({
@@ -11328,11 +10632,9 @@ export namespace priority_queue {
11328
10632
  ): TransactionArgument &
11329
10633
  [TransactionArgument, TransactionArgument, TransactionArgument] {
11330
10634
  const _args: any[] = [];
11331
- _args.push(
11332
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
11333
- );
11334
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
11335
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
10635
+ _args.push(transactionArgumentOrObject(args[0], tx));
10636
+ _args.push(transactionArgumentOrPure(args[1], tx));
10637
+ _args.push(transactionArgumentOrPure(args[2], tx));
11336
10638
 
11337
10639
  // @ts-ignore
11338
10640
  return tx.moveCall({
@@ -11351,14 +10653,7 @@ export namespace priority_queue {
11351
10653
  typeArguments: [TypeDescriptor<T0> | string],
11352
10654
  ): TransactionArgument & [TransactionArgument] {
11353
10655
  const _args: any[] = [];
11354
- _args.push(
11355
- TransactionArgument.is(args[0])
11356
- ? args[0]
11357
- : tx.makeMoveVec({
11358
- objects: args[0].map((a: any) => tx.object(a)),
11359
- // type: TODO
11360
- }),
11361
- );
10656
+ _args.push(transactionArgumentOrVec(args[0], tx));
11362
10657
 
11363
10658
  // @ts-ignore
11364
10659
  return tx.moveCall({
@@ -11377,8 +10672,8 @@ export namespace priority_queue {
11377
10672
  typeArguments: [TypeDescriptor<T0> | string],
11378
10673
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
11379
10674
  const _args: any[] = [];
11380
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
11381
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
10675
+ _args.push(transactionArgumentOrPure(args[0], tx));
10676
+ _args.push(transactionArgumentOrPure(args[1], tx));
11382
10677
 
11383
10678
  // @ts-ignore
11384
10679
  return tx.moveCall({
@@ -11397,9 +10692,7 @@ export namespace priority_queue {
11397
10692
  typeArguments: [TypeDescriptor<T0> | string],
11398
10693
  ): TransactionArgument & [TransactionArgument] {
11399
10694
  const _args: any[] = [];
11400
- _args.push(
11401
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
11402
- );
10695
+ _args.push(transactionArgumentOrObject(args[0], tx));
11403
10696
 
11404
10697
  // @ts-ignore
11405
10698
  return tx.moveCall({
@@ -11418,9 +10711,7 @@ export namespace priority_queue {
11418
10711
  typeArguments: [TypeDescriptor<T0> | string],
11419
10712
  ): TransactionArgument & [TransactionArgument] {
11420
10713
  const _args: any[] = [];
11421
- _args.push(
11422
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
11423
- );
10714
+ _args.push(transactionArgumentOrObject(args[0], tx));
11424
10715
 
11425
10716
  // @ts-ignore
11426
10717
  return tx.moveCall({
@@ -11570,8 +10861,8 @@ export namespace sui {
11570
10861
  ],
11571
10862
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
11572
10863
  const _args: any[] = [];
11573
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
11574
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
10864
+ _args.push(transactionArgumentOrPure(args[0], tx));
10865
+ _args.push(transactionArgumentOrPure(args[1], tx));
11575
10866
 
11576
10867
  // @ts-ignore
11577
10868
  return tx.moveCall({
@@ -11633,11 +10924,9 @@ export namespace table {
11633
10924
  ): TransactionArgument &
11634
10925
  [TransactionArgument, TransactionArgument, TransactionArgument] {
11635
10926
  const _args: any[] = [];
11636
- _args.push(
11637
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
11638
- );
11639
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
11640
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
10927
+ _args.push(transactionArgumentOrObject(args[0], tx));
10928
+ _args.push(transactionArgumentOrPure(args[1], tx));
10929
+ _args.push(transactionArgumentOrPure(args[2], tx));
11641
10930
 
11642
10931
  // @ts-ignore
11643
10932
  return tx.moveCall({
@@ -11662,10 +10951,8 @@ export namespace table {
11662
10951
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
11663
10952
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
11664
10953
  const _args: any[] = [];
11665
- _args.push(
11666
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
11667
- );
11668
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
10954
+ _args.push(transactionArgumentOrObject(args[0], tx));
10955
+ _args.push(transactionArgumentOrPure(args[1], tx));
11669
10956
 
11670
10957
  // @ts-ignore
11671
10958
  return tx.moveCall({
@@ -11690,10 +10977,8 @@ export namespace table {
11690
10977
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
11691
10978
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
11692
10979
  const _args: any[] = [];
11693
- _args.push(
11694
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
11695
- );
11696
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
10980
+ _args.push(transactionArgumentOrObject(args[0], tx));
10981
+ _args.push(transactionArgumentOrPure(args[1], tx));
11697
10982
 
11698
10983
  // @ts-ignore
11699
10984
  return tx.moveCall({
@@ -11718,10 +11003,8 @@ export namespace table {
11718
11003
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
11719
11004
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
11720
11005
  const _args: any[] = [];
11721
- _args.push(
11722
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
11723
- );
11724
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
11006
+ _args.push(transactionArgumentOrObject(args[0], tx));
11007
+ _args.push(transactionArgumentOrPure(args[1], tx));
11725
11008
 
11726
11009
  // @ts-ignore
11727
11010
  return tx.moveCall({
@@ -11743,7 +11026,7 @@ export namespace table {
11743
11026
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
11744
11027
  ): TransactionArgument & [TransactionArgument] {
11745
11028
  const _args: any[] = [];
11746
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
11029
+ _args.push(transactionArgumentOrPure(args[0], tx));
11747
11030
 
11748
11031
  // @ts-ignore
11749
11032
  return tx.moveCall({
@@ -11765,7 +11048,7 @@ export namespace table {
11765
11048
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
11766
11049
  ): TransactionArgument & [TransactionArgument] {
11767
11050
  const _args: any[] = [];
11768
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
11051
+ _args.push(transactionArgumentOrPure(args[0], tx));
11769
11052
 
11770
11053
  // @ts-ignore
11771
11054
  return tx.moveCall({
@@ -11787,9 +11070,7 @@ export namespace table {
11787
11070
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
11788
11071
  ): TransactionArgument & [TransactionArgument] {
11789
11072
  const _args: any[] = [];
11790
- _args.push(
11791
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
11792
- );
11073
+ _args.push(transactionArgumentOrObject(args[0], tx));
11793
11074
 
11794
11075
  // @ts-ignore
11795
11076
  return tx.moveCall({
@@ -11811,9 +11092,7 @@ export namespace table {
11811
11092
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
11812
11093
  ): TransactionArgument & [TransactionArgument] {
11813
11094
  const _args: any[] = [];
11814
- _args.push(
11815
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
11816
- );
11095
+ _args.push(transactionArgumentOrObject(args[0], tx));
11817
11096
 
11818
11097
  // @ts-ignore
11819
11098
  return tx.moveCall({
@@ -11835,9 +11114,7 @@ export namespace table {
11835
11114
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
11836
11115
  ): TransactionArgument & [TransactionArgument] {
11837
11116
  const _args: any[] = [];
11838
- _args.push(
11839
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
11840
- );
11117
+ _args.push(transactionArgumentOrObject(args[0], tx));
11841
11118
 
11842
11119
  // @ts-ignore
11843
11120
  return tx.moveCall({
@@ -11862,10 +11139,8 @@ export namespace table {
11862
11139
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
11863
11140
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
11864
11141
  const _args: any[] = [];
11865
- _args.push(
11866
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
11867
- );
11868
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
11142
+ _args.push(transactionArgumentOrObject(args[0], tx));
11143
+ _args.push(transactionArgumentOrPure(args[1], tx));
11869
11144
 
11870
11145
  // @ts-ignore
11871
11146
  return tx.moveCall({
@@ -12089,10 +11364,8 @@ export namespace table_vec {
12089
11364
  typeArguments: [TypeDescriptor<T0> | string],
12090
11365
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
12091
11366
  const _args: any[] = [];
12092
- _args.push(
12093
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
12094
- );
12095
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
11367
+ _args.push(transactionArgumentOrObject(args[0], tx));
11368
+ _args.push(transactionArgumentOrPure(args[1], tx));
12096
11369
 
12097
11370
  // @ts-ignore
12098
11371
  return tx.moveCall({
@@ -12114,10 +11387,8 @@ export namespace table_vec {
12114
11387
  typeArguments: [TypeDescriptor<T0> | string],
12115
11388
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
12116
11389
  const _args: any[] = [];
12117
- _args.push(
12118
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
12119
- );
12120
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
11390
+ _args.push(transactionArgumentOrObject(args[0], tx));
11391
+ _args.push(transactionArgumentOrPure(args[1], tx));
12121
11392
 
12122
11393
  // @ts-ignore
12123
11394
  return tx.moveCall({
@@ -12136,7 +11407,7 @@ export namespace table_vec {
12136
11407
  typeArguments: [TypeDescriptor<T0> | string],
12137
11408
  ): TransactionArgument & [TransactionArgument] {
12138
11409
  const _args: any[] = [];
12139
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
11410
+ _args.push(transactionArgumentOrPure(args[0], tx));
12140
11411
 
12141
11412
  // @ts-ignore
12142
11413
  return tx.moveCall({
@@ -12155,9 +11426,7 @@ export namespace table_vec {
12155
11426
  typeArguments: [TypeDescriptor<T0> | string],
12156
11427
  ): TransactionArgument & [TransactionArgument] {
12157
11428
  const _args: any[] = [];
12158
- _args.push(
12159
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
12160
- );
11429
+ _args.push(transactionArgumentOrObject(args[0], tx));
12161
11430
 
12162
11431
  // @ts-ignore
12163
11432
  return tx.moveCall({
@@ -12176,9 +11445,7 @@ export namespace table_vec {
12176
11445
  typeArguments: [TypeDescriptor<T0> | string],
12177
11446
  ): TransactionArgument & [TransactionArgument] {
12178
11447
  const _args: any[] = [];
12179
- _args.push(
12180
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
12181
- );
11448
+ _args.push(transactionArgumentOrObject(args[0], tx));
12182
11449
 
12183
11450
  // @ts-ignore
12184
11451
  return tx.moveCall({
@@ -12197,9 +11464,7 @@ export namespace table_vec {
12197
11464
  typeArguments: [TypeDescriptor<T0> | string],
12198
11465
  ): TransactionArgument & [TransactionArgument] {
12199
11466
  const _args: any[] = [];
12200
- _args.push(
12201
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
12202
- );
11467
+ _args.push(transactionArgumentOrObject(args[0], tx));
12203
11468
 
12204
11469
  // @ts-ignore
12205
11470
  return tx.moveCall({
@@ -12218,9 +11483,7 @@ export namespace table_vec {
12218
11483
  typeArguments: [TypeDescriptor<T0> | string],
12219
11484
  ): TransactionArgument & [TransactionArgument] {
12220
11485
  const _args: any[] = [];
12221
- _args.push(
12222
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
12223
- );
11486
+ _args.push(transactionArgumentOrObject(args[0], tx));
12224
11487
 
12225
11488
  // @ts-ignore
12226
11489
  return tx.moveCall({
@@ -12242,10 +11505,8 @@ export namespace table_vec {
12242
11505
  typeArguments: [TypeDescriptor<T0> | string],
12243
11506
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
12244
11507
  const _args: any[] = [];
12245
- _args.push(
12246
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
12247
- );
12248
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
11508
+ _args.push(transactionArgumentOrObject(args[0], tx));
11509
+ _args.push(transactionArgumentOrPure(args[1], tx));
12249
11510
 
12250
11511
  // @ts-ignore
12251
11512
  return tx.moveCall({
@@ -12267,10 +11528,8 @@ export namespace table_vec {
12267
11528
  typeArguments: [TypeDescriptor<T0> | string],
12268
11529
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
12269
11530
  const _args: any[] = [];
12270
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
12271
- _args.push(
12272
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
12273
- );
11531
+ _args.push(transactionArgumentOrPure(args[0], tx));
11532
+ _args.push(transactionArgumentOrObject(args[1], tx));
12274
11533
 
12275
11534
  // @ts-ignore
12276
11535
  return tx.moveCall({
@@ -12452,7 +11711,7 @@ export namespace transfer {
12452
11711
  typeArguments: [TypeDescriptor<T0> | string],
12453
11712
  ): TransactionArgument & [TransactionArgument] {
12454
11713
  const _args: any[] = [];
12455
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
11714
+ _args.push(transactionArgumentOrPure(args[0], tx));
12456
11715
 
12457
11716
  // @ts-ignore
12458
11717
  return tx.moveCall({
@@ -12472,7 +11731,7 @@ export namespace transfer {
12472
11731
  typeArguments: [TypeDescriptor<T0> | string],
12473
11732
  ): TransactionArgument & [TransactionArgument] {
12474
11733
  const _args: any[] = [];
12475
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
11734
+ _args.push(transactionArgumentOrPure(args[0], tx));
12476
11735
 
12477
11736
  // @ts-ignore
12478
11737
  return tx.moveCall({
@@ -12491,7 +11750,7 @@ export namespace transfer {
12491
11750
  typeArguments: [TypeDescriptor<T0> | string],
12492
11751
  ): TransactionArgument & [TransactionArgument] {
12493
11752
  const _args: any[] = [];
12494
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
11753
+ _args.push(transactionArgumentOrPure(args[0], tx));
12495
11754
 
12496
11755
  // @ts-ignore
12497
11756
  return tx.moveCall({
@@ -12510,8 +11769,8 @@ export namespace transfer {
12510
11769
  typeArguments: [TypeDescriptor<T0> | string],
12511
11770
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
12512
11771
  const _args: any[] = [];
12513
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
12514
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
11772
+ _args.push(transactionArgumentOrPure(args[0], tx));
11773
+ _args.push(transactionArgumentOrPure(args[1], tx));
12515
11774
 
12516
11775
  // @ts-ignore
12517
11776
  return tx.moveCall({
@@ -12530,7 +11789,7 @@ export namespace transfer {
12530
11789
  typeArguments: [TypeDescriptor<T0> | string],
12531
11790
  ): TransactionArgument & [TransactionArgument] {
12532
11791
  const _args: any[] = [];
12533
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
11792
+ _args.push(transactionArgumentOrPure(args[0], tx));
12534
11793
 
12535
11794
  // @ts-ignore
12536
11795
  return tx.moveCall({
@@ -12550,8 +11809,8 @@ export namespace transfer {
12550
11809
  typeArguments: [TypeDescriptor<T0> | string],
12551
11810
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
12552
11811
  const _args: any[] = [];
12553
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
12554
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
11812
+ _args.push(transactionArgumentOrPure(args[0], tx));
11813
+ _args.push(transactionArgumentOrPure(args[1], tx));
12555
11814
 
12556
11815
  // @ts-ignore
12557
11816
  return tx.moveCall({
@@ -12783,10 +12042,8 @@ export namespace transfer_policy {
12783
12042
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
12784
12043
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
12785
12044
  const _args: any[] = [];
12786
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
12787
- _args.push(
12788
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
12789
- );
12045
+ _args.push(transactionArgumentOrPure(args[0], tx));
12046
+ _args.push(transactionArgumentOrObject(args[1], tx));
12790
12047
 
12791
12048
  // @ts-ignore
12792
12049
  return tx.moveCall({
@@ -12823,14 +12080,10 @@ export namespace transfer_policy {
12823
12080
  TransactionArgument,
12824
12081
  ] {
12825
12082
  const _args: any[] = [];
12826
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
12827
- _args.push(
12828
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
12829
- );
12830
- _args.push(
12831
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
12832
- );
12833
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
12083
+ _args.push(transactionArgumentOrPure(args[0], tx));
12084
+ _args.push(transactionArgumentOrObject(args[1], tx));
12085
+ _args.push(transactionArgumentOrObject(args[2], tx));
12086
+ _args.push(transactionArgumentOrPure(args[3], tx));
12834
12087
 
12835
12088
  // @ts-ignore
12836
12089
  return tx.moveCall({
@@ -12860,11 +12113,9 @@ export namespace transfer_policy {
12860
12113
  ): TransactionArgument &
12861
12114
  [TransactionArgument, TransactionArgument, TransactionArgument] {
12862
12115
  const _args: any[] = [];
12863
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
12864
- _args.push(
12865
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
12866
- );
12867
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
12116
+ _args.push(transactionArgumentOrPure(args[0], tx));
12117
+ _args.push(transactionArgumentOrObject(args[1], tx));
12118
+ _args.push(transactionArgumentOrPure(args[2], tx));
12868
12119
 
12869
12120
  // @ts-ignore
12870
12121
  return tx.moveCall({
@@ -12889,10 +12140,8 @@ export namespace transfer_policy {
12889
12140
  typeArguments: [TypeDescriptor<T0> | string],
12890
12141
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
12891
12142
  const _args: any[] = [];
12892
- _args.push(
12893
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
12894
- );
12895
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
12143
+ _args.push(transactionArgumentOrObject(args[0], tx));
12144
+ _args.push(transactionArgumentOrPure(args[1], tx));
12896
12145
 
12897
12146
  // @ts-ignore
12898
12147
  return tx.moveCall({
@@ -12916,11 +12165,9 @@ export namespace transfer_policy {
12916
12165
  ): TransactionArgument &
12917
12166
  [TransactionArgument, TransactionArgument, TransactionArgument] {
12918
12167
  const _args: any[] = [];
12919
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
12920
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
12921
- _args.push(
12922
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
12923
- );
12168
+ _args.push(transactionArgumentOrPure(args[0], tx));
12169
+ _args.push(transactionArgumentOrPure(args[1], tx));
12170
+ _args.push(transactionArgumentOrObject(args[2], tx));
12924
12171
 
12925
12172
  // @ts-ignore
12926
12173
  return tx.moveCall({
@@ -12939,9 +12186,7 @@ export namespace transfer_policy {
12939
12186
  typeArguments: [TypeDescriptor<T0> | string],
12940
12187
  ): TransactionArgument & [TransactionArgument] {
12941
12188
  const _args: any[] = [];
12942
- _args.push(
12943
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
12944
- );
12189
+ _args.push(transactionArgumentOrObject(args[0], tx));
12945
12190
 
12946
12191
  // @ts-ignore
12947
12192
  return tx.moveCall({
@@ -12967,10 +12212,8 @@ export namespace transfer_policy {
12967
12212
  ],
12968
12213
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
12969
12214
  const _args: any[] = [];
12970
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
12971
- _args.push(
12972
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
12973
- );
12215
+ _args.push(transactionArgumentOrPure(args[0], tx));
12216
+ _args.push(transactionArgumentOrObject(args[1], tx));
12974
12217
 
12975
12218
  // @ts-ignore
12976
12219
  return tx.moveCall({
@@ -12995,9 +12238,7 @@ export namespace transfer_policy {
12995
12238
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
12996
12239
  ): TransactionArgument & [TransactionArgument] {
12997
12240
  const _args: any[] = [];
12998
- _args.push(
12999
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13000
- );
12241
+ _args.push(transactionArgumentOrObject(args[0], tx));
13001
12242
 
13002
12243
  // @ts-ignore
13003
12244
  return tx.moveCall({
@@ -13019,9 +12260,7 @@ export namespace transfer_policy {
13019
12260
  typeArguments: [TypeDescriptor<T0> | string],
13020
12261
  ): TransactionArgument & [TransactionArgument] {
13021
12262
  const _args: any[] = [];
13022
- _args.push(
13023
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13024
- );
12263
+ _args.push(transactionArgumentOrObject(args[0], tx));
13025
12264
 
13026
12265
  // @ts-ignore
13027
12266
  return tx.moveCall({
@@ -13043,12 +12282,8 @@ export namespace transfer_policy {
13043
12282
  typeArguments: [TypeDescriptor<T0> | string],
13044
12283
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
13045
12284
  const _args: any[] = [];
13046
- _args.push(
13047
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13048
- );
13049
- _args.push(
13050
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
13051
- );
12285
+ _args.push(transactionArgumentOrObject(args[0], tx));
12286
+ _args.push(transactionArgumentOrObject(args[1], tx));
13052
12287
 
13053
12288
  // @ts-ignore
13054
12289
  return tx.moveCall({
@@ -13072,9 +12307,9 @@ export namespace transfer_policy {
13072
12307
  ): TransactionArgument &
13073
12308
  [TransactionArgument, TransactionArgument, TransactionArgument] {
13074
12309
  const _args: any[] = [];
13075
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
13076
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
13077
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
12310
+ _args.push(transactionArgumentOrPure(args[0], tx));
12311
+ _args.push(transactionArgumentOrPure(args[1], tx));
12312
+ _args.push(transactionArgumentOrPure(args[2], tx));
13078
12313
 
13079
12314
  // @ts-ignore
13080
12315
  return tx.moveCall({
@@ -13093,9 +12328,7 @@ export namespace transfer_policy {
13093
12328
  typeArguments: [TypeDescriptor<T0> | string],
13094
12329
  ): TransactionArgument & [TransactionArgument] {
13095
12330
  const _args: any[] = [];
13096
- _args.push(
13097
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13098
- );
12331
+ _args.push(transactionArgumentOrObject(args[0], tx));
13099
12332
 
13100
12333
  // @ts-ignore
13101
12334
  return tx.moveCall({
@@ -13121,12 +12354,8 @@ export namespace transfer_policy {
13121
12354
  ],
13122
12355
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
13123
12356
  const _args: any[] = [];
13124
- _args.push(
13125
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13126
- );
13127
- _args.push(
13128
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
13129
- );
12357
+ _args.push(transactionArgumentOrObject(args[0], tx));
12358
+ _args.push(transactionArgumentOrObject(args[1], tx));
13130
12359
 
13131
12360
  // @ts-ignore
13132
12361
  return tx.moveCall({
@@ -13151,9 +12380,7 @@ export namespace transfer_policy {
13151
12380
  typeArguments: [TypeDescriptor<T0> | string],
13152
12381
  ): TransactionArgument & [TransactionArgument] {
13153
12382
  const _args: any[] = [];
13154
- _args.push(
13155
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13156
- );
12383
+ _args.push(transactionArgumentOrObject(args[0], tx));
13157
12384
 
13158
12385
  // @ts-ignore
13159
12386
  return tx.moveCall({
@@ -13172,9 +12399,7 @@ export namespace transfer_policy {
13172
12399
  typeArguments: [TypeDescriptor<T0> | string],
13173
12400
  ): TransactionArgument & [TransactionArgument] {
13174
12401
  const _args: any[] = [];
13175
- _args.push(
13176
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13177
- );
12402
+ _args.push(transactionArgumentOrObject(args[0], tx));
13178
12403
 
13179
12404
  // @ts-ignore
13180
12405
  return tx.moveCall({
@@ -13196,12 +12421,8 @@ export namespace transfer_policy {
13196
12421
  typeArguments: [TypeDescriptor<T0> | string],
13197
12422
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
13198
12423
  const _args: any[] = [];
13199
- _args.push(
13200
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13201
- );
13202
- _args.push(
13203
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
13204
- );
12424
+ _args.push(transactionArgumentOrObject(args[0], tx));
12425
+ _args.push(transactionArgumentOrObject(args[1], tx));
13205
12426
 
13206
12427
  // @ts-ignore
13207
12428
  return tx.moveCall({
@@ -13231,16 +12452,10 @@ export namespace transfer_policy {
13231
12452
  TransactionArgument,
13232
12453
  ] {
13233
12454
  const _args: any[] = [];
13234
- _args.push(
13235
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13236
- );
13237
- _args.push(
13238
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
13239
- );
13240
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
13241
- _args.push(
13242
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
13243
- );
12455
+ _args.push(transactionArgumentOrObject(args[0], tx));
12456
+ _args.push(transactionArgumentOrObject(args[1], tx));
12457
+ _args.push(transactionArgumentOrPure(args[2], tx));
12458
+ _args.push(transactionArgumentOrObject(args[3], tx));
13244
12459
 
13245
12460
  // @ts-ignore
13246
12461
  return tx.moveCall({
@@ -13617,9 +12832,7 @@ export namespace tx_context {
13617
12832
  args: [string | ObjectCallArg | TransactionArgument],
13618
12833
  ): TransactionArgument & [TransactionArgument] {
13619
12834
  const _args: any[] = [];
13620
- _args.push(
13621
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13622
- );
12835
+ _args.push(transactionArgumentOrObject(args[0], tx));
13623
12836
 
13624
12837
  // @ts-ignore
13625
12838
  return tx.moveCall({
@@ -13632,9 +12845,7 @@ export namespace tx_context {
13632
12845
  args: [string | ObjectCallArg | TransactionArgument],
13633
12846
  ): TransactionArgument & [TransactionArgument] {
13634
12847
  const _args: any[] = [];
13635
- _args.push(
13636
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13637
- );
12848
+ _args.push(transactionArgumentOrObject(args[0], tx));
13638
12849
 
13639
12850
  // @ts-ignore
13640
12851
  return tx.moveCall({
@@ -13647,9 +12858,7 @@ export namespace tx_context {
13647
12858
  args: [string | ObjectCallArg | TransactionArgument],
13648
12859
  ): TransactionArgument & [TransactionArgument] {
13649
12860
  const _args: any[] = [];
13650
- _args.push(
13651
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13652
- );
12861
+ _args.push(transactionArgumentOrObject(args[0], tx));
13653
12862
 
13654
12863
  // @ts-ignore
13655
12864
  return tx.moveCall({
@@ -13662,9 +12871,7 @@ export namespace tx_context {
13662
12871
  args: [string | ObjectCallArg | TransactionArgument],
13663
12872
  ): TransactionArgument & [TransactionArgument] {
13664
12873
  const _args: any[] = [];
13665
- _args.push(
13666
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13667
- );
12874
+ _args.push(transactionArgumentOrObject(args[0], tx));
13668
12875
 
13669
12876
  // @ts-ignore
13670
12877
  return tx.moveCall({
@@ -13745,9 +12952,7 @@ export namespace types {
13745
12952
  typeArguments: [TypeDescriptor<T0> | string],
13746
12953
  ): TransactionArgument & [TransactionArgument] {
13747
12954
  const _args: any[] = [];
13748
- _args.push(
13749
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13750
- );
12955
+ _args.push(transactionArgumentOrObject(args[0], tx));
13751
12956
 
13752
12957
  // @ts-ignore
13753
12958
  return tx.moveCall({
@@ -13807,9 +13012,7 @@ export namespace url {
13807
13012
  args: [string | ObjectCallArg | TransactionArgument],
13808
13013
  ): TransactionArgument & [TransactionArgument] {
13809
13014
  const _args: any[] = [];
13810
- _args.push(
13811
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13812
- );
13015
+ _args.push(transactionArgumentOrObject(args[0], tx));
13813
13016
 
13814
13017
  // @ts-ignore
13815
13018
  return tx.moveCall({
@@ -13822,7 +13025,7 @@ export namespace url {
13822
13025
  args: [_0x1.ascii.String | TransactionArgument],
13823
13026
  ): TransactionArgument & [TransactionArgument] {
13824
13027
  const _args: any[] = [];
13825
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
13028
+ _args.push(transactionArgumentOrPure(args[0], tx));
13826
13029
 
13827
13030
  // @ts-ignore
13828
13031
  return tx.moveCall({
@@ -13835,14 +13038,7 @@ export namespace url {
13835
13038
  args: [(string | ObjectCallArg)[] | TransactionArgument],
13836
13039
  ): TransactionArgument & [TransactionArgument] {
13837
13040
  const _args: any[] = [];
13838
- _args.push(
13839
- TransactionArgument.is(args[0])
13840
- ? args[0]
13841
- : tx.makeMoveVec({
13842
- objects: args[0].map((a: any) => tx.object(a)),
13843
- // type: TODO
13844
- }),
13845
- );
13041
+ _args.push(transactionArgumentOrVec(args[0], tx));
13846
13042
 
13847
13043
  // @ts-ignore
13848
13044
  return tx.moveCall({
@@ -13858,10 +13054,8 @@ export namespace url {
13858
13054
  ],
13859
13055
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
13860
13056
  const _args: any[] = [];
13861
- _args.push(
13862
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13863
- );
13864
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
13057
+ _args.push(transactionArgumentOrObject(args[0], tx));
13058
+ _args.push(transactionArgumentOrPure(args[1], tx));
13865
13059
 
13866
13060
  // @ts-ignore
13867
13061
  return tx.moveCall({
@@ -13993,12 +13187,8 @@ export namespace vec_map {
13993
13187
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
13994
13188
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
13995
13189
  const _args: any[] = [];
13996
- _args.push(
13997
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
13998
- );
13999
- _args.push(
14000
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
14001
- );
13190
+ _args.push(transactionArgumentOrObject(args[0], tx));
13191
+ _args.push(transactionArgumentOrObject(args[1], tx));
14002
13192
 
14003
13193
  // @ts-ignore
14004
13194
  return tx.moveCall({
@@ -14020,7 +13210,7 @@ export namespace vec_map {
14020
13210
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
14021
13211
  ): TransactionArgument & [TransactionArgument] {
14022
13212
  const _args: any[] = [];
14023
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
13213
+ _args.push(transactionArgumentOrPure(args[0], tx));
14024
13214
 
14025
13215
  // @ts-ignore
14026
13216
  return tx.moveCall({
@@ -14066,12 +13256,8 @@ export namespace vec_map {
14066
13256
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
14067
13257
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
14068
13258
  const _args: any[] = [];
14069
- _args.push(
14070
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14071
- );
14072
- _args.push(
14073
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
14074
- );
13259
+ _args.push(transactionArgumentOrObject(args[0], tx));
13260
+ _args.push(transactionArgumentOrObject(args[1], tx));
14075
13261
 
14076
13262
  // @ts-ignore
14077
13263
  return tx.moveCall({
@@ -14096,10 +13282,8 @@ export namespace vec_map {
14096
13282
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
14097
13283
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
14098
13284
  const _args: any[] = [];
14099
- _args.push(
14100
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14101
- );
14102
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
13285
+ _args.push(transactionArgumentOrObject(args[0], tx));
13286
+ _args.push(transactionArgumentOrPure(args[1], tx));
14103
13287
 
14104
13288
  // @ts-ignore
14105
13289
  return tx.moveCall({
@@ -14124,10 +13308,8 @@ export namespace vec_map {
14124
13308
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
14125
13309
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
14126
13310
  const _args: any[] = [];
14127
- _args.push(
14128
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14129
- );
14130
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
13311
+ _args.push(transactionArgumentOrObject(args[0], tx));
13312
+ _args.push(transactionArgumentOrPure(args[1], tx));
14131
13313
 
14132
13314
  // @ts-ignore
14133
13315
  return tx.moveCall({
@@ -14152,12 +13334,8 @@ export namespace vec_map {
14152
13334
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
14153
13335
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
14154
13336
  const _args: any[] = [];
14155
- _args.push(
14156
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14157
- );
14158
- _args.push(
14159
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
14160
- );
13337
+ _args.push(transactionArgumentOrObject(args[0], tx));
13338
+ _args.push(transactionArgumentOrObject(args[1], tx));
14161
13339
 
14162
13340
  // @ts-ignore
14163
13341
  return tx.moveCall({
@@ -14182,12 +13360,8 @@ export namespace vec_map {
14182
13360
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
14183
13361
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
14184
13362
  const _args: any[] = [];
14185
- _args.push(
14186
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14187
- );
14188
- _args.push(
14189
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
14190
- );
13363
+ _args.push(transactionArgumentOrObject(args[0], tx));
13364
+ _args.push(transactionArgumentOrObject(args[1], tx));
14191
13365
 
14192
13366
  // @ts-ignore
14193
13367
  return tx.moveCall({
@@ -14212,12 +13386,8 @@ export namespace vec_map {
14212
13386
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
14213
13387
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
14214
13388
  const _args: any[] = [];
14215
- _args.push(
14216
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14217
- );
14218
- _args.push(
14219
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
14220
- );
13389
+ _args.push(transactionArgumentOrObject(args[0], tx));
13390
+ _args.push(transactionArgumentOrObject(args[1], tx));
14221
13391
 
14222
13392
  // @ts-ignore
14223
13393
  return tx.moveCall({
@@ -14244,11 +13414,9 @@ export namespace vec_map {
14244
13414
  ): TransactionArgument &
14245
13415
  [TransactionArgument, TransactionArgument, TransactionArgument] {
14246
13416
  const _args: any[] = [];
14247
- _args.push(
14248
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14249
- );
14250
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
14251
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
13417
+ _args.push(transactionArgumentOrObject(args[0], tx));
13418
+ _args.push(transactionArgumentOrPure(args[1], tx));
13419
+ _args.push(transactionArgumentOrPure(args[2], tx));
14252
13420
 
14253
13421
  // @ts-ignore
14254
13422
  return tx.moveCall({
@@ -14270,7 +13438,7 @@ export namespace vec_map {
14270
13438
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
14271
13439
  ): TransactionArgument & [TransactionArgument] {
14272
13440
  const _args: any[] = [];
14273
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
13441
+ _args.push(transactionArgumentOrPure(args[0], tx));
14274
13442
 
14275
13443
  // @ts-ignore
14276
13444
  return tx.moveCall({
@@ -14292,9 +13460,7 @@ export namespace vec_map {
14292
13460
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
14293
13461
  ): TransactionArgument & [TransactionArgument] {
14294
13462
  const _args: any[] = [];
14295
- _args.push(
14296
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14297
- );
13463
+ _args.push(transactionArgumentOrObject(args[0], tx));
14298
13464
 
14299
13465
  // @ts-ignore
14300
13466
  return tx.moveCall({
@@ -14316,9 +13482,7 @@ export namespace vec_map {
14316
13482
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
14317
13483
  ): TransactionArgument & [TransactionArgument] {
14318
13484
  const _args: any[] = [];
14319
- _args.push(
14320
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14321
- );
13485
+ _args.push(transactionArgumentOrObject(args[0], tx));
14322
13486
 
14323
13487
  // @ts-ignore
14324
13488
  return tx.moveCall({
@@ -14340,9 +13504,7 @@ export namespace vec_map {
14340
13504
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
14341
13505
  ): TransactionArgument & [TransactionArgument] {
14342
13506
  const _args: any[] = [];
14343
- _args.push(
14344
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14345
- );
13507
+ _args.push(transactionArgumentOrObject(args[0], tx));
14346
13508
 
14347
13509
  // @ts-ignore
14348
13510
  return tx.moveCall({
@@ -14367,12 +13529,8 @@ export namespace vec_map {
14367
13529
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
14368
13530
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
14369
13531
  const _args: any[] = [];
14370
- _args.push(
14371
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14372
- );
14373
- _args.push(
14374
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
14375
- );
13532
+ _args.push(transactionArgumentOrObject(args[0], tx));
13533
+ _args.push(transactionArgumentOrObject(args[1], tx));
14376
13534
 
14377
13535
  // @ts-ignore
14378
13536
  return tx.moveCall({
@@ -14397,10 +13555,8 @@ export namespace vec_map {
14397
13555
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
14398
13556
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
14399
13557
  const _args: any[] = [];
14400
- _args.push(
14401
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14402
- );
14403
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
13558
+ _args.push(transactionArgumentOrObject(args[0], tx));
13559
+ _args.push(transactionArgumentOrPure(args[1], tx));
14404
13560
 
14405
13561
  // @ts-ignore
14406
13562
  return tx.moveCall({
@@ -14422,9 +13578,7 @@ export namespace vec_map {
14422
13578
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
14423
13579
  ): TransactionArgument & [TransactionArgument] {
14424
13580
  const _args: any[] = [];
14425
- _args.push(
14426
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14427
- );
13581
+ _args.push(transactionArgumentOrObject(args[0], tx));
14428
13582
 
14429
13583
  // @ts-ignore
14430
13584
  return tx.moveCall({
@@ -14449,12 +13603,8 @@ export namespace vec_map {
14449
13603
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
14450
13604
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
14451
13605
  const _args: any[] = [];
14452
- _args.push(
14453
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14454
- );
14455
- _args.push(
14456
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
14457
- );
13606
+ _args.push(transactionArgumentOrObject(args[0], tx));
13607
+ _args.push(transactionArgumentOrObject(args[1], tx));
14458
13608
 
14459
13609
  // @ts-ignore
14460
13610
  return tx.moveCall({
@@ -14829,12 +13979,8 @@ export namespace vec_set {
14829
13979
  typeArguments: [TypeDescriptor<T0> | string],
14830
13980
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
14831
13981
  const _args: any[] = [];
14832
- _args.push(
14833
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14834
- );
14835
- _args.push(
14836
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
14837
- );
13982
+ _args.push(transactionArgumentOrObject(args[0], tx));
13983
+ _args.push(transactionArgumentOrObject(args[1], tx));
14838
13984
 
14839
13985
  // @ts-ignore
14840
13986
  return tx.moveCall({
@@ -14874,10 +14020,8 @@ export namespace vec_set {
14874
14020
  typeArguments: [TypeDescriptor<T0> | string],
14875
14021
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
14876
14022
  const _args: any[] = [];
14877
- _args.push(
14878
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14879
- );
14880
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
14023
+ _args.push(transactionArgumentOrObject(args[0], tx));
14024
+ _args.push(transactionArgumentOrPure(args[1], tx));
14881
14025
 
14882
14026
  // @ts-ignore
14883
14027
  return tx.moveCall({
@@ -14896,7 +14040,7 @@ export namespace vec_set {
14896
14040
  typeArguments: [TypeDescriptor<T0> | string],
14897
14041
  ): TransactionArgument & [TransactionArgument] {
14898
14042
  const _args: any[] = [];
14899
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
14043
+ _args.push(transactionArgumentOrPure(args[0], tx));
14900
14044
 
14901
14045
  // @ts-ignore
14902
14046
  return tx.moveCall({
@@ -14915,9 +14059,7 @@ export namespace vec_set {
14915
14059
  typeArguments: [TypeDescriptor<T0> | string],
14916
14060
  ): TransactionArgument & [TransactionArgument] {
14917
14061
  const _args: any[] = [];
14918
- _args.push(
14919
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14920
- );
14062
+ _args.push(transactionArgumentOrObject(args[0], tx));
14921
14063
 
14922
14064
  // @ts-ignore
14923
14065
  return tx.moveCall({
@@ -14939,12 +14081,8 @@ export namespace vec_set {
14939
14081
  typeArguments: [TypeDescriptor<T0> | string],
14940
14082
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
14941
14083
  const _args: any[] = [];
14942
- _args.push(
14943
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14944
- );
14945
- _args.push(
14946
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
14947
- );
14084
+ _args.push(transactionArgumentOrObject(args[0], tx));
14085
+ _args.push(transactionArgumentOrObject(args[1], tx));
14948
14086
 
14949
14087
  // @ts-ignore
14950
14088
  return tx.moveCall({
@@ -14963,7 +14101,7 @@ export namespace vec_set {
14963
14101
  typeArguments: [TypeDescriptor<T0> | string],
14964
14102
  ): TransactionArgument & [TransactionArgument] {
14965
14103
  const _args: any[] = [];
14966
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
14104
+ _args.push(transactionArgumentOrPure(args[0], tx));
14967
14105
 
14968
14106
  // @ts-ignore
14969
14107
  return tx.moveCall({
@@ -14982,9 +14120,7 @@ export namespace vec_set {
14982
14120
  typeArguments: [TypeDescriptor<T0> | string],
14983
14121
  ): TransactionArgument & [TransactionArgument] {
14984
14122
  const _args: any[] = [];
14985
- _args.push(
14986
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
14987
- );
14123
+ _args.push(transactionArgumentOrObject(args[0], tx));
14988
14124
 
14989
14125
  // @ts-ignore
14990
14126
  return tx.moveCall({
@@ -15184,11 +14320,9 @@ export namespace versioned {
15184
14320
  ): TransactionArgument &
15185
14321
  [TransactionArgument, TransactionArgument, TransactionArgument] {
15186
14322
  const _args: any[] = [];
15187
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
15188
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
15189
- _args.push(
15190
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
15191
- );
14323
+ _args.push(transactionArgumentOrPure(args[0], tx));
14324
+ _args.push(transactionArgumentOrPure(args[1], tx));
14325
+ _args.push(transactionArgumentOrObject(args[2], tx));
15192
14326
 
15193
14327
  // @ts-ignore
15194
14328
  return tx.moveCall({
@@ -15207,7 +14341,7 @@ export namespace versioned {
15207
14341
  typeArguments: [TypeDescriptor<T0> | string],
15208
14342
  ): TransactionArgument & [TransactionArgument] {
15209
14343
  const _args: any[] = [];
15210
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
14344
+ _args.push(transactionArgumentOrPure(args[0], tx));
15211
14345
 
15212
14346
  // @ts-ignore
15213
14347
  return tx.moveCall({
@@ -15226,9 +14360,7 @@ export namespace versioned {
15226
14360
  typeArguments: [TypeDescriptor<T0> | string],
15227
14361
  ): TransactionArgument & [TransactionArgument] {
15228
14362
  const _args: any[] = [];
15229
- _args.push(
15230
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
15231
- );
14363
+ _args.push(transactionArgumentOrObject(args[0], tx));
15232
14364
 
15233
14365
  // @ts-ignore
15234
14366
  return tx.moveCall({
@@ -15247,9 +14379,7 @@ export namespace versioned {
15247
14379
  typeArguments: [TypeDescriptor<T0> | string],
15248
14380
  ): TransactionArgument & [TransactionArgument] {
15249
14381
  const _args: any[] = [];
15250
- _args.push(
15251
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
15252
- );
14382
+ _args.push(transactionArgumentOrObject(args[0], tx));
15253
14383
 
15254
14384
  // @ts-ignore
15255
14385
  return tx.moveCall({
@@ -15268,9 +14398,7 @@ export namespace versioned {
15268
14398
  typeArguments: [TypeDescriptor<T0> | string],
15269
14399
  ): TransactionArgument & [TransactionArgument] {
15270
14400
  const _args: any[] = [];
15271
- _args.push(
15272
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
15273
- );
14401
+ _args.push(transactionArgumentOrObject(args[0], tx));
15274
14402
 
15275
14403
  // @ts-ignore
15276
14404
  return tx.moveCall({
@@ -15300,12 +14428,10 @@ export namespace versioned {
15300
14428
  TransactionArgument,
15301
14429
  ] {
15302
14430
  const _args: any[] = [];
15303
- _args.push(
15304
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
15305
- );
15306
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
15307
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
15308
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
14431
+ _args.push(transactionArgumentOrObject(args[0], tx));
14432
+ _args.push(transactionArgumentOrPure(args[1], tx));
14433
+ _args.push(transactionArgumentOrPure(args[2], tx));
14434
+ _args.push(transactionArgumentOrPure(args[3], tx));
15309
14435
 
15310
14436
  // @ts-ignore
15311
14437
  return tx.moveCall({
@@ -15323,9 +14449,7 @@ export namespace versioned {
15323
14449
  args: [string | ObjectCallArg | TransactionArgument],
15324
14450
  ): TransactionArgument & [TransactionArgument] {
15325
14451
  const _args: any[] = [];
15326
- _args.push(
15327
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
15328
- );
14452
+ _args.push(transactionArgumentOrObject(args[0], tx));
15329
14453
 
15330
14454
  // @ts-ignore
15331
14455
  return tx.moveCall({