@typemove/sui 1.8.3 → 1.9.0-rc.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 (52) hide show
  1. package/dist/cjs/builtin/0x1.d.ts +12 -12
  2. package/dist/cjs/builtin/0x1.d.ts.map +1 -1
  3. package/dist/cjs/builtin/0x1.js +2 -2
  4. package/dist/cjs/builtin/0x1.js.map +1 -1
  5. package/dist/cjs/builtin/0x2.d.ts +66 -66
  6. package/dist/cjs/builtin/0x2.d.ts.map +1 -1
  7. package/dist/cjs/builtin/0x2.js +2 -2
  8. package/dist/cjs/builtin/0x2.js.map +1 -1
  9. package/dist/cjs/builtin/0x3.d.ts +26 -26
  10. package/dist/cjs/builtin/0x3.d.ts.map +1 -1
  11. package/dist/cjs/builtin/0x3.js +2 -2
  12. package/dist/cjs/builtin/0x3.js.map +1 -1
  13. package/dist/cjs/codegen/codegen.js +2 -2
  14. package/dist/cjs/codegen/codegen.js.map +1 -1
  15. package/dist/cjs/move-coder.d.ts.map +1 -1
  16. package/dist/cjs/move-coder.js +4 -3
  17. package/dist/cjs/move-coder.js.map +1 -1
  18. package/dist/cjs/move-coder.test.js.map +1 -1
  19. package/dist/cjs/to-internal.d.ts.map +1 -1
  20. package/dist/cjs/to-internal.js +16 -3
  21. package/dist/cjs/to-internal.js.map +1 -1
  22. package/dist/cjs/transaction.js +13 -14
  23. package/dist/cjs/transaction.js.map +1 -1
  24. package/dist/esm/builtin/0x1.d.ts +12 -12
  25. package/dist/esm/builtin/0x1.d.ts.map +1 -1
  26. package/dist/esm/builtin/0x1.js.map +1 -1
  27. package/dist/esm/builtin/0x2.d.ts +66 -66
  28. package/dist/esm/builtin/0x2.d.ts.map +1 -1
  29. package/dist/esm/builtin/0x2.js.map +1 -1
  30. package/dist/esm/builtin/0x3.d.ts +26 -26
  31. package/dist/esm/builtin/0x3.d.ts.map +1 -1
  32. package/dist/esm/move-coder.d.ts.map +1 -1
  33. package/dist/esm/move-coder.js +1 -0
  34. package/dist/esm/move-coder.js.map +1 -1
  35. package/dist/esm/move-coder.test.js.map +1 -1
  36. package/dist/esm/to-internal.d.ts.map +1 -1
  37. package/dist/esm/to-internal.js +15 -1
  38. package/dist/esm/to-internal.js.map +1 -1
  39. package/package.json +3 -3
  40. package/src/builtin/0x1.ts +12 -13
  41. package/src/builtin/0x2.ts +87 -86
  42. package/src/builtin/0x3.ts +65 -65
  43. package/src/move-coder.ts +1 -0
  44. package/src/tests/abis/testnet/enum.json +5941 -0
  45. package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +2 -2
  46. package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +20 -16
  47. package/src/tests/types/testnet/0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e.ts +6 -8
  48. package/src/tests/types/testnet/0xdee9.ts +40 -34
  49. package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +166 -165
  50. package/src/tests/types/testnet/enum.ts +5419 -0
  51. package/src/tests/types/testnet/index.ts +1 -0
  52. package/src/to-internal.ts +18 -1
@@ -66,11 +66,11 @@ export namespace genesis {
66
66
  }
67
67
  }
68
68
 
69
- export interface GenesisChainParametersInstance
70
- extends TypedEventInstance<GenesisChainParameters> {
71
- data_decoded: GenesisChainParameters;
72
- type_arguments: [];
73
- }
69
+ export type GenesisChainParametersInstance =
70
+ TypedEventInstance<GenesisChainParameters> & {
71
+ data_decoded: GenesisChainParameters;
72
+ type_arguments: [];
73
+ };
74
74
 
75
75
  export interface GenesisValidatorMetadata {
76
76
  name: number[];
@@ -102,11 +102,11 @@ export namespace genesis {
102
102
  }
103
103
  }
104
104
 
105
- export interface GenesisValidatorMetadataInstance
106
- extends TypedEventInstance<GenesisValidatorMetadata> {
107
- data_decoded: GenesisValidatorMetadata;
108
- type_arguments: [];
109
- }
105
+ export type GenesisValidatorMetadataInstance =
106
+ TypedEventInstance<GenesisValidatorMetadata> & {
107
+ data_decoded: GenesisValidatorMetadata;
108
+ type_arguments: [];
109
+ };
110
110
 
111
111
  export interface TokenAllocation {
112
112
  recipient_address: string;
@@ -352,11 +352,11 @@ export namespace staking_pool {
352
352
  }
353
353
  }
354
354
 
355
- export interface FungibleStakedSuiDataKeyInstance
356
- extends TypedEventInstance<FungibleStakedSuiDataKey> {
357
- data_decoded: FungibleStakedSuiDataKey;
358
- type_arguments: [];
359
- }
355
+ export type FungibleStakedSuiDataKeyInstance =
356
+ TypedEventInstance<FungibleStakedSuiDataKey> & {
357
+ data_decoded: FungibleStakedSuiDataKey;
358
+ type_arguments: [];
359
+ };
360
360
 
361
361
  export interface PoolTokenExchangeRate {
362
362
  sui_amount: bigint;
@@ -375,11 +375,11 @@ export namespace staking_pool {
375
375
  }
376
376
  }
377
377
 
378
- export interface PoolTokenExchangeRateInstance
379
- extends TypedEventInstance<PoolTokenExchangeRate> {
380
- data_decoded: PoolTokenExchangeRate;
381
- type_arguments: [];
382
- }
378
+ export type PoolTokenExchangeRateInstance =
379
+ TypedEventInstance<PoolTokenExchangeRate> & {
380
+ data_decoded: PoolTokenExchangeRate;
381
+ type_arguments: [];
382
+ };
383
383
 
384
384
  export interface StakedSui {
385
385
  id: _0x2.object$.UID;
@@ -3022,11 +3022,11 @@ export namespace sui_system_state_inner {
3022
3022
  }
3023
3023
  }
3024
3024
 
3025
- export interface SystemEpochInfoEventInstance
3026
- extends TypedEventInstance<SystemEpochInfoEvent> {
3027
- data_decoded: SystemEpochInfoEvent;
3028
- type_arguments: [];
3029
- }
3025
+ export type SystemEpochInfoEventInstance =
3026
+ TypedEventInstance<SystemEpochInfoEvent> & {
3027
+ data_decoded: SystemEpochInfoEvent;
3028
+ type_arguments: [];
3029
+ };
3030
3030
 
3031
3031
  export interface SystemParameters {
3032
3032
  epoch_duration_ms: bigint;
@@ -4931,11 +4931,11 @@ export namespace validator {
4931
4931
  }
4932
4932
  }
4933
4933
 
4934
- export interface ConvertingToFungibleStakedSuiEventInstance
4935
- extends TypedEventInstance<ConvertingToFungibleStakedSuiEvent> {
4936
- data_decoded: ConvertingToFungibleStakedSuiEvent;
4937
- type_arguments: [];
4938
- }
4934
+ export type ConvertingToFungibleStakedSuiEventInstance =
4935
+ TypedEventInstance<ConvertingToFungibleStakedSuiEvent> & {
4936
+ data_decoded: ConvertingToFungibleStakedSuiEvent;
4937
+ type_arguments: [];
4938
+ };
4939
4939
 
4940
4940
  export interface RedeemingFungibleStakedSuiEvent {
4941
4941
  pool_id: _0x2.object$.ID;
@@ -4955,11 +4955,11 @@ export namespace validator {
4955
4955
  }
4956
4956
  }
4957
4957
 
4958
- export interface RedeemingFungibleStakedSuiEventInstance
4959
- extends TypedEventInstance<RedeemingFungibleStakedSuiEvent> {
4960
- data_decoded: RedeemingFungibleStakedSuiEvent;
4961
- type_arguments: [];
4962
- }
4958
+ export type RedeemingFungibleStakedSuiEventInstance =
4959
+ TypedEventInstance<RedeemingFungibleStakedSuiEvent> & {
4960
+ data_decoded: RedeemingFungibleStakedSuiEvent;
4961
+ type_arguments: [];
4962
+ };
4963
4963
 
4964
4964
  export interface StakingRequestEvent {
4965
4965
  pool_id: _0x2.object$.ID;
@@ -4981,11 +4981,11 @@ export namespace validator {
4981
4981
  }
4982
4982
  }
4983
4983
 
4984
- export interface StakingRequestEventInstance
4985
- extends TypedEventInstance<StakingRequestEvent> {
4986
- data_decoded: StakingRequestEvent;
4987
- type_arguments: [];
4988
- }
4984
+ export type StakingRequestEventInstance =
4985
+ TypedEventInstance<StakingRequestEvent> & {
4986
+ data_decoded: StakingRequestEvent;
4987
+ type_arguments: [];
4988
+ };
4989
4989
 
4990
4990
  export interface UnstakingRequestEvent {
4991
4991
  pool_id: _0x2.object$.ID;
@@ -5009,11 +5009,11 @@ export namespace validator {
5009
5009
  }
5010
5010
  }
5011
5011
 
5012
- export interface UnstakingRequestEventInstance
5013
- extends TypedEventInstance<UnstakingRequestEvent> {
5014
- data_decoded: UnstakingRequestEvent;
5015
- type_arguments: [];
5016
- }
5012
+ export type UnstakingRequestEventInstance =
5013
+ TypedEventInstance<UnstakingRequestEvent> & {
5014
+ data_decoded: UnstakingRequestEvent;
5015
+ type_arguments: [];
5016
+ };
5017
5017
 
5018
5018
  export interface Validator {
5019
5019
  metadata: validator.ValidatorMetadata;
@@ -7662,11 +7662,11 @@ export namespace validator_set {
7662
7662
  }
7663
7663
  }
7664
7664
 
7665
- export interface ValidatorEpochInfoEventInstance
7666
- extends TypedEventInstance<ValidatorEpochInfoEvent> {
7667
- data_decoded: ValidatorEpochInfoEvent;
7668
- type_arguments: [];
7669
- }
7665
+ export type ValidatorEpochInfoEventInstance =
7666
+ TypedEventInstance<ValidatorEpochInfoEvent> & {
7667
+ data_decoded: ValidatorEpochInfoEvent;
7668
+ type_arguments: [];
7669
+ };
7670
7670
 
7671
7671
  export interface ValidatorEpochInfoEventV2 {
7672
7672
  epoch: bigint;
@@ -7694,11 +7694,11 @@ export namespace validator_set {
7694
7694
  }
7695
7695
  }
7696
7696
 
7697
- export interface ValidatorEpochInfoEventV2Instance
7698
- extends TypedEventInstance<ValidatorEpochInfoEventV2> {
7699
- data_decoded: ValidatorEpochInfoEventV2;
7700
- type_arguments: [];
7701
- }
7697
+ export type ValidatorEpochInfoEventV2Instance =
7698
+ TypedEventInstance<ValidatorEpochInfoEventV2> & {
7699
+ data_decoded: ValidatorEpochInfoEventV2;
7700
+ type_arguments: [];
7701
+ };
7702
7702
 
7703
7703
  export interface ValidatorJoinEvent {
7704
7704
  epoch: bigint;
@@ -7718,11 +7718,11 @@ export namespace validator_set {
7718
7718
  }
7719
7719
  }
7720
7720
 
7721
- export interface ValidatorJoinEventInstance
7722
- extends TypedEventInstance<ValidatorJoinEvent> {
7723
- data_decoded: ValidatorJoinEvent;
7724
- type_arguments: [];
7725
- }
7721
+ export type ValidatorJoinEventInstance =
7722
+ TypedEventInstance<ValidatorJoinEvent> & {
7723
+ data_decoded: ValidatorJoinEvent;
7724
+ type_arguments: [];
7725
+ };
7726
7726
 
7727
7727
  export interface ValidatorLeaveEvent {
7728
7728
  epoch: bigint;
@@ -7743,11 +7743,11 @@ export namespace validator_set {
7743
7743
  }
7744
7744
  }
7745
7745
 
7746
- export interface ValidatorLeaveEventInstance
7747
- extends TypedEventInstance<ValidatorLeaveEvent> {
7748
- data_decoded: ValidatorLeaveEvent;
7749
- type_arguments: [];
7750
- }
7746
+ export type ValidatorLeaveEventInstance =
7747
+ TypedEventInstance<ValidatorLeaveEvent> & {
7748
+ data_decoded: ValidatorLeaveEvent;
7749
+ type_arguments: [];
7750
+ };
7751
7751
 
7752
7752
  export interface ValidatorSet {
7753
7753
  total_stake: bigint;
package/src/move-coder.ts CHANGED
@@ -42,6 +42,7 @@ export class MoveCoder extends AbstractMoveCoder<
42
42
  if (m && mDeclared) {
43
43
  return m
44
44
  }
45
+ this.accounts.add(module.address)
45
46
  m = toInternalModule(module)
46
47
  this.loadInternal(m, address)
47
48
  return m