@typemove/sui 1.6.11 → 1.6.12-rc.2
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 +5 -5
- package/dist/cjs/builtin/0x1.js +17 -17
- package/dist/cjs/builtin/0x2.d.ts +165 -165
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +106 -106
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +35 -35
- package/dist/cjs/builtin/0x3.js +20 -20
- package/dist/esm/builtin/0x1.d.ts +5 -5
- package/dist/esm/builtin/0x1.js +16 -16
- package/dist/esm/builtin/0x2.d.ts +165 -165
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +105 -105
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +35 -35
- package/dist/esm/builtin/0x3.js +20 -20
- package/package.json +2 -2
- package/src/builtin/0x1.ts +7 -7
- package/src/builtin/0x2.ts +212 -212
- package/src/builtin/0x3.ts +45 -45
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +3 -3
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +3 -3
- package/src/tests/types/testnet/0x7f7a37c826c88bcfe9aecc042453395ddfa9df6f29cb7c97590bf86cf2b0a75e.ts +12 -12
- package/src/tests/types/testnet/0xdee9.ts +47 -47
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +21 -21
|
@@ -111,8 +111,8 @@ export declare namespace stake_subsidy {
|
|
|
111
111
|
}
|
|
112
112
|
export declare namespace staking_pool {
|
|
113
113
|
interface FungibleStakedSui {
|
|
114
|
-
id: _0x2.
|
|
115
|
-
pool_id: _0x2.
|
|
114
|
+
id: _0x2.object$.UID;
|
|
115
|
+
pool_id: _0x2.object$.ID;
|
|
116
116
|
value: bigint;
|
|
117
117
|
}
|
|
118
118
|
namespace FungibleStakedSui {
|
|
@@ -120,7 +120,7 @@ export declare namespace staking_pool {
|
|
|
120
120
|
function type(): TypeDescriptor<FungibleStakedSui>;
|
|
121
121
|
}
|
|
122
122
|
interface FungibleStakedSuiData {
|
|
123
|
-
id: _0x2.
|
|
123
|
+
id: _0x2.object$.UID;
|
|
124
124
|
total_supply: bigint;
|
|
125
125
|
principal: _0x2.balance.Balance<_0x2.sui.SUI>;
|
|
126
126
|
}
|
|
@@ -152,8 +152,8 @@ export declare namespace staking_pool {
|
|
|
152
152
|
type_arguments: [];
|
|
153
153
|
}
|
|
154
154
|
interface StakedSui {
|
|
155
|
-
id: _0x2.
|
|
156
|
-
pool_id: _0x2.
|
|
155
|
+
id: _0x2.object$.UID;
|
|
156
|
+
pool_id: _0x2.object$.ID;
|
|
157
157
|
stake_activation_epoch: bigint;
|
|
158
158
|
principal: _0x2.balance.Balance<_0x2.sui.SUI>;
|
|
159
159
|
}
|
|
@@ -162,7 +162,7 @@ export declare namespace staking_pool {
|
|
|
162
162
|
function type(): TypeDescriptor<StakedSui>;
|
|
163
163
|
}
|
|
164
164
|
interface StakingPool {
|
|
165
|
-
id: _0x2.
|
|
165
|
+
id: _0x2.object$.UID;
|
|
166
166
|
activation_epoch: _0x1.option.Option<bigint>;
|
|
167
167
|
deactivation_epoch: _0x1.option.Option<bigint>;
|
|
168
168
|
sui_balance: bigint;
|
|
@@ -212,7 +212,7 @@ export declare namespace staking_pool {
|
|
|
212
212
|
string | TransactionObjectArgument | TransactionArgument,
|
|
213
213
|
staking_pool.StakedSui | TransactionArgument
|
|
214
214
|
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
215
|
-
function
|
|
215
|
+
function new$(tx: Transaction, args: []): TransactionArgument & [];
|
|
216
216
|
function pendingStakeAmount(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
217
217
|
function pendingStakeWithdrawAmount(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
218
218
|
function poolId(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
@@ -267,17 +267,17 @@ export declare namespace staking_pool {
|
|
|
267
267
|
function deactivateStakingPool(client: SuiClient, args: [string, bigint]): Promise<TypedDevInspectResults<[]>>;
|
|
268
268
|
function depositRewards(client: SuiClient, args: [string, _0x2.balance.Balance<_0x2.sui.SUI>]): Promise<TypedDevInspectResults<[]>>;
|
|
269
269
|
function exchangeRates(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[string]>>;
|
|
270
|
-
function fungibleStakedSuiPoolId(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[_0x2.
|
|
270
|
+
function fungibleStakedSuiPoolId(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[_0x2.object$.ID]>>;
|
|
271
271
|
function fungibleStakedSuiValue(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[bigint]>>;
|
|
272
272
|
function isEqualStakingMetadata(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[boolean]>>;
|
|
273
273
|
function isInactive(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[boolean]>>;
|
|
274
274
|
function isPreactive(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[boolean]>>;
|
|
275
275
|
function joinFungibleStakedSui(client: SuiClient, args: [string, staking_pool.FungibleStakedSui]): Promise<TypedDevInspectResults<[]>>;
|
|
276
276
|
function joinStakedSui(client: SuiClient, args: [string, staking_pool.StakedSui]): Promise<TypedDevInspectResults<[]>>;
|
|
277
|
-
function
|
|
277
|
+
function new$(client: SuiClient, args: []): Promise<TypedDevInspectResults<[staking_pool.StakingPool]>>;
|
|
278
278
|
function pendingStakeAmount(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[bigint]>>;
|
|
279
279
|
function pendingStakeWithdrawAmount(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[bigint]>>;
|
|
280
|
-
function poolId(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[_0x2.
|
|
280
|
+
function poolId(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[_0x2.object$.ID]>>;
|
|
281
281
|
function poolTokenAmount(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[bigint]>>;
|
|
282
282
|
function poolTokenExchangeRateAtEpoch(client: SuiClient, args: [string, bigint]): Promise<TypedDevInspectResults<[staking_pool.PoolTokenExchangeRate]>>;
|
|
283
283
|
function processPendingStake(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[]>>;
|
|
@@ -320,7 +320,7 @@ export declare namespace storage_fund {
|
|
|
320
320
|
TransactionArgument,
|
|
321
321
|
TransactionArgument
|
|
322
322
|
];
|
|
323
|
-
function
|
|
323
|
+
function new$(tx: Transaction, args: [_0x2.balance.Balance<_0x2.sui.SUI> | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
324
324
|
function totalBalance(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
325
325
|
function totalObjectStorageRebates(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
326
326
|
}
|
|
@@ -333,14 +333,14 @@ export declare namespace storage_fund {
|
|
|
333
333
|
bigint,
|
|
334
334
|
bigint
|
|
335
335
|
]): Promise<TypedDevInspectResults<[_0x2.balance.Balance<_0x2.sui.SUI>]>>;
|
|
336
|
-
function
|
|
336
|
+
function new$(client: SuiClient, args: [_0x2.balance.Balance<_0x2.sui.SUI>]): Promise<TypedDevInspectResults<[storage_fund.StorageFund]>>;
|
|
337
337
|
function totalBalance(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[bigint]>>;
|
|
338
338
|
function totalObjectStorageRebates(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[bigint]>>;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
export declare namespace sui_system {
|
|
342
342
|
interface SuiSystemState {
|
|
343
|
-
id: _0x2.
|
|
343
|
+
id: _0x2.object$.UID;
|
|
344
344
|
version: bigint;
|
|
345
345
|
}
|
|
346
346
|
namespace SuiSystemState {
|
|
@@ -354,7 +354,7 @@ export declare namespace sui_system {
|
|
|
354
354
|
staking_pool.StakedSui | TransactionArgument
|
|
355
355
|
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
356
356
|
function create(tx: Transaction, args: [
|
|
357
|
-
_0x2.
|
|
357
|
+
_0x2.object$.UID | TransactionArgument,
|
|
358
358
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
359
359
|
_0x2.balance.Balance<_0x2.sui.SUI> | TransactionArgument,
|
|
360
360
|
bigint | TransactionArgument,
|
|
@@ -587,7 +587,7 @@ export declare namespace sui_system {
|
|
|
587
587
|
function activeValidatorAddresses(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[string[]]>>;
|
|
588
588
|
function convertToFungibleStakedSui(client: SuiClient, args: [string, staking_pool.StakedSui]): Promise<TypedDevInspectResults<[staking_pool.FungibleStakedSui]>>;
|
|
589
589
|
function create(client: SuiClient, args: [
|
|
590
|
-
_0x2.
|
|
590
|
+
_0x2.object$.UID,
|
|
591
591
|
string[],
|
|
592
592
|
_0x2.balance.Balance<_0x2.sui.SUI>,
|
|
593
593
|
bigint,
|
|
@@ -1115,13 +1115,13 @@ export declare namespace sui_system_state_inner {
|
|
|
1115
1115
|
function v1ToV2(client: SuiClient, args: [sui_system_state_inner.SuiSystemStateInner]): Promise<TypedDevInspectResults<[sui_system_state_inner.SuiSystemStateInnerV2]>>;
|
|
1116
1116
|
function validatorAddressByPoolId(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[string]>>;
|
|
1117
1117
|
function validatorStakeAmount(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[bigint]>>;
|
|
1118
|
-
function validatorStakingPoolId(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[_0x2.
|
|
1118
|
+
function validatorStakingPoolId(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[_0x2.object$.ID]>>;
|
|
1119
1119
|
function validatorStakingPoolMappings(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[string]>>;
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
1122
1122
|
export declare namespace validator {
|
|
1123
1123
|
interface ConvertingToFungibleStakedSuiEvent {
|
|
1124
|
-
pool_id: _0x2.
|
|
1124
|
+
pool_id: _0x2.object$.ID;
|
|
1125
1125
|
stake_activation_epoch: bigint;
|
|
1126
1126
|
staked_sui_principal_amount: bigint;
|
|
1127
1127
|
fungible_staked_sui_amount: bigint;
|
|
@@ -1135,7 +1135,7 @@ export declare namespace validator {
|
|
|
1135
1135
|
type_arguments: [];
|
|
1136
1136
|
}
|
|
1137
1137
|
interface RedeemingFungibleStakedSuiEvent {
|
|
1138
|
-
pool_id: _0x2.
|
|
1138
|
+
pool_id: _0x2.object$.ID;
|
|
1139
1139
|
fungible_staked_sui_amount: bigint;
|
|
1140
1140
|
sui_amount: bigint;
|
|
1141
1141
|
}
|
|
@@ -1148,7 +1148,7 @@ export declare namespace validator {
|
|
|
1148
1148
|
type_arguments: [];
|
|
1149
1149
|
}
|
|
1150
1150
|
interface StakingRequestEvent {
|
|
1151
|
-
pool_id: _0x2.
|
|
1151
|
+
pool_id: _0x2.object$.ID;
|
|
1152
1152
|
validator_address: string;
|
|
1153
1153
|
staker_address: string;
|
|
1154
1154
|
epoch: bigint;
|
|
@@ -1163,7 +1163,7 @@ export declare namespace validator {
|
|
|
1163
1163
|
type_arguments: [];
|
|
1164
1164
|
}
|
|
1165
1165
|
interface UnstakingRequestEvent {
|
|
1166
|
-
pool_id: _0x2.
|
|
1166
|
+
pool_id: _0x2.object$.ID;
|
|
1167
1167
|
validator_address: string;
|
|
1168
1168
|
staker_address: string;
|
|
1169
1169
|
stake_activation_epoch: bigint;
|
|
@@ -1182,7 +1182,7 @@ export declare namespace validator {
|
|
|
1182
1182
|
interface Validator {
|
|
1183
1183
|
metadata: validator.ValidatorMetadata;
|
|
1184
1184
|
voting_power: bigint;
|
|
1185
|
-
operation_cap_id: _0x2.
|
|
1185
|
+
operation_cap_id: _0x2.object$.ID;
|
|
1186
1186
|
gas_price: bigint;
|
|
1187
1187
|
staking_pool: staking_pool.StakingPool;
|
|
1188
1188
|
commission_rate: bigint;
|
|
@@ -1256,7 +1256,7 @@ export declare namespace validator {
|
|
|
1256
1256
|
function name(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
1257
1257
|
function networkAddress(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
1258
1258
|
function networkPubkeyBytes(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
1259
|
-
function
|
|
1259
|
+
function new$(tx: Transaction, args: [
|
|
1260
1260
|
string | TransactionArgument,
|
|
1261
1261
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
1262
1262
|
(string | TransactionObjectArgument)[] | TransactionArgument,
|
|
@@ -1510,7 +1510,7 @@ export declare namespace validator {
|
|
|
1510
1510
|
function name(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[string]>>;
|
|
1511
1511
|
function networkAddress(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[string]>>;
|
|
1512
1512
|
function networkPubkeyBytes(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[string]>>;
|
|
1513
|
-
function
|
|
1513
|
+
function new$(client: SuiClient, args: [
|
|
1514
1514
|
string,
|
|
1515
1515
|
string[],
|
|
1516
1516
|
string[],
|
|
@@ -1573,7 +1573,7 @@ export declare namespace validator {
|
|
|
1573
1573
|
function setCandidateGasPrice(client: SuiClient, args: [string, validator_cap.ValidatorOperationCap, bigint]): Promise<TypedDevInspectResults<[]>>;
|
|
1574
1574
|
function setVotingPower(client: SuiClient, args: [string, bigint]): Promise<TypedDevInspectResults<[]>>;
|
|
1575
1575
|
function stakeAmount(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[bigint]>>;
|
|
1576
|
-
function stakingPoolId(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[_0x2.
|
|
1576
|
+
function stakingPoolId(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[_0x2.object$.ID]>>;
|
|
1577
1577
|
function suiAddress(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[string]>>;
|
|
1578
1578
|
function totalStake(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[bigint]>>;
|
|
1579
1579
|
function totalStakeAmount(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[bigint]>>;
|
|
@@ -1604,7 +1604,7 @@ export declare namespace validator {
|
|
|
1604
1604
|
}
|
|
1605
1605
|
export declare namespace validator_cap {
|
|
1606
1606
|
interface UnverifiedValidatorOperationCap {
|
|
1607
|
-
id: _0x2.
|
|
1607
|
+
id: _0x2.object$.UID;
|
|
1608
1608
|
authorizer_validator_address: string;
|
|
1609
1609
|
}
|
|
1610
1610
|
namespace UnverifiedValidatorOperationCap {
|
|
@@ -1626,7 +1626,7 @@ export declare namespace validator_cap {
|
|
|
1626
1626
|
}
|
|
1627
1627
|
namespace view {
|
|
1628
1628
|
function newFromUnverified(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[validator_cap.ValidatorOperationCap]>>;
|
|
1629
|
-
function newUnverifiedValidatorOperationCapAndTransfer(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[_0x2.
|
|
1629
|
+
function newUnverifiedValidatorOperationCapAndTransfer(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[_0x2.object$.ID]>>;
|
|
1630
1630
|
function unverifiedOperationCapAddress(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[string]>>;
|
|
1631
1631
|
function verifiedOperationCapAddress(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[string]>>;
|
|
1632
1632
|
}
|
|
@@ -1676,7 +1676,7 @@ export declare namespace validator_set {
|
|
|
1676
1676
|
interface ValidatorJoinEvent {
|
|
1677
1677
|
epoch: bigint;
|
|
1678
1678
|
validator_address: string;
|
|
1679
|
-
staking_pool_id: _0x2.
|
|
1679
|
+
staking_pool_id: _0x2.object$.ID;
|
|
1680
1680
|
}
|
|
1681
1681
|
namespace ValidatorJoinEvent {
|
|
1682
1682
|
const TYPE_QNAME = "0x3::validator_set::ValidatorJoinEvent";
|
|
@@ -1689,7 +1689,7 @@ export declare namespace validator_set {
|
|
|
1689
1689
|
interface ValidatorLeaveEvent {
|
|
1690
1690
|
epoch: bigint;
|
|
1691
1691
|
validator_address: string;
|
|
1692
|
-
staking_pool_id: _0x2.
|
|
1692
|
+
staking_pool_id: _0x2.object$.ID;
|
|
1693
1693
|
is_voluntary: boolean;
|
|
1694
1694
|
}
|
|
1695
1695
|
namespace ValidatorLeaveEvent {
|
|
@@ -1705,8 +1705,8 @@ export declare namespace validator_set {
|
|
|
1705
1705
|
active_validators: validator.Validator[];
|
|
1706
1706
|
pending_active_validators: _0x2.table_vec.TableVec<validator.Validator>;
|
|
1707
1707
|
pending_removals: bigint[];
|
|
1708
|
-
staking_pool_mappings: _0x2.table.Table<_0x2.
|
|
1709
|
-
inactive_validators: _0x2.table.Table<_0x2.
|
|
1708
|
+
staking_pool_mappings: _0x2.table.Table<_0x2.object$.ID, string>;
|
|
1709
|
+
inactive_validators: _0x2.table.Table<_0x2.object$.ID, validator_wrapper.ValidatorWrapper>;
|
|
1710
1710
|
validator_candidates: _0x2.table.Table<string, validator_wrapper.ValidatorWrapper>;
|
|
1711
1711
|
at_risk_validators: _0x2.vec_map.VecMap<string, bigint>;
|
|
1712
1712
|
extra_fields: _0x2.bag.Bag;
|
|
@@ -1788,13 +1788,13 @@ export declare namespace validator_set {
|
|
|
1788
1788
|
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
1789
1789
|
function isInactiveValidator(tx: Transaction, args: [
|
|
1790
1790
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1791
|
-
_0x2.
|
|
1791
|
+
_0x2.object$.ID | TransactionArgument
|
|
1792
1792
|
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
1793
1793
|
function isValidatorCandidate(tx: Transaction, args: [
|
|
1794
1794
|
string | TransactionObjectArgument | TransactionArgument,
|
|
1795
1795
|
string | TransactionArgument
|
|
1796
1796
|
]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
1797
|
-
function
|
|
1797
|
+
function new$(tx: Transaction, args: [(string | TransactionObjectArgument)[] | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
1798
1798
|
function nextEpochValidatorCount(tx: Transaction, args: [string | TransactionObjectArgument | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
1799
1799
|
function poolExchangeRates(tx: Transaction, args: [
|
|
1800
1800
|
string | TransactionObjectArgument | TransactionArgument,
|
|
@@ -1883,9 +1883,9 @@ export declare namespace validator_set {
|
|
|
1883
1883
|
function getValidatorMutWithVerifiedCap(client: SuiClient, args: [string, string, boolean]): Promise<TypedDevInspectResults<[string]>>;
|
|
1884
1884
|
function isActiveValidatorBySuiAddress(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[boolean]>>;
|
|
1885
1885
|
function isDuplicateValidator(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[boolean]>>;
|
|
1886
|
-
function isInactiveValidator(client: SuiClient, args: [string, _0x2.
|
|
1886
|
+
function isInactiveValidator(client: SuiClient, args: [string, _0x2.object$.ID]): Promise<TypedDevInspectResults<[boolean]>>;
|
|
1887
1887
|
function isValidatorCandidate(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[boolean]>>;
|
|
1888
|
-
function
|
|
1888
|
+
function new$(client: SuiClient, args: [string[]]): Promise<TypedDevInspectResults<[validator_set.ValidatorSet]>>;
|
|
1889
1889
|
function nextEpochValidatorCount(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[bigint]>>;
|
|
1890
1890
|
function poolExchangeRates(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[string]>>;
|
|
1891
1891
|
function redeemFungibleStakedSui(client: SuiClient, args: [string, staking_pool.FungibleStakedSui]): Promise<TypedDevInspectResults<[_0x2.balance.Balance<_0x2.sui.SUI>]>>;
|
|
@@ -1901,7 +1901,7 @@ export declare namespace validator_set {
|
|
|
1901
1901
|
function totalStake(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[bigint]>>;
|
|
1902
1902
|
function validatorAddressByPoolId(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[string]>>;
|
|
1903
1903
|
function validatorStakeAmount(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[bigint]>>;
|
|
1904
|
-
function validatorStakingPoolId(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[_0x2.
|
|
1904
|
+
function validatorStakingPoolId(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[_0x2.object$.ID]>>;
|
|
1905
1905
|
function validatorTotalStakeAmount(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[bigint]>>;
|
|
1906
1906
|
function validatorVotingPower(client: SuiClient, args: [string, string]): Promise<TypedDevInspectResults<[bigint]>>;
|
|
1907
1907
|
function verifyCap(client: SuiClient, args: [string, string, number]): Promise<TypedDevInspectResults<[validator_cap.ValidatorOperationCap]>>;
|
package/dist/esm/builtin/0x3.js
CHANGED
|
@@ -334,7 +334,7 @@ export var staking_pool;
|
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
336
|
builder.joinStakedSui = joinStakedSui;
|
|
337
|
-
function
|
|
337
|
+
function new$(tx, args) {
|
|
338
338
|
const _args = [];
|
|
339
339
|
// @ts-ignore
|
|
340
340
|
return tx.moveCall({
|
|
@@ -342,7 +342,7 @@ export var staking_pool;
|
|
|
342
342
|
arguments: _args,
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
|
-
builder.
|
|
345
|
+
builder.new$ = new$;
|
|
346
346
|
function pendingStakeAmount(tx, args) {
|
|
347
347
|
const _args = [];
|
|
348
348
|
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
@@ -655,16 +655,16 @@ export var staking_pool;
|
|
|
655
655
|
return (await getMoveCoder(client)).decodeDevInspectResult(inspectRes);
|
|
656
656
|
}
|
|
657
657
|
view.joinStakedSui = joinStakedSui;
|
|
658
|
-
async function
|
|
658
|
+
async function new$(client, args) {
|
|
659
659
|
const tx = new Transaction();
|
|
660
|
-
builder.
|
|
660
|
+
builder.new$(tx, args);
|
|
661
661
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
662
662
|
transactionBlock: tx,
|
|
663
663
|
sender: ZERO_ADDRESS,
|
|
664
664
|
});
|
|
665
665
|
return (await getMoveCoder(client)).decodeDevInspectResult(inspectRes);
|
|
666
666
|
}
|
|
667
|
-
view.
|
|
667
|
+
view.new$ = new$;
|
|
668
668
|
async function pendingStakeAmount(client, args) {
|
|
669
669
|
const tx = new Transaction();
|
|
670
670
|
builder.pendingStakeAmount(tx, args);
|
|
@@ -875,7 +875,7 @@ export var storage_fund;
|
|
|
875
875
|
});
|
|
876
876
|
}
|
|
877
877
|
builder.advanceEpoch = advanceEpoch;
|
|
878
|
-
function
|
|
878
|
+
function new$(tx, args) {
|
|
879
879
|
const _args = [];
|
|
880
880
|
_args.push(transactionArgumentOrPure(args[0], tx));
|
|
881
881
|
// @ts-ignore
|
|
@@ -884,7 +884,7 @@ export var storage_fund;
|
|
|
884
884
|
arguments: _args,
|
|
885
885
|
});
|
|
886
886
|
}
|
|
887
|
-
builder.
|
|
887
|
+
builder.new$ = new$;
|
|
888
888
|
function totalBalance(tx, args) {
|
|
889
889
|
const _args = [];
|
|
890
890
|
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
@@ -918,16 +918,16 @@ export var storage_fund;
|
|
|
918
918
|
return (await getMoveCoder(client)).decodeDevInspectResult(inspectRes);
|
|
919
919
|
}
|
|
920
920
|
view.advanceEpoch = advanceEpoch;
|
|
921
|
-
async function
|
|
921
|
+
async function new$(client, args) {
|
|
922
922
|
const tx = new Transaction();
|
|
923
|
-
builder.
|
|
923
|
+
builder.new$(tx, args);
|
|
924
924
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
925
925
|
transactionBlock: tx,
|
|
926
926
|
sender: ZERO_ADDRESS,
|
|
927
927
|
});
|
|
928
928
|
return (await getMoveCoder(client)).decodeDevInspectResult(inspectRes);
|
|
929
929
|
}
|
|
930
|
-
view.
|
|
930
|
+
view.new$ = new$;
|
|
931
931
|
async function totalBalance(client, args) {
|
|
932
932
|
const tx = new Transaction();
|
|
933
933
|
builder.totalBalance(tx, args);
|
|
@@ -3254,7 +3254,7 @@ export var validator;
|
|
|
3254
3254
|
});
|
|
3255
3255
|
}
|
|
3256
3256
|
builder.networkPubkeyBytes = networkPubkeyBytes;
|
|
3257
|
-
function
|
|
3257
|
+
function new$(tx, args) {
|
|
3258
3258
|
const _args = [];
|
|
3259
3259
|
_args.push(transactionArgumentOrPureAddress(args[0], tx));
|
|
3260
3260
|
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
@@ -3277,7 +3277,7 @@ export var validator;
|
|
|
3277
3277
|
arguments: _args,
|
|
3278
3278
|
});
|
|
3279
3279
|
}
|
|
3280
|
-
builder.
|
|
3280
|
+
builder.new$ = new$;
|
|
3281
3281
|
function newMetadata(tx, args) {
|
|
3282
3282
|
const _args = [];
|
|
3283
3283
|
_args.push(transactionArgumentOrPureAddress(args[0], tx));
|
|
@@ -4078,16 +4078,16 @@ export var validator;
|
|
|
4078
4078
|
return (await getMoveCoder(client)).decodeDevInspectResult(inspectRes);
|
|
4079
4079
|
}
|
|
4080
4080
|
view.networkPubkeyBytes = networkPubkeyBytes;
|
|
4081
|
-
async function
|
|
4081
|
+
async function new$(client, args) {
|
|
4082
4082
|
const tx = new Transaction();
|
|
4083
|
-
builder.
|
|
4083
|
+
builder.new$(tx, args);
|
|
4084
4084
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4085
4085
|
transactionBlock: tx,
|
|
4086
4086
|
sender: ZERO_ADDRESS,
|
|
4087
4087
|
});
|
|
4088
4088
|
return (await getMoveCoder(client)).decodeDevInspectResult(inspectRes);
|
|
4089
4089
|
}
|
|
4090
|
-
view.
|
|
4090
|
+
view.new$ = new$;
|
|
4091
4091
|
async function newMetadata(client, args) {
|
|
4092
4092
|
const tx = new Transaction();
|
|
4093
4093
|
builder.newMetadata(tx, args);
|
|
@@ -5016,7 +5016,7 @@ export var validator_set;
|
|
|
5016
5016
|
});
|
|
5017
5017
|
}
|
|
5018
5018
|
builder.isValidatorCandidate = isValidatorCandidate;
|
|
5019
|
-
function
|
|
5019
|
+
function new$(tx, args) {
|
|
5020
5020
|
const _args = [];
|
|
5021
5021
|
_args.push(transactionArgumentOrVec(args[0], tx));
|
|
5022
5022
|
// @ts-ignore
|
|
@@ -5025,7 +5025,7 @@ export var validator_set;
|
|
|
5025
5025
|
arguments: _args,
|
|
5026
5026
|
});
|
|
5027
5027
|
}
|
|
5028
|
-
builder.
|
|
5028
|
+
builder.new$ = new$;
|
|
5029
5029
|
function nextEpochValidatorCount(tx, args) {
|
|
5030
5030
|
const _args = [];
|
|
5031
5031
|
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
@@ -5405,16 +5405,16 @@ export var validator_set;
|
|
|
5405
5405
|
return (await getMoveCoder(client)).decodeDevInspectResult(inspectRes);
|
|
5406
5406
|
}
|
|
5407
5407
|
view.isValidatorCandidate = isValidatorCandidate;
|
|
5408
|
-
async function
|
|
5408
|
+
async function new$(client, args) {
|
|
5409
5409
|
const tx = new Transaction();
|
|
5410
|
-
builder.
|
|
5410
|
+
builder.new$(tx, args);
|
|
5411
5411
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5412
5412
|
transactionBlock: tx,
|
|
5413
5413
|
sender: ZERO_ADDRESS,
|
|
5414
5414
|
});
|
|
5415
5415
|
return (await getMoveCoder(client)).decodeDevInspectResult(inspectRes);
|
|
5416
5416
|
}
|
|
5417
|
-
view.
|
|
5417
|
+
view.new$ = new$;
|
|
5418
5418
|
async function nextEpochValidatorCount(client, args) {
|
|
5419
5419
|
const tx = new Transaction();
|
|
5420
5420
|
builder.nextEpochValidatorCount(tx, args);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typemove/sui",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.12-rc.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"commander": "^12.0.0",
|
|
48
48
|
"prettier": "^3.2.4",
|
|
49
49
|
"radash": "^12.0.0",
|
|
50
|
-
"@typemove/move": "1.6.
|
|
50
|
+
"@typemove/move": "1.6.12-rc.2"
|
|
51
51
|
},
|
|
52
52
|
"url": "https://github.com/sentioxyz/typemove",
|
|
53
53
|
"scripts": {
|
package/src/builtin/0x1.ts
CHANGED
|
@@ -294,7 +294,7 @@ export namespace ascii {
|
|
|
294
294
|
arguments: _args,
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
|
-
export function
|
|
297
|
+
export function string$(
|
|
298
298
|
tx: Transaction,
|
|
299
299
|
args: [(string | TransactionObjectArgument)[] | TransactionArgument],
|
|
300
300
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -578,12 +578,12 @@ export namespace ascii {
|
|
|
578
578
|
inspectRes,
|
|
579
579
|
);
|
|
580
580
|
}
|
|
581
|
-
export async function
|
|
581
|
+
export async function string$(
|
|
582
582
|
client: SuiClient,
|
|
583
583
|
args: [string[]],
|
|
584
584
|
): Promise<TypedDevInspectResults<[ascii.String]>> {
|
|
585
585
|
const tx = new Transaction();
|
|
586
|
-
builder.
|
|
586
|
+
builder.string$(tx, args);
|
|
587
587
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
588
588
|
transactionBlock: tx,
|
|
589
589
|
sender: ZERO_ADDRESS,
|
|
@@ -767,7 +767,7 @@ export namespace bit_vector {
|
|
|
767
767
|
arguments: _args,
|
|
768
768
|
});
|
|
769
769
|
}
|
|
770
|
-
export function
|
|
770
|
+
export function new$(
|
|
771
771
|
tx: Transaction,
|
|
772
772
|
args: [bigint | TransactionArgument],
|
|
773
773
|
): TransactionArgument & [TransactionArgument] {
|
|
@@ -878,12 +878,12 @@ export namespace bit_vector {
|
|
|
878
878
|
inspectRes,
|
|
879
879
|
);
|
|
880
880
|
}
|
|
881
|
-
export async function
|
|
881
|
+
export async function new$(
|
|
882
882
|
client: SuiClient,
|
|
883
883
|
args: [bigint],
|
|
884
884
|
): Promise<TypedDevInspectResults<[bit_vector.BitVector]>> {
|
|
885
885
|
const tx = new Transaction();
|
|
886
|
-
builder.
|
|
886
|
+
builder.new$(tx, args);
|
|
887
887
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
888
888
|
transactionBlock: tx,
|
|
889
889
|
sender: ZERO_ADDRESS,
|
|
@@ -1921,7 +1921,7 @@ export namespace option {
|
|
|
1921
1921
|
}
|
|
1922
1922
|
}
|
|
1923
1923
|
|
|
1924
|
-
export namespace
|
|
1924
|
+
export namespace string$ {
|
|
1925
1925
|
export interface String {
|
|
1926
1926
|
bytes: number[];
|
|
1927
1927
|
}
|