@typemove/sui 1.0.0-rc.19 → 1.0.0-rc.21

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 (61) hide show
  1. package/dist/builtin/0x1.d.ts +211 -10870
  2. package/dist/builtin/0x1.d.ts.map +1 -1
  3. package/dist/builtin/0x1.js +166 -165
  4. package/dist/builtin/0x1.js.map +1 -1
  5. package/dist/builtin/0x2.d.ts +1163 -46532
  6. package/dist/builtin/0x2.d.ts.map +1 -1
  7. package/dist/builtin/0x2.js +700 -699
  8. package/dist/builtin/0x2.js.map +1 -1
  9. package/dist/builtin/0x3.d.ts +476 -13475
  10. package/dist/builtin/0x3.d.ts.map +1 -1
  11. package/dist/builtin/0x3.js +202 -201
  12. package/dist/builtin/0x3.js.map +1 -1
  13. package/dist/codegen/codegen.js +9 -8
  14. package/dist/codegen/codegen.js.map +1 -1
  15. package/dist/models.d.ts +1 -1
  16. package/dist/models.d.ts.map +1 -1
  17. package/dist/models.js.map +1 -1
  18. package/dist/move-coder.d.ts +1 -1
  19. package/dist/move-coder.d.ts.map +1 -1
  20. package/dist/move-coder.js +1 -5
  21. package/dist/move-coder.js.map +1 -1
  22. package/dist/sui-chain-adapter.d.ts +1 -1
  23. package/dist/sui-chain-adapter.d.ts.map +1 -1
  24. package/dist/sui-chain-adapter.js +10 -4
  25. package/dist/sui-chain-adapter.js.map +1 -1
  26. package/dist/tests/move-call.test.d.ts.map +1 -1
  27. package/dist/tests/move-call.test.js.map +1 -1
  28. package/dist/tests/move-coder.test.js.map +1 -1
  29. package/dist/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.d.ts +25 -544
  30. package/dist/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.d.ts.map +1 -1
  31. package/dist/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.js +10 -9
  32. package/dist/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.js.map +1 -1
  33. package/dist/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.d.ts +250 -6489
  34. package/dist/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.d.ts.map +1 -1
  35. package/dist/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.js +98 -97
  36. package/dist/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.js.map +1 -1
  37. package/dist/tests/types/testnet/0xdee9.d.ts +289 -6398
  38. package/dist/tests/types/testnet/0xdee9.d.ts.map +1 -1
  39. package/dist/tests/types/testnet/0xdee9.js +96 -95
  40. package/dist/tests/types/testnet/0xdee9.js.map +1 -1
  41. package/dist/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.d.ts +977 -21126
  42. package/dist/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.d.ts.map +1 -1
  43. package/dist/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.js +312 -311
  44. package/dist/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.js.map +1 -1
  45. package/dist/to-internal.d.ts +1 -1
  46. package/dist/to-internal.d.ts.map +1 -1
  47. package/dist/to-internal.js +2 -8
  48. package/dist/to-internal.js.map +1 -1
  49. package/package.json +5 -12
  50. package/src/builtin/0x1.ts +293 -297
  51. package/src/builtin/0x2.ts +1483 -1490
  52. package/src/builtin/0x3.ts +582 -589
  53. package/src/codegen/codegen.ts +10 -9
  54. package/src/models.ts +8 -14
  55. package/src/move-coder.ts +6 -20
  56. package/src/sui-chain-adapter.ts +13 -15
  57. package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +27 -31
  58. package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +276 -280
  59. package/src/tests/types/testnet/0xdee9.ts +303 -307
  60. package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +1064 -1068
  61. package/src/to-internal.ts +12 -32
@@ -6,15 +6,11 @@
6
6
 
7
7
  import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
8
8
  import { MoveCoder, defaultMoveCoder, TypedEventInstance } from "@typemove/sui";
9
- import { SuiAddress, ObjectId } from "@mysten/sui.js";
10
9
 
11
10
  import { ZERO_ADDRESS } from "@typemove/sui";
12
- import {
13
- TransactionBlock,
14
- TransactionArgument,
15
- ObjectCallArg,
16
- JsonRpcProvider,
17
- } from "@mysten/sui.js";
11
+ import { TransactionBlock } from "@mysten/sui.js/transactions";
12
+ import { ObjectCallArg, TransactionArgument } from "@mysten/sui.js";
13
+ import { SuiClient } from "@mysten/sui.js/client";
18
14
 
19
15
  import { _0x2 } from "@typemove/sui/builtin";
20
16
  import { _0x1 } from "@typemove/sui/builtin";
@@ -274,8 +270,8 @@ export namespace clob {
274
270
  export function accountBalance<T0 = any, T1 = any>(
275
271
  tx: TransactionBlock,
276
272
  args: [
277
- ObjectId | ObjectCallArg | TransactionArgument,
278
- ObjectId | ObjectCallArg | TransactionArgument
273
+ string | ObjectCallArg | TransactionArgument,
274
+ string | ObjectCallArg | TransactionArgument
279
275
  ],
280
276
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
281
277
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
@@ -304,9 +300,9 @@ export namespace clob {
304
300
  export function batchCancelOrder<T0 = any, T1 = any>(
305
301
  tx: TransactionBlock,
306
302
  args: [
307
- ObjectId | ObjectCallArg | TransactionArgument,
308
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
309
- ObjectId | ObjectCallArg | TransactionArgument
303
+ string | ObjectCallArg | TransactionArgument,
304
+ (string | ObjectCallArg)[] | TransactionArgument,
305
+ string | ObjectCallArg | TransactionArgument
310
306
  ],
311
307
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
312
308
  ): TransactionArgument &
@@ -344,8 +340,8 @@ export namespace clob {
344
340
  export function cancelAllOrders<T0 = any, T1 = any>(
345
341
  tx: TransactionBlock,
346
342
  args: [
347
- ObjectId | ObjectCallArg | TransactionArgument,
348
- ObjectId | ObjectCallArg | TransactionArgument
343
+ string | ObjectCallArg | TransactionArgument,
344
+ string | ObjectCallArg | TransactionArgument
349
345
  ],
350
346
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
351
347
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
@@ -374,9 +370,9 @@ export namespace clob {
374
370
  export function cancelOrder<T0 = any, T1 = any>(
375
371
  tx: TransactionBlock,
376
372
  args: [
377
- ObjectId | ObjectCallArg | TransactionArgument,
373
+ string | ObjectCallArg | TransactionArgument,
378
374
  bigint | TransactionArgument,
379
- ObjectId | ObjectCallArg | TransactionArgument
375
+ string | ObjectCallArg | TransactionArgument
380
376
  ],
381
377
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
382
378
  ): TransactionArgument &
@@ -406,7 +402,7 @@ export namespace clob {
406
402
  }
407
403
  export function createAccount(
408
404
  tx: TransactionBlock,
409
- args: [ObjectId | ObjectCallArg | TransactionArgument]
405
+ args: [string | ObjectCallArg | TransactionArgument]
410
406
  ): TransactionArgument & [TransactionArgument] {
411
407
  const _args: any[] = [];
412
408
  _args.push(
@@ -425,7 +421,7 @@ export namespace clob {
425
421
  bigint | TransactionArgument,
426
422
  bigint | TransactionArgument,
427
423
  _0x2.coin.Coin<_0x2.sui.SUI> | TransactionArgument,
428
- ObjectId | ObjectCallArg | TransactionArgument
424
+ string | ObjectCallArg | TransactionArgument
429
425
  ],
430
426
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
431
427
  ): TransactionArgument &
@@ -460,9 +456,9 @@ export namespace clob {
460
456
  export function depositBase<T0 = any, T1 = any>(
461
457
  tx: TransactionBlock,
462
458
  args: [
463
- ObjectId | ObjectCallArg | TransactionArgument,
459
+ string | ObjectCallArg | TransactionArgument,
464
460
  _0x2.coin.Coin<T0> | TransactionArgument,
465
- ObjectId | ObjectCallArg | TransactionArgument
461
+ string | ObjectCallArg | TransactionArgument
466
462
  ],
467
463
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
468
464
  ): TransactionArgument &
@@ -493,9 +489,9 @@ export namespace clob {
493
489
  export function depositQuote<T0 = any, T1 = any>(
494
490
  tx: TransactionBlock,
495
491
  args: [
496
- ObjectId | ObjectCallArg | TransactionArgument,
492
+ string | ObjectCallArg | TransactionArgument,
497
493
  _0x2.coin.Coin<T1> | TransactionArgument,
498
- ObjectId | ObjectCallArg | TransactionArgument
494
+ string | ObjectCallArg | TransactionArgument
499
495
  ],
500
496
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
501
497
  ): TransactionArgument &
@@ -526,10 +522,10 @@ export namespace clob {
526
522
  export function getLevel2BookStatusAskSide<T0 = any, T1 = any>(
527
523
  tx: TransactionBlock,
528
524
  args: [
529
- ObjectId | ObjectCallArg | TransactionArgument,
525
+ string | ObjectCallArg | TransactionArgument,
530
526
  bigint | TransactionArgument,
531
527
  bigint | TransactionArgument,
532
- ObjectId | ObjectCallArg | TransactionArgument
528
+ string | ObjectCallArg | TransactionArgument
533
529
  ],
534
530
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
535
531
  ): TransactionArgument &
@@ -566,10 +562,10 @@ export namespace clob {
566
562
  export function getLevel2BookStatusBidSide<T0 = any, T1 = any>(
567
563
  tx: TransactionBlock,
568
564
  args: [
569
- ObjectId | ObjectCallArg | TransactionArgument,
565
+ string | ObjectCallArg | TransactionArgument,
570
566
  bigint | TransactionArgument,
571
567
  bigint | TransactionArgument,
572
- ObjectId | ObjectCallArg | TransactionArgument
568
+ string | ObjectCallArg | TransactionArgument
573
569
  ],
574
570
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
575
571
  ): TransactionArgument &
@@ -605,7 +601,7 @@ export namespace clob {
605
601
  }
606
602
  export function getMarketPrice<T0 = any, T1 = any>(
607
603
  tx: TransactionBlock,
608
- args: [ObjectId | ObjectCallArg | TransactionArgument],
604
+ args: [string | ObjectCallArg | TransactionArgument],
609
605
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
610
606
  ): TransactionArgument & [TransactionArgument] {
611
607
  const _args: any[] = [];
@@ -630,9 +626,9 @@ export namespace clob {
630
626
  export function getOrderStatus<T0 = any, T1 = any>(
631
627
  tx: TransactionBlock,
632
628
  args: [
633
- ObjectId | ObjectCallArg | TransactionArgument,
629
+ string | ObjectCallArg | TransactionArgument,
634
630
  bigint | TransactionArgument,
635
- ObjectId | ObjectCallArg | TransactionArgument
631
+ string | ObjectCallArg | TransactionArgument
636
632
  ],
637
633
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
638
634
  ): TransactionArgument &
@@ -663,8 +659,8 @@ export namespace clob {
663
659
  export function listOpenOrders<T0 = any, T1 = any>(
664
660
  tx: TransactionBlock,
665
661
  args: [
666
- ObjectId | ObjectCallArg | TransactionArgument,
667
- ObjectId | ObjectCallArg | TransactionArgument
662
+ string | ObjectCallArg | TransactionArgument,
663
+ string | ObjectCallArg | TransactionArgument
668
664
  ],
669
665
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
670
666
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
@@ -693,15 +689,15 @@ export namespace clob {
693
689
  export function placeLimitOrder<T0 = any, T1 = any>(
694
690
  tx: TransactionBlock,
695
691
  args: [
696
- ObjectId | ObjectCallArg | TransactionArgument,
692
+ string | ObjectCallArg | TransactionArgument,
697
693
  bigint | TransactionArgument,
698
694
  bigint | TransactionArgument,
699
695
  Boolean | TransactionArgument,
700
696
  bigint | TransactionArgument,
701
697
  number | TransactionArgument,
702
- ObjectId | ObjectCallArg | TransactionArgument,
703
- ObjectId | ObjectCallArg | TransactionArgument,
704
- ObjectId | ObjectCallArg | TransactionArgument
698
+ string | ObjectCallArg | TransactionArgument,
699
+ string | ObjectCallArg | TransactionArgument,
700
+ string | ObjectCallArg | TransactionArgument
705
701
  ],
706
702
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
707
703
  ): TransactionArgument &
@@ -752,13 +748,13 @@ export namespace clob {
752
748
  export function placeMarketOrder<T0 = any, T1 = any>(
753
749
  tx: TransactionBlock,
754
750
  args: [
755
- ObjectId | ObjectCallArg | TransactionArgument,
751
+ string | ObjectCallArg | TransactionArgument,
756
752
  bigint | TransactionArgument,
757
753
  Boolean | TransactionArgument,
758
754
  _0x2.coin.Coin<T0> | TransactionArgument,
759
755
  _0x2.coin.Coin<T1> | TransactionArgument,
760
- ObjectId | ObjectCallArg | TransactionArgument,
761
- ObjectId | ObjectCallArg | TransactionArgument
756
+ string | ObjectCallArg | TransactionArgument,
757
+ string | ObjectCallArg | TransactionArgument
762
758
  ],
763
759
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
764
760
  ): TransactionArgument &
@@ -803,12 +799,12 @@ export namespace clob {
803
799
  export function swapExactBaseForQuote<T0 = any, T1 = any>(
804
800
  tx: TransactionBlock,
805
801
  args: [
806
- ObjectId | ObjectCallArg | TransactionArgument,
802
+ string | ObjectCallArg | TransactionArgument,
807
803
  bigint | TransactionArgument,
808
804
  _0x2.coin.Coin<T0> | TransactionArgument,
809
805
  _0x2.coin.Coin<T1> | TransactionArgument,
810
- ObjectId | ObjectCallArg | TransactionArgument,
811
- ObjectId | ObjectCallArg | TransactionArgument
806
+ string | ObjectCallArg | TransactionArgument,
807
+ string | ObjectCallArg | TransactionArgument
812
808
  ],
813
809
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
814
810
  ): TransactionArgument &
@@ -851,11 +847,11 @@ export namespace clob {
851
847
  export function swapExactQuoteForBase<T0 = any, T1 = any>(
852
848
  tx: TransactionBlock,
853
849
  args: [
854
- ObjectId | ObjectCallArg | TransactionArgument,
850
+ string | ObjectCallArg | TransactionArgument,
855
851
  bigint | TransactionArgument,
856
- ObjectId | ObjectCallArg | TransactionArgument,
852
+ string | ObjectCallArg | TransactionArgument,
857
853
  _0x2.coin.Coin<T1> | TransactionArgument,
858
- ObjectId | ObjectCallArg | TransactionArgument
854
+ string | ObjectCallArg | TransactionArgument
859
855
  ],
860
856
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
861
857
  ): TransactionArgument &
@@ -896,10 +892,10 @@ export namespace clob {
896
892
  export function withdrawBase<T0 = any, T1 = any>(
897
893
  tx: TransactionBlock,
898
894
  args: [
899
- ObjectId | ObjectCallArg | TransactionArgument,
895
+ string | ObjectCallArg | TransactionArgument,
900
896
  bigint | TransactionArgument,
901
- ObjectId | ObjectCallArg | TransactionArgument,
902
- ObjectId | ObjectCallArg | TransactionArgument
897
+ string | ObjectCallArg | TransactionArgument,
898
+ string | ObjectCallArg | TransactionArgument
903
899
  ],
904
900
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
905
901
  ): TransactionArgument &
@@ -938,10 +934,10 @@ export namespace clob {
938
934
  export function withdrawQuote<T0 = any, T1 = any>(
939
935
  tx: TransactionBlock,
940
936
  args: [
941
- ObjectId | ObjectCallArg | TransactionArgument,
937
+ string | ObjectCallArg | TransactionArgument,
942
938
  bigint | TransactionArgument,
943
- ObjectId | ObjectCallArg | TransactionArgument,
944
- ObjectId | ObjectCallArg | TransactionArgument
939
+ string | ObjectCallArg | TransactionArgument,
940
+ string | ObjectCallArg | TransactionArgument
945
941
  ],
946
942
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
947
943
  ): TransactionArgument &
@@ -980,331 +976,331 @@ export namespace clob {
980
976
  }
981
977
  export namespace view {
982
978
  export async function accountBalance<T0 = any, T1 = any>(
983
- provider: JsonRpcProvider,
979
+ client: SuiClient,
984
980
  args: [
985
- ObjectId | ObjectCallArg | TransactionArgument,
986
- ObjectId | ObjectCallArg | TransactionArgument
981
+ string | ObjectCallArg | TransactionArgument,
982
+ string | ObjectCallArg | TransactionArgument
987
983
  ],
988
984
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
989
985
  ) {
990
986
  const tx = new TransactionBlock();
991
987
  builder.accountBalance(tx, args, typeArguments);
992
- const res = await provider.devInspectTransactionBlock({
988
+ const res = await client.devInspectTransactionBlock({
993
989
  transactionBlock: tx,
994
990
  sender: ZERO_ADDRESS,
995
991
  });
996
992
  return res;
997
993
  }
998
994
  export async function batchCancelOrder<T0 = any, T1 = any>(
999
- provider: JsonRpcProvider,
995
+ client: SuiClient,
1000
996
  args: [
1001
- ObjectId | ObjectCallArg | TransactionArgument,
1002
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
1003
- ObjectId | ObjectCallArg | TransactionArgument
997
+ string | ObjectCallArg | TransactionArgument,
998
+ (string | ObjectCallArg)[] | TransactionArgument,
999
+ string | ObjectCallArg | TransactionArgument
1004
1000
  ],
1005
1001
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1006
1002
  ) {
1007
1003
  const tx = new TransactionBlock();
1008
1004
  builder.batchCancelOrder(tx, args, typeArguments);
1009
- const res = await provider.devInspectTransactionBlock({
1005
+ const res = await client.devInspectTransactionBlock({
1010
1006
  transactionBlock: tx,
1011
1007
  sender: ZERO_ADDRESS,
1012
1008
  });
1013
1009
  return res;
1014
1010
  }
1015
1011
  export async function cancelAllOrders<T0 = any, T1 = any>(
1016
- provider: JsonRpcProvider,
1012
+ client: SuiClient,
1017
1013
  args: [
1018
- ObjectId | ObjectCallArg | TransactionArgument,
1019
- ObjectId | ObjectCallArg | TransactionArgument
1014
+ string | ObjectCallArg | TransactionArgument,
1015
+ string | ObjectCallArg | TransactionArgument
1020
1016
  ],
1021
1017
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1022
1018
  ) {
1023
1019
  const tx = new TransactionBlock();
1024
1020
  builder.cancelAllOrders(tx, args, typeArguments);
1025
- const res = await provider.devInspectTransactionBlock({
1021
+ const res = await client.devInspectTransactionBlock({
1026
1022
  transactionBlock: tx,
1027
1023
  sender: ZERO_ADDRESS,
1028
1024
  });
1029
1025
  return res;
1030
1026
  }
1031
1027
  export async function cancelOrder<T0 = any, T1 = any>(
1032
- provider: JsonRpcProvider,
1028
+ client: SuiClient,
1033
1029
  args: [
1034
- ObjectId | ObjectCallArg | TransactionArgument,
1030
+ string | ObjectCallArg | TransactionArgument,
1035
1031
  bigint | TransactionArgument,
1036
- ObjectId | ObjectCallArg | TransactionArgument
1032
+ string | ObjectCallArg | TransactionArgument
1037
1033
  ],
1038
1034
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1039
1035
  ) {
1040
1036
  const tx = new TransactionBlock();
1041
1037
  builder.cancelOrder(tx, args, typeArguments);
1042
- const res = await provider.devInspectTransactionBlock({
1038
+ const res = await client.devInspectTransactionBlock({
1043
1039
  transactionBlock: tx,
1044
1040
  sender: ZERO_ADDRESS,
1045
1041
  });
1046
1042
  return res;
1047
1043
  }
1048
1044
  export async function createAccount(
1049
- provider: JsonRpcProvider,
1050
- args: [ObjectId | ObjectCallArg | TransactionArgument]
1045
+ client: SuiClient,
1046
+ args: [string | ObjectCallArg | TransactionArgument]
1051
1047
  ) {
1052
1048
  const tx = new TransactionBlock();
1053
1049
  builder.createAccount(tx, args);
1054
- const res = await provider.devInspectTransactionBlock({
1050
+ const res = await client.devInspectTransactionBlock({
1055
1051
  transactionBlock: tx,
1056
1052
  sender: ZERO_ADDRESS,
1057
1053
  });
1058
1054
  return res;
1059
1055
  }
1060
1056
  export async function createPool<T0 = any, T1 = any>(
1061
- provider: JsonRpcProvider,
1057
+ client: SuiClient,
1062
1058
  args: [
1063
1059
  bigint | TransactionArgument,
1064
1060
  bigint | TransactionArgument,
1065
1061
  _0x2.coin.Coin<_0x2.sui.SUI> | TransactionArgument,
1066
- ObjectId | ObjectCallArg | TransactionArgument
1062
+ string | ObjectCallArg | TransactionArgument
1067
1063
  ],
1068
1064
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1069
1065
  ) {
1070
1066
  const tx = new TransactionBlock();
1071
1067
  builder.createPool(tx, args, typeArguments);
1072
- const res = await provider.devInspectTransactionBlock({
1068
+ const res = await client.devInspectTransactionBlock({
1073
1069
  transactionBlock: tx,
1074
1070
  sender: ZERO_ADDRESS,
1075
1071
  });
1076
1072
  return res;
1077
1073
  }
1078
1074
  export async function depositBase<T0 = any, T1 = any>(
1079
- provider: JsonRpcProvider,
1075
+ client: SuiClient,
1080
1076
  args: [
1081
- ObjectId | ObjectCallArg | TransactionArgument,
1077
+ string | ObjectCallArg | TransactionArgument,
1082
1078
  _0x2.coin.Coin<T0> | TransactionArgument,
1083
- ObjectId | ObjectCallArg | TransactionArgument
1079
+ string | ObjectCallArg | TransactionArgument
1084
1080
  ],
1085
1081
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1086
1082
  ) {
1087
1083
  const tx = new TransactionBlock();
1088
1084
  builder.depositBase(tx, args, typeArguments);
1089
- const res = await provider.devInspectTransactionBlock({
1085
+ const res = await client.devInspectTransactionBlock({
1090
1086
  transactionBlock: tx,
1091
1087
  sender: ZERO_ADDRESS,
1092
1088
  });
1093
1089
  return res;
1094
1090
  }
1095
1091
  export async function depositQuote<T0 = any, T1 = any>(
1096
- provider: JsonRpcProvider,
1092
+ client: SuiClient,
1097
1093
  args: [
1098
- ObjectId | ObjectCallArg | TransactionArgument,
1094
+ string | ObjectCallArg | TransactionArgument,
1099
1095
  _0x2.coin.Coin<T1> | TransactionArgument,
1100
- ObjectId | ObjectCallArg | TransactionArgument
1096
+ string | ObjectCallArg | TransactionArgument
1101
1097
  ],
1102
1098
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1103
1099
  ) {
1104
1100
  const tx = new TransactionBlock();
1105
1101
  builder.depositQuote(tx, args, typeArguments);
1106
- const res = await provider.devInspectTransactionBlock({
1102
+ const res = await client.devInspectTransactionBlock({
1107
1103
  transactionBlock: tx,
1108
1104
  sender: ZERO_ADDRESS,
1109
1105
  });
1110
1106
  return res;
1111
1107
  }
1112
1108
  export async function getLevel2BookStatusAskSide<T0 = any, T1 = any>(
1113
- provider: JsonRpcProvider,
1109
+ client: SuiClient,
1114
1110
  args: [
1115
- ObjectId | ObjectCallArg | TransactionArgument,
1111
+ string | ObjectCallArg | TransactionArgument,
1116
1112
  bigint | TransactionArgument,
1117
1113
  bigint | TransactionArgument,
1118
- ObjectId | ObjectCallArg | TransactionArgument
1114
+ string | ObjectCallArg | TransactionArgument
1119
1115
  ],
1120
1116
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1121
1117
  ) {
1122
1118
  const tx = new TransactionBlock();
1123
1119
  builder.getLevel2BookStatusAskSide(tx, args, typeArguments);
1124
- const res = await provider.devInspectTransactionBlock({
1120
+ const res = await client.devInspectTransactionBlock({
1125
1121
  transactionBlock: tx,
1126
1122
  sender: ZERO_ADDRESS,
1127
1123
  });
1128
1124
  return res;
1129
1125
  }
1130
1126
  export async function getLevel2BookStatusBidSide<T0 = any, T1 = any>(
1131
- provider: JsonRpcProvider,
1127
+ client: SuiClient,
1132
1128
  args: [
1133
- ObjectId | ObjectCallArg | TransactionArgument,
1129
+ string | ObjectCallArg | TransactionArgument,
1134
1130
  bigint | TransactionArgument,
1135
1131
  bigint | TransactionArgument,
1136
- ObjectId | ObjectCallArg | TransactionArgument
1132
+ string | ObjectCallArg | TransactionArgument
1137
1133
  ],
1138
1134
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1139
1135
  ) {
1140
1136
  const tx = new TransactionBlock();
1141
1137
  builder.getLevel2BookStatusBidSide(tx, args, typeArguments);
1142
- const res = await provider.devInspectTransactionBlock({
1138
+ const res = await client.devInspectTransactionBlock({
1143
1139
  transactionBlock: tx,
1144
1140
  sender: ZERO_ADDRESS,
1145
1141
  });
1146
1142
  return res;
1147
1143
  }
1148
1144
  export async function getMarketPrice<T0 = any, T1 = any>(
1149
- provider: JsonRpcProvider,
1150
- args: [ObjectId | ObjectCallArg | TransactionArgument],
1145
+ client: SuiClient,
1146
+ args: [string | ObjectCallArg | TransactionArgument],
1151
1147
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1152
1148
  ) {
1153
1149
  const tx = new TransactionBlock();
1154
1150
  builder.getMarketPrice(tx, args, typeArguments);
1155
- const res = await provider.devInspectTransactionBlock({
1151
+ const res = await client.devInspectTransactionBlock({
1156
1152
  transactionBlock: tx,
1157
1153
  sender: ZERO_ADDRESS,
1158
1154
  });
1159
1155
  return res;
1160
1156
  }
1161
1157
  export async function getOrderStatus<T0 = any, T1 = any>(
1162
- provider: JsonRpcProvider,
1158
+ client: SuiClient,
1163
1159
  args: [
1164
- ObjectId | ObjectCallArg | TransactionArgument,
1160
+ string | ObjectCallArg | TransactionArgument,
1165
1161
  bigint | TransactionArgument,
1166
- ObjectId | ObjectCallArg | TransactionArgument
1162
+ string | ObjectCallArg | TransactionArgument
1167
1163
  ],
1168
1164
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1169
1165
  ) {
1170
1166
  const tx = new TransactionBlock();
1171
1167
  builder.getOrderStatus(tx, args, typeArguments);
1172
- const res = await provider.devInspectTransactionBlock({
1168
+ const res = await client.devInspectTransactionBlock({
1173
1169
  transactionBlock: tx,
1174
1170
  sender: ZERO_ADDRESS,
1175
1171
  });
1176
1172
  return res;
1177
1173
  }
1178
1174
  export async function listOpenOrders<T0 = any, T1 = any>(
1179
- provider: JsonRpcProvider,
1175
+ client: SuiClient,
1180
1176
  args: [
1181
- ObjectId | ObjectCallArg | TransactionArgument,
1182
- ObjectId | ObjectCallArg | TransactionArgument
1177
+ string | ObjectCallArg | TransactionArgument,
1178
+ string | ObjectCallArg | TransactionArgument
1183
1179
  ],
1184
1180
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1185
1181
  ) {
1186
1182
  const tx = new TransactionBlock();
1187
1183
  builder.listOpenOrders(tx, args, typeArguments);
1188
- const res = await provider.devInspectTransactionBlock({
1184
+ const res = await client.devInspectTransactionBlock({
1189
1185
  transactionBlock: tx,
1190
1186
  sender: ZERO_ADDRESS,
1191
1187
  });
1192
1188
  return res;
1193
1189
  }
1194
1190
  export async function placeLimitOrder<T0 = any, T1 = any>(
1195
- provider: JsonRpcProvider,
1191
+ client: SuiClient,
1196
1192
  args: [
1197
- ObjectId | ObjectCallArg | TransactionArgument,
1193
+ string | ObjectCallArg | TransactionArgument,
1198
1194
  bigint | TransactionArgument,
1199
1195
  bigint | TransactionArgument,
1200
1196
  Boolean | TransactionArgument,
1201
1197
  bigint | TransactionArgument,
1202
1198
  number | TransactionArgument,
1203
- ObjectId | ObjectCallArg | TransactionArgument,
1204
- ObjectId | ObjectCallArg | TransactionArgument,
1205
- ObjectId | ObjectCallArg | TransactionArgument
1199
+ string | ObjectCallArg | TransactionArgument,
1200
+ string | ObjectCallArg | TransactionArgument,
1201
+ string | ObjectCallArg | TransactionArgument
1206
1202
  ],
1207
1203
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1208
1204
  ) {
1209
1205
  const tx = new TransactionBlock();
1210
1206
  builder.placeLimitOrder(tx, args, typeArguments);
1211
- const res = await provider.devInspectTransactionBlock({
1207
+ const res = await client.devInspectTransactionBlock({
1212
1208
  transactionBlock: tx,
1213
1209
  sender: ZERO_ADDRESS,
1214
1210
  });
1215
1211
  return res;
1216
1212
  }
1217
1213
  export async function placeMarketOrder<T0 = any, T1 = any>(
1218
- provider: JsonRpcProvider,
1214
+ client: SuiClient,
1219
1215
  args: [
1220
- ObjectId | ObjectCallArg | TransactionArgument,
1216
+ string | ObjectCallArg | TransactionArgument,
1221
1217
  bigint | TransactionArgument,
1222
1218
  Boolean | TransactionArgument,
1223
1219
  _0x2.coin.Coin<T0> | TransactionArgument,
1224
1220
  _0x2.coin.Coin<T1> | TransactionArgument,
1225
- ObjectId | ObjectCallArg | TransactionArgument,
1226
- ObjectId | ObjectCallArg | TransactionArgument
1221
+ string | ObjectCallArg | TransactionArgument,
1222
+ string | ObjectCallArg | TransactionArgument
1227
1223
  ],
1228
1224
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1229
1225
  ) {
1230
1226
  const tx = new TransactionBlock();
1231
1227
  builder.placeMarketOrder(tx, args, typeArguments);
1232
- const res = await provider.devInspectTransactionBlock({
1228
+ const res = await client.devInspectTransactionBlock({
1233
1229
  transactionBlock: tx,
1234
1230
  sender: ZERO_ADDRESS,
1235
1231
  });
1236
1232
  return res;
1237
1233
  }
1238
1234
  export async function swapExactBaseForQuote<T0 = any, T1 = any>(
1239
- provider: JsonRpcProvider,
1235
+ client: SuiClient,
1240
1236
  args: [
1241
- ObjectId | ObjectCallArg | TransactionArgument,
1237
+ string | ObjectCallArg | TransactionArgument,
1242
1238
  bigint | TransactionArgument,
1243
1239
  _0x2.coin.Coin<T0> | TransactionArgument,
1244
1240
  _0x2.coin.Coin<T1> | TransactionArgument,
1245
- ObjectId | ObjectCallArg | TransactionArgument,
1246
- ObjectId | ObjectCallArg | TransactionArgument
1241
+ string | ObjectCallArg | TransactionArgument,
1242
+ string | ObjectCallArg | TransactionArgument
1247
1243
  ],
1248
1244
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1249
1245
  ) {
1250
1246
  const tx = new TransactionBlock();
1251
1247
  builder.swapExactBaseForQuote(tx, args, typeArguments);
1252
- const res = await provider.devInspectTransactionBlock({
1248
+ const res = await client.devInspectTransactionBlock({
1253
1249
  transactionBlock: tx,
1254
1250
  sender: ZERO_ADDRESS,
1255
1251
  });
1256
1252
  return res;
1257
1253
  }
1258
1254
  export async function swapExactQuoteForBase<T0 = any, T1 = any>(
1259
- provider: JsonRpcProvider,
1255
+ client: SuiClient,
1260
1256
  args: [
1261
- ObjectId | ObjectCallArg | TransactionArgument,
1257
+ string | ObjectCallArg | TransactionArgument,
1262
1258
  bigint | TransactionArgument,
1263
- ObjectId | ObjectCallArg | TransactionArgument,
1259
+ string | ObjectCallArg | TransactionArgument,
1264
1260
  _0x2.coin.Coin<T1> | TransactionArgument,
1265
- ObjectId | ObjectCallArg | TransactionArgument
1261
+ string | ObjectCallArg | TransactionArgument
1266
1262
  ],
1267
1263
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1268
1264
  ) {
1269
1265
  const tx = new TransactionBlock();
1270
1266
  builder.swapExactQuoteForBase(tx, args, typeArguments);
1271
- const res = await provider.devInspectTransactionBlock({
1267
+ const res = await client.devInspectTransactionBlock({
1272
1268
  transactionBlock: tx,
1273
1269
  sender: ZERO_ADDRESS,
1274
1270
  });
1275
1271
  return res;
1276
1272
  }
1277
1273
  export async function withdrawBase<T0 = any, T1 = any>(
1278
- provider: JsonRpcProvider,
1274
+ client: SuiClient,
1279
1275
  args: [
1280
- ObjectId | ObjectCallArg | TransactionArgument,
1276
+ string | ObjectCallArg | TransactionArgument,
1281
1277
  bigint | TransactionArgument,
1282
- ObjectId | ObjectCallArg | TransactionArgument,
1283
- ObjectId | ObjectCallArg | TransactionArgument
1278
+ string | ObjectCallArg | TransactionArgument,
1279
+ string | ObjectCallArg | TransactionArgument
1284
1280
  ],
1285
1281
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1286
1282
  ) {
1287
1283
  const tx = new TransactionBlock();
1288
1284
  builder.withdrawBase(tx, args, typeArguments);
1289
- const res = await provider.devInspectTransactionBlock({
1285
+ const res = await client.devInspectTransactionBlock({
1290
1286
  transactionBlock: tx,
1291
1287
  sender: ZERO_ADDRESS,
1292
1288
  });
1293
1289
  return res;
1294
1290
  }
1295
1291
  export async function withdrawQuote<T0 = any, T1 = any>(
1296
- provider: JsonRpcProvider,
1292
+ client: SuiClient,
1297
1293
  args: [
1298
- ObjectId | ObjectCallArg | TransactionArgument,
1294
+ string | ObjectCallArg | TransactionArgument,
1299
1295
  bigint | TransactionArgument,
1300
- ObjectId | ObjectCallArg | TransactionArgument,
1301
- ObjectId | ObjectCallArg | TransactionArgument
1296
+ string | ObjectCallArg | TransactionArgument,
1297
+ string | ObjectCallArg | TransactionArgument
1302
1298
  ],
1303
1299
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1304
1300
  ) {
1305
1301
  const tx = new TransactionBlock();
1306
1302
  builder.withdrawQuote(tx, args, typeArguments);
1307
- const res = await provider.devInspectTransactionBlock({
1303
+ const res = await client.devInspectTransactionBlock({
1308
1304
  transactionBlock: tx,
1309
1305
  sender: ZERO_ADDRESS,
1310
1306
  });
@@ -1317,7 +1313,7 @@ export namespace clob_v2 {
1317
1313
  export interface DepositAsset<T0> {
1318
1314
  pool_id: _0x2.object_.ID;
1319
1315
  quantity: bigint;
1320
- owner: SuiAddress;
1316
+ owner: string;
1321
1317
  }
1322
1318
 
1323
1319
  export namespace DepositAsset {
@@ -1345,7 +1341,7 @@ export namespace clob_v2 {
1345
1341
  original_quantity: bigint;
1346
1342
  quantity: bigint;
1347
1343
  is_bid: Boolean;
1348
- owner: SuiAddress;
1344
+ owner: string;
1349
1345
  expire_timestamp: bigint;
1350
1346
  self_matching_prevention: number;
1351
1347
  }
@@ -1365,7 +1361,7 @@ export namespace clob_v2 {
1365
1361
  order_id: bigint;
1366
1362
  client_order_id: bigint;
1367
1363
  is_bid: Boolean;
1368
- owner: SuiAddress;
1364
+ owner: string;
1369
1365
  original_quantity: bigint;
1370
1366
  base_asset_quantity_canceled: bigint;
1371
1367
  price: bigint;
@@ -1398,8 +1394,8 @@ export namespace clob_v2 {
1398
1394
  taker_client_order_id: bigint;
1399
1395
  maker_client_order_id: bigint;
1400
1396
  is_bid: Boolean;
1401
- taker_address: SuiAddress;
1402
- maker_address: SuiAddress;
1397
+ taker_address: string;
1398
+ maker_address: string;
1403
1399
  original_quantity: bigint;
1404
1400
  base_asset_quantity_filled: bigint;
1405
1401
  base_asset_quantity_remaining: bigint;
@@ -1434,7 +1430,7 @@ export namespace clob_v2 {
1434
1430
  order_id: bigint;
1435
1431
  client_order_id: bigint;
1436
1432
  is_bid: Boolean;
1437
- owner: SuiAddress;
1433
+ owner: string;
1438
1434
  original_quantity: bigint;
1439
1435
  base_asset_quantity_placed: bigint;
1440
1436
  price: bigint;
@@ -1469,7 +1465,7 @@ export namespace clob_v2 {
1469
1465
  next_bid_order_id: bigint;
1470
1466
  next_ask_order_id: bigint;
1471
1467
  usr_open_orders: _0x2.table.Table<
1472
- SuiAddress,
1468
+ string,
1473
1469
  _0x2.linked_table.LinkedTable<bigint, bigint>
1474
1470
  >;
1475
1471
  taker_fee_rate: bigint;
@@ -1539,7 +1535,7 @@ export namespace clob_v2 {
1539
1535
  export interface WithdrawAsset<T0> {
1540
1536
  pool_id: _0x2.object_.ID;
1541
1537
  quantity: bigint;
1542
- owner: SuiAddress;
1538
+ owner: string;
1543
1539
  }
1544
1540
 
1545
1541
  export namespace WithdrawAsset {
@@ -1566,8 +1562,8 @@ export namespace clob_v2 {
1566
1562
  export function accountBalance<T0 = any, T1 = any>(
1567
1563
  tx: TransactionBlock,
1568
1564
  args: [
1569
- ObjectId | ObjectCallArg | TransactionArgument,
1570
- ObjectId | ObjectCallArg | TransactionArgument
1565
+ string | ObjectCallArg | TransactionArgument,
1566
+ string | ObjectCallArg | TransactionArgument
1571
1567
  ],
1572
1568
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1573
1569
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
@@ -1596,9 +1592,9 @@ export namespace clob_v2 {
1596
1592
  export function batchCancelOrder<T0 = any, T1 = any>(
1597
1593
  tx: TransactionBlock,
1598
1594
  args: [
1599
- ObjectId | ObjectCallArg | TransactionArgument,
1600
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
1601
- ObjectId | ObjectCallArg | TransactionArgument
1595
+ string | ObjectCallArg | TransactionArgument,
1596
+ (string | ObjectCallArg)[] | TransactionArgument,
1597
+ string | ObjectCallArg | TransactionArgument
1602
1598
  ],
1603
1599
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1604
1600
  ): TransactionArgument &
@@ -1636,8 +1632,8 @@ export namespace clob_v2 {
1636
1632
  export function cancelAllOrders<T0 = any, T1 = any>(
1637
1633
  tx: TransactionBlock,
1638
1634
  args: [
1639
- ObjectId | ObjectCallArg | TransactionArgument,
1640
- ObjectId | ObjectCallArg | TransactionArgument
1635
+ string | ObjectCallArg | TransactionArgument,
1636
+ string | ObjectCallArg | TransactionArgument
1641
1637
  ],
1642
1638
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1643
1639
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
@@ -1666,9 +1662,9 @@ export namespace clob_v2 {
1666
1662
  export function cancelOrder<T0 = any, T1 = any>(
1667
1663
  tx: TransactionBlock,
1668
1664
  args: [
1669
- ObjectId | ObjectCallArg | TransactionArgument,
1665
+ string | ObjectCallArg | TransactionArgument,
1670
1666
  bigint | TransactionArgument,
1671
- ObjectId | ObjectCallArg | TransactionArgument
1667
+ string | ObjectCallArg | TransactionArgument
1672
1668
  ],
1673
1669
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1674
1670
  ): TransactionArgument &
@@ -1699,10 +1695,10 @@ export namespace clob_v2 {
1699
1695
  export function cleanUpExpiredOrders<T0 = any, T1 = any>(
1700
1696
  tx: TransactionBlock,
1701
1697
  args: [
1702
- ObjectId | ObjectCallArg | TransactionArgument,
1703
- ObjectId | ObjectCallArg | TransactionArgument,
1704
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
1705
- (ObjectId | ObjectCallArg)[] | TransactionArgument
1698
+ string | ObjectCallArg | TransactionArgument,
1699
+ string | ObjectCallArg | TransactionArgument,
1700
+ (string | ObjectCallArg)[] | TransactionArgument,
1701
+ (string | ObjectCallArg)[] | TransactionArgument
1706
1702
  ],
1707
1703
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1708
1704
  ): TransactionArgument &
@@ -1752,7 +1748,7 @@ export namespace clob_v2 {
1752
1748
  }
1753
1749
  export function createAccount(
1754
1750
  tx: TransactionBlock,
1755
- args: [ObjectId | ObjectCallArg | TransactionArgument]
1751
+ args: [string | ObjectCallArg | TransactionArgument]
1756
1752
  ): TransactionArgument & [TransactionArgument] {
1757
1753
  const _args: any[] = [];
1758
1754
  _args.push(
@@ -1771,7 +1767,7 @@ export namespace clob_v2 {
1771
1767
  bigint | TransactionArgument,
1772
1768
  bigint | TransactionArgument,
1773
1769
  _0x2.coin.Coin<_0x2.sui.SUI> | TransactionArgument,
1774
- ObjectId | ObjectCallArg | TransactionArgument
1770
+ string | ObjectCallArg | TransactionArgument
1775
1771
  ],
1776
1772
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1777
1773
  ): TransactionArgument &
@@ -1806,9 +1802,9 @@ export namespace clob_v2 {
1806
1802
  export function depositBase<T0 = any, T1 = any>(
1807
1803
  tx: TransactionBlock,
1808
1804
  args: [
1809
- ObjectId | ObjectCallArg | TransactionArgument,
1805
+ string | ObjectCallArg | TransactionArgument,
1810
1806
  _0x2.coin.Coin<T0> | TransactionArgument,
1811
- ObjectId | ObjectCallArg | TransactionArgument
1807
+ string | ObjectCallArg | TransactionArgument
1812
1808
  ],
1813
1809
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1814
1810
  ): TransactionArgument &
@@ -1839,9 +1835,9 @@ export namespace clob_v2 {
1839
1835
  export function depositQuote<T0 = any, T1 = any>(
1840
1836
  tx: TransactionBlock,
1841
1837
  args: [
1842
- ObjectId | ObjectCallArg | TransactionArgument,
1838
+ string | ObjectCallArg | TransactionArgument,
1843
1839
  _0x2.coin.Coin<T1> | TransactionArgument,
1844
- ObjectId | ObjectCallArg | TransactionArgument
1840
+ string | ObjectCallArg | TransactionArgument
1845
1841
  ],
1846
1842
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1847
1843
  ): TransactionArgument &
@@ -1872,10 +1868,10 @@ export namespace clob_v2 {
1872
1868
  export function getLevel2BookStatusAskSide<T0 = any, T1 = any>(
1873
1869
  tx: TransactionBlock,
1874
1870
  args: [
1875
- ObjectId | ObjectCallArg | TransactionArgument,
1871
+ string | ObjectCallArg | TransactionArgument,
1876
1872
  bigint | TransactionArgument,
1877
1873
  bigint | TransactionArgument,
1878
- ObjectId | ObjectCallArg | TransactionArgument
1874
+ string | ObjectCallArg | TransactionArgument
1879
1875
  ],
1880
1876
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1881
1877
  ): TransactionArgument &
@@ -1912,10 +1908,10 @@ export namespace clob_v2 {
1912
1908
  export function getLevel2BookStatusBidSide<T0 = any, T1 = any>(
1913
1909
  tx: TransactionBlock,
1914
1910
  args: [
1915
- ObjectId | ObjectCallArg | TransactionArgument,
1911
+ string | ObjectCallArg | TransactionArgument,
1916
1912
  bigint | TransactionArgument,
1917
1913
  bigint | TransactionArgument,
1918
- ObjectId | ObjectCallArg | TransactionArgument
1914
+ string | ObjectCallArg | TransactionArgument
1919
1915
  ],
1920
1916
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1921
1917
  ): TransactionArgument &
@@ -1951,7 +1947,7 @@ export namespace clob_v2 {
1951
1947
  }
1952
1948
  export function getMarketPrice<T0 = any, T1 = any>(
1953
1949
  tx: TransactionBlock,
1954
- args: [ObjectId | ObjectCallArg | TransactionArgument],
1950
+ args: [string | ObjectCallArg | TransactionArgument],
1955
1951
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1956
1952
  ): TransactionArgument & [TransactionArgument] {
1957
1953
  const _args: any[] = [];
@@ -1976,9 +1972,9 @@ export namespace clob_v2 {
1976
1972
  export function getOrderStatus<T0 = any, T1 = any>(
1977
1973
  tx: TransactionBlock,
1978
1974
  args: [
1979
- ObjectId | ObjectCallArg | TransactionArgument,
1975
+ string | ObjectCallArg | TransactionArgument,
1980
1976
  bigint | TransactionArgument,
1981
- ObjectId | ObjectCallArg | TransactionArgument
1977
+ string | ObjectCallArg | TransactionArgument
1982
1978
  ],
1983
1979
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
1984
1980
  ): TransactionArgument &
@@ -2009,8 +2005,8 @@ export namespace clob_v2 {
2009
2005
  export function listOpenOrders<T0 = any, T1 = any>(
2010
2006
  tx: TransactionBlock,
2011
2007
  args: [
2012
- ObjectId | ObjectCallArg | TransactionArgument,
2013
- ObjectId | ObjectCallArg | TransactionArgument
2008
+ string | ObjectCallArg | TransactionArgument,
2009
+ string | ObjectCallArg | TransactionArgument
2014
2010
  ],
2015
2011
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2016
2012
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
@@ -2039,7 +2035,7 @@ export namespace clob_v2 {
2039
2035
  export function placeLimitOrder<T0 = any, T1 = any>(
2040
2036
  tx: TransactionBlock,
2041
2037
  args: [
2042
- ObjectId | ObjectCallArg | TransactionArgument,
2038
+ string | ObjectCallArg | TransactionArgument,
2043
2039
  bigint | TransactionArgument,
2044
2040
  bigint | TransactionArgument,
2045
2041
  bigint | TransactionArgument,
@@ -2047,9 +2043,9 @@ export namespace clob_v2 {
2047
2043
  Boolean | TransactionArgument,
2048
2044
  bigint | TransactionArgument,
2049
2045
  number | TransactionArgument,
2050
- ObjectId | ObjectCallArg | TransactionArgument,
2051
- ObjectId | ObjectCallArg | TransactionArgument,
2052
- ObjectId | ObjectCallArg | TransactionArgument
2046
+ string | ObjectCallArg | TransactionArgument,
2047
+ string | ObjectCallArg | TransactionArgument,
2048
+ string | ObjectCallArg | TransactionArgument
2053
2049
  ],
2054
2050
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2055
2051
  ): TransactionArgument &
@@ -2104,15 +2100,15 @@ export namespace clob_v2 {
2104
2100
  export function placeMarketOrder<T0 = any, T1 = any>(
2105
2101
  tx: TransactionBlock,
2106
2102
  args: [
2107
- ObjectId | ObjectCallArg | TransactionArgument,
2108
- ObjectId | ObjectCallArg | TransactionArgument,
2103
+ string | ObjectCallArg | TransactionArgument,
2104
+ string | ObjectCallArg | TransactionArgument,
2109
2105
  bigint | TransactionArgument,
2110
2106
  bigint | TransactionArgument,
2111
2107
  Boolean | TransactionArgument,
2112
2108
  _0x2.coin.Coin<T0> | TransactionArgument,
2113
2109
  _0x2.coin.Coin<T1> | TransactionArgument,
2114
- ObjectId | ObjectCallArg | TransactionArgument,
2115
- ObjectId | ObjectCallArg | TransactionArgument
2110
+ string | ObjectCallArg | TransactionArgument,
2111
+ string | ObjectCallArg | TransactionArgument
2116
2112
  ],
2117
2113
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2118
2114
  ): TransactionArgument &
@@ -2163,14 +2159,14 @@ export namespace clob_v2 {
2163
2159
  export function swapExactBaseForQuote<T0 = any, T1 = any>(
2164
2160
  tx: TransactionBlock,
2165
2161
  args: [
2166
- ObjectId | ObjectCallArg | TransactionArgument,
2162
+ string | ObjectCallArg | TransactionArgument,
2167
2163
  bigint | TransactionArgument,
2168
- ObjectId | ObjectCallArg | TransactionArgument,
2164
+ string | ObjectCallArg | TransactionArgument,
2169
2165
  bigint | TransactionArgument,
2170
2166
  _0x2.coin.Coin<T0> | TransactionArgument,
2171
2167
  _0x2.coin.Coin<T1> | TransactionArgument,
2172
- ObjectId | ObjectCallArg | TransactionArgument,
2173
- ObjectId | ObjectCallArg | TransactionArgument
2168
+ string | ObjectCallArg | TransactionArgument,
2169
+ string | ObjectCallArg | TransactionArgument
2174
2170
  ],
2175
2171
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2176
2172
  ): TransactionArgument &
@@ -2219,13 +2215,13 @@ export namespace clob_v2 {
2219
2215
  export function swapExactQuoteForBase<T0 = any, T1 = any>(
2220
2216
  tx: TransactionBlock,
2221
2217
  args: [
2222
- ObjectId | ObjectCallArg | TransactionArgument,
2218
+ string | ObjectCallArg | TransactionArgument,
2223
2219
  bigint | TransactionArgument,
2224
- ObjectId | ObjectCallArg | TransactionArgument,
2220
+ string | ObjectCallArg | TransactionArgument,
2225
2221
  bigint | TransactionArgument,
2226
- ObjectId | ObjectCallArg | TransactionArgument,
2222
+ string | ObjectCallArg | TransactionArgument,
2227
2223
  _0x2.coin.Coin<T1> | TransactionArgument,
2228
- ObjectId | ObjectCallArg | TransactionArgument
2224
+ string | ObjectCallArg | TransactionArgument
2229
2225
  ],
2230
2226
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2231
2227
  ): TransactionArgument &
@@ -2272,10 +2268,10 @@ export namespace clob_v2 {
2272
2268
  export function withdrawBase<T0 = any, T1 = any>(
2273
2269
  tx: TransactionBlock,
2274
2270
  args: [
2275
- ObjectId | ObjectCallArg | TransactionArgument,
2271
+ string | ObjectCallArg | TransactionArgument,
2276
2272
  bigint | TransactionArgument,
2277
- ObjectId | ObjectCallArg | TransactionArgument,
2278
- ObjectId | ObjectCallArg | TransactionArgument
2273
+ string | ObjectCallArg | TransactionArgument,
2274
+ string | ObjectCallArg | TransactionArgument
2279
2275
  ],
2280
2276
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2281
2277
  ): TransactionArgument &
@@ -2314,10 +2310,10 @@ export namespace clob_v2 {
2314
2310
  export function withdrawQuote<T0 = any, T1 = any>(
2315
2311
  tx: TransactionBlock,
2316
2312
  args: [
2317
- ObjectId | ObjectCallArg | TransactionArgument,
2313
+ string | ObjectCallArg | TransactionArgument,
2318
2314
  bigint | TransactionArgument,
2319
- ObjectId | ObjectCallArg | TransactionArgument,
2320
- ObjectId | ObjectCallArg | TransactionArgument
2315
+ string | ObjectCallArg | TransactionArgument,
2316
+ string | ObjectCallArg | TransactionArgument
2321
2317
  ],
2322
2318
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2323
2319
  ): TransactionArgument &
@@ -2356,239 +2352,239 @@ export namespace clob_v2 {
2356
2352
  }
2357
2353
  export namespace view {
2358
2354
  export async function accountBalance<T0 = any, T1 = any>(
2359
- provider: JsonRpcProvider,
2355
+ client: SuiClient,
2360
2356
  args: [
2361
- ObjectId | ObjectCallArg | TransactionArgument,
2362
- ObjectId | ObjectCallArg | TransactionArgument
2357
+ string | ObjectCallArg | TransactionArgument,
2358
+ string | ObjectCallArg | TransactionArgument
2363
2359
  ],
2364
2360
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2365
2361
  ) {
2366
2362
  const tx = new TransactionBlock();
2367
2363
  builder.accountBalance(tx, args, typeArguments);
2368
- const res = await provider.devInspectTransactionBlock({
2364
+ const res = await client.devInspectTransactionBlock({
2369
2365
  transactionBlock: tx,
2370
2366
  sender: ZERO_ADDRESS,
2371
2367
  });
2372
2368
  return res;
2373
2369
  }
2374
2370
  export async function batchCancelOrder<T0 = any, T1 = any>(
2375
- provider: JsonRpcProvider,
2371
+ client: SuiClient,
2376
2372
  args: [
2377
- ObjectId | ObjectCallArg | TransactionArgument,
2378
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
2379
- ObjectId | ObjectCallArg | TransactionArgument
2373
+ string | ObjectCallArg | TransactionArgument,
2374
+ (string | ObjectCallArg)[] | TransactionArgument,
2375
+ string | ObjectCallArg | TransactionArgument
2380
2376
  ],
2381
2377
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2382
2378
  ) {
2383
2379
  const tx = new TransactionBlock();
2384
2380
  builder.batchCancelOrder(tx, args, typeArguments);
2385
- const res = await provider.devInspectTransactionBlock({
2381
+ const res = await client.devInspectTransactionBlock({
2386
2382
  transactionBlock: tx,
2387
2383
  sender: ZERO_ADDRESS,
2388
2384
  });
2389
2385
  return res;
2390
2386
  }
2391
2387
  export async function cancelAllOrders<T0 = any, T1 = any>(
2392
- provider: JsonRpcProvider,
2388
+ client: SuiClient,
2393
2389
  args: [
2394
- ObjectId | ObjectCallArg | TransactionArgument,
2395
- ObjectId | ObjectCallArg | TransactionArgument
2390
+ string | ObjectCallArg | TransactionArgument,
2391
+ string | ObjectCallArg | TransactionArgument
2396
2392
  ],
2397
2393
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2398
2394
  ) {
2399
2395
  const tx = new TransactionBlock();
2400
2396
  builder.cancelAllOrders(tx, args, typeArguments);
2401
- const res = await provider.devInspectTransactionBlock({
2397
+ const res = await client.devInspectTransactionBlock({
2402
2398
  transactionBlock: tx,
2403
2399
  sender: ZERO_ADDRESS,
2404
2400
  });
2405
2401
  return res;
2406
2402
  }
2407
2403
  export async function cancelOrder<T0 = any, T1 = any>(
2408
- provider: JsonRpcProvider,
2404
+ client: SuiClient,
2409
2405
  args: [
2410
- ObjectId | ObjectCallArg | TransactionArgument,
2406
+ string | ObjectCallArg | TransactionArgument,
2411
2407
  bigint | TransactionArgument,
2412
- ObjectId | ObjectCallArg | TransactionArgument
2408
+ string | ObjectCallArg | TransactionArgument
2413
2409
  ],
2414
2410
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2415
2411
  ) {
2416
2412
  const tx = new TransactionBlock();
2417
2413
  builder.cancelOrder(tx, args, typeArguments);
2418
- const res = await provider.devInspectTransactionBlock({
2414
+ const res = await client.devInspectTransactionBlock({
2419
2415
  transactionBlock: tx,
2420
2416
  sender: ZERO_ADDRESS,
2421
2417
  });
2422
2418
  return res;
2423
2419
  }
2424
2420
  export async function cleanUpExpiredOrders<T0 = any, T1 = any>(
2425
- provider: JsonRpcProvider,
2421
+ client: SuiClient,
2426
2422
  args: [
2427
- ObjectId | ObjectCallArg | TransactionArgument,
2428
- ObjectId | ObjectCallArg | TransactionArgument,
2429
- (ObjectId | ObjectCallArg)[] | TransactionArgument,
2430
- (ObjectId | ObjectCallArg)[] | TransactionArgument
2423
+ string | ObjectCallArg | TransactionArgument,
2424
+ string | ObjectCallArg | TransactionArgument,
2425
+ (string | ObjectCallArg)[] | TransactionArgument,
2426
+ (string | ObjectCallArg)[] | TransactionArgument
2431
2427
  ],
2432
2428
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2433
2429
  ) {
2434
2430
  const tx = new TransactionBlock();
2435
2431
  builder.cleanUpExpiredOrders(tx, args, typeArguments);
2436
- const res = await provider.devInspectTransactionBlock({
2432
+ const res = await client.devInspectTransactionBlock({
2437
2433
  transactionBlock: tx,
2438
2434
  sender: ZERO_ADDRESS,
2439
2435
  });
2440
2436
  return res;
2441
2437
  }
2442
2438
  export async function createAccount(
2443
- provider: JsonRpcProvider,
2444
- args: [ObjectId | ObjectCallArg | TransactionArgument]
2439
+ client: SuiClient,
2440
+ args: [string | ObjectCallArg | TransactionArgument]
2445
2441
  ) {
2446
2442
  const tx = new TransactionBlock();
2447
2443
  builder.createAccount(tx, args);
2448
- const res = await provider.devInspectTransactionBlock({
2444
+ const res = await client.devInspectTransactionBlock({
2449
2445
  transactionBlock: tx,
2450
2446
  sender: ZERO_ADDRESS,
2451
2447
  });
2452
2448
  return res;
2453
2449
  }
2454
2450
  export async function createPool<T0 = any, T1 = any>(
2455
- provider: JsonRpcProvider,
2451
+ client: SuiClient,
2456
2452
  args: [
2457
2453
  bigint | TransactionArgument,
2458
2454
  bigint | TransactionArgument,
2459
2455
  _0x2.coin.Coin<_0x2.sui.SUI> | TransactionArgument,
2460
- ObjectId | ObjectCallArg | TransactionArgument
2456
+ string | ObjectCallArg | TransactionArgument
2461
2457
  ],
2462
2458
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2463
2459
  ) {
2464
2460
  const tx = new TransactionBlock();
2465
2461
  builder.createPool(tx, args, typeArguments);
2466
- const res = await provider.devInspectTransactionBlock({
2462
+ const res = await client.devInspectTransactionBlock({
2467
2463
  transactionBlock: tx,
2468
2464
  sender: ZERO_ADDRESS,
2469
2465
  });
2470
2466
  return res;
2471
2467
  }
2472
2468
  export async function depositBase<T0 = any, T1 = any>(
2473
- provider: JsonRpcProvider,
2469
+ client: SuiClient,
2474
2470
  args: [
2475
- ObjectId | ObjectCallArg | TransactionArgument,
2471
+ string | ObjectCallArg | TransactionArgument,
2476
2472
  _0x2.coin.Coin<T0> | TransactionArgument,
2477
- ObjectId | ObjectCallArg | TransactionArgument
2473
+ string | ObjectCallArg | TransactionArgument
2478
2474
  ],
2479
2475
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2480
2476
  ) {
2481
2477
  const tx = new TransactionBlock();
2482
2478
  builder.depositBase(tx, args, typeArguments);
2483
- const res = await provider.devInspectTransactionBlock({
2479
+ const res = await client.devInspectTransactionBlock({
2484
2480
  transactionBlock: tx,
2485
2481
  sender: ZERO_ADDRESS,
2486
2482
  });
2487
2483
  return res;
2488
2484
  }
2489
2485
  export async function depositQuote<T0 = any, T1 = any>(
2490
- provider: JsonRpcProvider,
2486
+ client: SuiClient,
2491
2487
  args: [
2492
- ObjectId | ObjectCallArg | TransactionArgument,
2488
+ string | ObjectCallArg | TransactionArgument,
2493
2489
  _0x2.coin.Coin<T1> | TransactionArgument,
2494
- ObjectId | ObjectCallArg | TransactionArgument
2490
+ string | ObjectCallArg | TransactionArgument
2495
2491
  ],
2496
2492
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2497
2493
  ) {
2498
2494
  const tx = new TransactionBlock();
2499
2495
  builder.depositQuote(tx, args, typeArguments);
2500
- const res = await provider.devInspectTransactionBlock({
2496
+ const res = await client.devInspectTransactionBlock({
2501
2497
  transactionBlock: tx,
2502
2498
  sender: ZERO_ADDRESS,
2503
2499
  });
2504
2500
  return res;
2505
2501
  }
2506
2502
  export async function getLevel2BookStatusAskSide<T0 = any, T1 = any>(
2507
- provider: JsonRpcProvider,
2503
+ client: SuiClient,
2508
2504
  args: [
2509
- ObjectId | ObjectCallArg | TransactionArgument,
2505
+ string | ObjectCallArg | TransactionArgument,
2510
2506
  bigint | TransactionArgument,
2511
2507
  bigint | TransactionArgument,
2512
- ObjectId | ObjectCallArg | TransactionArgument
2508
+ string | ObjectCallArg | TransactionArgument
2513
2509
  ],
2514
2510
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2515
2511
  ) {
2516
2512
  const tx = new TransactionBlock();
2517
2513
  builder.getLevel2BookStatusAskSide(tx, args, typeArguments);
2518
- const res = await provider.devInspectTransactionBlock({
2514
+ const res = await client.devInspectTransactionBlock({
2519
2515
  transactionBlock: tx,
2520
2516
  sender: ZERO_ADDRESS,
2521
2517
  });
2522
2518
  return res;
2523
2519
  }
2524
2520
  export async function getLevel2BookStatusBidSide<T0 = any, T1 = any>(
2525
- provider: JsonRpcProvider,
2521
+ client: SuiClient,
2526
2522
  args: [
2527
- ObjectId | ObjectCallArg | TransactionArgument,
2523
+ string | ObjectCallArg | TransactionArgument,
2528
2524
  bigint | TransactionArgument,
2529
2525
  bigint | TransactionArgument,
2530
- ObjectId | ObjectCallArg | TransactionArgument
2526
+ string | ObjectCallArg | TransactionArgument
2531
2527
  ],
2532
2528
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2533
2529
  ) {
2534
2530
  const tx = new TransactionBlock();
2535
2531
  builder.getLevel2BookStatusBidSide(tx, args, typeArguments);
2536
- const res = await provider.devInspectTransactionBlock({
2532
+ const res = await client.devInspectTransactionBlock({
2537
2533
  transactionBlock: tx,
2538
2534
  sender: ZERO_ADDRESS,
2539
2535
  });
2540
2536
  return res;
2541
2537
  }
2542
2538
  export async function getMarketPrice<T0 = any, T1 = any>(
2543
- provider: JsonRpcProvider,
2544
- args: [ObjectId | ObjectCallArg | TransactionArgument],
2539
+ client: SuiClient,
2540
+ args: [string | ObjectCallArg | TransactionArgument],
2545
2541
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2546
2542
  ) {
2547
2543
  const tx = new TransactionBlock();
2548
2544
  builder.getMarketPrice(tx, args, typeArguments);
2549
- const res = await provider.devInspectTransactionBlock({
2545
+ const res = await client.devInspectTransactionBlock({
2550
2546
  transactionBlock: tx,
2551
2547
  sender: ZERO_ADDRESS,
2552
2548
  });
2553
2549
  return res;
2554
2550
  }
2555
2551
  export async function getOrderStatus<T0 = any, T1 = any>(
2556
- provider: JsonRpcProvider,
2552
+ client: SuiClient,
2557
2553
  args: [
2558
- ObjectId | ObjectCallArg | TransactionArgument,
2554
+ string | ObjectCallArg | TransactionArgument,
2559
2555
  bigint | TransactionArgument,
2560
- ObjectId | ObjectCallArg | TransactionArgument
2556
+ string | ObjectCallArg | TransactionArgument
2561
2557
  ],
2562
2558
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2563
2559
  ) {
2564
2560
  const tx = new TransactionBlock();
2565
2561
  builder.getOrderStatus(tx, args, typeArguments);
2566
- const res = await provider.devInspectTransactionBlock({
2562
+ const res = await client.devInspectTransactionBlock({
2567
2563
  transactionBlock: tx,
2568
2564
  sender: ZERO_ADDRESS,
2569
2565
  });
2570
2566
  return res;
2571
2567
  }
2572
2568
  export async function listOpenOrders<T0 = any, T1 = any>(
2573
- provider: JsonRpcProvider,
2569
+ client: SuiClient,
2574
2570
  args: [
2575
- ObjectId | ObjectCallArg | TransactionArgument,
2576
- ObjectId | ObjectCallArg | TransactionArgument
2571
+ string | ObjectCallArg | TransactionArgument,
2572
+ string | ObjectCallArg | TransactionArgument
2577
2573
  ],
2578
2574
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2579
2575
  ) {
2580
2576
  const tx = new TransactionBlock();
2581
2577
  builder.listOpenOrders(tx, args, typeArguments);
2582
- const res = await provider.devInspectTransactionBlock({
2578
+ const res = await client.devInspectTransactionBlock({
2583
2579
  transactionBlock: tx,
2584
2580
  sender: ZERO_ADDRESS,
2585
2581
  });
2586
2582
  return res;
2587
2583
  }
2588
2584
  export async function placeLimitOrder<T0 = any, T1 = any>(
2589
- provider: JsonRpcProvider,
2585
+ client: SuiClient,
2590
2586
  args: [
2591
- ObjectId | ObjectCallArg | TransactionArgument,
2587
+ string | ObjectCallArg | TransactionArgument,
2592
2588
  bigint | TransactionArgument,
2593
2589
  bigint | TransactionArgument,
2594
2590
  bigint | TransactionArgument,
@@ -2596,117 +2592,117 @@ export namespace clob_v2 {
2596
2592
  Boolean | TransactionArgument,
2597
2593
  bigint | TransactionArgument,
2598
2594
  number | TransactionArgument,
2599
- ObjectId | ObjectCallArg | TransactionArgument,
2600
- ObjectId | ObjectCallArg | TransactionArgument,
2601
- ObjectId | ObjectCallArg | TransactionArgument
2595
+ string | ObjectCallArg | TransactionArgument,
2596
+ string | ObjectCallArg | TransactionArgument,
2597
+ string | ObjectCallArg | TransactionArgument
2602
2598
  ],
2603
2599
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2604
2600
  ) {
2605
2601
  const tx = new TransactionBlock();
2606
2602
  builder.placeLimitOrder(tx, args, typeArguments);
2607
- const res = await provider.devInspectTransactionBlock({
2603
+ const res = await client.devInspectTransactionBlock({
2608
2604
  transactionBlock: tx,
2609
2605
  sender: ZERO_ADDRESS,
2610
2606
  });
2611
2607
  return res;
2612
2608
  }
2613
2609
  export async function placeMarketOrder<T0 = any, T1 = any>(
2614
- provider: JsonRpcProvider,
2610
+ client: SuiClient,
2615
2611
  args: [
2616
- ObjectId | ObjectCallArg | TransactionArgument,
2617
- ObjectId | ObjectCallArg | TransactionArgument,
2612
+ string | ObjectCallArg | TransactionArgument,
2613
+ string | ObjectCallArg | TransactionArgument,
2618
2614
  bigint | TransactionArgument,
2619
2615
  bigint | TransactionArgument,
2620
2616
  Boolean | TransactionArgument,
2621
2617
  _0x2.coin.Coin<T0> | TransactionArgument,
2622
2618
  _0x2.coin.Coin<T1> | TransactionArgument,
2623
- ObjectId | ObjectCallArg | TransactionArgument,
2624
- ObjectId | ObjectCallArg | TransactionArgument
2619
+ string | ObjectCallArg | TransactionArgument,
2620
+ string | ObjectCallArg | TransactionArgument
2625
2621
  ],
2626
2622
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2627
2623
  ) {
2628
2624
  const tx = new TransactionBlock();
2629
2625
  builder.placeMarketOrder(tx, args, typeArguments);
2630
- const res = await provider.devInspectTransactionBlock({
2626
+ const res = await client.devInspectTransactionBlock({
2631
2627
  transactionBlock: tx,
2632
2628
  sender: ZERO_ADDRESS,
2633
2629
  });
2634
2630
  return res;
2635
2631
  }
2636
2632
  export async function swapExactBaseForQuote<T0 = any, T1 = any>(
2637
- provider: JsonRpcProvider,
2633
+ client: SuiClient,
2638
2634
  args: [
2639
- ObjectId | ObjectCallArg | TransactionArgument,
2635
+ string | ObjectCallArg | TransactionArgument,
2640
2636
  bigint | TransactionArgument,
2641
- ObjectId | ObjectCallArg | TransactionArgument,
2637
+ string | ObjectCallArg | TransactionArgument,
2642
2638
  bigint | TransactionArgument,
2643
2639
  _0x2.coin.Coin<T0> | TransactionArgument,
2644
2640
  _0x2.coin.Coin<T1> | TransactionArgument,
2645
- ObjectId | ObjectCallArg | TransactionArgument,
2646
- ObjectId | ObjectCallArg | TransactionArgument
2641
+ string | ObjectCallArg | TransactionArgument,
2642
+ string | ObjectCallArg | TransactionArgument
2647
2643
  ],
2648
2644
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2649
2645
  ) {
2650
2646
  const tx = new TransactionBlock();
2651
2647
  builder.swapExactBaseForQuote(tx, args, typeArguments);
2652
- const res = await provider.devInspectTransactionBlock({
2648
+ const res = await client.devInspectTransactionBlock({
2653
2649
  transactionBlock: tx,
2654
2650
  sender: ZERO_ADDRESS,
2655
2651
  });
2656
2652
  return res;
2657
2653
  }
2658
2654
  export async function swapExactQuoteForBase<T0 = any, T1 = any>(
2659
- provider: JsonRpcProvider,
2655
+ client: SuiClient,
2660
2656
  args: [
2661
- ObjectId | ObjectCallArg | TransactionArgument,
2657
+ string | ObjectCallArg | TransactionArgument,
2662
2658
  bigint | TransactionArgument,
2663
- ObjectId | ObjectCallArg | TransactionArgument,
2659
+ string | ObjectCallArg | TransactionArgument,
2664
2660
  bigint | TransactionArgument,
2665
- ObjectId | ObjectCallArg | TransactionArgument,
2661
+ string | ObjectCallArg | TransactionArgument,
2666
2662
  _0x2.coin.Coin<T1> | TransactionArgument,
2667
- ObjectId | ObjectCallArg | TransactionArgument
2663
+ string | ObjectCallArg | TransactionArgument
2668
2664
  ],
2669
2665
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2670
2666
  ) {
2671
2667
  const tx = new TransactionBlock();
2672
2668
  builder.swapExactQuoteForBase(tx, args, typeArguments);
2673
- const res = await provider.devInspectTransactionBlock({
2669
+ const res = await client.devInspectTransactionBlock({
2674
2670
  transactionBlock: tx,
2675
2671
  sender: ZERO_ADDRESS,
2676
2672
  });
2677
2673
  return res;
2678
2674
  }
2679
2675
  export async function withdrawBase<T0 = any, T1 = any>(
2680
- provider: JsonRpcProvider,
2676
+ client: SuiClient,
2681
2677
  args: [
2682
- ObjectId | ObjectCallArg | TransactionArgument,
2678
+ string | ObjectCallArg | TransactionArgument,
2683
2679
  bigint | TransactionArgument,
2684
- ObjectId | ObjectCallArg | TransactionArgument,
2685
- ObjectId | ObjectCallArg | TransactionArgument
2680
+ string | ObjectCallArg | TransactionArgument,
2681
+ string | ObjectCallArg | TransactionArgument
2686
2682
  ],
2687
2683
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2688
2684
  ) {
2689
2685
  const tx = new TransactionBlock();
2690
2686
  builder.withdrawBase(tx, args, typeArguments);
2691
- const res = await provider.devInspectTransactionBlock({
2687
+ const res = await client.devInspectTransactionBlock({
2692
2688
  transactionBlock: tx,
2693
2689
  sender: ZERO_ADDRESS,
2694
2690
  });
2695
2691
  return res;
2696
2692
  }
2697
2693
  export async function withdrawQuote<T0 = any, T1 = any>(
2698
- provider: JsonRpcProvider,
2694
+ client: SuiClient,
2699
2695
  args: [
2700
- ObjectId | ObjectCallArg | TransactionArgument,
2696
+ string | ObjectCallArg | TransactionArgument,
2701
2697
  bigint | TransactionArgument,
2702
- ObjectId | ObjectCallArg | TransactionArgument,
2703
- ObjectId | ObjectCallArg | TransactionArgument
2698
+ string | ObjectCallArg | TransactionArgument,
2699
+ string | ObjectCallArg | TransactionArgument
2704
2700
  ],
2705
2701
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]
2706
2702
  ) {
2707
2703
  const tx = new TransactionBlock();
2708
2704
  builder.withdrawQuote(tx, args, typeArguments);
2709
- const res = await provider.devInspectTransactionBlock({
2705
+ const res = await client.devInspectTransactionBlock({
2710
2706
  transactionBlock: tx,
2711
2707
  sender: ZERO_ADDRESS,
2712
2708
  });
@@ -2777,7 +2773,7 @@ export namespace critbit {
2777
2773
  export function previousLeaf<T0 = any>(
2778
2774
  tx: TransactionBlock,
2779
2775
  args: [
2780
- ObjectId | ObjectCallArg | TransactionArgument,
2776
+ string | ObjectCallArg | TransactionArgument,
2781
2777
  bigint | TransactionArgument
2782
2778
  ],
2783
2779
  typeArguments: [TypeDescriptor<T0> | string]
@@ -2802,16 +2798,16 @@ export namespace critbit {
2802
2798
  }
2803
2799
  export namespace view {
2804
2800
  export async function previousLeaf<T0 = any>(
2805
- provider: JsonRpcProvider,
2801
+ client: SuiClient,
2806
2802
  args: [
2807
- ObjectId | ObjectCallArg | TransactionArgument,
2803
+ string | ObjectCallArg | TransactionArgument,
2808
2804
  bigint | TransactionArgument
2809
2805
  ],
2810
2806
  typeArguments: [TypeDescriptor<T0> | string]
2811
2807
  ) {
2812
2808
  const tx = new TransactionBlock();
2813
2809
  builder.previousLeaf(tx, args, typeArguments);
2814
- const res = await provider.devInspectTransactionBlock({
2810
+ const res = await client.devInspectTransactionBlock({
2815
2811
  transactionBlock: tx,
2816
2812
  sender: ZERO_ADDRESS,
2817
2813
  });
@@ -2872,7 +2868,7 @@ export namespace custodian {
2872
2868
  export namespace builder {
2873
2869
  export function mintAccountCap(
2874
2870
  tx: TransactionBlock,
2875
- args: [ObjectId | ObjectCallArg | TransactionArgument]
2871
+ args: [string | ObjectCallArg | TransactionArgument]
2876
2872
  ): TransactionArgument & [TransactionArgument] {
2877
2873
  const _args: any[] = [];
2878
2874
  _args.push(
@@ -2888,12 +2884,12 @@ export namespace custodian {
2888
2884
  }
2889
2885
  export namespace view {
2890
2886
  export async function mintAccountCap(
2891
- provider: JsonRpcProvider,
2892
- args: [ObjectId | ObjectCallArg | TransactionArgument]
2887
+ client: SuiClient,
2888
+ args: [string | ObjectCallArg | TransactionArgument]
2893
2889
  ) {
2894
2890
  const tx = new TransactionBlock();
2895
2891
  builder.mintAccountCap(tx, args);
2896
- const res = await provider.devInspectTransactionBlock({
2892
+ const res = await client.devInspectTransactionBlock({
2897
2893
  transactionBlock: tx,
2898
2894
  sender: ZERO_ADDRESS,
2899
2895
  });
@@ -2922,7 +2918,7 @@ export namespace custodian_v2 {
2922
2918
 
2923
2919
  export interface AccountCap {
2924
2920
  id: _0x2.object_.UID;
2925
- owner: SuiAddress;
2921
+ owner: string;
2926
2922
  }
2927
2923
 
2928
2924
  export namespace AccountCap {
@@ -2937,7 +2933,7 @@ export namespace custodian_v2 {
2937
2933
 
2938
2934
  export interface Custodian<T0> {
2939
2935
  id: _0x2.object_.UID;
2940
- account_balances: _0x2.table.Table<SuiAddress, custodian_v2.Account<T0>>;
2936
+ account_balances: _0x2.table.Table<string, custodian_v2.Account<T0>>;
2941
2937
  }
2942
2938
 
2943
2939
  export namespace Custodian {
@@ -2955,7 +2951,7 @@ export namespace custodian_v2 {
2955
2951
  export namespace builder {
2956
2952
  export function accountOwner(
2957
2953
  tx: TransactionBlock,
2958
- args: [ObjectId | ObjectCallArg | TransactionArgument]
2954
+ args: [string | ObjectCallArg | TransactionArgument]
2959
2955
  ): TransactionArgument & [TransactionArgument] {
2960
2956
  const _args: any[] = [];
2961
2957
  _args.push(
@@ -2971,8 +2967,8 @@ export namespace custodian_v2 {
2971
2967
  export function createChildAccountCap(
2972
2968
  tx: TransactionBlock,
2973
2969
  args: [
2974
- ObjectId | ObjectCallArg | TransactionArgument,
2975
- ObjectId | ObjectCallArg | TransactionArgument
2970
+ string | ObjectCallArg | TransactionArgument,
2971
+ string | ObjectCallArg | TransactionArgument
2976
2972
  ]
2977
2973
  ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2978
2974
  const _args: any[] = [];
@@ -3006,27 +3002,27 @@ export namespace custodian_v2 {
3006
3002
  }
3007
3003
  export namespace view {
3008
3004
  export async function accountOwner(
3009
- provider: JsonRpcProvider,
3010
- args: [ObjectId | ObjectCallArg | TransactionArgument]
3005
+ client: SuiClient,
3006
+ args: [string | ObjectCallArg | TransactionArgument]
3011
3007
  ) {
3012
3008
  const tx = new TransactionBlock();
3013
3009
  builder.accountOwner(tx, args);
3014
- const res = await provider.devInspectTransactionBlock({
3010
+ const res = await client.devInspectTransactionBlock({
3015
3011
  transactionBlock: tx,
3016
3012
  sender: ZERO_ADDRESS,
3017
3013
  });
3018
3014
  return res;
3019
3015
  }
3020
3016
  export async function createChildAccountCap(
3021
- provider: JsonRpcProvider,
3017
+ client: SuiClient,
3022
3018
  args: [
3023
- ObjectId | ObjectCallArg | TransactionArgument,
3024
- ObjectId | ObjectCallArg | TransactionArgument
3019
+ string | ObjectCallArg | TransactionArgument,
3020
+ string | ObjectCallArg | TransactionArgument
3025
3021
  ]
3026
3022
  ) {
3027
3023
  const tx = new TransactionBlock();
3028
3024
  builder.createChildAccountCap(tx, args);
3029
- const res = await provider.devInspectTransactionBlock({
3025
+ const res = await client.devInspectTransactionBlock({
3030
3026
  transactionBlock: tx,
3031
3027
  sender: ZERO_ADDRESS,
3032
3028
  });
@@ -3034,12 +3030,12 @@ export namespace custodian_v2 {
3034
3030
  }
3035
3031
 
3036
3032
  export async function deleteAccountCap(
3037
- provider: JsonRpcProvider,
3033
+ client: SuiClient,
3038
3034
  args: [custodian_v2.AccountCap | TransactionArgument]
3039
3035
  ) {
3040
3036
  const tx = new TransactionBlock();
3041
3037
  builder.deleteAccountCap(tx, args);
3042
- const res = await provider.devInspectTransactionBlock({
3038
+ const res = await client.devInspectTransactionBlock({
3043
3039
  transactionBlock: tx,
3044
3040
  sender: ZERO_ADDRESS,
3045
3041
  });
@@ -3095,36 +3091,36 @@ export namespace math {
3095
3091
  }
3096
3092
  export namespace view {
3097
3093
  export async function divRound(
3098
- provider: JsonRpcProvider,
3094
+ client: SuiClient,
3099
3095
  args: [bigint | TransactionArgument, bigint | TransactionArgument]
3100
3096
  ) {
3101
3097
  const tx = new TransactionBlock();
3102
3098
  builder.divRound(tx, args);
3103
- const res = await provider.devInspectTransactionBlock({
3099
+ const res = await client.devInspectTransactionBlock({
3104
3100
  transactionBlock: tx,
3105
3101
  sender: ZERO_ADDRESS,
3106
3102
  });
3107
3103
  return res;
3108
3104
  }
3109
3105
  export async function mul(
3110
- provider: JsonRpcProvider,
3106
+ client: SuiClient,
3111
3107
  args: [bigint | TransactionArgument, bigint | TransactionArgument]
3112
3108
  ) {
3113
3109
  const tx = new TransactionBlock();
3114
3110
  builder.mul(tx, args);
3115
- const res = await provider.devInspectTransactionBlock({
3111
+ const res = await client.devInspectTransactionBlock({
3116
3112
  transactionBlock: tx,
3117
3113
  sender: ZERO_ADDRESS,
3118
3114
  });
3119
3115
  return res;
3120
3116
  }
3121
3117
  export async function mulRound(
3122
- provider: JsonRpcProvider,
3118
+ client: SuiClient,
3123
3119
  args: [bigint | TransactionArgument, bigint | TransactionArgument]
3124
3120
  ) {
3125
3121
  const tx = new TransactionBlock();
3126
3122
  builder.mulRound(tx, args);
3127
- const res = await provider.devInspectTransactionBlock({
3123
+ const res = await client.devInspectTransactionBlock({
3128
3124
  transactionBlock: tx,
3129
3125
  sender: ZERO_ADDRESS,
3130
3126
  });