@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
  export namespace address {
22
30
  export namespace builder {
@@ -81,9 +89,7 @@ export namespace ascii {
81
89
  args: [string | ObjectCallArg | TransactionArgument],
82
90
  ): TransactionArgument & [TransactionArgument] {
83
91
  const _args: any[] = [];
84
- _args.push(
85
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
86
- );
92
+ _args.push(transactionArgumentOrObject(args[0], tx));
87
93
 
88
94
  // @ts-ignore
89
95
  return tx.moveCall({
@@ -96,9 +102,7 @@ export namespace ascii {
96
102
  args: [string | ObjectCallArg | TransactionArgument],
97
103
  ): TransactionArgument & [TransactionArgument] {
98
104
  const _args: any[] = [];
99
- _args.push(
100
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
101
- );
105
+ _args.push(transactionArgumentOrObject(args[0], tx));
102
106
 
103
107
  // @ts-ignore
104
108
  return tx.moveCall({
@@ -111,7 +115,7 @@ export namespace ascii {
111
115
  args: [ascii.Char | TransactionArgument],
112
116
  ): TransactionArgument & [TransactionArgument] {
113
117
  const _args: any[] = [];
114
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
118
+ _args.push(transactionArgumentOrPure(args[0], tx));
115
119
 
116
120
  // @ts-ignore
117
121
  return tx.moveCall({
@@ -124,7 +128,7 @@ export namespace ascii {
124
128
  args: [number | TransactionArgument],
125
129
  ): TransactionArgument & [TransactionArgument] {
126
130
  const _args: any[] = [];
127
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
131
+ _args.push(transactionArgumentOrPure(args[0], tx));
128
132
 
129
133
  // @ts-ignore
130
134
  return tx.moveCall({
@@ -137,7 +141,7 @@ export namespace ascii {
137
141
  args: [ascii.String | TransactionArgument],
138
142
  ): TransactionArgument & [TransactionArgument] {
139
143
  const _args: any[] = [];
140
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
144
+ _args.push(transactionArgumentOrPure(args[0], tx));
141
145
 
142
146
  // @ts-ignore
143
147
  return tx.moveCall({
@@ -150,7 +154,7 @@ export namespace ascii {
150
154
  args: [number | TransactionArgument],
151
155
  ): TransactionArgument & [TransactionArgument] {
152
156
  const _args: any[] = [];
153
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
157
+ _args.push(transactionArgumentOrPure(args[0], tx));
154
158
 
155
159
  // @ts-ignore
156
160
  return tx.moveCall({
@@ -163,7 +167,7 @@ export namespace ascii {
163
167
  args: [number | TransactionArgument],
164
168
  ): TransactionArgument & [TransactionArgument] {
165
169
  const _args: any[] = [];
166
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
170
+ _args.push(transactionArgumentOrPure(args[0], tx));
167
171
 
168
172
  // @ts-ignore
169
173
  return tx.moveCall({
@@ -176,9 +180,7 @@ export namespace ascii {
176
180
  args: [string | ObjectCallArg | TransactionArgument],
177
181
  ): TransactionArgument & [TransactionArgument] {
178
182
  const _args: any[] = [];
179
- _args.push(
180
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
181
- );
183
+ _args.push(transactionArgumentOrObject(args[0], tx));
182
184
 
183
185
  // @ts-ignore
184
186
  return tx.moveCall({
@@ -191,9 +193,7 @@ export namespace ascii {
191
193
  args: [string | ObjectCallArg | TransactionArgument],
192
194
  ): TransactionArgument & [TransactionArgument] {
193
195
  const _args: any[] = [];
194
- _args.push(
195
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
196
- );
196
+ _args.push(transactionArgumentOrObject(args[0], tx));
197
197
 
198
198
  // @ts-ignore
199
199
  return tx.moveCall({
@@ -209,10 +209,8 @@ export namespace ascii {
209
209
  ],
210
210
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
211
211
  const _args: any[] = [];
212
- _args.push(
213
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
214
- );
215
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
212
+ _args.push(transactionArgumentOrObject(args[0], tx));
213
+ _args.push(transactionArgumentOrPure(args[1], tx));
216
214
 
217
215
  // @ts-ignore
218
216
  return tx.moveCall({
@@ -225,14 +223,7 @@ export namespace ascii {
225
223
  args: [(string | ObjectCallArg)[] | TransactionArgument],
226
224
  ): TransactionArgument & [TransactionArgument] {
227
225
  const _args: any[] = [];
228
- _args.push(
229
- TransactionArgument.is(args[0])
230
- ? args[0]
231
- : tx.makeMoveVec({
232
- objects: args[0].map((a: any) => tx.object(a)),
233
- // type: TODO
234
- }),
235
- );
226
+ _args.push(transactionArgumentOrVec(args[0], tx));
236
227
 
237
228
  // @ts-ignore
238
229
  return tx.moveCall({
@@ -245,14 +236,7 @@ export namespace ascii {
245
236
  args: [(string | ObjectCallArg)[] | TransactionArgument],
246
237
  ): TransactionArgument & [TransactionArgument] {
247
238
  const _args: any[] = [];
248
- _args.push(
249
- TransactionArgument.is(args[0])
250
- ? args[0]
251
- : tx.makeMoveVec({
252
- objects: args[0].map((a: any) => tx.object(a)),
253
- // type: TODO
254
- }),
255
- );
239
+ _args.push(transactionArgumentOrVec(args[0], tx));
256
240
 
257
241
  // @ts-ignore
258
242
  return tx.moveCall({
@@ -456,9 +440,7 @@ export namespace bcs {
456
440
  typeArguments: [TypeDescriptor<T0> | string],
457
441
  ): TransactionArgument & [TransactionArgument] {
458
442
  const _args: any[] = [];
459
- _args.push(
460
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
461
- );
443
+ _args.push(transactionArgumentOrObject(args[0], tx));
462
444
 
463
445
  // @ts-ignore
464
446
  return tx.moveCall({
@@ -522,10 +504,8 @@ export namespace bit_vector {
522
504
  ],
523
505
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
524
506
  const _args: any[] = [];
525
- _args.push(
526
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
527
- );
528
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
507
+ _args.push(transactionArgumentOrObject(args[0], tx));
508
+ _args.push(transactionArgumentOrPure(args[1], tx));
529
509
 
530
510
  // @ts-ignore
531
511
  return tx.moveCall({
@@ -538,9 +518,7 @@ export namespace bit_vector {
538
518
  args: [string | ObjectCallArg | TransactionArgument],
539
519
  ): TransactionArgument & [TransactionArgument] {
540
520
  const _args: any[] = [];
541
- _args.push(
542
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
543
- );
521
+ _args.push(transactionArgumentOrObject(args[0], tx));
544
522
 
545
523
  // @ts-ignore
546
524
  return tx.moveCall({
@@ -556,10 +534,8 @@ export namespace bit_vector {
556
534
  ],
557
535
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
558
536
  const _args: any[] = [];
559
- _args.push(
560
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
561
- );
562
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
537
+ _args.push(transactionArgumentOrObject(args[0], tx));
538
+ _args.push(transactionArgumentOrPure(args[1], tx));
563
539
 
564
540
  // @ts-ignore
565
541
  return tx.moveCall({
@@ -572,7 +548,7 @@ export namespace bit_vector {
572
548
  args: [bigint | TransactionArgument],
573
549
  ): TransactionArgument & [TransactionArgument] {
574
550
  const _args: any[] = [];
575
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
551
+ _args.push(transactionArgumentOrPure(args[0], tx));
576
552
 
577
553
  // @ts-ignore
578
554
  return tx.moveCall({
@@ -588,10 +564,8 @@ export namespace bit_vector {
588
564
  ],
589
565
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
590
566
  const _args: any[] = [];
591
- _args.push(
592
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
593
- );
594
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
567
+ _args.push(transactionArgumentOrObject(args[0], tx));
568
+ _args.push(transactionArgumentOrPure(args[1], tx));
595
569
 
596
570
  // @ts-ignore
597
571
  return tx.moveCall({
@@ -607,10 +581,8 @@ export namespace bit_vector {
607
581
  ],
608
582
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
609
583
  const _args: any[] = [];
610
- _args.push(
611
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
612
- );
613
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
584
+ _args.push(transactionArgumentOrObject(args[0], tx));
585
+ _args.push(transactionArgumentOrPure(args[1], tx));
614
586
 
615
587
  // @ts-ignore
616
588
  return tx.moveCall({
@@ -626,10 +598,8 @@ export namespace bit_vector {
626
598
  ],
627
599
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
628
600
  const _args: any[] = [];
629
- _args.push(
630
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
631
- );
632
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
601
+ _args.push(transactionArgumentOrObject(args[0], tx));
602
+ _args.push(transactionArgumentOrPure(args[1], tx));
633
603
 
634
604
  // @ts-ignore
635
605
  return tx.moveCall({
@@ -770,9 +740,7 @@ export namespace debug {
770
740
  typeArguments: [TypeDescriptor<T0> | string],
771
741
  ): TransactionArgument & [TransactionArgument] {
772
742
  const _args: any[] = [];
773
- _args.push(
774
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
775
- );
743
+ _args.push(transactionArgumentOrObject(args[0], tx));
776
744
 
777
745
  // @ts-ignore
778
746
  return tx.moveCall({
@@ -860,8 +828,8 @@ export namespace fixed_point32 {
860
828
  args: [bigint | TransactionArgument, bigint | TransactionArgument],
861
829
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
862
830
  const _args: any[] = [];
863
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
864
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
831
+ _args.push(transactionArgumentOrPure(args[0], tx));
832
+ _args.push(transactionArgumentOrPure(args[1], tx));
865
833
 
866
834
  // @ts-ignore
867
835
  return tx.moveCall({
@@ -874,7 +842,7 @@ export namespace fixed_point32 {
874
842
  args: [bigint | TransactionArgument],
875
843
  ): TransactionArgument & [TransactionArgument] {
876
844
  const _args: any[] = [];
877
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
845
+ _args.push(transactionArgumentOrPure(args[0], tx));
878
846
 
879
847
  // @ts-ignore
880
848
  return tx.moveCall({
@@ -890,8 +858,8 @@ export namespace fixed_point32 {
890
858
  ],
891
859
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
892
860
  const _args: any[] = [];
893
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
894
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
861
+ _args.push(transactionArgumentOrPure(args[0], tx));
862
+ _args.push(transactionArgumentOrPure(args[1], tx));
895
863
 
896
864
  // @ts-ignore
897
865
  return tx.moveCall({
@@ -904,7 +872,7 @@ export namespace fixed_point32 {
904
872
  args: [fixed_point32.FixedPoint32 | TransactionArgument],
905
873
  ): TransactionArgument & [TransactionArgument] {
906
874
  const _args: any[] = [];
907
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
875
+ _args.push(transactionArgumentOrPure(args[0], tx));
908
876
 
909
877
  // @ts-ignore
910
878
  return tx.moveCall({
@@ -917,7 +885,7 @@ export namespace fixed_point32 {
917
885
  args: [fixed_point32.FixedPoint32 | TransactionArgument],
918
886
  ): TransactionArgument & [TransactionArgument] {
919
887
  const _args: any[] = [];
920
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
888
+ _args.push(transactionArgumentOrPure(args[0], tx));
921
889
 
922
890
  // @ts-ignore
923
891
  return tx.moveCall({
@@ -933,8 +901,8 @@ export namespace fixed_point32 {
933
901
  ],
934
902
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
935
903
  const _args: any[] = [];
936
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
937
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
904
+ _args.push(transactionArgumentOrPure(args[0], tx));
905
+ _args.push(transactionArgumentOrPure(args[1], tx));
938
906
 
939
907
  // @ts-ignore
940
908
  return tx.moveCall({
@@ -1050,14 +1018,7 @@ export namespace hash {
1050
1018
  args: [(string | ObjectCallArg)[] | TransactionArgument],
1051
1019
  ): TransactionArgument & [TransactionArgument] {
1052
1020
  const _args: any[] = [];
1053
- _args.push(
1054
- TransactionArgument.is(args[0])
1055
- ? args[0]
1056
- : tx.makeMoveVec({
1057
- objects: args[0].map((a: any) => tx.object(a)),
1058
- // type: TODO
1059
- }),
1060
- );
1021
+ _args.push(transactionArgumentOrVec(args[0], tx));
1061
1022
 
1062
1023
  // @ts-ignore
1063
1024
  return tx.moveCall({
@@ -1070,14 +1031,7 @@ export namespace hash {
1070
1031
  args: [(string | ObjectCallArg)[] | TransactionArgument],
1071
1032
  ): TransactionArgument & [TransactionArgument] {
1072
1033
  const _args: any[] = [];
1073
- _args.push(
1074
- TransactionArgument.is(args[0])
1075
- ? args[0]
1076
- : tx.makeMoveVec({
1077
- objects: args[0].map((a: any) => tx.object(a)),
1078
- // type: TODO
1079
- }),
1080
- );
1034
+ _args.push(transactionArgumentOrVec(args[0], tx));
1081
1035
 
1082
1036
  // @ts-ignore
1083
1037
  return tx.moveCall({
@@ -1141,9 +1095,7 @@ export namespace option {
1141
1095
  typeArguments: [TypeDescriptor<T0> | string],
1142
1096
  ): TransactionArgument & [TransactionArgument] {
1143
1097
  const _args: any[] = [];
1144
- _args.push(
1145
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1146
- );
1098
+ _args.push(transactionArgumentOrObject(args[0], tx));
1147
1099
 
1148
1100
  // @ts-ignore
1149
1101
  return tx.moveCall({
@@ -1162,9 +1114,7 @@ export namespace option {
1162
1114
  typeArguments: [TypeDescriptor<T0> | string],
1163
1115
  ): TransactionArgument & [TransactionArgument] {
1164
1116
  const _args: any[] = [];
1165
- _args.push(
1166
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1167
- );
1117
+ _args.push(transactionArgumentOrObject(args[0], tx));
1168
1118
 
1169
1119
  // @ts-ignore
1170
1120
  return tx.moveCall({
@@ -1186,12 +1136,8 @@ export namespace option {
1186
1136
  typeArguments: [TypeDescriptor<T0> | string],
1187
1137
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1188
1138
  const _args: any[] = [];
1189
- _args.push(
1190
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1191
- );
1192
- _args.push(
1193
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1194
- );
1139
+ _args.push(transactionArgumentOrObject(args[0], tx));
1140
+ _args.push(transactionArgumentOrObject(args[1], tx));
1195
1141
 
1196
1142
  // @ts-ignore
1197
1143
  return tx.moveCall({
@@ -1213,12 +1159,8 @@ export namespace option {
1213
1159
  typeArguments: [TypeDescriptor<T0> | string],
1214
1160
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1215
1161
  const _args: any[] = [];
1216
- _args.push(
1217
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1218
- );
1219
- _args.push(
1220
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1221
- );
1162
+ _args.push(transactionArgumentOrObject(args[0], tx));
1163
+ _args.push(transactionArgumentOrObject(args[1], tx));
1222
1164
 
1223
1165
  // @ts-ignore
1224
1166
  return tx.moveCall({
@@ -1237,7 +1179,7 @@ export namespace option {
1237
1179
  typeArguments: [TypeDescriptor<T0> | string],
1238
1180
  ): TransactionArgument & [TransactionArgument] {
1239
1181
  const _args: any[] = [];
1240
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1182
+ _args.push(transactionArgumentOrPure(args[0], tx));
1241
1183
 
1242
1184
  // @ts-ignore
1243
1185
  return tx.moveCall({
@@ -1256,7 +1198,7 @@ export namespace option {
1256
1198
  typeArguments: [TypeDescriptor<T0> | string],
1257
1199
  ): TransactionArgument & [TransactionArgument] {
1258
1200
  const _args: any[] = [];
1259
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1201
+ _args.push(transactionArgumentOrPure(args[0], tx));
1260
1202
 
1261
1203
  // @ts-ignore
1262
1204
  return tx.moveCall({
@@ -1275,8 +1217,8 @@ export namespace option {
1275
1217
  typeArguments: [TypeDescriptor<T0> | string],
1276
1218
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1277
1219
  const _args: any[] = [];
1278
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1279
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1220
+ _args.push(transactionArgumentOrPure(args[0], tx));
1221
+ _args.push(transactionArgumentOrPure(args[1], tx));
1280
1222
 
1281
1223
  // @ts-ignore
1282
1224
  return tx.moveCall({
@@ -1295,9 +1237,7 @@ export namespace option {
1295
1237
  typeArguments: [TypeDescriptor<T0> | string],
1296
1238
  ): TransactionArgument & [TransactionArgument] {
1297
1239
  const _args: any[] = [];
1298
- _args.push(
1299
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1300
- );
1240
+ _args.push(transactionArgumentOrObject(args[0], tx));
1301
1241
 
1302
1242
  // @ts-ignore
1303
1243
  return tx.moveCall({
@@ -1319,10 +1259,8 @@ export namespace option {
1319
1259
  typeArguments: [TypeDescriptor<T0> | string],
1320
1260
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1321
1261
  const _args: any[] = [];
1322
- _args.push(
1323
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1324
- );
1325
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1262
+ _args.push(transactionArgumentOrObject(args[0], tx));
1263
+ _args.push(transactionArgumentOrPure(args[1], tx));
1326
1264
 
1327
1265
  // @ts-ignore
1328
1266
  return tx.moveCall({
@@ -1344,10 +1282,8 @@ export namespace option {
1344
1282
  typeArguments: [TypeDescriptor<T0> | string],
1345
1283
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1346
1284
  const _args: any[] = [];
1347
- _args.push(
1348
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1349
- );
1350
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1285
+ _args.push(transactionArgumentOrObject(args[0], tx));
1286
+ _args.push(transactionArgumentOrPure(args[1], tx));
1351
1287
 
1352
1288
  // @ts-ignore
1353
1289
  return tx.moveCall({
@@ -1366,9 +1302,7 @@ export namespace option {
1366
1302
  typeArguments: [TypeDescriptor<T0> | string],
1367
1303
  ): TransactionArgument & [TransactionArgument] {
1368
1304
  const _args: any[] = [];
1369
- _args.push(
1370
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1371
- );
1305
+ _args.push(transactionArgumentOrObject(args[0], tx));
1372
1306
 
1373
1307
  // @ts-ignore
1374
1308
  return tx.moveCall({
@@ -1387,9 +1321,7 @@ export namespace option {
1387
1321
  typeArguments: [TypeDescriptor<T0> | string],
1388
1322
  ): TransactionArgument & [TransactionArgument] {
1389
1323
  const _args: any[] = [];
1390
- _args.push(
1391
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1392
- );
1324
+ _args.push(transactionArgumentOrObject(args[0], tx));
1393
1325
 
1394
1326
  // @ts-ignore
1395
1327
  return tx.moveCall({
@@ -1426,7 +1358,7 @@ export namespace option {
1426
1358
  typeArguments: [TypeDescriptor<T0> | string],
1427
1359
  ): TransactionArgument & [TransactionArgument] {
1428
1360
  const _args: any[] = [];
1429
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1361
+ _args.push(transactionArgumentOrPure(args[0], tx));
1430
1362
 
1431
1363
  // @ts-ignore
1432
1364
  return tx.moveCall({
@@ -1448,10 +1380,8 @@ export namespace option {
1448
1380
  typeArguments: [TypeDescriptor<T0> | string],
1449
1381
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1450
1382
  const _args: any[] = [];
1451
- _args.push(
1452
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1453
- );
1454
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1383
+ _args.push(transactionArgumentOrObject(args[0], tx));
1384
+ _args.push(transactionArgumentOrPure(args[1], tx));
1455
1385
 
1456
1386
  // @ts-ignore
1457
1387
  return tx.moveCall({
@@ -1473,10 +1403,8 @@ export namespace option {
1473
1403
  typeArguments: [TypeDescriptor<T0> | string],
1474
1404
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1475
1405
  const _args: any[] = [];
1476
- _args.push(
1477
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1478
- );
1479
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1406
+ _args.push(transactionArgumentOrObject(args[0], tx));
1407
+ _args.push(transactionArgumentOrPure(args[1], tx));
1480
1408
 
1481
1409
  // @ts-ignore
1482
1410
  return tx.moveCall({
@@ -1495,7 +1423,7 @@ export namespace option {
1495
1423
  typeArguments: [TypeDescriptor<T0> | string],
1496
1424
  ): TransactionArgument & [TransactionArgument] {
1497
1425
  const _args: any[] = [];
1498
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1426
+ _args.push(transactionArgumentOrPure(args[0], tx));
1499
1427
 
1500
1428
  // @ts-ignore
1501
1429
  return tx.moveCall({
@@ -1832,10 +1760,8 @@ export namespace string_ {
1832
1760
  ],
1833
1761
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1834
1762
  const _args: any[] = [];
1835
- _args.push(
1836
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1837
- );
1838
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1763
+ _args.push(transactionArgumentOrObject(args[0], tx));
1764
+ _args.push(transactionArgumentOrPure(args[1], tx));
1839
1765
 
1840
1766
  // @ts-ignore
1841
1767
  return tx.moveCall({
@@ -1851,17 +1777,8 @@ export namespace string_ {
1851
1777
  ],
1852
1778
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1853
1779
  const _args: any[] = [];
1854
- _args.push(
1855
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1856
- );
1857
- _args.push(
1858
- TransactionArgument.is(args[1])
1859
- ? args[1]
1860
- : tx.makeMoveVec({
1861
- objects: args[1].map((a: any) => tx.object(a)),
1862
- // type: TODO
1863
- }),
1864
- );
1780
+ _args.push(transactionArgumentOrObject(args[0], tx));
1781
+ _args.push(transactionArgumentOrVec(args[1], tx));
1865
1782
 
1866
1783
  // @ts-ignore
1867
1784
  return tx.moveCall({
@@ -1874,9 +1791,7 @@ export namespace string_ {
1874
1791
  args: [string | ObjectCallArg | TransactionArgument],
1875
1792
  ): TransactionArgument & [TransactionArgument] {
1876
1793
  const _args: any[] = [];
1877
- _args.push(
1878
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1879
- );
1794
+ _args.push(transactionArgumentOrObject(args[0], tx));
1880
1795
 
1881
1796
  // @ts-ignore
1882
1797
  return tx.moveCall({
@@ -1889,7 +1804,7 @@ export namespace string_ {
1889
1804
  args: [ascii.String | TransactionArgument],
1890
1805
  ): TransactionArgument & [TransactionArgument] {
1891
1806
  const _args: any[] = [];
1892
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1807
+ _args.push(transactionArgumentOrPure(args[0], tx));
1893
1808
 
1894
1809
  // @ts-ignore
1895
1810
  return tx.moveCall({
@@ -1905,12 +1820,8 @@ export namespace string_ {
1905
1820
  ],
1906
1821
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1907
1822
  const _args: any[] = [];
1908
- _args.push(
1909
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1910
- );
1911
- _args.push(
1912
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1913
- );
1823
+ _args.push(transactionArgumentOrObject(args[0], tx));
1824
+ _args.push(transactionArgumentOrObject(args[1], tx));
1914
1825
 
1915
1826
  // @ts-ignore
1916
1827
  return tx.moveCall({
@@ -1928,11 +1839,9 @@ export namespace string_ {
1928
1839
  ): TransactionArgument &
1929
1840
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1930
1841
  const _args: any[] = [];
1931
- _args.push(
1932
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1933
- );
1934
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1935
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1842
+ _args.push(transactionArgumentOrObject(args[0], tx));
1843
+ _args.push(transactionArgumentOrPure(args[1], tx));
1844
+ _args.push(transactionArgumentOrPure(args[2], tx));
1936
1845
 
1937
1846
  // @ts-ignore
1938
1847
  return tx.moveCall({
@@ -1945,9 +1854,7 @@ export namespace string_ {
1945
1854
  args: [string | ObjectCallArg | TransactionArgument],
1946
1855
  ): TransactionArgument & [TransactionArgument] {
1947
1856
  const _args: any[] = [];
1948
- _args.push(
1949
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1950
- );
1857
+ _args.push(transactionArgumentOrObject(args[0], tx));
1951
1858
 
1952
1859
  // @ts-ignore
1953
1860
  return tx.moveCall({
@@ -1960,9 +1867,7 @@ export namespace string_ {
1960
1867
  args: [string | ObjectCallArg | TransactionArgument],
1961
1868
  ): TransactionArgument & [TransactionArgument] {
1962
1869
  const _args: any[] = [];
1963
- _args.push(
1964
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1965
- );
1870
+ _args.push(transactionArgumentOrObject(args[0], tx));
1966
1871
 
1967
1872
  // @ts-ignore
1968
1873
  return tx.moveCall({
@@ -1980,11 +1885,9 @@ export namespace string_ {
1980
1885
  ): TransactionArgument &
1981
1886
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1982
1887
  const _args: any[] = [];
1983
- _args.push(
1984
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1985
- );
1986
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1987
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1888
+ _args.push(transactionArgumentOrObject(args[0], tx));
1889
+ _args.push(transactionArgumentOrPure(args[1], tx));
1890
+ _args.push(transactionArgumentOrPure(args[2], tx));
1988
1891
 
1989
1892
  // @ts-ignore
1990
1893
  return tx.moveCall({
@@ -1997,7 +1900,7 @@ export namespace string_ {
1997
1900
  args: [string | TransactionArgument],
1998
1901
  ): TransactionArgument & [TransactionArgument] {
1999
1902
  const _args: any[] = [];
2000
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1903
+ _args.push(transactionArgumentOrPure(args[0], tx));
2001
1904
 
2002
1905
  // @ts-ignore
2003
1906
  return tx.moveCall({
@@ -2010,14 +1913,7 @@ export namespace string_ {
2010
1913
  args: [(string | ObjectCallArg)[] | TransactionArgument],
2011
1914
  ): TransactionArgument & [TransactionArgument] {
2012
1915
  const _args: any[] = [];
2013
- _args.push(
2014
- TransactionArgument.is(args[0])
2015
- ? args[0]
2016
- : tx.makeMoveVec({
2017
- objects: args[0].map((a: any) => tx.object(a)),
2018
- // type: TODO
2019
- }),
2020
- );
1916
+ _args.push(transactionArgumentOrVec(args[0], tx));
2021
1917
 
2022
1918
  // @ts-ignore
2023
1919
  return tx.moveCall({
@@ -2030,14 +1926,7 @@ export namespace string_ {
2030
1926
  args: [(string | ObjectCallArg)[] | TransactionArgument],
2031
1927
  ): TransactionArgument & [TransactionArgument] {
2032
1928
  const _args: any[] = [];
2033
- _args.push(
2034
- TransactionArgument.is(args[0])
2035
- ? args[0]
2036
- : tx.makeMoveVec({
2037
- objects: args[0].map((a: any) => tx.object(a)),
2038
- // type: TODO
2039
- }),
2040
- );
1929
+ _args.push(transactionArgumentOrVec(args[0], tx));
2041
1930
 
2042
1931
  // @ts-ignore
2043
1932
  return tx.moveCall({
@@ -2273,9 +2162,7 @@ export namespace type_name {
2273
2162
  args: [string | ObjectCallArg | TransactionArgument],
2274
2163
  ): TransactionArgument & [TransactionArgument] {
2275
2164
  const _args: any[] = [];
2276
- _args.push(
2277
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2278
- );
2165
+ _args.push(transactionArgumentOrObject(args[0], tx));
2279
2166
 
2280
2167
  // @ts-ignore
2281
2168
  return tx.moveCall({
@@ -2306,9 +2193,7 @@ export namespace type_name {
2306
2193
  args: [string | ObjectCallArg | TransactionArgument],
2307
2194
  ): TransactionArgument & [TransactionArgument] {
2308
2195
  const _args: any[] = [];
2309
- _args.push(
2310
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2311
- );
2196
+ _args.push(transactionArgumentOrObject(args[0], tx));
2312
2197
 
2313
2198
  // @ts-ignore
2314
2199
  return tx.moveCall({
@@ -2321,9 +2206,7 @@ export namespace type_name {
2321
2206
  args: [string | ObjectCallArg | TransactionArgument],
2322
2207
  ): TransactionArgument & [TransactionArgument] {
2323
2208
  const _args: any[] = [];
2324
- _args.push(
2325
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2326
- );
2209
+ _args.push(transactionArgumentOrObject(args[0], tx));
2327
2210
 
2328
2211
  // @ts-ignore
2329
2212
  return tx.moveCall({
@@ -2336,7 +2219,7 @@ export namespace type_name {
2336
2219
  args: [type_name.TypeName | TransactionArgument],
2337
2220
  ): TransactionArgument & [TransactionArgument] {
2338
2221
  const _args: any[] = [];
2339
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
2222
+ _args.push(transactionArgumentOrPure(args[0], tx));
2340
2223
 
2341
2224
  // @ts-ignore
2342
2225
  return tx.moveCall({
@@ -2436,17 +2319,8 @@ export namespace vector {
2436
2319
  typeArguments: [TypeDescriptor<T0> | string],
2437
2320
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2438
2321
  const _args: any[] = [];
2439
- _args.push(
2440
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2441
- );
2442
- _args.push(
2443
- TransactionArgument.is(args[1])
2444
- ? args[1]
2445
- : tx.makeMoveVec({
2446
- objects: args[1].map((a: any) => tx.object(a)),
2447
- // type: TODO
2448
- }),
2449
- );
2322
+ _args.push(transactionArgumentOrObject(args[0], tx));
2323
+ _args.push(transactionArgumentOrVec(args[1], tx));
2450
2324
 
2451
2325
  // @ts-ignore
2452
2326
  return tx.moveCall({
@@ -2468,10 +2342,8 @@ export namespace vector {
2468
2342
  typeArguments: [TypeDescriptor<T0> | string],
2469
2343
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2470
2344
  const _args: any[] = [];
2471
- _args.push(
2472
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2473
- );
2474
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2345
+ _args.push(transactionArgumentOrObject(args[0], tx));
2346
+ _args.push(transactionArgumentOrPure(args[1], tx));
2475
2347
 
2476
2348
  // @ts-ignore
2477
2349
  return tx.moveCall({
@@ -2493,10 +2365,8 @@ export namespace vector {
2493
2365
  typeArguments: [TypeDescriptor<T0> | string],
2494
2366
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2495
2367
  const _args: any[] = [];
2496
- _args.push(
2497
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2498
- );
2499
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2368
+ _args.push(transactionArgumentOrObject(args[0], tx));
2369
+ _args.push(transactionArgumentOrPure(args[1], tx));
2500
2370
 
2501
2371
  // @ts-ignore
2502
2372
  return tx.moveCall({
@@ -2518,12 +2388,8 @@ export namespace vector {
2518
2388
  typeArguments: [TypeDescriptor<T0> | string],
2519
2389
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2520
2390
  const _args: any[] = [];
2521
- _args.push(
2522
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2523
- );
2524
- _args.push(
2525
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
2526
- );
2391
+ _args.push(transactionArgumentOrObject(args[0], tx));
2392
+ _args.push(transactionArgumentOrObject(args[1], tx));
2527
2393
 
2528
2394
  // @ts-ignore
2529
2395
  return tx.moveCall({
@@ -2542,14 +2408,7 @@ export namespace vector {
2542
2408
  typeArguments: [TypeDescriptor<T0> | string],
2543
2409
  ): TransactionArgument & [TransactionArgument] {
2544
2410
  const _args: any[] = [];
2545
- _args.push(
2546
- TransactionArgument.is(args[0])
2547
- ? args[0]
2548
- : tx.makeMoveVec({
2549
- objects: args[0].map((a: any) => tx.object(a)),
2550
- // type: TODO
2551
- }),
2552
- );
2411
+ _args.push(transactionArgumentOrVec(args[0], tx));
2553
2412
 
2554
2413
  // @ts-ignore
2555
2414
  return tx.moveCall({
@@ -2589,12 +2448,8 @@ export namespace vector {
2589
2448
  typeArguments: [TypeDescriptor<T0> | string],
2590
2449
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2591
2450
  const _args: any[] = [];
2592
- _args.push(
2593
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2594
- );
2595
- _args.push(
2596
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
2597
- );
2451
+ _args.push(transactionArgumentOrObject(args[0], tx));
2452
+ _args.push(transactionArgumentOrObject(args[1], tx));
2598
2453
 
2599
2454
  // @ts-ignore
2600
2455
  return tx.moveCall({
@@ -2618,11 +2473,9 @@ export namespace vector {
2618
2473
  ): TransactionArgument &
2619
2474
  [TransactionArgument, TransactionArgument, TransactionArgument] {
2620
2475
  const _args: any[] = [];
2621
- _args.push(
2622
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2623
- );
2624
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2625
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
2476
+ _args.push(transactionArgumentOrObject(args[0], tx));
2477
+ _args.push(transactionArgumentOrPure(args[1], tx));
2478
+ _args.push(transactionArgumentOrPure(args[2], tx));
2626
2479
 
2627
2480
  // @ts-ignore
2628
2481
  return tx.moveCall({
@@ -2641,9 +2494,7 @@ export namespace vector {
2641
2494
  typeArguments: [TypeDescriptor<T0> | string],
2642
2495
  ): TransactionArgument & [TransactionArgument] {
2643
2496
  const _args: any[] = [];
2644
- _args.push(
2645
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2646
- );
2497
+ _args.push(transactionArgumentOrObject(args[0], tx));
2647
2498
 
2648
2499
  // @ts-ignore
2649
2500
  return tx.moveCall({
@@ -2662,9 +2513,7 @@ export namespace vector {
2662
2513
  typeArguments: [TypeDescriptor<T0> | string],
2663
2514
  ): TransactionArgument & [TransactionArgument] {
2664
2515
  const _args: any[] = [];
2665
- _args.push(
2666
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2667
- );
2516
+ _args.push(transactionArgumentOrObject(args[0], tx));
2668
2517
 
2669
2518
  // @ts-ignore
2670
2519
  return tx.moveCall({
@@ -2683,9 +2532,7 @@ export namespace vector {
2683
2532
  typeArguments: [TypeDescriptor<T0> | string],
2684
2533
  ): TransactionArgument & [TransactionArgument] {
2685
2534
  const _args: any[] = [];
2686
- _args.push(
2687
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2688
- );
2535
+ _args.push(transactionArgumentOrObject(args[0], tx));
2689
2536
 
2690
2537
  // @ts-ignore
2691
2538
  return tx.moveCall({
@@ -2707,10 +2554,8 @@ export namespace vector {
2707
2554
  typeArguments: [TypeDescriptor<T0> | string],
2708
2555
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2709
2556
  const _args: any[] = [];
2710
- _args.push(
2711
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2712
- );
2713
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2557
+ _args.push(transactionArgumentOrObject(args[0], tx));
2558
+ _args.push(transactionArgumentOrPure(args[1], tx));
2714
2559
 
2715
2560
  // @ts-ignore
2716
2561
  return tx.moveCall({
@@ -2732,10 +2577,8 @@ export namespace vector {
2732
2577
  typeArguments: [TypeDescriptor<T0> | string],
2733
2578
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2734
2579
  const _args: any[] = [];
2735
- _args.push(
2736
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2737
- );
2738
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2580
+ _args.push(transactionArgumentOrObject(args[0], tx));
2581
+ _args.push(transactionArgumentOrPure(args[1], tx));
2739
2582
 
2740
2583
  // @ts-ignore
2741
2584
  return tx.moveCall({
@@ -2754,9 +2597,7 @@ export namespace vector {
2754
2597
  typeArguments: [TypeDescriptor<T0> | string],
2755
2598
  ): TransactionArgument & [TransactionArgument] {
2756
2599
  const _args: any[] = [];
2757
- _args.push(
2758
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2759
- );
2600
+ _args.push(transactionArgumentOrObject(args[0], tx));
2760
2601
 
2761
2602
  // @ts-ignore
2762
2603
  return tx.moveCall({
@@ -2775,7 +2616,7 @@ export namespace vector {
2775
2616
  typeArguments: [TypeDescriptor<T0> | string],
2776
2617
  ): TransactionArgument & [TransactionArgument] {
2777
2618
  const _args: any[] = [];
2778
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
2619
+ _args.push(transactionArgumentOrPure(args[0], tx));
2779
2620
 
2780
2621
  // @ts-ignore
2781
2622
  return tx.moveCall({
@@ -2799,11 +2640,9 @@ export namespace vector {
2799
2640
  ): TransactionArgument &
2800
2641
  [TransactionArgument, TransactionArgument, TransactionArgument] {
2801
2642
  const _args: any[] = [];
2802
- _args.push(
2803
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2804
- );
2805
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2806
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
2643
+ _args.push(transactionArgumentOrObject(args[0], tx));
2644
+ _args.push(transactionArgumentOrPure(args[1], tx));
2645
+ _args.push(transactionArgumentOrPure(args[2], tx));
2807
2646
 
2808
2647
  // @ts-ignore
2809
2648
  return tx.moveCall({
@@ -2825,10 +2664,8 @@ export namespace vector {
2825
2664
  typeArguments: [TypeDescriptor<T0> | string],
2826
2665
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2827
2666
  const _args: any[] = [];
2828
- _args.push(
2829
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2830
- );
2831
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2667
+ _args.push(transactionArgumentOrObject(args[0], tx));
2668
+ _args.push(transactionArgumentOrPure(args[1], tx));
2832
2669
 
2833
2670
  // @ts-ignore
2834
2671
  return tx.moveCall({