@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 { _0x2 } from "@typemove/sui/builtin";
22
30
  import { _0x1 } from "@typemove/sui/builtin";
@@ -47,12 +55,8 @@ export namespace comparator {
47
55
  typeArguments: [TypeDescriptor<T0> | string],
48
56
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
49
57
  const _args: any[] = [];
50
- _args.push(
51
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
52
- );
53
- _args.push(
54
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
55
- );
58
+ _args.push(transactionArgumentOrObject(args[0], tx));
59
+ _args.push(transactionArgumentOrObject(args[1], tx));
56
60
 
57
61
  // @ts-ignore
58
62
  return tx.moveCall({
@@ -74,22 +78,8 @@ export namespace comparator {
74
78
  ],
75
79
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
76
80
  const _args: any[] = [];
77
- _args.push(
78
- TransactionArgument.is(args[0])
79
- ? args[0]
80
- : tx.makeMoveVec({
81
- objects: args[0].map((a: any) => tx.object(a)),
82
- // type: TODO
83
- }),
84
- );
85
- _args.push(
86
- TransactionArgument.is(args[1])
87
- ? args[1]
88
- : tx.makeMoveVec({
89
- objects: args[1].map((a: any) => tx.object(a)),
90
- // type: TODO
91
- }),
92
- );
81
+ _args.push(transactionArgumentOrVec(args[0], tx));
82
+ _args.push(transactionArgumentOrVec(args[1], tx));
93
83
 
94
84
  // @ts-ignore
95
85
  return tx.moveCall({
@@ -103,9 +93,7 @@ export namespace comparator {
103
93
  args: [string | ObjectCallArg | TransactionArgument],
104
94
  ): TransactionArgument & [TransactionArgument] {
105
95
  const _args: any[] = [];
106
- _args.push(
107
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
108
- );
96
+ _args.push(transactionArgumentOrObject(args[0], tx));
109
97
 
110
98
  // @ts-ignore
111
99
  return tx.moveCall({
@@ -119,9 +107,7 @@ export namespace comparator {
119
107
  args: [string | ObjectCallArg | TransactionArgument],
120
108
  ): TransactionArgument & [TransactionArgument] {
121
109
  const _args: any[] = [];
122
- _args.push(
123
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
124
- );
110
+ _args.push(transactionArgumentOrObject(args[0], tx));
125
111
 
126
112
  // @ts-ignore
127
113
  return tx.moveCall({
@@ -135,9 +121,7 @@ export namespace comparator {
135
121
  args: [string | ObjectCallArg | TransactionArgument],
136
122
  ): TransactionArgument & [TransactionArgument] {
137
123
  const _args: any[] = [];
138
- _args.push(
139
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
140
- );
124
+ _args.push(transactionArgumentOrObject(args[0], tx));
141
125
 
142
126
  // @ts-ignore
143
127
  return tx.moveCall({
@@ -240,8 +224,8 @@ export namespace math_utils {
240
224
  args: [bigint | TransactionArgument, bigint | TransactionArgument],
241
225
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
242
226
  const _args: any[] = [];
243
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
244
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
227
+ _args.push(transactionArgumentOrPure(args[0], tx));
228
+ _args.push(transactionArgumentOrPure(args[1], tx));
245
229
 
246
230
  // @ts-ignore
247
231
  return tx.moveCall({
@@ -255,8 +239,8 @@ export namespace math_utils {
255
239
  args: [bigint | TransactionArgument, bigint | TransactionArgument],
256
240
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
257
241
  const _args: any[] = [];
258
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
259
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
242
+ _args.push(transactionArgumentOrPure(args[0], tx));
243
+ _args.push(transactionArgumentOrPure(args[1], tx));
260
244
 
261
245
  // @ts-ignore
262
246
  return tx.moveCall({
@@ -270,8 +254,8 @@ export namespace math_utils {
270
254
  args: [bigint | TransactionArgument, bigint | TransactionArgument],
271
255
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
272
256
  const _args: any[] = [];
273
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
274
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
257
+ _args.push(transactionArgumentOrPure(args[0], tx));
258
+ _args.push(transactionArgumentOrPure(args[1], tx));
275
259
 
276
260
  // @ts-ignore
277
261
  return tx.moveCall({
@@ -285,8 +269,8 @@ export namespace math_utils {
285
269
  args: [bigint | TransactionArgument, number | TransactionArgument],
286
270
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
287
271
  const _args: any[] = [];
288
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
289
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
272
+ _args.push(transactionArgumentOrPure(args[0], tx));
273
+ _args.push(transactionArgumentOrPure(args[1], tx));
290
274
 
291
275
  // @ts-ignore
292
276
  return tx.moveCall({
@@ -300,7 +284,7 @@ export namespace math_utils {
300
284
  args: [bigint | TransactionArgument],
301
285
  ): TransactionArgument & [TransactionArgument] {
302
286
  const _args: any[] = [];
303
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
287
+ _args.push(transactionArgumentOrPure(args[0], tx));
304
288
 
305
289
  // @ts-ignore
306
290
  return tx.moveCall({
@@ -314,7 +298,7 @@ export namespace math_utils {
314
298
  args: [bigint | TransactionArgument],
315
299
  ): TransactionArgument & [TransactionArgument] {
316
300
  const _args: any[] = [];
317
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
301
+ _args.push(transactionArgumentOrPure(args[0], tx));
318
302
 
319
303
  // @ts-ignore
320
304
  return tx.moveCall({
@@ -684,22 +668,14 @@ export namespace pool {
684
668
  TransactionArgument,
685
669
  ] {
686
670
  const _args: any[] = [];
687
- _args.push(
688
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
689
- );
690
- _args.push(
691
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
692
- );
693
- _args.push(
694
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
695
- );
696
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
697
- _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
698
- _args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
699
- _args.push(TransactionArgument.is(args[6]) ? args[6] : tx.pure(args[6]));
700
- _args.push(
701
- TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7]),
702
- );
671
+ _args.push(transactionArgumentOrObject(args[0], tx));
672
+ _args.push(transactionArgumentOrObject(args[1], tx));
673
+ _args.push(transactionArgumentOrObject(args[2], tx));
674
+ _args.push(transactionArgumentOrPure(args[3], tx));
675
+ _args.push(transactionArgumentOrPure(args[4], tx));
676
+ _args.push(transactionArgumentOrPure(args[5], tx));
677
+ _args.push(transactionArgumentOrPure(args[6], tx));
678
+ _args.push(transactionArgumentOrObject(args[7], tx));
703
679
 
704
680
  // @ts-ignore
705
681
  return tx.moveCall({
@@ -722,9 +698,7 @@ export namespace pool {
722
698
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
723
699
  ): TransactionArgument & [TransactionArgument] {
724
700
  const _args: any[] = [];
725
- _args.push(
726
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
727
- );
701
+ _args.push(transactionArgumentOrObject(args[0], tx));
728
702
 
729
703
  // @ts-ignore
730
704
  return tx.moveCall({
@@ -747,9 +721,7 @@ export namespace pool {
747
721
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
748
722
  ): TransactionArgument & [TransactionArgument] {
749
723
  const _args: any[] = [];
750
- _args.push(
751
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
752
- );
724
+ _args.push(transactionArgumentOrObject(args[0], tx));
753
725
 
754
726
  // @ts-ignore
755
727
  return tx.moveCall({
@@ -787,20 +759,12 @@ export namespace pool {
787
759
  TransactionArgument,
788
760
  ] {
789
761
  const _args: any[] = [];
790
- _args.push(
791
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
792
- );
793
- _args.push(
794
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
795
- );
796
- _args.push(
797
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
798
- );
799
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
800
- _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
801
- _args.push(
802
- TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]),
803
- );
762
+ _args.push(transactionArgumentOrObject(args[0], tx));
763
+ _args.push(transactionArgumentOrObject(args[1], tx));
764
+ _args.push(transactionArgumentOrObject(args[2], tx));
765
+ _args.push(transactionArgumentOrPure(args[3], tx));
766
+ _args.push(transactionArgumentOrPure(args[4], tx));
767
+ _args.push(transactionArgumentOrObject(args[5], tx));
804
768
 
805
769
  // @ts-ignore
806
770
  return tx.moveCall({
@@ -825,8 +789,8 @@ export namespace pool {
825
789
  ],
826
790
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
827
791
  const _args: any[] = [];
828
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
829
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
792
+ _args.push(transactionArgumentOrPure(args[0], tx));
793
+ _args.push(transactionArgumentOrPure(args[1], tx));
830
794
 
831
795
  // @ts-ignore
832
796
  return tx.moveCall({
@@ -841,9 +805,7 @@ export namespace pool {
841
805
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
842
806
  ): TransactionArgument & [TransactionArgument] {
843
807
  const _args: any[] = [];
844
- _args.push(
845
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
846
- );
808
+ _args.push(transactionArgumentOrObject(args[0], tx));
847
809
 
848
810
  // @ts-ignore
849
811
  return tx.moveCall({
@@ -871,11 +833,9 @@ export namespace pool {
871
833
  ): TransactionArgument &
872
834
  [TransactionArgument, TransactionArgument, TransactionArgument] {
873
835
  const _args: any[] = [];
874
- _args.push(
875
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
876
- );
877
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
878
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
836
+ _args.push(transactionArgumentOrObject(args[0], tx));
837
+ _args.push(transactionArgumentOrPure(args[1], tx));
838
+ _args.push(transactionArgumentOrPure(args[2], tx));
879
839
 
880
840
  // @ts-ignore
881
841
  return tx.moveCall({
@@ -903,11 +863,9 @@ export namespace pool {
903
863
  ): TransactionArgument &
904
864
  [TransactionArgument, TransactionArgument, TransactionArgument] {
905
865
  const _args: any[] = [];
906
- _args.push(
907
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
908
- );
909
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
910
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
866
+ _args.push(transactionArgumentOrObject(args[0], tx));
867
+ _args.push(transactionArgumentOrPure(args[1], tx));
868
+ _args.push(transactionArgumentOrPure(args[2], tx));
911
869
 
912
870
  // @ts-ignore
913
871
  return tx.moveCall({
@@ -930,9 +888,7 @@ export namespace pool {
930
888
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
931
889
  ): TransactionArgument & [TransactionArgument] {
932
890
  const _args: any[] = [];
933
- _args.push(
934
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
935
- );
891
+ _args.push(transactionArgumentOrObject(args[0], tx));
936
892
 
937
893
  // @ts-ignore
938
894
  return tx.moveCall({
@@ -955,9 +911,7 @@ export namespace pool {
955
911
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
956
912
  ): TransactionArgument & [TransactionArgument] {
957
913
  const _args: any[] = [];
958
- _args.push(
959
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
960
- );
914
+ _args.push(transactionArgumentOrObject(args[0], tx));
961
915
 
962
916
  // @ts-ignore
963
917
  return tx.moveCall({
@@ -980,9 +934,7 @@ export namespace pool {
980
934
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
981
935
  ): TransactionArgument & [TransactionArgument] {
982
936
  const _args: any[] = [];
983
- _args.push(
984
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
985
- );
937
+ _args.push(transactionArgumentOrObject(args[0], tx));
986
938
 
987
939
  // @ts-ignore
988
940
  return tx.moveCall({
@@ -1020,20 +972,12 @@ export namespace pool {
1020
972
  TransactionArgument,
1021
973
  ] {
1022
974
  const _args: any[] = [];
1023
- _args.push(
1024
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1025
- );
1026
- _args.push(
1027
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1028
- );
1029
- _args.push(
1030
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1031
- );
1032
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1033
- _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
1034
- _args.push(
1035
- TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]),
1036
- );
975
+ _args.push(transactionArgumentOrObject(args[0], tx));
976
+ _args.push(transactionArgumentOrObject(args[1], tx));
977
+ _args.push(transactionArgumentOrObject(args[2], tx));
978
+ _args.push(transactionArgumentOrPure(args[3], tx));
979
+ _args.push(transactionArgumentOrPure(args[4], tx));
980
+ _args.push(transactionArgumentOrObject(args[5], tx));
1037
981
 
1038
982
  // @ts-ignore
1039
983
  return tx.moveCall({
@@ -1071,20 +1015,12 @@ export namespace pool {
1071
1015
  TransactionArgument,
1072
1016
  ] {
1073
1017
  const _args: any[] = [];
1074
- _args.push(
1075
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1076
- );
1077
- _args.push(
1078
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1079
- );
1080
- _args.push(
1081
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1082
- );
1083
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1084
- _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
1085
- _args.push(
1086
- TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]),
1087
- );
1018
+ _args.push(transactionArgumentOrObject(args[0], tx));
1019
+ _args.push(transactionArgumentOrObject(args[1], tx));
1020
+ _args.push(transactionArgumentOrObject(args[2], tx));
1021
+ _args.push(transactionArgumentOrPure(args[3], tx));
1022
+ _args.push(transactionArgumentOrPure(args[4], tx));
1023
+ _args.push(transactionArgumentOrObject(args[5], tx));
1088
1024
 
1089
1025
  // @ts-ignore
1090
1026
  return tx.moveCall({
@@ -1122,18 +1058,12 @@ export namespace pool {
1122
1058
  TransactionArgument,
1123
1059
  ] {
1124
1060
  const _args: any[] = [];
1125
- _args.push(
1126
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1127
- );
1128
- _args.push(
1129
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1130
- );
1131
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1132
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1133
- _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
1134
- _args.push(
1135
- TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]),
1136
- );
1061
+ _args.push(transactionArgumentOrObject(args[0], tx));
1062
+ _args.push(transactionArgumentOrObject(args[1], tx));
1063
+ _args.push(transactionArgumentOrPure(args[2], tx));
1064
+ _args.push(transactionArgumentOrPure(args[3], tx));
1065
+ _args.push(transactionArgumentOrPure(args[4], tx));
1066
+ _args.push(transactionArgumentOrObject(args[5], tx));
1137
1067
 
1138
1068
  // @ts-ignore
1139
1069
  return tx.moveCall({
@@ -1166,16 +1096,10 @@ export namespace pool {
1166
1096
  TransactionArgument,
1167
1097
  ] {
1168
1098
  const _args: any[] = [];
1169
- _args.push(
1170
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1171
- );
1172
- _args.push(
1173
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1174
- );
1175
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1176
- _args.push(
1177
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
1178
- );
1099
+ _args.push(transactionArgumentOrObject(args[0], tx));
1100
+ _args.push(transactionArgumentOrObject(args[1], tx));
1101
+ _args.push(transactionArgumentOrPure(args[2], tx));
1102
+ _args.push(transactionArgumentOrObject(args[3], tx));
1179
1103
 
1180
1104
  // @ts-ignore
1181
1105
  return tx.moveCall({
@@ -1203,17 +1127,11 @@ export namespace pool {
1203
1127
  TransactionArgument,
1204
1128
  ] {
1205
1129
  const _args: any[] = [];
1206
- _args.push(
1207
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1208
- );
1209
- _args.push(
1210
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1211
- );
1212
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1213
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1214
- _args.push(
1215
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
1216
- );
1130
+ _args.push(transactionArgumentOrObject(args[0], tx));
1131
+ _args.push(transactionArgumentOrObject(args[1], tx));
1132
+ _args.push(transactionArgumentOrPure(args[2], tx));
1133
+ _args.push(transactionArgumentOrPure(args[3], tx));
1134
+ _args.push(transactionArgumentOrObject(args[4], tx));
1217
1135
 
1218
1136
  // @ts-ignore
1219
1137
  return tx.moveCall({
@@ -1249,17 +1167,11 @@ export namespace pool {
1249
1167
  TransactionArgument,
1250
1168
  ] {
1251
1169
  const _args: any[] = [];
1252
- _args.push(
1253
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1254
- );
1255
- _args.push(
1256
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1257
- );
1258
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1259
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1260
- _args.push(
1261
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
1262
- );
1170
+ _args.push(transactionArgumentOrObject(args[0], tx));
1171
+ _args.push(transactionArgumentOrObject(args[1], tx));
1172
+ _args.push(transactionArgumentOrPure(args[2], tx));
1173
+ _args.push(transactionArgumentOrPure(args[3], tx));
1174
+ _args.push(transactionArgumentOrObject(args[4], tx));
1263
1175
 
1264
1176
  // @ts-ignore
1265
1177
  return tx.moveCall({
@@ -1295,17 +1207,11 @@ export namespace pool {
1295
1207
  TransactionArgument,
1296
1208
  ] {
1297
1209
  const _args: any[] = [];
1298
- _args.push(
1299
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1300
- );
1301
- _args.push(
1302
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1303
- );
1304
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1305
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1306
- _args.push(
1307
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
1308
- );
1210
+ _args.push(transactionArgumentOrObject(args[0], tx));
1211
+ _args.push(transactionArgumentOrObject(args[1], tx));
1212
+ _args.push(transactionArgumentOrPure(args[2], tx));
1213
+ _args.push(transactionArgumentOrPure(args[3], tx));
1214
+ _args.push(transactionArgumentOrObject(args[4], tx));
1309
1215
 
1310
1216
  // @ts-ignore
1311
1217
  return tx.moveCall({
@@ -1341,17 +1247,11 @@ export namespace pool {
1341
1247
  TransactionArgument,
1342
1248
  ] {
1343
1249
  const _args: any[] = [];
1344
- _args.push(
1345
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1346
- );
1347
- _args.push(
1348
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1349
- );
1350
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1351
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1352
- _args.push(
1353
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
1354
- );
1250
+ _args.push(transactionArgumentOrObject(args[0], tx));
1251
+ _args.push(transactionArgumentOrObject(args[1], tx));
1252
+ _args.push(transactionArgumentOrPure(args[2], tx));
1253
+ _args.push(transactionArgumentOrPure(args[3], tx));
1254
+ _args.push(transactionArgumentOrObject(args[4], tx));
1355
1255
 
1356
1256
  // @ts-ignore
1357
1257
  return tx.moveCall({
@@ -1385,16 +1285,10 @@ export namespace pool {
1385
1285
  TransactionArgument,
1386
1286
  ] {
1387
1287
  const _args: any[] = [];
1388
- _args.push(
1389
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1390
- );
1391
- _args.push(
1392
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1393
- );
1394
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1395
- _args.push(
1396
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
1397
- );
1288
+ _args.push(transactionArgumentOrObject(args[0], tx));
1289
+ _args.push(transactionArgumentOrObject(args[1], tx));
1290
+ _args.push(transactionArgumentOrPure(args[2], tx));
1291
+ _args.push(transactionArgumentOrObject(args[3], tx));
1398
1292
 
1399
1293
  // @ts-ignore
1400
1294
  return tx.moveCall({
@@ -1428,16 +1322,10 @@ export namespace pool {
1428
1322
  TransactionArgument,
1429
1323
  ] {
1430
1324
  const _args: any[] = [];
1431
- _args.push(
1432
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1433
- );
1434
- _args.push(
1435
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1436
- );
1437
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1438
- _args.push(
1439
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
1440
- );
1325
+ _args.push(transactionArgumentOrObject(args[0], tx));
1326
+ _args.push(transactionArgumentOrObject(args[1], tx));
1327
+ _args.push(transactionArgumentOrPure(args[2], tx));
1328
+ _args.push(transactionArgumentOrObject(args[3], tx));
1441
1329
 
1442
1330
  // @ts-ignore
1443
1331
  return tx.moveCall({
@@ -1903,10 +1791,8 @@ export namespace pool_utils {
1903
1791
  typeArguments: [TypeDescriptor<T0> | string],
1904
1792
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1905
1793
  const _args: any[] = [];
1906
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1907
- _args.push(
1908
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1909
- );
1794
+ _args.push(transactionArgumentOrPure(args[0], tx));
1795
+ _args.push(transactionArgumentOrObject(args[1], tx));
1910
1796
 
1911
1797
  // @ts-ignore
1912
1798
  return tx.moveCall({
@@ -1936,10 +1822,10 @@ export namespace pool_utils {
1936
1822
  TransactionArgument,
1937
1823
  ] {
1938
1824
  const _args: any[] = [];
1939
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1940
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1941
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1942
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1825
+ _args.push(transactionArgumentOrPure(args[0], tx));
1826
+ _args.push(transactionArgumentOrPure(args[1], tx));
1827
+ _args.push(transactionArgumentOrPure(args[2], tx));
1828
+ _args.push(transactionArgumentOrPure(args[3], tx));
1943
1829
 
1944
1830
  // @ts-ignore
1945
1831
  return tx.moveCall({
@@ -1953,8 +1839,8 @@ export namespace pool_utils {
1953
1839
  args: [bigint | TransactionArgument, bigint | TransactionArgument],
1954
1840
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1955
1841
  const _args: any[] = [];
1956
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1957
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1842
+ _args.push(transactionArgumentOrPure(args[0], tx));
1843
+ _args.push(transactionArgumentOrPure(args[1], tx));
1958
1844
 
1959
1845
  // @ts-ignore
1960
1846
  return tx.moveCall({
@@ -1979,10 +1865,10 @@ export namespace pool_utils {
1979
1865
  TransactionArgument,
1980
1866
  ] {
1981
1867
  const _args: any[] = [];
1982
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1983
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1984
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1985
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
1868
+ _args.push(transactionArgumentOrPure(args[0], tx));
1869
+ _args.push(transactionArgumentOrPure(args[1], tx));
1870
+ _args.push(transactionArgumentOrPure(args[2], tx));
1871
+ _args.push(transactionArgumentOrPure(args[3], tx));
1986
1872
 
1987
1873
  // @ts-ignore
1988
1874
  return tx.moveCall({
@@ -2052,9 +1938,9 @@ export namespace pool_utils {
2052
1938
  ): TransactionArgument &
2053
1939
  [TransactionArgument, TransactionArgument, TransactionArgument] {
2054
1940
  const _args: any[] = [];
2055
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
2056
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2057
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1941
+ _args.push(transactionArgumentOrPure(args[0], tx));
1942
+ _args.push(transactionArgumentOrPure(args[1], tx));
1943
+ _args.push(transactionArgumentOrPure(args[2], tx));
2058
1944
 
2059
1945
  // @ts-ignore
2060
1946
  return tx.moveCall({
@@ -2071,12 +1957,8 @@ export namespace pool_utils {
2071
1957
  ],
2072
1958
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2073
1959
  const _args: any[] = [];
2074
- _args.push(
2075
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2076
- );
2077
- _args.push(
2078
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
2079
- );
1960
+ _args.push(transactionArgumentOrObject(args[0], tx));
1961
+ _args.push(transactionArgumentOrObject(args[1], tx));
2080
1962
 
2081
1963
  // @ts-ignore
2082
1964
  return tx.moveCall({
@@ -2278,32 +2160,14 @@ export namespace router {
2278
2160
  TransactionArgument,
2279
2161
  ] {
2280
2162
  const _args: any[] = [];
2281
- _args.push(
2282
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2283
- );
2284
- _args.push(
2285
- TransactionArgument.is(args[1])
2286
- ? args[1]
2287
- : tx.makeMoveVec({
2288
- objects: args[1].map((a: any) => tx.object(a)),
2289
- // type: TODO
2290
- }),
2291
- );
2292
- _args.push(
2293
- TransactionArgument.is(args[2])
2294
- ? args[2]
2295
- : tx.makeMoveVec({
2296
- objects: args[2].map((a: any) => tx.object(a)),
2297
- // type: TODO
2298
- }),
2299
- );
2300
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
2301
- _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
2302
- _args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
2303
- _args.push(TransactionArgument.is(args[6]) ? args[6] : tx.pure(args[6]));
2304
- _args.push(
2305
- TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7]),
2306
- );
2163
+ _args.push(transactionArgumentOrObject(args[0], tx));
2164
+ _args.push(transactionArgumentOrVec(args[1], tx));
2165
+ _args.push(transactionArgumentOrVec(args[2], tx));
2166
+ _args.push(transactionArgumentOrPure(args[3], tx));
2167
+ _args.push(transactionArgumentOrPure(args[4], tx));
2168
+ _args.push(transactionArgumentOrPure(args[5], tx));
2169
+ _args.push(transactionArgumentOrPure(args[6], tx));
2170
+ _args.push(transactionArgumentOrObject(args[7], tx));
2307
2171
 
2308
2172
  // @ts-ignore
2309
2173
  return tx.moveCall({
@@ -2341,30 +2205,12 @@ export namespace router {
2341
2205
  TransactionArgument,
2342
2206
  ] {
2343
2207
  const _args: any[] = [];
2344
- _args.push(
2345
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2346
- );
2347
- _args.push(
2348
- TransactionArgument.is(args[1])
2349
- ? args[1]
2350
- : tx.makeMoveVec({
2351
- objects: args[1].map((a: any) => tx.object(a)),
2352
- // type: TODO
2353
- }),
2354
- );
2355
- _args.push(
2356
- TransactionArgument.is(args[2])
2357
- ? args[2]
2358
- : tx.makeMoveVec({
2359
- objects: args[2].map((a: any) => tx.object(a)),
2360
- // type: TODO
2361
- }),
2362
- );
2363
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
2364
- _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
2365
- _args.push(
2366
- TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]),
2367
- );
2208
+ _args.push(transactionArgumentOrObject(args[0], tx));
2209
+ _args.push(transactionArgumentOrVec(args[1], tx));
2210
+ _args.push(transactionArgumentOrVec(args[2], tx));
2211
+ _args.push(transactionArgumentOrPure(args[3], tx));
2212
+ _args.push(transactionArgumentOrPure(args[4], tx));
2213
+ _args.push(transactionArgumentOrObject(args[5], tx));
2368
2214
 
2369
2215
  // @ts-ignore
2370
2216
  return tx.moveCall({
@@ -2402,23 +2248,12 @@ export namespace router {
2402
2248
  TransactionArgument,
2403
2249
  ] {
2404
2250
  const _args: any[] = [];
2405
- _args.push(
2406
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2407
- );
2408
- _args.push(
2409
- TransactionArgument.is(args[1])
2410
- ? args[1]
2411
- : tx.makeMoveVec({
2412
- objects: args[1].map((a: any) => tx.object(a)),
2413
- // type: TODO
2414
- }),
2415
- );
2416
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
2417
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
2418
- _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
2419
- _args.push(
2420
- TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]),
2421
- );
2251
+ _args.push(transactionArgumentOrObject(args[0], tx));
2252
+ _args.push(transactionArgumentOrVec(args[1], tx));
2253
+ _args.push(transactionArgumentOrPure(args[2], tx));
2254
+ _args.push(transactionArgumentOrPure(args[3], tx));
2255
+ _args.push(transactionArgumentOrPure(args[4], tx));
2256
+ _args.push(transactionArgumentOrObject(args[5], tx));
2422
2257
 
2423
2258
  // @ts-ignore
2424
2259
  return tx.moveCall({
@@ -2454,22 +2289,11 @@ export namespace router {
2454
2289
  TransactionArgument,
2455
2290
  ] {
2456
2291
  const _args: any[] = [];
2457
- _args.push(
2458
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2459
- );
2460
- _args.push(
2461
- TransactionArgument.is(args[1])
2462
- ? args[1]
2463
- : tx.makeMoveVec({
2464
- objects: args[1].map((a: any) => tx.object(a)),
2465
- // type: TODO
2466
- }),
2467
- );
2468
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
2469
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
2470
- _args.push(
2471
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
2472
- );
2292
+ _args.push(transactionArgumentOrObject(args[0], tx));
2293
+ _args.push(transactionArgumentOrVec(args[1], tx));
2294
+ _args.push(transactionArgumentOrPure(args[2], tx));
2295
+ _args.push(transactionArgumentOrPure(args[3], tx));
2296
+ _args.push(transactionArgumentOrObject(args[4], tx));
2473
2297
 
2474
2298
  // @ts-ignore
2475
2299
  return tx.moveCall({
@@ -2509,22 +2333,11 @@ export namespace router {
2509
2333
  TransactionArgument,
2510
2334
  ] {
2511
2335
  const _args: any[] = [];
2512
- _args.push(
2513
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2514
- );
2515
- _args.push(
2516
- TransactionArgument.is(args[1])
2517
- ? args[1]
2518
- : tx.makeMoveVec({
2519
- objects: args[1].map((a: any) => tx.object(a)),
2520
- // type: TODO
2521
- }),
2522
- );
2523
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
2524
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
2525
- _args.push(
2526
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
2527
- );
2336
+ _args.push(transactionArgumentOrObject(args[0], tx));
2337
+ _args.push(transactionArgumentOrVec(args[1], tx));
2338
+ _args.push(transactionArgumentOrPure(args[2], tx));
2339
+ _args.push(transactionArgumentOrPure(args[3], tx));
2340
+ _args.push(transactionArgumentOrObject(args[4], tx));
2528
2341
 
2529
2342
  // @ts-ignore
2530
2343
  return tx.moveCall({
@@ -2563,22 +2376,11 @@ export namespace router {
2563
2376
  TransactionArgument,
2564
2377
  ] {
2565
2378
  const _args: any[] = [];
2566
- _args.push(
2567
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2568
- );
2569
- _args.push(
2570
- TransactionArgument.is(args[1])
2571
- ? args[1]
2572
- : tx.makeMoveVec({
2573
- objects: args[1].map((a: any) => tx.object(a)),
2574
- // type: TODO
2575
- }),
2576
- );
2577
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
2578
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
2579
- _args.push(
2580
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
2581
- );
2379
+ _args.push(transactionArgumentOrObject(args[0], tx));
2380
+ _args.push(transactionArgumentOrVec(args[1], tx));
2381
+ _args.push(transactionArgumentOrPure(args[2], tx));
2382
+ _args.push(transactionArgumentOrPure(args[3], tx));
2383
+ _args.push(transactionArgumentOrObject(args[4], tx));
2582
2384
 
2583
2385
  // @ts-ignore
2584
2386
  return tx.moveCall({
@@ -2618,22 +2420,11 @@ export namespace router {
2618
2420
  TransactionArgument,
2619
2421
  ] {
2620
2422
  const _args: any[] = [];
2621
- _args.push(
2622
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2623
- );
2624
- _args.push(
2625
- TransactionArgument.is(args[1])
2626
- ? args[1]
2627
- : tx.makeMoveVec({
2628
- objects: args[1].map((a: any) => tx.object(a)),
2629
- // type: TODO
2630
- }),
2631
- );
2632
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
2633
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
2634
- _args.push(
2635
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
2636
- );
2423
+ _args.push(transactionArgumentOrObject(args[0], tx));
2424
+ _args.push(transactionArgumentOrVec(args[1], tx));
2425
+ _args.push(transactionArgumentOrPure(args[2], tx));
2426
+ _args.push(transactionArgumentOrPure(args[3], tx));
2427
+ _args.push(transactionArgumentOrObject(args[4], tx));
2637
2428
 
2638
2429
  // @ts-ignore
2639
2430
  return tx.moveCall({
@@ -2670,21 +2461,10 @@ export namespace router {
2670
2461
  TransactionArgument,
2671
2462
  ] {
2672
2463
  const _args: any[] = [];
2673
- _args.push(
2674
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2675
- );
2676
- _args.push(
2677
- TransactionArgument.is(args[1])
2678
- ? args[1]
2679
- : tx.makeMoveVec({
2680
- objects: args[1].map((a: any) => tx.object(a)),
2681
- // type: TODO
2682
- }),
2683
- );
2684
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
2685
- _args.push(
2686
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
2687
- );
2464
+ _args.push(transactionArgumentOrObject(args[0], tx));
2465
+ _args.push(transactionArgumentOrVec(args[1], tx));
2466
+ _args.push(transactionArgumentOrPure(args[2], tx));
2467
+ _args.push(transactionArgumentOrObject(args[3], tx));
2688
2468
 
2689
2469
  // @ts-ignore
2690
2470
  return tx.moveCall({