@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.
- package/dist/cjs/builtin/0x1.d.ts +12 -12
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +2 -2
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x2.d.ts +66 -66
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +2 -2
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +26 -26
- package/dist/cjs/builtin/0x3.d.ts.map +1 -1
- package/dist/cjs/builtin/0x3.js +2 -2
- package/dist/cjs/builtin/0x3.js.map +1 -1
- package/dist/cjs/codegen/codegen.js +2 -2
- package/dist/cjs/codegen/codegen.js.map +1 -1
- package/dist/cjs/move-coder.d.ts.map +1 -1
- package/dist/cjs/move-coder.js +4 -3
- package/dist/cjs/move-coder.js.map +1 -1
- package/dist/cjs/move-coder.test.js.map +1 -1
- package/dist/cjs/to-internal.d.ts.map +1 -1
- package/dist/cjs/to-internal.js +16 -3
- package/dist/cjs/to-internal.js.map +1 -1
- package/dist/cjs/transaction.js +13 -14
- package/dist/cjs/transaction.js.map +1 -1
- package/dist/esm/builtin/0x1.d.ts +12 -12
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +66 -66
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +26 -26
- package/dist/esm/builtin/0x3.d.ts.map +1 -1
- package/dist/esm/move-coder.d.ts.map +1 -1
- package/dist/esm/move-coder.js +1 -0
- package/dist/esm/move-coder.js.map +1 -1
- package/dist/esm/move-coder.test.js.map +1 -1
- package/dist/esm/to-internal.d.ts.map +1 -1
- package/dist/esm/to-internal.js +15 -1
- package/dist/esm/to-internal.js.map +1 -1
- package/package.json +3 -3
- package/src/builtin/0x1.ts +12 -13
- package/src/builtin/0x2.ts +87 -86
- package/src/builtin/0x3.ts +65 -65
- package/src/move-coder.ts +1 -0
- package/src/tests/abis/testnet/enum.json +5941 -0
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +2 -2
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +20 -16
- package/src/tests/types/testnet/0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e.ts +6 -8
- package/src/tests/types/testnet/0xdee9.ts +40 -34
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +166 -165
- package/src/tests/types/testnet/enum.ts +5419 -0
- package/src/tests/types/testnet/index.ts +1 -0
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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[];
|