@sentio/sdk 2.10.2 → 2.11.0-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.
Files changed (64) hide show
  1. package/lib/aptos/codegen/codegen.js +0 -1
  2. package/lib/aptos/codegen/codegen.js.map +1 -1
  3. package/lib/move/abstract-codegen.d.ts +2 -1
  4. package/lib/move/abstract-codegen.js +9 -8
  5. package/lib/move/abstract-codegen.js.map +1 -1
  6. package/lib/move/abstract-move-coder.d.ts +2 -3
  7. package/lib/move/abstract-move-coder.js +6 -1
  8. package/lib/move/abstract-move-coder.js.map +1 -1
  9. package/lib/solana/builtin/types.d.ts +170 -170
  10. package/lib/solana/builtin/types.js +2 -1
  11. package/lib/solana/builtin/types.js.map +1 -1
  12. package/lib/sui/builtin/0x1.js +1 -1
  13. package/lib/sui/builtin/0x1.js.map +1 -1
  14. package/lib/sui/builtin/0x2.d.ts +235 -640
  15. package/lib/sui/builtin/0x2.js +294 -716
  16. package/lib/sui/builtin/0x2.js.map +1 -1
  17. package/lib/sui/builtin/0x3.d.ts +566 -0
  18. package/lib/sui/builtin/0x3.js +681 -0
  19. package/lib/sui/builtin/0x3.js.map +1 -0
  20. package/lib/sui/builtin/index.d.ts +1 -0
  21. package/lib/sui/builtin/index.js +1 -0
  22. package/lib/sui/builtin/index.js.map +1 -1
  23. package/lib/sui/codegen/codegen.js +4 -3
  24. package/lib/sui/codegen/codegen.js.map +1 -1
  25. package/lib/sui/context.d.ts +3 -3
  26. package/lib/sui/context.js +1 -1
  27. package/lib/sui/context.js.map +1 -1
  28. package/lib/sui/models.d.ts +8 -4
  29. package/lib/sui/models.js.map +1 -1
  30. package/lib/sui/move-coder.d.ts +9 -6
  31. package/lib/sui/move-coder.js +44 -8
  32. package/lib/sui/move-coder.js.map +1 -1
  33. package/lib/sui/move-types.js +7 -7
  34. package/lib/sui/move-types.js.map +1 -1
  35. package/lib/sui/sui-processor.d.ts +3 -3
  36. package/lib/sui/sui-processor.js +15 -9
  37. package/lib/sui/sui-processor.js.map +1 -1
  38. package/lib/sui/utils.d.ts +2 -2
  39. package/lib/sui/utils.js +18 -5
  40. package/lib/sui/utils.js.map +1 -1
  41. package/lib/testing/sui-facet.d.ts +4 -4
  42. package/lib/testing/sui-facet.js +7 -7
  43. package/lib/testing/sui-facet.js.map +1 -1
  44. package/package.json +7 -5
  45. package/src/aptos/codegen/codegen.ts +0 -1
  46. package/src/move/abstract-codegen.ts +9 -8
  47. package/src/move/abstract-move-coder.ts +7 -3
  48. package/src/solana/builtin/types.ts +2 -1
  49. package/src/sui/abis/0x1.json +357 -357
  50. package/src/sui/abis/0x2.json +5563 -8247
  51. package/src/sui/abis/0x3.json +8399 -0
  52. package/src/sui/builtin/0x1.ts +1 -1
  53. package/src/sui/builtin/0x2.ts +531 -1537
  54. package/src/sui/builtin/0x3.ts +1515 -0
  55. package/src/sui/builtin/index.ts +1 -0
  56. package/src/sui/codegen/codegen.ts +5 -3
  57. package/src/sui/context.ts +4 -4
  58. package/src/sui/models.ts +9 -4
  59. package/src/sui/move-coder.ts +53 -15
  60. package/src/sui/move-types.ts +7 -7
  61. package/src/sui/sui-processor.ts +28 -15
  62. package/src/sui/utils.ts +28 -5
  63. package/src/testing/sui-facet.ts +19 -15
  64. package/src/eth/codegen/tsconfig.json +0 -8
@@ -0,0 +1,566 @@
1
+ import { CallFilter } from "@sentio/sdk/move";
2
+ import { MoveCoder, SuiBindOptions, SuiBaseProcessor, TypedEventInstance, TypedFunctionPayload, SuiContext } from "@sentio/sdk/sui";
3
+ import { MoveFetchConfig } from "@sentio/protos";
4
+ import { SuiAddress } from "@sentio/sdk/sui";
5
+ import * as _0x1 from "./0x1.js";
6
+ import * as _0x2 from "./0x2.js";
7
+ export declare class genesis extends SuiBaseProcessor {
8
+ constructor(options: SuiBindOptions);
9
+ static DEFAULT_OPTIONS: SuiBindOptions;
10
+ static bind(options?: Partial<SuiBindOptions>): genesis;
11
+ onEventGenesisChainParameters(func: (event: genesis.GenesisChainParametersInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): genesis;
12
+ onEventGenesisValidatorMetadata(func: (event: genesis.GenesisValidatorMetadataInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): genesis;
13
+ }
14
+ export declare namespace genesis {
15
+ class GenesisChainParameters {
16
+ static TYPE_QNAME: string;
17
+ protocol_version: bigint;
18
+ chain_start_timestamp_ms: bigint;
19
+ epoch_duration_ms: bigint;
20
+ stake_subsidy_start_epoch: bigint;
21
+ stake_subsidy_initial_distribution_amount: bigint;
22
+ stake_subsidy_period_length: bigint;
23
+ stake_subsidy_decrease_rate: number;
24
+ max_validator_count: bigint;
25
+ min_validator_joining_stake: bigint;
26
+ validator_low_stake_threshold: bigint;
27
+ validator_very_low_stake_threshold: bigint;
28
+ validator_low_stake_grace_period: bigint;
29
+ }
30
+ interface GenesisChainParametersInstance extends TypedEventInstance<GenesisChainParameters> {
31
+ fields_decoded: GenesisChainParameters;
32
+ type_arguments: [];
33
+ }
34
+ class GenesisValidatorMetadata {
35
+ static TYPE_QNAME: string;
36
+ name: number[];
37
+ description: number[];
38
+ image_url: number[];
39
+ project_url: number[];
40
+ sui_address: SuiAddress;
41
+ gas_price: bigint;
42
+ commission_rate: bigint;
43
+ protocol_public_key: number[];
44
+ proof_of_possession: number[];
45
+ network_public_key: number[];
46
+ worker_public_key: number[];
47
+ network_address: number[];
48
+ p2p_address: number[];
49
+ primary_address: number[];
50
+ worker_address: number[];
51
+ }
52
+ interface GenesisValidatorMetadataInstance extends TypedEventInstance<GenesisValidatorMetadata> {
53
+ fields_decoded: GenesisValidatorMetadata;
54
+ type_arguments: [];
55
+ }
56
+ class TokenAllocation {
57
+ static TYPE_QNAME: string;
58
+ recipient_address: SuiAddress;
59
+ amount_mist: bigint;
60
+ staked_with_validator: _0x1.option.Option<SuiAddress>;
61
+ }
62
+ class TokenDistributionSchedule {
63
+ static TYPE_QNAME: string;
64
+ stake_subsidy_fund_mist: bigint;
65
+ allocations: genesis.TokenAllocation[];
66
+ }
67
+ }
68
+ export declare namespace stake_subsidy {
69
+ class StakeSubsidy {
70
+ static TYPE_QNAME: string;
71
+ balance: _0x2.balance.Balance<_0x2.sui.SUI>;
72
+ distribution_counter: bigint;
73
+ current_distribution_amount: bigint;
74
+ stake_subsidy_period_length: bigint;
75
+ stake_subsidy_decrease_rate: number;
76
+ extra_fields: _0x2.bag.Bag;
77
+ }
78
+ }
79
+ export declare class staking_pool extends SuiBaseProcessor {
80
+ constructor(options: SuiBindOptions);
81
+ static DEFAULT_OPTIONS: SuiBindOptions;
82
+ static bind(options?: Partial<SuiBindOptions>): staking_pool;
83
+ onEntryJoinStakedSui(func: (call: staking_pool.JoinStakedSuiPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): staking_pool;
84
+ onEntrySplitStakedSui(func: (call: staking_pool.SplitStakedSuiPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): staking_pool;
85
+ onEventPoolTokenExchangeRate(func: (event: staking_pool.PoolTokenExchangeRateInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): staking_pool;
86
+ }
87
+ export declare namespace staking_pool {
88
+ class PoolTokenExchangeRate {
89
+ static TYPE_QNAME: string;
90
+ sui_amount: bigint;
91
+ pool_token_amount: bigint;
92
+ }
93
+ interface PoolTokenExchangeRateInstance extends TypedEventInstance<PoolTokenExchangeRate> {
94
+ fields_decoded: PoolTokenExchangeRate;
95
+ type_arguments: [];
96
+ }
97
+ class StakedSui {
98
+ static TYPE_QNAME: string;
99
+ id: _0x2.object_.UID;
100
+ pool_id: _0x2.object_.ID;
101
+ stake_activation_epoch: bigint;
102
+ principal: _0x2.balance.Balance<_0x2.sui.SUI>;
103
+ }
104
+ class StakingPool {
105
+ static TYPE_QNAME: string;
106
+ id: _0x2.object_.UID;
107
+ activation_epoch: _0x1.option.Option<bigint>;
108
+ deactivation_epoch: _0x1.option.Option<bigint>;
109
+ sui_balance: bigint;
110
+ rewards_pool: _0x2.balance.Balance<_0x2.sui.SUI>;
111
+ pool_token_balance: bigint;
112
+ exchange_rates: _0x2.table.Table<bigint, staking_pool.PoolTokenExchangeRate>;
113
+ pending_stake: bigint;
114
+ pending_total_sui_withdraw: bigint;
115
+ pending_pool_token_withdraw: bigint;
116
+ extra_fields: _0x2.bag.Bag;
117
+ }
118
+ interface JoinStakedSuiPayload extends TypedFunctionPayload<[SuiAddress]> {
119
+ arguments_decoded: [SuiAddress];
120
+ type_arguments: [];
121
+ }
122
+ interface SplitStakedSuiPayload extends TypedFunctionPayload<[SuiAddress, bigint]> {
123
+ arguments_decoded: [SuiAddress, bigint];
124
+ type_arguments: [];
125
+ }
126
+ }
127
+ export declare namespace storage_fund {
128
+ class StorageFund {
129
+ static TYPE_QNAME: string;
130
+ total_object_storage_rebates: _0x2.balance.Balance<_0x2.sui.SUI>;
131
+ non_refundable_balance: _0x2.balance.Balance<_0x2.sui.SUI>;
132
+ }
133
+ }
134
+ export declare class sui_system extends SuiBaseProcessor {
135
+ constructor(options: SuiBindOptions);
136
+ static DEFAULT_OPTIONS: SuiBindOptions;
137
+ static bind(options?: Partial<SuiBindOptions>): sui_system;
138
+ onEntryReportValidator(func: (call: sui_system.ReportValidatorPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
139
+ onEntryRequestAddStake(func: (call: sui_system.RequestAddStakePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
140
+ onEntryRequestAddStakeMulCoin(func: (call: sui_system.RequestAddStakeMulCoinPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
141
+ onEntryRequestAddValidator(func: (call: sui_system.RequestAddValidatorPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
142
+ onEntryRequestAddValidatorCandidate(func: (call: sui_system.RequestAddValidatorCandidatePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
143
+ onEntryRequestRemoveValidator(func: (call: sui_system.RequestRemoveValidatorPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
144
+ onEntryRequestRemoveValidatorCandidate(func: (call: sui_system.RequestRemoveValidatorCandidatePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
145
+ onEntryRequestSetCommissionRate(func: (call: sui_system.RequestSetCommissionRatePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
146
+ onEntryRequestSetGasPrice(func: (call: sui_system.RequestSetGasPricePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
147
+ onEntryRequestWithdrawStake(func: (call: sui_system.RequestWithdrawStakePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
148
+ onEntryRotateOperationCap(func: (call: sui_system.RotateOperationCapPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
149
+ onEntrySetCandidateValidatorCommissionRate(func: (call: sui_system.SetCandidateValidatorCommissionRatePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
150
+ onEntrySetCandidateValidatorGasPrice(func: (call: sui_system.SetCandidateValidatorGasPricePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
151
+ onEntryUndoReportValidator(func: (call: sui_system.UndoReportValidatorPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
152
+ onEntryUpdateCandidateValidatorNetworkAddress(func: (call: sui_system.UpdateCandidateValidatorNetworkAddressPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
153
+ onEntryUpdateCandidateValidatorNetworkPubkey(func: (call: sui_system.UpdateCandidateValidatorNetworkPubkeyPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
154
+ onEntryUpdateCandidateValidatorP2PAddress(func: (call: sui_system.UpdateCandidateValidatorP2PAddressPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
155
+ onEntryUpdateCandidateValidatorPrimaryAddress(func: (call: sui_system.UpdateCandidateValidatorPrimaryAddressPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
156
+ onEntryUpdateCandidateValidatorProtocolPubkey(func: (call: sui_system.UpdateCandidateValidatorProtocolPubkeyPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
157
+ onEntryUpdateCandidateValidatorWorkerAddress(func: (call: sui_system.UpdateCandidateValidatorWorkerAddressPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
158
+ onEntryUpdateCandidateValidatorWorkerPubkey(func: (call: sui_system.UpdateCandidateValidatorWorkerPubkeyPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
159
+ onEntryUpdateValidatorDescription(func: (call: sui_system.UpdateValidatorDescriptionPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
160
+ onEntryUpdateValidatorImageUrl(func: (call: sui_system.UpdateValidatorImageUrlPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
161
+ onEntryUpdateValidatorName(func: (call: sui_system.UpdateValidatorNamePayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
162
+ onEntryUpdateValidatorNextEpochNetworkAddress(func: (call: sui_system.UpdateValidatorNextEpochNetworkAddressPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
163
+ onEntryUpdateValidatorNextEpochNetworkPubkey(func: (call: sui_system.UpdateValidatorNextEpochNetworkPubkeyPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
164
+ onEntryUpdateValidatorNextEpochP2PAddress(func: (call: sui_system.UpdateValidatorNextEpochP2PAddressPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
165
+ onEntryUpdateValidatorNextEpochPrimaryAddress(func: (call: sui_system.UpdateValidatorNextEpochPrimaryAddressPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
166
+ onEntryUpdateValidatorNextEpochProtocolPubkey(func: (call: sui_system.UpdateValidatorNextEpochProtocolPubkeyPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
167
+ onEntryUpdateValidatorNextEpochWorkerAddress(func: (call: sui_system.UpdateValidatorNextEpochWorkerAddressPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
168
+ onEntryUpdateValidatorNextEpochWorkerPubkey(func: (call: sui_system.UpdateValidatorNextEpochWorkerPubkeyPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
169
+ onEntryUpdateValidatorProjectUrl(func: (call: sui_system.UpdateValidatorProjectUrlPayload, ctx: SuiContext) => void, filter?: CallFilter, fetchConfig?: MoveFetchConfig): sui_system;
170
+ }
171
+ export declare namespace sui_system {
172
+ class SuiSystemState {
173
+ static TYPE_QNAME: string;
174
+ id: _0x2.object_.UID;
175
+ version: bigint;
176
+ }
177
+ interface ReportValidatorPayload extends TypedFunctionPayload<[SuiAddress, SuiAddress]> {
178
+ arguments_decoded: [SuiAddress, SuiAddress];
179
+ type_arguments: [];
180
+ }
181
+ interface RequestAddStakePayload extends TypedFunctionPayload<[
182
+ SuiAddress,
183
+ _0x2.coin.Coin<_0x2.sui.SUI>,
184
+ SuiAddress
185
+ ]> {
186
+ arguments_decoded: [SuiAddress, _0x2.coin.Coin<_0x2.sui.SUI>, SuiAddress];
187
+ type_arguments: [];
188
+ }
189
+ interface RequestAddStakeMulCoinPayload extends TypedFunctionPayload<[
190
+ SuiAddress,
191
+ _0x2.coin.Coin<_0x2.sui.SUI>[],
192
+ _0x1.option.Option<bigint>,
193
+ SuiAddress
194
+ ]> {
195
+ arguments_decoded: [
196
+ SuiAddress,
197
+ _0x2.coin.Coin<_0x2.sui.SUI>[],
198
+ _0x1.option.Option<bigint>,
199
+ SuiAddress
200
+ ];
201
+ type_arguments: [];
202
+ }
203
+ interface RequestAddValidatorPayload extends TypedFunctionPayload<[SuiAddress]> {
204
+ arguments_decoded: [SuiAddress];
205
+ type_arguments: [];
206
+ }
207
+ interface RequestAddValidatorCandidatePayload extends TypedFunctionPayload<[
208
+ SuiAddress,
209
+ number[],
210
+ number[],
211
+ number[],
212
+ number[],
213
+ number[],
214
+ number[],
215
+ number[],
216
+ number[],
217
+ number[],
218
+ number[],
219
+ number[],
220
+ number[],
221
+ bigint,
222
+ bigint
223
+ ]> {
224
+ arguments_decoded: [
225
+ SuiAddress,
226
+ number[],
227
+ number[],
228
+ number[],
229
+ number[],
230
+ number[],
231
+ number[],
232
+ number[],
233
+ number[],
234
+ number[],
235
+ number[],
236
+ number[],
237
+ number[],
238
+ bigint,
239
+ bigint
240
+ ];
241
+ type_arguments: [];
242
+ }
243
+ interface RequestRemoveValidatorPayload extends TypedFunctionPayload<[SuiAddress]> {
244
+ arguments_decoded: [SuiAddress];
245
+ type_arguments: [];
246
+ }
247
+ interface RequestRemoveValidatorCandidatePayload extends TypedFunctionPayload<[SuiAddress]> {
248
+ arguments_decoded: [SuiAddress];
249
+ type_arguments: [];
250
+ }
251
+ interface RequestSetCommissionRatePayload extends TypedFunctionPayload<[SuiAddress, bigint]> {
252
+ arguments_decoded: [SuiAddress, bigint];
253
+ type_arguments: [];
254
+ }
255
+ interface RequestSetGasPricePayload extends TypedFunctionPayload<[SuiAddress, SuiAddress]> {
256
+ arguments_decoded: [SuiAddress, SuiAddress];
257
+ type_arguments: [];
258
+ }
259
+ interface RequestWithdrawStakePayload extends TypedFunctionPayload<[SuiAddress, staking_pool.StakedSui]> {
260
+ arguments_decoded: [SuiAddress, staking_pool.StakedSui];
261
+ type_arguments: [];
262
+ }
263
+ interface RotateOperationCapPayload extends TypedFunctionPayload<[SuiAddress]> {
264
+ arguments_decoded: [SuiAddress];
265
+ type_arguments: [];
266
+ }
267
+ interface SetCandidateValidatorCommissionRatePayload extends TypedFunctionPayload<[SuiAddress, bigint]> {
268
+ arguments_decoded: [SuiAddress, bigint];
269
+ type_arguments: [];
270
+ }
271
+ interface SetCandidateValidatorGasPricePayload extends TypedFunctionPayload<[SuiAddress, SuiAddress]> {
272
+ arguments_decoded: [SuiAddress, SuiAddress];
273
+ type_arguments: [];
274
+ }
275
+ interface UndoReportValidatorPayload extends TypedFunctionPayload<[SuiAddress, SuiAddress]> {
276
+ arguments_decoded: [SuiAddress, SuiAddress];
277
+ type_arguments: [];
278
+ }
279
+ interface UpdateCandidateValidatorNetworkAddressPayload extends TypedFunctionPayload<[SuiAddress, number[]]> {
280
+ arguments_decoded: [SuiAddress, number[]];
281
+ type_arguments: [];
282
+ }
283
+ interface UpdateCandidateValidatorNetworkPubkeyPayload extends TypedFunctionPayload<[SuiAddress, number[]]> {
284
+ arguments_decoded: [SuiAddress, number[]];
285
+ type_arguments: [];
286
+ }
287
+ interface UpdateCandidateValidatorP2PAddressPayload extends TypedFunctionPayload<[SuiAddress, number[]]> {
288
+ arguments_decoded: [SuiAddress, number[]];
289
+ type_arguments: [];
290
+ }
291
+ interface UpdateCandidateValidatorPrimaryAddressPayload extends TypedFunctionPayload<[SuiAddress, number[]]> {
292
+ arguments_decoded: [SuiAddress, number[]];
293
+ type_arguments: [];
294
+ }
295
+ interface UpdateCandidateValidatorProtocolPubkeyPayload extends TypedFunctionPayload<[SuiAddress, number[], number[]]> {
296
+ arguments_decoded: [SuiAddress, number[], number[]];
297
+ type_arguments: [];
298
+ }
299
+ interface UpdateCandidateValidatorWorkerAddressPayload extends TypedFunctionPayload<[SuiAddress, number[]]> {
300
+ arguments_decoded: [SuiAddress, number[]];
301
+ type_arguments: [];
302
+ }
303
+ interface UpdateCandidateValidatorWorkerPubkeyPayload extends TypedFunctionPayload<[SuiAddress, number[]]> {
304
+ arguments_decoded: [SuiAddress, number[]];
305
+ type_arguments: [];
306
+ }
307
+ interface UpdateValidatorDescriptionPayload extends TypedFunctionPayload<[SuiAddress, number[]]> {
308
+ arguments_decoded: [SuiAddress, number[]];
309
+ type_arguments: [];
310
+ }
311
+ interface UpdateValidatorImageUrlPayload extends TypedFunctionPayload<[SuiAddress, number[]]> {
312
+ arguments_decoded: [SuiAddress, number[]];
313
+ type_arguments: [];
314
+ }
315
+ interface UpdateValidatorNamePayload extends TypedFunctionPayload<[SuiAddress, number[]]> {
316
+ arguments_decoded: [SuiAddress, number[]];
317
+ type_arguments: [];
318
+ }
319
+ interface UpdateValidatorNextEpochNetworkAddressPayload extends TypedFunctionPayload<[SuiAddress, number[]]> {
320
+ arguments_decoded: [SuiAddress, number[]];
321
+ type_arguments: [];
322
+ }
323
+ interface UpdateValidatorNextEpochNetworkPubkeyPayload extends TypedFunctionPayload<[SuiAddress, number[]]> {
324
+ arguments_decoded: [SuiAddress, number[]];
325
+ type_arguments: [];
326
+ }
327
+ interface UpdateValidatorNextEpochP2PAddressPayload extends TypedFunctionPayload<[SuiAddress, number[]]> {
328
+ arguments_decoded: [SuiAddress, number[]];
329
+ type_arguments: [];
330
+ }
331
+ interface UpdateValidatorNextEpochPrimaryAddressPayload extends TypedFunctionPayload<[SuiAddress, number[]]> {
332
+ arguments_decoded: [SuiAddress, number[]];
333
+ type_arguments: [];
334
+ }
335
+ interface UpdateValidatorNextEpochProtocolPubkeyPayload extends TypedFunctionPayload<[SuiAddress, number[], number[]]> {
336
+ arguments_decoded: [SuiAddress, number[], number[]];
337
+ type_arguments: [];
338
+ }
339
+ interface UpdateValidatorNextEpochWorkerAddressPayload extends TypedFunctionPayload<[SuiAddress, number[]]> {
340
+ arguments_decoded: [SuiAddress, number[]];
341
+ type_arguments: [];
342
+ }
343
+ interface UpdateValidatorNextEpochWorkerPubkeyPayload extends TypedFunctionPayload<[SuiAddress, number[]]> {
344
+ arguments_decoded: [SuiAddress, number[]];
345
+ type_arguments: [];
346
+ }
347
+ interface UpdateValidatorProjectUrlPayload extends TypedFunctionPayload<[SuiAddress, number[]]> {
348
+ arguments_decoded: [SuiAddress, number[]];
349
+ type_arguments: [];
350
+ }
351
+ }
352
+ export declare class sui_system_state_inner extends SuiBaseProcessor {
353
+ constructor(options: SuiBindOptions);
354
+ static DEFAULT_OPTIONS: SuiBindOptions;
355
+ static bind(options?: Partial<SuiBindOptions>): sui_system_state_inner;
356
+ onEventSystemEpochInfoEvent(func: (event: sui_system_state_inner.SystemEpochInfoEventInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): sui_system_state_inner;
357
+ }
358
+ export declare namespace sui_system_state_inner {
359
+ class SuiSystemStateInner {
360
+ static TYPE_QNAME: string;
361
+ epoch: bigint;
362
+ protocol_version: bigint;
363
+ system_state_version: bigint;
364
+ validators: validator_set.ValidatorSet;
365
+ storage_fund: storage_fund.StorageFund;
366
+ parameters: sui_system_state_inner.SystemParameters;
367
+ reference_gas_price: bigint;
368
+ validator_report_records: _0x2.vec_map.VecMap<SuiAddress, _0x2.vec_set.VecSet<SuiAddress>>;
369
+ stake_subsidy: stake_subsidy.StakeSubsidy;
370
+ safe_mode: Boolean;
371
+ safe_mode_storage_rewards: _0x2.balance.Balance<_0x2.sui.SUI>;
372
+ safe_mode_computation_rewards: _0x2.balance.Balance<_0x2.sui.SUI>;
373
+ safe_mode_storage_rebates: bigint;
374
+ safe_mode_non_refundable_storage_fee: bigint;
375
+ epoch_start_timestamp_ms: bigint;
376
+ extra_fields: _0x2.bag.Bag;
377
+ }
378
+ class SystemEpochInfoEvent {
379
+ static TYPE_QNAME: string;
380
+ epoch: bigint;
381
+ protocol_version: bigint;
382
+ reference_gas_price: bigint;
383
+ total_stake: bigint;
384
+ storage_fund_reinvestment: bigint;
385
+ storage_charge: bigint;
386
+ storage_rebate: bigint;
387
+ storage_fund_balance: bigint;
388
+ stake_subsidy_amount: bigint;
389
+ total_gas_fees: bigint;
390
+ total_stake_rewards_distributed: bigint;
391
+ leftover_storage_fund_inflow: bigint;
392
+ }
393
+ interface SystemEpochInfoEventInstance extends TypedEventInstance<SystemEpochInfoEvent> {
394
+ fields_decoded: SystemEpochInfoEvent;
395
+ type_arguments: [];
396
+ }
397
+ class SystemParameters {
398
+ static TYPE_QNAME: string;
399
+ epoch_duration_ms: bigint;
400
+ stake_subsidy_start_epoch: bigint;
401
+ max_validator_count: bigint;
402
+ min_validator_joining_stake: bigint;
403
+ validator_low_stake_threshold: bigint;
404
+ validator_very_low_stake_threshold: bigint;
405
+ validator_low_stake_grace_period: bigint;
406
+ extra_fields: _0x2.bag.Bag;
407
+ }
408
+ }
409
+ export declare class validator extends SuiBaseProcessor {
410
+ constructor(options: SuiBindOptions);
411
+ static DEFAULT_OPTIONS: SuiBindOptions;
412
+ static bind(options?: Partial<SuiBindOptions>): validator;
413
+ onEventStakingRequestEvent(func: (event: validator.StakingRequestEventInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): validator;
414
+ onEventUnstakingRequestEvent(func: (event: validator.UnstakingRequestEventInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): validator;
415
+ }
416
+ export declare namespace validator {
417
+ class StakingRequestEvent {
418
+ static TYPE_QNAME: string;
419
+ pool_id: _0x2.object_.ID;
420
+ validator_address: SuiAddress;
421
+ staker_address: SuiAddress;
422
+ epoch: bigint;
423
+ amount: bigint;
424
+ }
425
+ interface StakingRequestEventInstance extends TypedEventInstance<StakingRequestEvent> {
426
+ fields_decoded: StakingRequestEvent;
427
+ type_arguments: [];
428
+ }
429
+ class UnstakingRequestEvent {
430
+ static TYPE_QNAME: string;
431
+ pool_id: _0x2.object_.ID;
432
+ validator_address: SuiAddress;
433
+ staker_address: SuiAddress;
434
+ stake_activation_epoch: bigint;
435
+ unstaking_epoch: bigint;
436
+ principal_amount: bigint;
437
+ reward_amount: bigint;
438
+ }
439
+ interface UnstakingRequestEventInstance extends TypedEventInstance<UnstakingRequestEvent> {
440
+ fields_decoded: UnstakingRequestEvent;
441
+ type_arguments: [];
442
+ }
443
+ class Validator {
444
+ static TYPE_QNAME: string;
445
+ metadata: validator.ValidatorMetadata;
446
+ voting_power: bigint;
447
+ operation_cap_id: _0x2.object_.ID;
448
+ gas_price: bigint;
449
+ staking_pool: staking_pool.StakingPool;
450
+ commission_rate: bigint;
451
+ next_epoch_stake: bigint;
452
+ next_epoch_gas_price: bigint;
453
+ next_epoch_commission_rate: bigint;
454
+ extra_fields: _0x2.bag.Bag;
455
+ }
456
+ class ValidatorMetadata {
457
+ static TYPE_QNAME: string;
458
+ sui_address: SuiAddress;
459
+ protocol_pubkey_bytes: number[];
460
+ network_pubkey_bytes: number[];
461
+ worker_pubkey_bytes: number[];
462
+ proof_of_possession: number[];
463
+ name: string;
464
+ description: string;
465
+ image_url: _0x2.url.Url;
466
+ project_url: _0x2.url.Url;
467
+ net_address: string;
468
+ p2p_address: string;
469
+ primary_address: string;
470
+ worker_address: string;
471
+ next_epoch_protocol_pubkey_bytes: _0x1.option.Option<number[]>;
472
+ next_epoch_proof_of_possession: _0x1.option.Option<number[]>;
473
+ next_epoch_network_pubkey_bytes: _0x1.option.Option<number[]>;
474
+ next_epoch_worker_pubkey_bytes: _0x1.option.Option<number[]>;
475
+ next_epoch_net_address: _0x1.option.Option<string>;
476
+ next_epoch_p2p_address: _0x1.option.Option<string>;
477
+ next_epoch_primary_address: _0x1.option.Option<string>;
478
+ next_epoch_worker_address: _0x1.option.Option<string>;
479
+ extra_fields: _0x2.bag.Bag;
480
+ }
481
+ }
482
+ export declare namespace validator_cap {
483
+ class UnverifiedValidatorOperationCap {
484
+ static TYPE_QNAME: string;
485
+ id: _0x2.object_.UID;
486
+ authorizer_validator_address: SuiAddress;
487
+ }
488
+ class ValidatorOperationCap {
489
+ static TYPE_QNAME: string;
490
+ authorizer_validator_address: SuiAddress;
491
+ }
492
+ }
493
+ export declare class validator_set extends SuiBaseProcessor {
494
+ constructor(options: SuiBindOptions);
495
+ static DEFAULT_OPTIONS: SuiBindOptions;
496
+ static bind(options?: Partial<SuiBindOptions>): validator_set;
497
+ onEventValidatorEpochInfoEvent(func: (event: validator_set.ValidatorEpochInfoEventInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): validator_set;
498
+ onEventValidatorJoinEvent(func: (event: validator_set.ValidatorJoinEventInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): validator_set;
499
+ onEventValidatorLeaveEvent(func: (event: validator_set.ValidatorLeaveEventInstance, ctx: SuiContext) => void, fetchConfig?: MoveFetchConfig): validator_set;
500
+ }
501
+ export declare namespace validator_set {
502
+ class ValidatorEpochInfoEvent {
503
+ static TYPE_QNAME: string;
504
+ epoch: bigint;
505
+ validator_address: SuiAddress;
506
+ reference_gas_survey_quote: bigint;
507
+ stake: bigint;
508
+ commission_rate: bigint;
509
+ pool_staking_reward: bigint;
510
+ storage_fund_staking_reward: bigint;
511
+ pool_token_exchange_rate: staking_pool.PoolTokenExchangeRate;
512
+ tallying_rule_reporters: SuiAddress[];
513
+ tallying_rule_global_score: bigint;
514
+ }
515
+ interface ValidatorEpochInfoEventInstance extends TypedEventInstance<ValidatorEpochInfoEvent> {
516
+ fields_decoded: ValidatorEpochInfoEvent;
517
+ type_arguments: [];
518
+ }
519
+ class ValidatorJoinEvent {
520
+ static TYPE_QNAME: string;
521
+ epoch: bigint;
522
+ validator_address: SuiAddress;
523
+ staking_pool_id: _0x2.object_.ID;
524
+ }
525
+ interface ValidatorJoinEventInstance extends TypedEventInstance<ValidatorJoinEvent> {
526
+ fields_decoded: ValidatorJoinEvent;
527
+ type_arguments: [];
528
+ }
529
+ class ValidatorLeaveEvent {
530
+ static TYPE_QNAME: string;
531
+ epoch: bigint;
532
+ validator_address: SuiAddress;
533
+ staking_pool_id: _0x2.object_.ID;
534
+ is_voluntary: Boolean;
535
+ }
536
+ interface ValidatorLeaveEventInstance extends TypedEventInstance<ValidatorLeaveEvent> {
537
+ fields_decoded: ValidatorLeaveEvent;
538
+ type_arguments: [];
539
+ }
540
+ class ValidatorSet {
541
+ static TYPE_QNAME: string;
542
+ total_stake: bigint;
543
+ active_validators: validator.Validator[];
544
+ pending_active_validators: _0x2.table_vec.TableVec<validator.Validator>;
545
+ pending_removals: bigint[];
546
+ staking_pool_mappings: _0x2.table.Table<_0x2.object_.ID, SuiAddress>;
547
+ inactive_validators: _0x2.table.Table<_0x2.object_.ID, validator_wrapper.ValidatorWrapper>;
548
+ validator_candidates: _0x2.table.Table<SuiAddress, validator_wrapper.ValidatorWrapper>;
549
+ at_risk_validators: _0x2.vec_map.VecMap<SuiAddress, bigint>;
550
+ extra_fields: _0x2.bag.Bag;
551
+ }
552
+ }
553
+ export declare namespace validator_wrapper {
554
+ class ValidatorWrapper {
555
+ static TYPE_QNAME: string;
556
+ inner: _0x2.versioned.Versioned;
557
+ }
558
+ }
559
+ export declare namespace voting_power {
560
+ class VotingPowerInfo {
561
+ static TYPE_QNAME: string;
562
+ validator_index: bigint;
563
+ voting_power: bigint;
564
+ }
565
+ }
566
+ export declare function loadAllTypes(coder: MoveCoder): void;