@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";
@@ -282,12 +290,8 @@ export namespace clob {
282
290
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
283
291
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
284
292
  const _args: any[] = [];
285
- _args.push(
286
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
287
- );
288
- _args.push(
289
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
290
- );
293
+ _args.push(transactionArgumentOrObject(args[0], tx));
294
+ _args.push(transactionArgumentOrObject(args[1], tx));
291
295
 
292
296
  // @ts-ignore
293
297
  return tx.moveCall({
@@ -314,20 +318,9 @@ export namespace clob {
314
318
  ): TransactionArgument &
315
319
  [TransactionArgument, TransactionArgument, TransactionArgument] {
316
320
  const _args: any[] = [];
317
- _args.push(
318
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
319
- );
320
- _args.push(
321
- TransactionArgument.is(args[1])
322
- ? args[1]
323
- : tx.makeMoveVec({
324
- objects: args[1].map((a: any) => tx.object(a)),
325
- // type: TODO
326
- }),
327
- );
328
- _args.push(
329
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
330
- );
321
+ _args.push(transactionArgumentOrObject(args[0], tx));
322
+ _args.push(transactionArgumentOrVec(args[1], tx));
323
+ _args.push(transactionArgumentOrObject(args[2], tx));
331
324
 
332
325
  // @ts-ignore
333
326
  return tx.moveCall({
@@ -352,12 +345,8 @@ export namespace clob {
352
345
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
353
346
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
354
347
  const _args: any[] = [];
355
- _args.push(
356
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
357
- );
358
- _args.push(
359
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
360
- );
348
+ _args.push(transactionArgumentOrObject(args[0], tx));
349
+ _args.push(transactionArgumentOrObject(args[1], tx));
361
350
 
362
351
  // @ts-ignore
363
352
  return tx.moveCall({
@@ -384,13 +373,9 @@ export namespace clob {
384
373
  ): TransactionArgument &
385
374
  [TransactionArgument, TransactionArgument, TransactionArgument] {
386
375
  const _args: any[] = [];
387
- _args.push(
388
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
389
- );
390
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
391
- _args.push(
392
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
393
- );
376
+ _args.push(transactionArgumentOrObject(args[0], tx));
377
+ _args.push(transactionArgumentOrPure(args[1], tx));
378
+ _args.push(transactionArgumentOrObject(args[2], tx));
394
379
 
395
380
  // @ts-ignore
396
381
  return tx.moveCall({
@@ -411,9 +396,7 @@ export namespace clob {
411
396
  args: [string | ObjectCallArg | TransactionArgument],
412
397
  ): TransactionArgument & [TransactionArgument] {
413
398
  const _args: any[] = [];
414
- _args.push(
415
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
416
- );
399
+ _args.push(transactionArgumentOrObject(args[0], tx));
417
400
 
418
401
  // @ts-ignore
419
402
  return tx.moveCall({
@@ -438,12 +421,10 @@ export namespace clob {
438
421
  TransactionArgument,
439
422
  ] {
440
423
  const _args: any[] = [];
441
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
442
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
443
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
444
- _args.push(
445
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
446
- );
424
+ _args.push(transactionArgumentOrPure(args[0], tx));
425
+ _args.push(transactionArgumentOrPure(args[1], tx));
426
+ _args.push(transactionArgumentOrPure(args[2], tx));
427
+ _args.push(transactionArgumentOrObject(args[3], tx));
447
428
 
448
429
  // @ts-ignore
449
430
  return tx.moveCall({
@@ -470,13 +451,9 @@ export namespace clob {
470
451
  ): TransactionArgument &
471
452
  [TransactionArgument, TransactionArgument, TransactionArgument] {
472
453
  const _args: any[] = [];
473
- _args.push(
474
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
475
- );
476
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
477
- _args.push(
478
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
479
- );
454
+ _args.push(transactionArgumentOrObject(args[0], tx));
455
+ _args.push(transactionArgumentOrPure(args[1], tx));
456
+ _args.push(transactionArgumentOrObject(args[2], tx));
480
457
 
481
458
  // @ts-ignore
482
459
  return tx.moveCall({
@@ -503,13 +480,9 @@ export namespace clob {
503
480
  ): TransactionArgument &
504
481
  [TransactionArgument, TransactionArgument, TransactionArgument] {
505
482
  const _args: any[] = [];
506
- _args.push(
507
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
508
- );
509
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
510
- _args.push(
511
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
512
- );
483
+ _args.push(transactionArgumentOrObject(args[0], tx));
484
+ _args.push(transactionArgumentOrPure(args[1], tx));
485
+ _args.push(transactionArgumentOrObject(args[2], tx));
513
486
 
514
487
  // @ts-ignore
515
488
  return tx.moveCall({
@@ -542,14 +515,10 @@ export namespace clob {
542
515
  TransactionArgument,
543
516
  ] {
544
517
  const _args: any[] = [];
545
- _args.push(
546
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
547
- );
548
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
549
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
550
- _args.push(
551
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
552
- );
518
+ _args.push(transactionArgumentOrObject(args[0], tx));
519
+ _args.push(transactionArgumentOrPure(args[1], tx));
520
+ _args.push(transactionArgumentOrPure(args[2], tx));
521
+ _args.push(transactionArgumentOrObject(args[3], tx));
553
522
 
554
523
  // @ts-ignore
555
524
  return tx.moveCall({
@@ -582,14 +551,10 @@ export namespace clob {
582
551
  TransactionArgument,
583
552
  ] {
584
553
  const _args: any[] = [];
585
- _args.push(
586
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
587
- );
588
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
589
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
590
- _args.push(
591
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
592
- );
554
+ _args.push(transactionArgumentOrObject(args[0], tx));
555
+ _args.push(transactionArgumentOrPure(args[1], tx));
556
+ _args.push(transactionArgumentOrPure(args[2], tx));
557
+ _args.push(transactionArgumentOrObject(args[3], tx));
593
558
 
594
559
  // @ts-ignore
595
560
  return tx.moveCall({
@@ -611,9 +576,7 @@ export namespace clob {
611
576
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
612
577
  ): TransactionArgument & [TransactionArgument] {
613
578
  const _args: any[] = [];
614
- _args.push(
615
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
616
- );
579
+ _args.push(transactionArgumentOrObject(args[0], tx));
617
580
 
618
581
  // @ts-ignore
619
582
  return tx.moveCall({
@@ -640,13 +603,9 @@ export namespace clob {
640
603
  ): TransactionArgument &
641
604
  [TransactionArgument, TransactionArgument, TransactionArgument] {
642
605
  const _args: any[] = [];
643
- _args.push(
644
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
645
- );
646
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
647
- _args.push(
648
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
649
- );
606
+ _args.push(transactionArgumentOrObject(args[0], tx));
607
+ _args.push(transactionArgumentOrPure(args[1], tx));
608
+ _args.push(transactionArgumentOrObject(args[2], tx));
650
609
 
651
610
  // @ts-ignore
652
611
  return tx.moveCall({
@@ -671,12 +630,8 @@ export namespace clob {
671
630
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
672
631
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
673
632
  const _args: any[] = [];
674
- _args.push(
675
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
676
- );
677
- _args.push(
678
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
679
- );
633
+ _args.push(transactionArgumentOrObject(args[0], tx));
634
+ _args.push(transactionArgumentOrObject(args[1], tx));
680
635
 
681
636
  // @ts-ignore
682
637
  return tx.moveCall({
@@ -719,23 +674,15 @@ export namespace clob {
719
674
  TransactionArgument,
720
675
  ] {
721
676
  const _args: any[] = [];
722
- _args.push(
723
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
724
- );
725
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
726
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
727
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
728
- _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
729
- _args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
730
- _args.push(
731
- TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6]),
732
- );
733
- _args.push(
734
- TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7]),
735
- );
736
- _args.push(
737
- TransactionArgument.is(args[8]) ? args[8] : tx.object(args[8]),
738
- );
677
+ _args.push(transactionArgumentOrObject(args[0], tx));
678
+ _args.push(transactionArgumentOrPure(args[1], tx));
679
+ _args.push(transactionArgumentOrPure(args[2], tx));
680
+ _args.push(transactionArgumentOrPure(args[3], tx));
681
+ _args.push(transactionArgumentOrPure(args[4], tx));
682
+ _args.push(transactionArgumentOrPure(args[5], tx));
683
+ _args.push(transactionArgumentOrObject(args[6], tx));
684
+ _args.push(transactionArgumentOrObject(args[7], tx));
685
+ _args.push(transactionArgumentOrObject(args[8], tx));
739
686
 
740
687
  // @ts-ignore
741
688
  return tx.moveCall({
@@ -774,19 +721,13 @@ export namespace clob {
774
721
  TransactionArgument,
775
722
  ] {
776
723
  const _args: any[] = [];
777
- _args.push(
778
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
779
- );
780
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
781
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
782
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
783
- _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
784
- _args.push(
785
- TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]),
786
- );
787
- _args.push(
788
- TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6]),
789
- );
724
+ _args.push(transactionArgumentOrObject(args[0], tx));
725
+ _args.push(transactionArgumentOrPure(args[1], tx));
726
+ _args.push(transactionArgumentOrPure(args[2], tx));
727
+ _args.push(transactionArgumentOrPure(args[3], tx));
728
+ _args.push(transactionArgumentOrPure(args[4], tx));
729
+ _args.push(transactionArgumentOrObject(args[5], tx));
730
+ _args.push(transactionArgumentOrObject(args[6], tx));
790
731
 
791
732
  // @ts-ignore
792
733
  return tx.moveCall({
@@ -823,18 +764,12 @@ export namespace clob {
823
764
  TransactionArgument,
824
765
  ] {
825
766
  const _args: any[] = [];
826
- _args.push(
827
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
828
- );
829
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
830
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
831
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
832
- _args.push(
833
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
834
- );
835
- _args.push(
836
- TransactionArgument.is(args[5]) ? args[5] : tx.object(args[5]),
837
- );
767
+ _args.push(transactionArgumentOrObject(args[0], tx));
768
+ _args.push(transactionArgumentOrPure(args[1], tx));
769
+ _args.push(transactionArgumentOrPure(args[2], tx));
770
+ _args.push(transactionArgumentOrPure(args[3], tx));
771
+ _args.push(transactionArgumentOrObject(args[4], tx));
772
+ _args.push(transactionArgumentOrObject(args[5], tx));
838
773
 
839
774
  // @ts-ignore
840
775
  return tx.moveCall({
@@ -869,17 +804,11 @@ export namespace clob {
869
804
  TransactionArgument,
870
805
  ] {
871
806
  const _args: any[] = [];
872
- _args.push(
873
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
874
- );
875
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
876
- _args.push(
877
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
878
- );
879
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
880
- _args.push(
881
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
882
- );
807
+ _args.push(transactionArgumentOrObject(args[0], tx));
808
+ _args.push(transactionArgumentOrPure(args[1], tx));
809
+ _args.push(transactionArgumentOrObject(args[2], tx));
810
+ _args.push(transactionArgumentOrPure(args[3], tx));
811
+ _args.push(transactionArgumentOrObject(args[4], tx));
883
812
 
884
813
  // @ts-ignore
885
814
  return tx.moveCall({
@@ -912,16 +841,10 @@ export namespace clob {
912
841
  TransactionArgument,
913
842
  ] {
914
843
  const _args: any[] = [];
915
- _args.push(
916
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
917
- );
918
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
919
- _args.push(
920
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
921
- );
922
- _args.push(
923
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
924
- );
844
+ _args.push(transactionArgumentOrObject(args[0], tx));
845
+ _args.push(transactionArgumentOrPure(args[1], tx));
846
+ _args.push(transactionArgumentOrObject(args[2], tx));
847
+ _args.push(transactionArgumentOrObject(args[3], tx));
925
848
 
926
849
  // @ts-ignore
927
850
  return tx.moveCall({
@@ -954,16 +877,10 @@ export namespace clob {
954
877
  TransactionArgument,
955
878
  ] {
956
879
  const _args: any[] = [];
957
- _args.push(
958
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
959
- );
960
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
961
- _args.push(
962
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
963
- );
964
- _args.push(
965
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
966
- );
880
+ _args.push(transactionArgumentOrObject(args[0], tx));
881
+ _args.push(transactionArgumentOrPure(args[1], tx));
882
+ _args.push(transactionArgumentOrObject(args[2], tx));
883
+ _args.push(transactionArgumentOrObject(args[3], tx));
967
884
 
968
885
  // @ts-ignore
969
886
  return tx.moveCall({
@@ -1637,12 +1554,8 @@ export namespace clob_v2 {
1637
1554
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1638
1555
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1639
1556
  const _args: any[] = [];
1640
- _args.push(
1641
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1642
- );
1643
- _args.push(
1644
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1645
- );
1557
+ _args.push(transactionArgumentOrObject(args[0], tx));
1558
+ _args.push(transactionArgumentOrObject(args[1], tx));
1646
1559
 
1647
1560
  // @ts-ignore
1648
1561
  return tx.moveCall({
@@ -1669,20 +1582,9 @@ export namespace clob_v2 {
1669
1582
  ): TransactionArgument &
1670
1583
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1671
1584
  const _args: any[] = [];
1672
- _args.push(
1673
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1674
- );
1675
- _args.push(
1676
- TransactionArgument.is(args[1])
1677
- ? args[1]
1678
- : tx.makeMoveVec({
1679
- objects: args[1].map((a: any) => tx.object(a)),
1680
- // type: TODO
1681
- }),
1682
- );
1683
- _args.push(
1684
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1685
- );
1585
+ _args.push(transactionArgumentOrObject(args[0], tx));
1586
+ _args.push(transactionArgumentOrVec(args[1], tx));
1587
+ _args.push(transactionArgumentOrObject(args[2], tx));
1686
1588
 
1687
1589
  // @ts-ignore
1688
1590
  return tx.moveCall({
@@ -1707,12 +1609,8 @@ export namespace clob_v2 {
1707
1609
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
1708
1610
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1709
1611
  const _args: any[] = [];
1710
- _args.push(
1711
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1712
- );
1713
- _args.push(
1714
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1715
- );
1612
+ _args.push(transactionArgumentOrObject(args[0], tx));
1613
+ _args.push(transactionArgumentOrObject(args[1], tx));
1716
1614
 
1717
1615
  // @ts-ignore
1718
1616
  return tx.moveCall({
@@ -1739,13 +1637,9 @@ export namespace clob_v2 {
1739
1637
  ): TransactionArgument &
1740
1638
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1741
1639
  const _args: any[] = [];
1742
- _args.push(
1743
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1744
- );
1745
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1746
- _args.push(
1747
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1748
- );
1640
+ _args.push(transactionArgumentOrObject(args[0], tx));
1641
+ _args.push(transactionArgumentOrPure(args[1], tx));
1642
+ _args.push(transactionArgumentOrObject(args[2], tx));
1749
1643
 
1750
1644
  // @ts-ignore
1751
1645
  return tx.moveCall({
@@ -1778,28 +1672,10 @@ export namespace clob_v2 {
1778
1672
  TransactionArgument,
1779
1673
  ] {
1780
1674
  const _args: any[] = [];
1781
- _args.push(
1782
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1783
- );
1784
- _args.push(
1785
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
1786
- );
1787
- _args.push(
1788
- TransactionArgument.is(args[2])
1789
- ? args[2]
1790
- : tx.makeMoveVec({
1791
- objects: args[2].map((a: any) => tx.object(a)),
1792
- // type: TODO
1793
- }),
1794
- );
1795
- _args.push(
1796
- TransactionArgument.is(args[3])
1797
- ? args[3]
1798
- : tx.makeMoveVec({
1799
- objects: args[3].map((a: any) => tx.object(a)),
1800
- // type: TODO
1801
- }),
1802
- );
1675
+ _args.push(transactionArgumentOrObject(args[0], tx));
1676
+ _args.push(transactionArgumentOrObject(args[1], tx));
1677
+ _args.push(transactionArgumentOrVec(args[2], tx));
1678
+ _args.push(transactionArgumentOrVec(args[3], tx));
1803
1679
 
1804
1680
  // @ts-ignore
1805
1681
  return tx.moveCall({
@@ -1820,9 +1696,7 @@ export namespace clob_v2 {
1820
1696
  args: [string | ObjectCallArg | TransactionArgument],
1821
1697
  ): TransactionArgument & [TransactionArgument] {
1822
1698
  const _args: any[] = [];
1823
- _args.push(
1824
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1825
- );
1699
+ _args.push(transactionArgumentOrObject(args[0], tx));
1826
1700
 
1827
1701
  // @ts-ignore
1828
1702
  return tx.moveCall({
@@ -1847,12 +1721,10 @@ export namespace clob_v2 {
1847
1721
  TransactionArgument,
1848
1722
  ] {
1849
1723
  const _args: any[] = [];
1850
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
1851
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1852
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1853
- _args.push(
1854
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
1855
- );
1724
+ _args.push(transactionArgumentOrPure(args[0], tx));
1725
+ _args.push(transactionArgumentOrPure(args[1], tx));
1726
+ _args.push(transactionArgumentOrPure(args[2], tx));
1727
+ _args.push(transactionArgumentOrObject(args[3], tx));
1856
1728
 
1857
1729
  // @ts-ignore
1858
1730
  return tx.moveCall({
@@ -1879,13 +1751,9 @@ export namespace clob_v2 {
1879
1751
  ): TransactionArgument &
1880
1752
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1881
1753
  const _args: any[] = [];
1882
- _args.push(
1883
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1884
- );
1885
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1886
- _args.push(
1887
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1888
- );
1754
+ _args.push(transactionArgumentOrObject(args[0], tx));
1755
+ _args.push(transactionArgumentOrPure(args[1], tx));
1756
+ _args.push(transactionArgumentOrObject(args[2], tx));
1889
1757
 
1890
1758
  // @ts-ignore
1891
1759
  return tx.moveCall({
@@ -1912,13 +1780,9 @@ export namespace clob_v2 {
1912
1780
  ): TransactionArgument &
1913
1781
  [TransactionArgument, TransactionArgument, TransactionArgument] {
1914
1782
  const _args: any[] = [];
1915
- _args.push(
1916
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1917
- );
1918
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1919
- _args.push(
1920
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
1921
- );
1783
+ _args.push(transactionArgumentOrObject(args[0], tx));
1784
+ _args.push(transactionArgumentOrPure(args[1], tx));
1785
+ _args.push(transactionArgumentOrObject(args[2], tx));
1922
1786
 
1923
1787
  // @ts-ignore
1924
1788
  return tx.moveCall({
@@ -1951,14 +1815,10 @@ export namespace clob_v2 {
1951
1815
  TransactionArgument,
1952
1816
  ] {
1953
1817
  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]));
1959
- _args.push(
1960
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
1961
- );
1818
+ _args.push(transactionArgumentOrObject(args[0], tx));
1819
+ _args.push(transactionArgumentOrPure(args[1], tx));
1820
+ _args.push(transactionArgumentOrPure(args[2], tx));
1821
+ _args.push(transactionArgumentOrObject(args[3], tx));
1962
1822
 
1963
1823
  // @ts-ignore
1964
1824
  return tx.moveCall({
@@ -1991,14 +1851,10 @@ export namespace clob_v2 {
1991
1851
  TransactionArgument,
1992
1852
  ] {
1993
1853
  const _args: any[] = [];
1994
- _args.push(
1995
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
1996
- );
1997
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1998
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1999
- _args.push(
2000
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
2001
- );
1854
+ _args.push(transactionArgumentOrObject(args[0], tx));
1855
+ _args.push(transactionArgumentOrPure(args[1], tx));
1856
+ _args.push(transactionArgumentOrPure(args[2], tx));
1857
+ _args.push(transactionArgumentOrObject(args[3], tx));
2002
1858
 
2003
1859
  // @ts-ignore
2004
1860
  return tx.moveCall({
@@ -2020,9 +1876,7 @@ export namespace clob_v2 {
2020
1876
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2021
1877
  ): TransactionArgument & [TransactionArgument] {
2022
1878
  const _args: any[] = [];
2023
- _args.push(
2024
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2025
- );
1879
+ _args.push(transactionArgumentOrObject(args[0], tx));
2026
1880
 
2027
1881
  // @ts-ignore
2028
1882
  return tx.moveCall({
@@ -2049,13 +1903,9 @@ export namespace clob_v2 {
2049
1903
  ): TransactionArgument &
2050
1904
  [TransactionArgument, TransactionArgument, TransactionArgument] {
2051
1905
  const _args: any[] = [];
2052
- _args.push(
2053
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2054
- );
2055
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2056
- _args.push(
2057
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
2058
- );
1906
+ _args.push(transactionArgumentOrObject(args[0], tx));
1907
+ _args.push(transactionArgumentOrPure(args[1], tx));
1908
+ _args.push(transactionArgumentOrObject(args[2], tx));
2059
1909
 
2060
1910
  // @ts-ignore
2061
1911
  return tx.moveCall({
@@ -2080,12 +1930,8 @@ export namespace clob_v2 {
2080
1930
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
2081
1931
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2082
1932
  const _args: any[] = [];
2083
- _args.push(
2084
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2085
- );
2086
- _args.push(
2087
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
2088
- );
1933
+ _args.push(transactionArgumentOrObject(args[0], tx));
1934
+ _args.push(transactionArgumentOrObject(args[1], tx));
2089
1935
 
2090
1936
  // @ts-ignore
2091
1937
  return tx.moveCall({
@@ -2132,25 +1978,17 @@ export namespace clob_v2 {
2132
1978
  TransactionArgument,
2133
1979
  ] {
2134
1980
  const _args: any[] = [];
2135
- _args.push(
2136
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2137
- );
2138
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2139
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
2140
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
2141
- _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
2142
- _args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
2143
- _args.push(TransactionArgument.is(args[6]) ? args[6] : tx.pure(args[6]));
2144
- _args.push(TransactionArgument.is(args[7]) ? args[7] : tx.pure(args[7]));
2145
- _args.push(
2146
- TransactionArgument.is(args[8]) ? args[8] : tx.object(args[8]),
2147
- );
2148
- _args.push(
2149
- TransactionArgument.is(args[9]) ? args[9] : tx.object(args[9]),
2150
- );
2151
- _args.push(
2152
- TransactionArgument.is(args[10]) ? args[10] : tx.object(args[10]),
2153
- );
1981
+ _args.push(transactionArgumentOrObject(args[0], tx));
1982
+ _args.push(transactionArgumentOrPure(args[1], tx));
1983
+ _args.push(transactionArgumentOrPure(args[2], tx));
1984
+ _args.push(transactionArgumentOrPure(args[3], tx));
1985
+ _args.push(transactionArgumentOrPure(args[4], tx));
1986
+ _args.push(transactionArgumentOrPure(args[5], tx));
1987
+ _args.push(transactionArgumentOrPure(args[6], tx));
1988
+ _args.push(transactionArgumentOrPure(args[7], tx));
1989
+ _args.push(transactionArgumentOrObject(args[8], tx));
1990
+ _args.push(transactionArgumentOrObject(args[9], tx));
1991
+ _args.push(transactionArgumentOrObject(args[10], tx));
2154
1992
 
2155
1993
  // @ts-ignore
2156
1994
  return tx.moveCall({
@@ -2193,23 +2031,15 @@ export namespace clob_v2 {
2193
2031
  TransactionArgument,
2194
2032
  ] {
2195
2033
  const _args: any[] = [];
2196
- _args.push(
2197
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2198
- );
2199
- _args.push(
2200
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
2201
- );
2202
- _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
2203
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
2204
- _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
2205
- _args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
2206
- _args.push(TransactionArgument.is(args[6]) ? args[6] : tx.pure(args[6]));
2207
- _args.push(
2208
- TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7]),
2209
- );
2210
- _args.push(
2211
- TransactionArgument.is(args[8]) ? args[8] : tx.object(args[8]),
2212
- );
2034
+ _args.push(transactionArgumentOrObject(args[0], tx));
2035
+ _args.push(transactionArgumentOrObject(args[1], tx));
2036
+ _args.push(transactionArgumentOrPure(args[2], tx));
2037
+ _args.push(transactionArgumentOrPure(args[3], tx));
2038
+ _args.push(transactionArgumentOrPure(args[4], tx));
2039
+ _args.push(transactionArgumentOrPure(args[5], tx));
2040
+ _args.push(transactionArgumentOrPure(args[6], tx));
2041
+ _args.push(transactionArgumentOrObject(args[7], tx));
2042
+ _args.push(transactionArgumentOrObject(args[8], tx));
2213
2043
 
2214
2044
  // @ts-ignore
2215
2045
  return tx.moveCall({
@@ -2250,22 +2080,14 @@ export namespace clob_v2 {
2250
2080
  TransactionArgument,
2251
2081
  ] {
2252
2082
  const _args: any[] = [];
2253
- _args.push(
2254
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2255
- );
2256
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2257
- _args.push(
2258
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
2259
- );
2260
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
2261
- _args.push(TransactionArgument.is(args[4]) ? args[4] : tx.pure(args[4]));
2262
- _args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
2263
- _args.push(
2264
- TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6]),
2265
- );
2266
- _args.push(
2267
- TransactionArgument.is(args[7]) ? args[7] : tx.object(args[7]),
2268
- );
2083
+ _args.push(transactionArgumentOrObject(args[0], tx));
2084
+ _args.push(transactionArgumentOrPure(args[1], tx));
2085
+ _args.push(transactionArgumentOrObject(args[2], tx));
2086
+ _args.push(transactionArgumentOrPure(args[3], tx));
2087
+ _args.push(transactionArgumentOrPure(args[4], tx));
2088
+ _args.push(transactionArgumentOrPure(args[5], tx));
2089
+ _args.push(transactionArgumentOrObject(args[6], tx));
2090
+ _args.push(transactionArgumentOrObject(args[7], tx));
2269
2091
 
2270
2092
  // @ts-ignore
2271
2093
  return tx.moveCall({
@@ -2304,21 +2126,13 @@ export namespace clob_v2 {
2304
2126
  TransactionArgument,
2305
2127
  ] {
2306
2128
  const _args: any[] = [];
2307
- _args.push(
2308
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2309
- );
2310
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2311
- _args.push(
2312
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
2313
- );
2314
- _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
2315
- _args.push(
2316
- TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]),
2317
- );
2318
- _args.push(TransactionArgument.is(args[5]) ? args[5] : tx.pure(args[5]));
2319
- _args.push(
2320
- TransactionArgument.is(args[6]) ? args[6] : tx.object(args[6]),
2321
- );
2129
+ _args.push(transactionArgumentOrObject(args[0], tx));
2130
+ _args.push(transactionArgumentOrPure(args[1], tx));
2131
+ _args.push(transactionArgumentOrObject(args[2], tx));
2132
+ _args.push(transactionArgumentOrPure(args[3], tx));
2133
+ _args.push(transactionArgumentOrObject(args[4], tx));
2134
+ _args.push(transactionArgumentOrPure(args[5], tx));
2135
+ _args.push(transactionArgumentOrObject(args[6], tx));
2322
2136
 
2323
2137
  // @ts-ignore
2324
2138
  return tx.moveCall({
@@ -2351,16 +2165,10 @@ export namespace clob_v2 {
2351
2165
  TransactionArgument,
2352
2166
  ] {
2353
2167
  const _args: any[] = [];
2354
- _args.push(
2355
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2356
- );
2357
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2358
- _args.push(
2359
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
2360
- );
2361
- _args.push(
2362
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
2363
- );
2168
+ _args.push(transactionArgumentOrObject(args[0], tx));
2169
+ _args.push(transactionArgumentOrPure(args[1], tx));
2170
+ _args.push(transactionArgumentOrObject(args[2], tx));
2171
+ _args.push(transactionArgumentOrObject(args[3], tx));
2364
2172
 
2365
2173
  // @ts-ignore
2366
2174
  return tx.moveCall({
@@ -2393,16 +2201,10 @@ export namespace clob_v2 {
2393
2201
  TransactionArgument,
2394
2202
  ] {
2395
2203
  const _args: any[] = [];
2396
- _args.push(
2397
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2398
- );
2399
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2400
- _args.push(
2401
- TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]),
2402
- );
2403
- _args.push(
2404
- TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]),
2405
- );
2204
+ _args.push(transactionArgumentOrObject(args[0], tx));
2205
+ _args.push(transactionArgumentOrPure(args[1], tx));
2206
+ _args.push(transactionArgumentOrObject(args[2], tx));
2207
+ _args.push(transactionArgumentOrObject(args[3], tx));
2406
2208
 
2407
2209
  // @ts-ignore
2408
2210
  return tx.moveCall({
@@ -2918,10 +2720,8 @@ export namespace critbit {
2918
2720
  typeArguments: [TypeDescriptor<T0> | string],
2919
2721
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2920
2722
  const _args: any[] = [];
2921
- _args.push(
2922
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
2923
- );
2924
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2723
+ _args.push(transactionArgumentOrObject(args[0], tx));
2724
+ _args.push(transactionArgumentOrPure(args[1], tx));
2925
2725
 
2926
2726
  // @ts-ignore
2927
2727
  return tx.moveCall({
@@ -3013,9 +2813,7 @@ export namespace custodian {
3013
2813
  args: [string | ObjectCallArg | TransactionArgument],
3014
2814
  ): TransactionArgument & [TransactionArgument] {
3015
2815
  const _args: any[] = [];
3016
- _args.push(
3017
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3018
- );
2816
+ _args.push(transactionArgumentOrObject(args[0], tx));
3019
2817
 
3020
2818
  // @ts-ignore
3021
2819
  return tx.moveCall({
@@ -3099,9 +2897,7 @@ export namespace custodian_v2 {
3099
2897
  args: [string | ObjectCallArg | TransactionArgument],
3100
2898
  ): TransactionArgument & [TransactionArgument] {
3101
2899
  const _args: any[] = [];
3102
- _args.push(
3103
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3104
- );
2900
+ _args.push(transactionArgumentOrObject(args[0], tx));
3105
2901
 
3106
2902
  // @ts-ignore
3107
2903
  return tx.moveCall({
@@ -3117,12 +2913,8 @@ export namespace custodian_v2 {
3117
2913
  ],
3118
2914
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
3119
2915
  const _args: any[] = [];
3120
- _args.push(
3121
- TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0]),
3122
- );
3123
- _args.push(
3124
- TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1]),
3125
- );
2916
+ _args.push(transactionArgumentOrObject(args[0], tx));
2917
+ _args.push(transactionArgumentOrObject(args[1], tx));
3126
2918
 
3127
2919
  // @ts-ignore
3128
2920
  return tx.moveCall({
@@ -3136,7 +2928,7 @@ export namespace custodian_v2 {
3136
2928
  args: [custodian_v2.AccountCap | TransactionArgument],
3137
2929
  ): TransactionArgument & [TransactionArgument] {
3138
2930
  const _args: any[] = [];
3139
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
2931
+ _args.push(transactionArgumentOrPure(args[0], tx));
3140
2932
 
3141
2933
  // @ts-ignore
3142
2934
  return tx.moveCall({
@@ -3205,8 +2997,8 @@ export namespace math {
3205
2997
  args: [bigint | TransactionArgument, bigint | TransactionArgument],
3206
2998
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
3207
2999
  const _args: any[] = [];
3208
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
3209
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3000
+ _args.push(transactionArgumentOrPure(args[0], tx));
3001
+ _args.push(transactionArgumentOrPure(args[1], tx));
3210
3002
 
3211
3003
  // @ts-ignore
3212
3004
  return tx.moveCall({
@@ -3219,8 +3011,8 @@ export namespace math {
3219
3011
  args: [bigint | TransactionArgument, bigint | TransactionArgument],
3220
3012
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
3221
3013
  const _args: any[] = [];
3222
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
3223
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3014
+ _args.push(transactionArgumentOrPure(args[0], tx));
3015
+ _args.push(transactionArgumentOrPure(args[1], tx));
3224
3016
 
3225
3017
  // @ts-ignore
3226
3018
  return tx.moveCall({
@@ -3233,8 +3025,8 @@ export namespace math {
3233
3025
  args: [bigint | TransactionArgument, bigint | TransactionArgument],
3234
3026
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
3235
3027
  const _args: any[] = [];
3236
- _args.push(TransactionArgument.is(args[0]) ? args[0] : tx.pure(args[0]));
3237
- _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3028
+ _args.push(transactionArgumentOrPure(args[0], tx));
3029
+ _args.push(transactionArgumentOrPure(args[1], tx));
3238
3030
 
3239
3031
  // @ts-ignore
3240
3032
  return tx.moveCall({