@typemove/sui 1.8.3 → 1.9.0

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
@@ -24,10 +24,10 @@ export declare namespace genesis {
24
24
  const TYPE_QNAME = "0x3::genesis::GenesisChainParameters";
25
25
  function type(): TypeDescriptor<GenesisChainParameters>;
26
26
  }
27
- interface GenesisChainParametersInstance extends TypedEventInstance<GenesisChainParameters> {
27
+ type GenesisChainParametersInstance = TypedEventInstance<GenesisChainParameters> & {
28
28
  data_decoded: GenesisChainParameters;
29
29
  type_arguments: [];
30
- }
30
+ };
31
31
  interface GenesisValidatorMetadata {
32
32
  name: number[];
33
33
  description: number[];
@@ -49,10 +49,10 @@ export declare namespace genesis {
49
49
  const TYPE_QNAME = "0x3::genesis::GenesisValidatorMetadata";
50
50
  function type(): TypeDescriptor<GenesisValidatorMetadata>;
51
51
  }
52
- interface GenesisValidatorMetadataInstance extends TypedEventInstance<GenesisValidatorMetadata> {
52
+ type GenesisValidatorMetadataInstance = TypedEventInstance<GenesisValidatorMetadata> & {
53
53
  data_decoded: GenesisValidatorMetadata;
54
54
  type_arguments: [];
55
- }
55
+ };
56
56
  interface TokenAllocation {
57
57
  recipient_address: string;
58
58
  amount_mist: bigint;
@@ -135,10 +135,10 @@ export declare namespace staking_pool {
135
135
  const TYPE_QNAME = "0x3::staking_pool::FungibleStakedSuiDataKey";
136
136
  function type(): TypeDescriptor<FungibleStakedSuiDataKey>;
137
137
  }
138
- interface FungibleStakedSuiDataKeyInstance extends TypedEventInstance<FungibleStakedSuiDataKey> {
138
+ type FungibleStakedSuiDataKeyInstance = TypedEventInstance<FungibleStakedSuiDataKey> & {
139
139
  data_decoded: FungibleStakedSuiDataKey;
140
140
  type_arguments: [];
141
- }
141
+ };
142
142
  interface PoolTokenExchangeRate {
143
143
  sui_amount: bigint;
144
144
  pool_token_amount: bigint;
@@ -147,10 +147,10 @@ export declare namespace staking_pool {
147
147
  const TYPE_QNAME = "0x3::staking_pool::PoolTokenExchangeRate";
148
148
  function type(): TypeDescriptor<PoolTokenExchangeRate>;
149
149
  }
150
- interface PoolTokenExchangeRateInstance extends TypedEventInstance<PoolTokenExchangeRate> {
150
+ type PoolTokenExchangeRateInstance = TypedEventInstance<PoolTokenExchangeRate> & {
151
151
  data_decoded: PoolTokenExchangeRate;
152
152
  type_arguments: [];
153
- }
153
+ };
154
154
  interface StakedSui {
155
155
  id: _0x2.object$.UID;
156
156
  pool_id: _0x2.object$.ID;
@@ -713,10 +713,10 @@ export declare namespace sui_system_state_inner {
713
713
  const TYPE_QNAME = "0x3::sui_system_state_inner::SystemEpochInfoEvent";
714
714
  function type(): TypeDescriptor<SystemEpochInfoEvent>;
715
715
  }
716
- interface SystemEpochInfoEventInstance extends TypedEventInstance<SystemEpochInfoEvent> {
716
+ type SystemEpochInfoEventInstance = TypedEventInstance<SystemEpochInfoEvent> & {
717
717
  data_decoded: SystemEpochInfoEvent;
718
718
  type_arguments: [];
719
- }
719
+ };
720
720
  interface SystemParameters {
721
721
  epoch_duration_ms: bigint;
722
722
  stake_subsidy_start_epoch: bigint;
@@ -1130,10 +1130,10 @@ export declare namespace validator {
1130
1130
  const TYPE_QNAME = "0x3::validator::ConvertingToFungibleStakedSuiEvent";
1131
1131
  function type(): TypeDescriptor<ConvertingToFungibleStakedSuiEvent>;
1132
1132
  }
1133
- interface ConvertingToFungibleStakedSuiEventInstance extends TypedEventInstance<ConvertingToFungibleStakedSuiEvent> {
1133
+ type ConvertingToFungibleStakedSuiEventInstance = TypedEventInstance<ConvertingToFungibleStakedSuiEvent> & {
1134
1134
  data_decoded: ConvertingToFungibleStakedSuiEvent;
1135
1135
  type_arguments: [];
1136
- }
1136
+ };
1137
1137
  interface RedeemingFungibleStakedSuiEvent {
1138
1138
  pool_id: _0x2.object$.ID;
1139
1139
  fungible_staked_sui_amount: bigint;
@@ -1143,10 +1143,10 @@ export declare namespace validator {
1143
1143
  const TYPE_QNAME = "0x3::validator::RedeemingFungibleStakedSuiEvent";
1144
1144
  function type(): TypeDescriptor<RedeemingFungibleStakedSuiEvent>;
1145
1145
  }
1146
- interface RedeemingFungibleStakedSuiEventInstance extends TypedEventInstance<RedeemingFungibleStakedSuiEvent> {
1146
+ type RedeemingFungibleStakedSuiEventInstance = TypedEventInstance<RedeemingFungibleStakedSuiEvent> & {
1147
1147
  data_decoded: RedeemingFungibleStakedSuiEvent;
1148
1148
  type_arguments: [];
1149
- }
1149
+ };
1150
1150
  interface StakingRequestEvent {
1151
1151
  pool_id: _0x2.object$.ID;
1152
1152
  validator_address: string;
@@ -1158,10 +1158,10 @@ export declare namespace validator {
1158
1158
  const TYPE_QNAME = "0x3::validator::StakingRequestEvent";
1159
1159
  function type(): TypeDescriptor<StakingRequestEvent>;
1160
1160
  }
1161
- interface StakingRequestEventInstance extends TypedEventInstance<StakingRequestEvent> {
1161
+ type StakingRequestEventInstance = TypedEventInstance<StakingRequestEvent> & {
1162
1162
  data_decoded: StakingRequestEvent;
1163
1163
  type_arguments: [];
1164
- }
1164
+ };
1165
1165
  interface UnstakingRequestEvent {
1166
1166
  pool_id: _0x2.object$.ID;
1167
1167
  validator_address: string;
@@ -1175,10 +1175,10 @@ export declare namespace validator {
1175
1175
  const TYPE_QNAME = "0x3::validator::UnstakingRequestEvent";
1176
1176
  function type(): TypeDescriptor<UnstakingRequestEvent>;
1177
1177
  }
1178
- interface UnstakingRequestEventInstance extends TypedEventInstance<UnstakingRequestEvent> {
1178
+ type UnstakingRequestEventInstance = TypedEventInstance<UnstakingRequestEvent> & {
1179
1179
  data_decoded: UnstakingRequestEvent;
1180
1180
  type_arguments: [];
1181
- }
1181
+ };
1182
1182
  interface Validator {
1183
1183
  metadata: validator.ValidatorMetadata;
1184
1184
  voting_power: bigint;
@@ -1648,10 +1648,10 @@ export declare namespace validator_set {
1648
1648
  const TYPE_QNAME = "0x3::validator_set::ValidatorEpochInfoEvent";
1649
1649
  function type(): TypeDescriptor<ValidatorEpochInfoEvent>;
1650
1650
  }
1651
- interface ValidatorEpochInfoEventInstance extends TypedEventInstance<ValidatorEpochInfoEvent> {
1651
+ type ValidatorEpochInfoEventInstance = TypedEventInstance<ValidatorEpochInfoEvent> & {
1652
1652
  data_decoded: ValidatorEpochInfoEvent;
1653
1653
  type_arguments: [];
1654
- }
1654
+ };
1655
1655
  interface ValidatorEpochInfoEventV2 {
1656
1656
  epoch: bigint;
1657
1657
  validator_address: string;
@@ -1669,10 +1669,10 @@ export declare namespace validator_set {
1669
1669
  const TYPE_QNAME = "0x3::validator_set::ValidatorEpochInfoEventV2";
1670
1670
  function type(): TypeDescriptor<ValidatorEpochInfoEventV2>;
1671
1671
  }
1672
- interface ValidatorEpochInfoEventV2Instance extends TypedEventInstance<ValidatorEpochInfoEventV2> {
1672
+ type ValidatorEpochInfoEventV2Instance = TypedEventInstance<ValidatorEpochInfoEventV2> & {
1673
1673
  data_decoded: ValidatorEpochInfoEventV2;
1674
1674
  type_arguments: [];
1675
- }
1675
+ };
1676
1676
  interface ValidatorJoinEvent {
1677
1677
  epoch: bigint;
1678
1678
  validator_address: string;
@@ -1682,10 +1682,10 @@ export declare namespace validator_set {
1682
1682
  const TYPE_QNAME = "0x3::validator_set::ValidatorJoinEvent";
1683
1683
  function type(): TypeDescriptor<ValidatorJoinEvent>;
1684
1684
  }
1685
- interface ValidatorJoinEventInstance extends TypedEventInstance<ValidatorJoinEvent> {
1685
+ type ValidatorJoinEventInstance = TypedEventInstance<ValidatorJoinEvent> & {
1686
1686
  data_decoded: ValidatorJoinEvent;
1687
1687
  type_arguments: [];
1688
- }
1688
+ };
1689
1689
  interface ValidatorLeaveEvent {
1690
1690
  epoch: bigint;
1691
1691
  validator_address: string;
@@ -1696,10 +1696,10 @@ export declare namespace validator_set {
1696
1696
  const TYPE_QNAME = "0x3::validator_set::ValidatorLeaveEvent";
1697
1697
  function type(): TypeDescriptor<ValidatorLeaveEvent>;
1698
1698
  }
1699
- interface ValidatorLeaveEventInstance extends TypedEventInstance<ValidatorLeaveEvent> {
1699
+ type ValidatorLeaveEventInstance = TypedEventInstance<ValidatorLeaveEvent> & {
1700
1700
  data_decoded: ValidatorLeaveEvent;
1701
1701
  type_arguments: [];
1702
- }
1702
+ };
1703
1703
  interface ValidatorSet {
1704
1704
  total_stake: bigint;
1705
1705
  active_validators: validator.Validator[];