@typemove/sui 1.13.4-rc.2 → 1.13.4

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 (43) hide show
  1. package/dist/esm/builtin/0x1.d.ts +269 -269
  2. package/dist/esm/builtin/0x1.d.ts.map +1 -1
  3. package/dist/esm/builtin/0x1.js.map +1 -1
  4. package/dist/esm/builtin/0x2.d.ts +684 -684
  5. package/dist/esm/builtin/0x2.d.ts.map +1 -1
  6. package/dist/esm/builtin/0x2.js.map +1 -1
  7. package/dist/esm/builtin/0x3.d.ts +272 -272
  8. package/dist/esm/builtin/0x3.d.ts.map +1 -1
  9. package/dist/esm/builtin/0x3.js.map +1 -1
  10. package/dist/esm/codegen/codegen.d.ts +1 -1
  11. package/dist/esm/codegen/codegen.d.ts.map +1 -1
  12. package/dist/esm/codegen/codegen.js +5 -5
  13. package/dist/esm/codegen/codegen.js.map +1 -1
  14. package/dist/esm/codegen/run.js +3 -2
  15. package/dist/esm/codegen/run.js.map +1 -1
  16. package/dist/esm/models.d.ts +1 -1
  17. package/dist/esm/models.d.ts.map +1 -1
  18. package/dist/esm/move-coder.d.ts +3 -3
  19. package/dist/esm/move-coder.d.ts.map +1 -1
  20. package/dist/esm/move-coder.js +3 -3
  21. package/dist/esm/move-coder.js.map +1 -1
  22. package/dist/esm/sui-chain-adapter.d.ts +4 -3
  23. package/dist/esm/sui-chain-adapter.d.ts.map +1 -1
  24. package/dist/esm/sui-chain-adapter.js +13 -2
  25. package/dist/esm/sui-chain-adapter.js.map +1 -1
  26. package/dist/esm/to-internal.d.ts +1 -1
  27. package/dist/esm/to-internal.d.ts.map +1 -1
  28. package/package.json +3 -3
  29. package/src/builtin/0x1.ts +269 -269
  30. package/src/builtin/0x2.ts +684 -684
  31. package/src/builtin/0x3.ts +272 -272
  32. package/src/codegen/codegen.ts +5 -5
  33. package/src/codegen/run.ts +3 -2
  34. package/src/models.ts +1 -1
  35. package/src/move-coder.ts +7 -7
  36. package/src/sui-chain-adapter.ts +13 -5
  37. package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +5 -5
  38. package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +49 -49
  39. package/src/tests/types/testnet/0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e.ts +32 -32
  40. package/src/tests/types/testnet/0xdee9.ts +91 -91
  41. package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +156 -156
  42. package/src/tests/types/testnet/enum.ts +119 -119
  43. package/src/to-internal.ts +1 -1
@@ -19,7 +19,7 @@ import {
19
19
  TransactionArgument,
20
20
  TransactionObjectArgument,
21
21
  } from "@mysten/sui/transactions";
22
- import { SuiClient } from "@mysten/sui/client";
22
+ import { SuiJsonRpcClient } from "@mysten/sui/jsonRpc";
23
23
  import {
24
24
  transactionArgumentOrObject,
25
25
  transactionArgumentOrVec,
@@ -303,7 +303,7 @@ export namespace airdrop {
303
303
  }
304
304
  export namespace view {
305
305
  export async function addRecord(
306
- client: SuiClient,
306
+ client: SuiJsonRpcClient,
307
307
  args: [string, string],
308
308
  ): Promise<TypedDevInspectResults<[]>> {
309
309
  const tx = new Transaction();
@@ -318,7 +318,7 @@ export namespace airdrop {
318
318
  );
319
319
  }
320
320
  export async function authorizeApi(
321
- client: SuiClient,
321
+ client: SuiJsonRpcClient,
322
322
  args: [string, string, string],
323
323
  ): Promise<TypedDevInspectResults<[]>> {
324
324
  const tx = new Transaction();
@@ -333,7 +333,7 @@ export namespace airdrop {
333
333
  );
334
334
  }
335
335
  export async function deauthorizeApi(
336
- client: SuiClient,
336
+ client: SuiJsonRpcClient,
337
337
  args: [string, string, string],
338
338
  ): Promise<TypedDevInspectResults<[]>> {
339
339
  const tx = new Transaction();
@@ -348,7 +348,7 @@ export namespace airdrop {
348
348
  );
349
349
  }
350
350
  export async function finalizeSend(
351
- client: SuiClient,
351
+ client: SuiJsonRpcClient,
352
352
  args: [string, airdrop.AirdropConfig],
353
353
  ): Promise<TypedDevInspectResults<[]>> {
354
354
  const tx = new Transaction();
@@ -363,7 +363,7 @@ export namespace airdrop {
363
363
  );
364
364
  }
365
365
  export async function initSend(
366
- client: SuiClient,
366
+ client: SuiJsonRpcClient,
367
367
  args: [string],
368
368
  ): Promise<TypedDevInspectResults<[airdrop.AirdropConfig]>> {
369
369
  const tx = new Transaction();
@@ -378,7 +378,7 @@ export namespace airdrop {
378
378
  >(inspectRes);
379
379
  }
380
380
  export async function isAirdropped(
381
- client: SuiClient,
381
+ client: SuiJsonRpcClient,
382
382
  args: [string, string],
383
383
  ): Promise<TypedDevInspectResults<[boolean]>> {
384
384
  const tx = new Transaction();
@@ -393,7 +393,7 @@ export namespace airdrop {
393
393
  );
394
394
  }
395
395
  export async function removeRecord(
396
- client: SuiClient,
396
+ client: SuiJsonRpcClient,
397
397
  args: [string, string],
398
398
  ): Promise<TypedDevInspectResults<[]>> {
399
399
  const tx = new Transaction();
@@ -408,7 +408,7 @@ export namespace airdrop {
408
408
  );
409
409
  }
410
410
  export async function roles(
411
- client: SuiClient,
411
+ client: SuiJsonRpcClient,
412
412
  args: [string],
413
413
  ): Promise<TypedDevInspectResults<[string]>> {
414
414
  const tx = new Transaction();
@@ -423,7 +423,7 @@ export namespace airdrop {
423
423
  );
424
424
  }
425
425
  export async function rolesMut(
426
- client: SuiClient,
426
+ client: SuiJsonRpcClient,
427
427
  args: [string],
428
428
  ): Promise<TypedDevInspectResults<[string]>> {
429
429
  const tx = new Transaction();
@@ -438,7 +438,7 @@ export namespace airdrop {
438
438
  );
439
439
  }
440
440
  export async function sendToken<T0 = any>(
441
- client: SuiClient,
441
+ client: SuiJsonRpcClient,
442
442
  args: [string, bigint, string, string, string, string],
443
443
  typeArguments: [TypeDescriptor<T0> | string],
444
444
  ): Promise<TypedDevInspectResults<[]>> {
@@ -739,7 +739,7 @@ export namespace roles {
739
739
  }
740
740
  export namespace view {
741
741
  export async function addr<T0 = any>(
742
- client: SuiClient,
742
+ client: SuiJsonRpcClient,
743
743
  args: [string],
744
744
  typeArguments: [TypeDescriptor<T0> | string],
745
745
  ): Promise<TypedDevInspectResults<[string]>> {
@@ -755,7 +755,7 @@ export namespace roles {
755
755
  );
756
756
  }
757
757
  export async function assertHasRole<T0 = any>(
758
- client: SuiClient,
758
+ client: SuiJsonRpcClient,
759
759
  args: [string, string],
760
760
  typeArguments: [TypeDescriptor<T0> | string],
761
761
  ): Promise<TypedDevInspectResults<[]>> {
@@ -771,7 +771,7 @@ export namespace roles {
771
771
  );
772
772
  }
773
773
  export async function assertPublisherFromPackage(
774
- client: SuiClient,
774
+ client: SuiJsonRpcClient,
775
775
  args: [string],
776
776
  ): Promise<TypedDevInspectResults<[]>> {
777
777
  const tx = new Transaction();
@@ -786,7 +786,7 @@ export namespace roles {
786
786
  );
787
787
  }
788
788
  export async function authorize<T0 = any>(
789
- client: SuiClient,
789
+ client: SuiJsonRpcClient,
790
790
  args: [string, roles.Role<T0>],
791
791
  typeArguments: [TypeDescriptor<T0> | string],
792
792
  ): Promise<TypedDevInspectResults<[]>> {
@@ -802,7 +802,7 @@ export namespace roles {
802
802
  );
803
803
  }
804
804
  export async function config<T0 = any, T1 = any>(
805
- client: SuiClient,
805
+ client: SuiJsonRpcClient,
806
806
  args: [string, string],
807
807
  typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string],
808
808
  ): Promise<TypedDevInspectResults<[string]>> {
@@ -818,7 +818,7 @@ export namespace roles {
818
818
  );
819
819
  }
820
820
  export async function data(
821
- client: SuiClient,
821
+ client: SuiJsonRpcClient,
822
822
  args: [string],
823
823
  ): Promise<TypedDevInspectResults<[string]>> {
824
824
  const tx = new Transaction();
@@ -833,7 +833,7 @@ export namespace roles {
833
833
  );
834
834
  }
835
835
  export async function deauthorize<T0 = any>(
836
- client: SuiClient,
836
+ client: SuiJsonRpcClient,
837
837
  args: [string, roles.Role<T0>],
838
838
  typeArguments: [TypeDescriptor<T0> | string],
839
839
  ): Promise<TypedDevInspectResults<[boolean]>> {
@@ -849,7 +849,7 @@ export namespace roles {
849
849
  );
850
850
  }
851
851
  export async function destroyEmpty(
852
- client: SuiClient,
852
+ client: SuiJsonRpcClient,
853
853
  args: [roles.Roles],
854
854
  ): Promise<TypedDevInspectResults<[]>> {
855
855
  const tx = new Transaction();
@@ -864,7 +864,7 @@ export namespace roles {
864
864
  );
865
865
  }
866
866
  export async function isAuthorized<T0 = any>(
867
- client: SuiClient,
867
+ client: SuiJsonRpcClient,
868
868
  args: [string, string],
869
869
  typeArguments: [TypeDescriptor<T0> | string],
870
870
  ): Promise<TypedDevInspectResults<[boolean]>> {
@@ -880,7 +880,7 @@ export namespace roles {
880
880
  );
881
881
  }
882
882
  export async function new$(
883
- client: SuiClient,
883
+ client: SuiJsonRpcClient,
884
884
  args: [],
885
885
  ): Promise<TypedDevInspectResults<[roles.Roles]>> {
886
886
  const tx = new Transaction();
@@ -895,7 +895,7 @@ export namespace roles {
895
895
  );
896
896
  }
897
897
  export async function newRole<T0 = any>(
898
- client: SuiClient,
898
+ client: SuiJsonRpcClient,
899
899
  args: [string],
900
900
  typeArguments: [TypeDescriptor<T0> | string],
901
901
  ): Promise<TypedDevInspectResults<[roles.Role<T0>]>> {
@@ -1086,7 +1086,7 @@ export namespace safe {
1086
1086
  }
1087
1087
  export namespace view {
1088
1088
  export async function balance<T0 = any>(
1089
- client: SuiClient,
1089
+ client: SuiJsonRpcClient,
1090
1090
  args: [string],
1091
1091
  typeArguments: [TypeDescriptor<T0> | string],
1092
1092
  ): Promise<TypedDevInspectResults<[bigint]>> {
@@ -1102,7 +1102,7 @@ export namespace safe {
1102
1102
  );
1103
1103
  }
1104
1104
  export async function balanceMut<T0 = any>(
1105
- client: SuiClient,
1105
+ client: SuiJsonRpcClient,
1106
1106
  args: [string],
1107
1107
  typeArguments: [TypeDescriptor<T0> | string],
1108
1108
  ): Promise<TypedDevInspectResults<[string]>> {
@@ -1118,7 +1118,7 @@ export namespace safe {
1118
1118
  );
1119
1119
  }
1120
1120
  export async function delete$<T0 = any>(
1121
- client: SuiClient,
1121
+ client: SuiJsonRpcClient,
1122
1122
  args: [safe.Safe<T0>],
1123
1123
  typeArguments: [TypeDescriptor<T0> | string],
1124
1124
  ): Promise<TypedDevInspectResults<[]>> {
@@ -1134,7 +1134,7 @@ export namespace safe {
1134
1134
  );
1135
1135
  }
1136
1136
  export async function new$<T0 = any>(
1137
- client: SuiClient,
1137
+ client: SuiJsonRpcClient,
1138
1138
  args: [],
1139
1139
  typeArguments: [TypeDescriptor<T0> | string],
1140
1140
  ): Promise<TypedDevInspectResults<[safe.Safe<T0>]>> {
@@ -1150,7 +1150,7 @@ export namespace safe {
1150
1150
  >(inspectRes);
1151
1151
  }
1152
1152
  export async function put<T0 = any>(
1153
- client: SuiClient,
1153
+ client: SuiJsonRpcClient,
1154
1154
  args: [string, _0x2.coin.Coin<T0>, string],
1155
1155
  typeArguments: [TypeDescriptor<T0> | string],
1156
1156
  ): Promise<TypedDevInspectResults<[]>> {
@@ -1166,7 +1166,7 @@ export namespace safe {
1166
1166
  );
1167
1167
  }
1168
1168
  export async function share<T0 = any>(
1169
- client: SuiClient,
1169
+ client: SuiJsonRpcClient,
1170
1170
  args: [safe.Safe<T0>],
1171
1171
  typeArguments: [TypeDescriptor<T0> | string],
1172
1172
  ): Promise<TypedDevInspectResults<[]>> {
@@ -1182,7 +1182,7 @@ export namespace safe {
1182
1182
  );
1183
1183
  }
1184
1184
  export async function withdraw<T0 = any>(
1185
- client: SuiClient,
1185
+ client: SuiJsonRpcClient,
1186
1186
  args: [string, string],
1187
1187
  typeArguments: [TypeDescriptor<T0> | string],
1188
1188
  ): Promise<TypedDevInspectResults<[_0x2.coin.Coin<T0>]>> {
@@ -1304,7 +1304,7 @@ export namespace treasury {
1304
1304
  }
1305
1305
  export namespace view {
1306
1306
  export async function share<T0 = any>(
1307
- client: SuiClient,
1307
+ client: SuiJsonRpcClient,
1308
1308
  args: [treasury.WrappedTreasury<T0>],
1309
1309
  typeArguments: [TypeDescriptor<T0> | string],
1310
1310
  ): Promise<TypedDevInspectResults<[]>> {
@@ -1320,7 +1320,7 @@ export namespace treasury {
1320
1320
  );
1321
1321
  }
1322
1322
  export async function totalSupply<T0 = any>(
1323
- client: SuiClient,
1323
+ client: SuiJsonRpcClient,
1324
1324
  args: [string],
1325
1325
  typeArguments: [TypeDescriptor<T0> | string],
1326
1326
  ): Promise<TypedDevInspectResults<[bigint]>> {
@@ -1336,7 +1336,7 @@ export namespace treasury {
1336
1336
  );
1337
1337
  }
1338
1338
  export async function wrap<T0 = any>(
1339
- client: SuiClient,
1339
+ client: SuiJsonRpcClient,
1340
1340
  args: [_0x2.coin.TreasuryCap<T0>],
1341
1341
  typeArguments: [TypeDescriptor<T0> | string],
1342
1342
  ): Promise<TypedDevInspectResults<[treasury.WrappedTreasury<T0>]>> {