@sentio/sdk 2.10.2-rc.1 → 2.11.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 (60) 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/solana/builtin/types.d.ts +170 -170
  7. package/lib/solana/builtin/types.js +2 -1
  8. package/lib/solana/builtin/types.js.map +1 -1
  9. package/lib/sui/builtin/0x1.js +1 -1
  10. package/lib/sui/builtin/0x1.js.map +1 -1
  11. package/lib/sui/builtin/0x2.d.ts +235 -640
  12. package/lib/sui/builtin/0x2.js +294 -716
  13. package/lib/sui/builtin/0x2.js.map +1 -1
  14. package/lib/sui/builtin/0x3.d.ts +566 -0
  15. package/lib/sui/builtin/0x3.js +681 -0
  16. package/lib/sui/builtin/0x3.js.map +1 -0
  17. package/lib/sui/builtin/index.d.ts +1 -0
  18. package/lib/sui/builtin/index.js +1 -0
  19. package/lib/sui/builtin/index.js.map +1 -1
  20. package/lib/sui/codegen/codegen.js +4 -3
  21. package/lib/sui/codegen/codegen.js.map +1 -1
  22. package/lib/sui/context.d.ts +3 -3
  23. package/lib/sui/context.js +1 -1
  24. package/lib/sui/context.js.map +1 -1
  25. package/lib/sui/models.d.ts +4 -4
  26. package/lib/sui/models.js.map +1 -1
  27. package/lib/sui/move-coder.d.ts +5 -5
  28. package/lib/sui/move-coder.js +19 -7
  29. package/lib/sui/move-coder.js.map +1 -1
  30. package/lib/sui/move-types.js +7 -7
  31. package/lib/sui/move-types.js.map +1 -1
  32. package/lib/sui/sui-processor.d.ts +3 -3
  33. package/lib/sui/sui-processor.js +15 -9
  34. package/lib/sui/sui-processor.js.map +1 -1
  35. package/lib/sui/utils.d.ts +2 -2
  36. package/lib/sui/utils.js +13 -5
  37. package/lib/sui/utils.js.map +1 -1
  38. package/lib/testing/sui-facet.d.ts +4 -4
  39. package/lib/testing/sui-facet.js +7 -7
  40. package/lib/testing/sui-facet.js.map +1 -1
  41. package/package.json +7 -5
  42. package/src/aptos/codegen/codegen.ts +0 -1
  43. package/src/move/abstract-codegen.ts +9 -8
  44. package/src/solana/builtin/types.ts +2 -1
  45. package/src/sui/abis/0x1.json +357 -357
  46. package/src/sui/abis/0x2.json +5563 -8247
  47. package/src/sui/abis/0x3.json +8399 -0
  48. package/src/sui/builtin/0x1.ts +1 -1
  49. package/src/sui/builtin/0x2.ts +531 -1537
  50. package/src/sui/builtin/0x3.ts +1515 -0
  51. package/src/sui/builtin/index.ts +1 -0
  52. package/src/sui/codegen/codegen.ts +5 -3
  53. package/src/sui/context.ts +4 -4
  54. package/src/sui/models.ts +4 -4
  55. package/src/sui/move-coder.ts +24 -12
  56. package/src/sui/move-types.ts +7 -7
  57. package/src/sui/sui-processor.ts +28 -15
  58. package/src/sui/utils.ts +21 -5
  59. package/src/testing/sui-facet.ts +19 -15
  60. package/src/eth/codegen/tsconfig.json +0 -8
@@ -0,0 +1,1515 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ /* Generated modules for account 0x3 */
6
+
7
+ import { CallFilter } from "@sentio/sdk/move";
8
+ import {
9
+ MoveCoder,
10
+ defaultMoveCoder,
11
+ SuiBindOptions,
12
+ SuiBaseProcessor,
13
+ TypedEventInstance,
14
+ SuiNetwork,
15
+ TypedFunctionPayload,
16
+ SuiContext,
17
+ } from "@sentio/sdk/sui";
18
+ import { MoveFetchConfig } from "@sentio/protos";
19
+ import { SuiAddress, ModuleClient } from "@sentio/sdk/sui";
20
+
21
+ import * as _0x1 from "./0x1.js";
22
+ import * as _0x2 from "./0x2.js";
23
+
24
+ export class genesis extends SuiBaseProcessor {
25
+ constructor(options: SuiBindOptions) {
26
+ super("genesis", options);
27
+ }
28
+ static DEFAULT_OPTIONS: SuiBindOptions = {
29
+ address: "0x3",
30
+ network: SuiNetwork.MAIN_NET,
31
+ };
32
+
33
+ static bind(options: Partial<SuiBindOptions> = {}): genesis {
34
+ return new genesis({ ...genesis.DEFAULT_OPTIONS, ...options });
35
+ }
36
+
37
+ onEventGenesisChainParameters(
38
+ func: (
39
+ event: genesis.GenesisChainParametersInstance,
40
+ ctx: SuiContext
41
+ ) => void,
42
+ fetchConfig?: MoveFetchConfig
43
+ ): genesis {
44
+ this.onMoveEvent(
45
+ func,
46
+ {
47
+ type: "genesis::GenesisChainParameters",
48
+ },
49
+ fetchConfig
50
+ );
51
+ return this;
52
+ }
53
+
54
+ onEventGenesisValidatorMetadata(
55
+ func: (
56
+ event: genesis.GenesisValidatorMetadataInstance,
57
+ ctx: SuiContext
58
+ ) => void,
59
+ fetchConfig?: MoveFetchConfig
60
+ ): genesis {
61
+ this.onMoveEvent(
62
+ func,
63
+ {
64
+ type: "genesis::GenesisValidatorMetadata",
65
+ },
66
+ fetchConfig
67
+ );
68
+ return this;
69
+ }
70
+ }
71
+
72
+ export namespace genesis {
73
+ export class GenesisChainParameters {
74
+ static TYPE_QNAME = "0x3::genesis::GenesisChainParameters";
75
+ protocol_version: bigint;
76
+ chain_start_timestamp_ms: bigint;
77
+ epoch_duration_ms: bigint;
78
+ stake_subsidy_start_epoch: bigint;
79
+ stake_subsidy_initial_distribution_amount: bigint;
80
+ stake_subsidy_period_length: bigint;
81
+ stake_subsidy_decrease_rate: number;
82
+ max_validator_count: bigint;
83
+ min_validator_joining_stake: bigint;
84
+ validator_low_stake_threshold: bigint;
85
+ validator_very_low_stake_threshold: bigint;
86
+ validator_low_stake_grace_period: bigint;
87
+ }
88
+
89
+ export interface GenesisChainParametersInstance
90
+ extends TypedEventInstance<GenesisChainParameters> {
91
+ fields_decoded: GenesisChainParameters;
92
+ type_arguments: [];
93
+ }
94
+
95
+ export class GenesisValidatorMetadata {
96
+ static TYPE_QNAME = "0x3::genesis::GenesisValidatorMetadata";
97
+ name: number[];
98
+ description: number[];
99
+ image_url: number[];
100
+ project_url: number[];
101
+ sui_address: SuiAddress;
102
+ gas_price: bigint;
103
+ commission_rate: bigint;
104
+ protocol_public_key: number[];
105
+ proof_of_possession: number[];
106
+ network_public_key: number[];
107
+ worker_public_key: number[];
108
+ network_address: number[];
109
+ p2p_address: number[];
110
+ primary_address: number[];
111
+ worker_address: number[];
112
+ }
113
+
114
+ export interface GenesisValidatorMetadataInstance
115
+ extends TypedEventInstance<GenesisValidatorMetadata> {
116
+ fields_decoded: GenesisValidatorMetadata;
117
+ type_arguments: [];
118
+ }
119
+
120
+ export class TokenAllocation {
121
+ static TYPE_QNAME = "0x3::genesis::TokenAllocation";
122
+ recipient_address: SuiAddress;
123
+ amount_mist: bigint;
124
+ staked_with_validator: _0x1.option.Option<SuiAddress>;
125
+ }
126
+
127
+ export class TokenDistributionSchedule {
128
+ static TYPE_QNAME = "0x3::genesis::TokenDistributionSchedule";
129
+ stake_subsidy_fund_mist: bigint;
130
+ allocations: genesis.TokenAllocation[];
131
+ }
132
+ }
133
+
134
+ export namespace stake_subsidy {
135
+ export class StakeSubsidy {
136
+ static TYPE_QNAME = "0x3::stake_subsidy::StakeSubsidy";
137
+ balance: _0x2.balance.Balance<_0x2.sui.SUI>;
138
+ distribution_counter: bigint;
139
+ current_distribution_amount: bigint;
140
+ stake_subsidy_period_length: bigint;
141
+ stake_subsidy_decrease_rate: number;
142
+ extra_fields: _0x2.bag.Bag;
143
+ }
144
+ }
145
+
146
+ export class staking_pool extends SuiBaseProcessor {
147
+ constructor(options: SuiBindOptions) {
148
+ super("staking_pool", options);
149
+ }
150
+ static DEFAULT_OPTIONS: SuiBindOptions = {
151
+ address: "0x3",
152
+ network: SuiNetwork.MAIN_NET,
153
+ };
154
+
155
+ static bind(options: Partial<SuiBindOptions> = {}): staking_pool {
156
+ return new staking_pool({ ...staking_pool.DEFAULT_OPTIONS, ...options });
157
+ }
158
+
159
+ onEntryJoinStakedSui(
160
+ func: (call: staking_pool.JoinStakedSuiPayload, ctx: SuiContext) => void,
161
+ filter?: CallFilter,
162
+ fetchConfig?: MoveFetchConfig
163
+ ): staking_pool {
164
+ this.onEntryFunctionCall(
165
+ func,
166
+ {
167
+ ...filter,
168
+ function: "staking_pool::join_staked_sui",
169
+ },
170
+ fetchConfig
171
+ );
172
+ return this;
173
+ }
174
+
175
+ onEntrySplitStakedSui(
176
+ func: (call: staking_pool.SplitStakedSuiPayload, ctx: SuiContext) => void,
177
+ filter?: CallFilter,
178
+ fetchConfig?: MoveFetchConfig
179
+ ): staking_pool {
180
+ this.onEntryFunctionCall(
181
+ func,
182
+ {
183
+ ...filter,
184
+ function: "staking_pool::split_staked_sui",
185
+ },
186
+ fetchConfig
187
+ );
188
+ return this;
189
+ }
190
+
191
+ onEventPoolTokenExchangeRate(
192
+ func: (
193
+ event: staking_pool.PoolTokenExchangeRateInstance,
194
+ ctx: SuiContext
195
+ ) => void,
196
+ fetchConfig?: MoveFetchConfig
197
+ ): staking_pool {
198
+ this.onMoveEvent(
199
+ func,
200
+ {
201
+ type: "staking_pool::PoolTokenExchangeRate",
202
+ },
203
+ fetchConfig
204
+ );
205
+ return this;
206
+ }
207
+ }
208
+
209
+ export namespace staking_pool {
210
+ export class PoolTokenExchangeRate {
211
+ static TYPE_QNAME = "0x3::staking_pool::PoolTokenExchangeRate";
212
+ sui_amount: bigint;
213
+ pool_token_amount: bigint;
214
+ }
215
+
216
+ export interface PoolTokenExchangeRateInstance
217
+ extends TypedEventInstance<PoolTokenExchangeRate> {
218
+ fields_decoded: PoolTokenExchangeRate;
219
+ type_arguments: [];
220
+ }
221
+
222
+ export class StakedSui {
223
+ static TYPE_QNAME = "0x3::staking_pool::StakedSui";
224
+ id: _0x2.object_.UID;
225
+ pool_id: _0x2.object_.ID;
226
+ stake_activation_epoch: bigint;
227
+ principal: _0x2.balance.Balance<_0x2.sui.SUI>;
228
+ }
229
+
230
+ export class StakingPool {
231
+ static TYPE_QNAME = "0x3::staking_pool::StakingPool";
232
+ id: _0x2.object_.UID;
233
+ activation_epoch: _0x1.option.Option<bigint>;
234
+ deactivation_epoch: _0x1.option.Option<bigint>;
235
+ sui_balance: bigint;
236
+ rewards_pool: _0x2.balance.Balance<_0x2.sui.SUI>;
237
+ pool_token_balance: bigint;
238
+ exchange_rates: _0x2.table.Table<
239
+ bigint,
240
+ staking_pool.PoolTokenExchangeRate
241
+ >;
242
+ pending_stake: bigint;
243
+ pending_total_sui_withdraw: bigint;
244
+ pending_pool_token_withdraw: bigint;
245
+ extra_fields: _0x2.bag.Bag;
246
+ }
247
+
248
+ export interface JoinStakedSuiPayload
249
+ extends TypedFunctionPayload<[SuiAddress]> {
250
+ arguments_decoded: [SuiAddress];
251
+ type_arguments: [];
252
+ }
253
+
254
+ export interface SplitStakedSuiPayload
255
+ extends TypedFunctionPayload<[SuiAddress, bigint]> {
256
+ arguments_decoded: [SuiAddress, bigint];
257
+ type_arguments: [];
258
+ }
259
+ }
260
+
261
+ export namespace storage_fund {
262
+ export class StorageFund {
263
+ static TYPE_QNAME = "0x3::storage_fund::StorageFund";
264
+ total_object_storage_rebates: _0x2.balance.Balance<_0x2.sui.SUI>;
265
+ non_refundable_balance: _0x2.balance.Balance<_0x2.sui.SUI>;
266
+ }
267
+ }
268
+
269
+ export class sui_system extends SuiBaseProcessor {
270
+ constructor(options: SuiBindOptions) {
271
+ super("sui_system", options);
272
+ }
273
+ static DEFAULT_OPTIONS: SuiBindOptions = {
274
+ address: "0x3",
275
+ network: SuiNetwork.MAIN_NET,
276
+ };
277
+
278
+ static bind(options: Partial<SuiBindOptions> = {}): sui_system {
279
+ return new sui_system({ ...sui_system.DEFAULT_OPTIONS, ...options });
280
+ }
281
+
282
+ onEntryReportValidator(
283
+ func: (call: sui_system.ReportValidatorPayload, ctx: SuiContext) => void,
284
+ filter?: CallFilter,
285
+ fetchConfig?: MoveFetchConfig
286
+ ): sui_system {
287
+ this.onEntryFunctionCall(
288
+ func,
289
+ {
290
+ ...filter,
291
+ function: "sui_system::report_validator",
292
+ },
293
+ fetchConfig
294
+ );
295
+ return this;
296
+ }
297
+
298
+ onEntryRequestAddStake(
299
+ func: (call: sui_system.RequestAddStakePayload, ctx: SuiContext) => void,
300
+ filter?: CallFilter,
301
+ fetchConfig?: MoveFetchConfig
302
+ ): sui_system {
303
+ this.onEntryFunctionCall(
304
+ func,
305
+ {
306
+ ...filter,
307
+ function: "sui_system::request_add_stake",
308
+ },
309
+ fetchConfig
310
+ );
311
+ return this;
312
+ }
313
+
314
+ onEntryRequestAddStakeMulCoin(
315
+ func: (
316
+ call: sui_system.RequestAddStakeMulCoinPayload,
317
+ ctx: SuiContext
318
+ ) => void,
319
+ filter?: CallFilter,
320
+ fetchConfig?: MoveFetchConfig
321
+ ): sui_system {
322
+ this.onEntryFunctionCall(
323
+ func,
324
+ {
325
+ ...filter,
326
+ function: "sui_system::request_add_stake_mul_coin",
327
+ },
328
+ fetchConfig
329
+ );
330
+ return this;
331
+ }
332
+
333
+ onEntryRequestAddValidator(
334
+ func: (
335
+ call: sui_system.RequestAddValidatorPayload,
336
+ ctx: SuiContext
337
+ ) => void,
338
+ filter?: CallFilter,
339
+ fetchConfig?: MoveFetchConfig
340
+ ): sui_system {
341
+ this.onEntryFunctionCall(
342
+ func,
343
+ {
344
+ ...filter,
345
+ function: "sui_system::request_add_validator",
346
+ },
347
+ fetchConfig
348
+ );
349
+ return this;
350
+ }
351
+
352
+ onEntryRequestAddValidatorCandidate(
353
+ func: (
354
+ call: sui_system.RequestAddValidatorCandidatePayload,
355
+ ctx: SuiContext
356
+ ) => void,
357
+ filter?: CallFilter,
358
+ fetchConfig?: MoveFetchConfig
359
+ ): sui_system {
360
+ this.onEntryFunctionCall(
361
+ func,
362
+ {
363
+ ...filter,
364
+ function: "sui_system::request_add_validator_candidate",
365
+ },
366
+ fetchConfig
367
+ );
368
+ return this;
369
+ }
370
+
371
+ onEntryRequestRemoveValidator(
372
+ func: (
373
+ call: sui_system.RequestRemoveValidatorPayload,
374
+ ctx: SuiContext
375
+ ) => void,
376
+ filter?: CallFilter,
377
+ fetchConfig?: MoveFetchConfig
378
+ ): sui_system {
379
+ this.onEntryFunctionCall(
380
+ func,
381
+ {
382
+ ...filter,
383
+ function: "sui_system::request_remove_validator",
384
+ },
385
+ fetchConfig
386
+ );
387
+ return this;
388
+ }
389
+
390
+ onEntryRequestRemoveValidatorCandidate(
391
+ func: (
392
+ call: sui_system.RequestRemoveValidatorCandidatePayload,
393
+ ctx: SuiContext
394
+ ) => void,
395
+ filter?: CallFilter,
396
+ fetchConfig?: MoveFetchConfig
397
+ ): sui_system {
398
+ this.onEntryFunctionCall(
399
+ func,
400
+ {
401
+ ...filter,
402
+ function: "sui_system::request_remove_validator_candidate",
403
+ },
404
+ fetchConfig
405
+ );
406
+ return this;
407
+ }
408
+
409
+ onEntryRequestSetCommissionRate(
410
+ func: (
411
+ call: sui_system.RequestSetCommissionRatePayload,
412
+ ctx: SuiContext
413
+ ) => void,
414
+ filter?: CallFilter,
415
+ fetchConfig?: MoveFetchConfig
416
+ ): sui_system {
417
+ this.onEntryFunctionCall(
418
+ func,
419
+ {
420
+ ...filter,
421
+ function: "sui_system::request_set_commission_rate",
422
+ },
423
+ fetchConfig
424
+ );
425
+ return this;
426
+ }
427
+
428
+ onEntryRequestSetGasPrice(
429
+ func: (call: sui_system.RequestSetGasPricePayload, ctx: SuiContext) => void,
430
+ filter?: CallFilter,
431
+ fetchConfig?: MoveFetchConfig
432
+ ): sui_system {
433
+ this.onEntryFunctionCall(
434
+ func,
435
+ {
436
+ ...filter,
437
+ function: "sui_system::request_set_gas_price",
438
+ },
439
+ fetchConfig
440
+ );
441
+ return this;
442
+ }
443
+
444
+ onEntryRequestWithdrawStake(
445
+ func: (
446
+ call: sui_system.RequestWithdrawStakePayload,
447
+ ctx: SuiContext
448
+ ) => void,
449
+ filter?: CallFilter,
450
+ fetchConfig?: MoveFetchConfig
451
+ ): sui_system {
452
+ this.onEntryFunctionCall(
453
+ func,
454
+ {
455
+ ...filter,
456
+ function: "sui_system::request_withdraw_stake",
457
+ },
458
+ fetchConfig
459
+ );
460
+ return this;
461
+ }
462
+
463
+ onEntryRotateOperationCap(
464
+ func: (call: sui_system.RotateOperationCapPayload, ctx: SuiContext) => void,
465
+ filter?: CallFilter,
466
+ fetchConfig?: MoveFetchConfig
467
+ ): sui_system {
468
+ this.onEntryFunctionCall(
469
+ func,
470
+ {
471
+ ...filter,
472
+ function: "sui_system::rotate_operation_cap",
473
+ },
474
+ fetchConfig
475
+ );
476
+ return this;
477
+ }
478
+
479
+ onEntrySetCandidateValidatorCommissionRate(
480
+ func: (
481
+ call: sui_system.SetCandidateValidatorCommissionRatePayload,
482
+ ctx: SuiContext
483
+ ) => void,
484
+ filter?: CallFilter,
485
+ fetchConfig?: MoveFetchConfig
486
+ ): sui_system {
487
+ this.onEntryFunctionCall(
488
+ func,
489
+ {
490
+ ...filter,
491
+ function: "sui_system::set_candidate_validator_commission_rate",
492
+ },
493
+ fetchConfig
494
+ );
495
+ return this;
496
+ }
497
+
498
+ onEntrySetCandidateValidatorGasPrice(
499
+ func: (
500
+ call: sui_system.SetCandidateValidatorGasPricePayload,
501
+ ctx: SuiContext
502
+ ) => void,
503
+ filter?: CallFilter,
504
+ fetchConfig?: MoveFetchConfig
505
+ ): sui_system {
506
+ this.onEntryFunctionCall(
507
+ func,
508
+ {
509
+ ...filter,
510
+ function: "sui_system::set_candidate_validator_gas_price",
511
+ },
512
+ fetchConfig
513
+ );
514
+ return this;
515
+ }
516
+
517
+ onEntryUndoReportValidator(
518
+ func: (
519
+ call: sui_system.UndoReportValidatorPayload,
520
+ ctx: SuiContext
521
+ ) => void,
522
+ filter?: CallFilter,
523
+ fetchConfig?: MoveFetchConfig
524
+ ): sui_system {
525
+ this.onEntryFunctionCall(
526
+ func,
527
+ {
528
+ ...filter,
529
+ function: "sui_system::undo_report_validator",
530
+ },
531
+ fetchConfig
532
+ );
533
+ return this;
534
+ }
535
+
536
+ onEntryUpdateCandidateValidatorNetworkAddress(
537
+ func: (
538
+ call: sui_system.UpdateCandidateValidatorNetworkAddressPayload,
539
+ ctx: SuiContext
540
+ ) => void,
541
+ filter?: CallFilter,
542
+ fetchConfig?: MoveFetchConfig
543
+ ): sui_system {
544
+ this.onEntryFunctionCall(
545
+ func,
546
+ {
547
+ ...filter,
548
+ function: "sui_system::update_candidate_validator_network_address",
549
+ },
550
+ fetchConfig
551
+ );
552
+ return this;
553
+ }
554
+
555
+ onEntryUpdateCandidateValidatorNetworkPubkey(
556
+ func: (
557
+ call: sui_system.UpdateCandidateValidatorNetworkPubkeyPayload,
558
+ ctx: SuiContext
559
+ ) => void,
560
+ filter?: CallFilter,
561
+ fetchConfig?: MoveFetchConfig
562
+ ): sui_system {
563
+ this.onEntryFunctionCall(
564
+ func,
565
+ {
566
+ ...filter,
567
+ function: "sui_system::update_candidate_validator_network_pubkey",
568
+ },
569
+ fetchConfig
570
+ );
571
+ return this;
572
+ }
573
+
574
+ onEntryUpdateCandidateValidatorP2PAddress(
575
+ func: (
576
+ call: sui_system.UpdateCandidateValidatorP2PAddressPayload,
577
+ ctx: SuiContext
578
+ ) => void,
579
+ filter?: CallFilter,
580
+ fetchConfig?: MoveFetchConfig
581
+ ): sui_system {
582
+ this.onEntryFunctionCall(
583
+ func,
584
+ {
585
+ ...filter,
586
+ function: "sui_system::update_candidate_validator_p2p_address",
587
+ },
588
+ fetchConfig
589
+ );
590
+ return this;
591
+ }
592
+
593
+ onEntryUpdateCandidateValidatorPrimaryAddress(
594
+ func: (
595
+ call: sui_system.UpdateCandidateValidatorPrimaryAddressPayload,
596
+ ctx: SuiContext
597
+ ) => void,
598
+ filter?: CallFilter,
599
+ fetchConfig?: MoveFetchConfig
600
+ ): sui_system {
601
+ this.onEntryFunctionCall(
602
+ func,
603
+ {
604
+ ...filter,
605
+ function: "sui_system::update_candidate_validator_primary_address",
606
+ },
607
+ fetchConfig
608
+ );
609
+ return this;
610
+ }
611
+
612
+ onEntryUpdateCandidateValidatorProtocolPubkey(
613
+ func: (
614
+ call: sui_system.UpdateCandidateValidatorProtocolPubkeyPayload,
615
+ ctx: SuiContext
616
+ ) => void,
617
+ filter?: CallFilter,
618
+ fetchConfig?: MoveFetchConfig
619
+ ): sui_system {
620
+ this.onEntryFunctionCall(
621
+ func,
622
+ {
623
+ ...filter,
624
+ function: "sui_system::update_candidate_validator_protocol_pubkey",
625
+ },
626
+ fetchConfig
627
+ );
628
+ return this;
629
+ }
630
+
631
+ onEntryUpdateCandidateValidatorWorkerAddress(
632
+ func: (
633
+ call: sui_system.UpdateCandidateValidatorWorkerAddressPayload,
634
+ ctx: SuiContext
635
+ ) => void,
636
+ filter?: CallFilter,
637
+ fetchConfig?: MoveFetchConfig
638
+ ): sui_system {
639
+ this.onEntryFunctionCall(
640
+ func,
641
+ {
642
+ ...filter,
643
+ function: "sui_system::update_candidate_validator_worker_address",
644
+ },
645
+ fetchConfig
646
+ );
647
+ return this;
648
+ }
649
+
650
+ onEntryUpdateCandidateValidatorWorkerPubkey(
651
+ func: (
652
+ call: sui_system.UpdateCandidateValidatorWorkerPubkeyPayload,
653
+ ctx: SuiContext
654
+ ) => void,
655
+ filter?: CallFilter,
656
+ fetchConfig?: MoveFetchConfig
657
+ ): sui_system {
658
+ this.onEntryFunctionCall(
659
+ func,
660
+ {
661
+ ...filter,
662
+ function: "sui_system::update_candidate_validator_worker_pubkey",
663
+ },
664
+ fetchConfig
665
+ );
666
+ return this;
667
+ }
668
+
669
+ onEntryUpdateValidatorDescription(
670
+ func: (
671
+ call: sui_system.UpdateValidatorDescriptionPayload,
672
+ ctx: SuiContext
673
+ ) => void,
674
+ filter?: CallFilter,
675
+ fetchConfig?: MoveFetchConfig
676
+ ): sui_system {
677
+ this.onEntryFunctionCall(
678
+ func,
679
+ {
680
+ ...filter,
681
+ function: "sui_system::update_validator_description",
682
+ },
683
+ fetchConfig
684
+ );
685
+ return this;
686
+ }
687
+
688
+ onEntryUpdateValidatorImageUrl(
689
+ func: (
690
+ call: sui_system.UpdateValidatorImageUrlPayload,
691
+ ctx: SuiContext
692
+ ) => void,
693
+ filter?: CallFilter,
694
+ fetchConfig?: MoveFetchConfig
695
+ ): sui_system {
696
+ this.onEntryFunctionCall(
697
+ func,
698
+ {
699
+ ...filter,
700
+ function: "sui_system::update_validator_image_url",
701
+ },
702
+ fetchConfig
703
+ );
704
+ return this;
705
+ }
706
+
707
+ onEntryUpdateValidatorName(
708
+ func: (
709
+ call: sui_system.UpdateValidatorNamePayload,
710
+ ctx: SuiContext
711
+ ) => void,
712
+ filter?: CallFilter,
713
+ fetchConfig?: MoveFetchConfig
714
+ ): sui_system {
715
+ this.onEntryFunctionCall(
716
+ func,
717
+ {
718
+ ...filter,
719
+ function: "sui_system::update_validator_name",
720
+ },
721
+ fetchConfig
722
+ );
723
+ return this;
724
+ }
725
+
726
+ onEntryUpdateValidatorNextEpochNetworkAddress(
727
+ func: (
728
+ call: sui_system.UpdateValidatorNextEpochNetworkAddressPayload,
729
+ ctx: SuiContext
730
+ ) => void,
731
+ filter?: CallFilter,
732
+ fetchConfig?: MoveFetchConfig
733
+ ): sui_system {
734
+ this.onEntryFunctionCall(
735
+ func,
736
+ {
737
+ ...filter,
738
+ function: "sui_system::update_validator_next_epoch_network_address",
739
+ },
740
+ fetchConfig
741
+ );
742
+ return this;
743
+ }
744
+
745
+ onEntryUpdateValidatorNextEpochNetworkPubkey(
746
+ func: (
747
+ call: sui_system.UpdateValidatorNextEpochNetworkPubkeyPayload,
748
+ ctx: SuiContext
749
+ ) => void,
750
+ filter?: CallFilter,
751
+ fetchConfig?: MoveFetchConfig
752
+ ): sui_system {
753
+ this.onEntryFunctionCall(
754
+ func,
755
+ {
756
+ ...filter,
757
+ function: "sui_system::update_validator_next_epoch_network_pubkey",
758
+ },
759
+ fetchConfig
760
+ );
761
+ return this;
762
+ }
763
+
764
+ onEntryUpdateValidatorNextEpochP2PAddress(
765
+ func: (
766
+ call: sui_system.UpdateValidatorNextEpochP2PAddressPayload,
767
+ ctx: SuiContext
768
+ ) => void,
769
+ filter?: CallFilter,
770
+ fetchConfig?: MoveFetchConfig
771
+ ): sui_system {
772
+ this.onEntryFunctionCall(
773
+ func,
774
+ {
775
+ ...filter,
776
+ function: "sui_system::update_validator_next_epoch_p2p_address",
777
+ },
778
+ fetchConfig
779
+ );
780
+ return this;
781
+ }
782
+
783
+ onEntryUpdateValidatorNextEpochPrimaryAddress(
784
+ func: (
785
+ call: sui_system.UpdateValidatorNextEpochPrimaryAddressPayload,
786
+ ctx: SuiContext
787
+ ) => void,
788
+ filter?: CallFilter,
789
+ fetchConfig?: MoveFetchConfig
790
+ ): sui_system {
791
+ this.onEntryFunctionCall(
792
+ func,
793
+ {
794
+ ...filter,
795
+ function: "sui_system::update_validator_next_epoch_primary_address",
796
+ },
797
+ fetchConfig
798
+ );
799
+ return this;
800
+ }
801
+
802
+ onEntryUpdateValidatorNextEpochProtocolPubkey(
803
+ func: (
804
+ call: sui_system.UpdateValidatorNextEpochProtocolPubkeyPayload,
805
+ ctx: SuiContext
806
+ ) => void,
807
+ filter?: CallFilter,
808
+ fetchConfig?: MoveFetchConfig
809
+ ): sui_system {
810
+ this.onEntryFunctionCall(
811
+ func,
812
+ {
813
+ ...filter,
814
+ function: "sui_system::update_validator_next_epoch_protocol_pubkey",
815
+ },
816
+ fetchConfig
817
+ );
818
+ return this;
819
+ }
820
+
821
+ onEntryUpdateValidatorNextEpochWorkerAddress(
822
+ func: (
823
+ call: sui_system.UpdateValidatorNextEpochWorkerAddressPayload,
824
+ ctx: SuiContext
825
+ ) => void,
826
+ filter?: CallFilter,
827
+ fetchConfig?: MoveFetchConfig
828
+ ): sui_system {
829
+ this.onEntryFunctionCall(
830
+ func,
831
+ {
832
+ ...filter,
833
+ function: "sui_system::update_validator_next_epoch_worker_address",
834
+ },
835
+ fetchConfig
836
+ );
837
+ return this;
838
+ }
839
+
840
+ onEntryUpdateValidatorNextEpochWorkerPubkey(
841
+ func: (
842
+ call: sui_system.UpdateValidatorNextEpochWorkerPubkeyPayload,
843
+ ctx: SuiContext
844
+ ) => void,
845
+ filter?: CallFilter,
846
+ fetchConfig?: MoveFetchConfig
847
+ ): sui_system {
848
+ this.onEntryFunctionCall(
849
+ func,
850
+ {
851
+ ...filter,
852
+ function: "sui_system::update_validator_next_epoch_worker_pubkey",
853
+ },
854
+ fetchConfig
855
+ );
856
+ return this;
857
+ }
858
+
859
+ onEntryUpdateValidatorProjectUrl(
860
+ func: (
861
+ call: sui_system.UpdateValidatorProjectUrlPayload,
862
+ ctx: SuiContext
863
+ ) => void,
864
+ filter?: CallFilter,
865
+ fetchConfig?: MoveFetchConfig
866
+ ): sui_system {
867
+ this.onEntryFunctionCall(
868
+ func,
869
+ {
870
+ ...filter,
871
+ function: "sui_system::update_validator_project_url",
872
+ },
873
+ fetchConfig
874
+ );
875
+ return this;
876
+ }
877
+ }
878
+
879
+ export namespace sui_system {
880
+ export class SuiSystemState {
881
+ static TYPE_QNAME = "0x3::sui_system::SuiSystemState";
882
+ id: _0x2.object_.UID;
883
+ version: bigint;
884
+ }
885
+
886
+ export interface ReportValidatorPayload
887
+ extends TypedFunctionPayload<[SuiAddress, SuiAddress]> {
888
+ arguments_decoded: [SuiAddress, SuiAddress];
889
+ type_arguments: [];
890
+ }
891
+
892
+ export interface RequestAddStakePayload
893
+ extends TypedFunctionPayload<
894
+ [SuiAddress, _0x2.coin.Coin<_0x2.sui.SUI>, SuiAddress]
895
+ > {
896
+ arguments_decoded: [SuiAddress, _0x2.coin.Coin<_0x2.sui.SUI>, SuiAddress];
897
+ type_arguments: [];
898
+ }
899
+
900
+ export interface RequestAddStakeMulCoinPayload
901
+ extends TypedFunctionPayload<
902
+ [
903
+ SuiAddress,
904
+ _0x2.coin.Coin<_0x2.sui.SUI>[],
905
+ _0x1.option.Option<bigint>,
906
+ SuiAddress
907
+ ]
908
+ > {
909
+ arguments_decoded: [
910
+ SuiAddress,
911
+ _0x2.coin.Coin<_0x2.sui.SUI>[],
912
+ _0x1.option.Option<bigint>,
913
+ SuiAddress
914
+ ];
915
+ type_arguments: [];
916
+ }
917
+
918
+ export interface RequestAddValidatorPayload
919
+ extends TypedFunctionPayload<[SuiAddress]> {
920
+ arguments_decoded: [SuiAddress];
921
+ type_arguments: [];
922
+ }
923
+
924
+ export interface RequestAddValidatorCandidatePayload
925
+ extends TypedFunctionPayload<
926
+ [
927
+ SuiAddress,
928
+ number[],
929
+ number[],
930
+ number[],
931
+ number[],
932
+ number[],
933
+ number[],
934
+ number[],
935
+ number[],
936
+ number[],
937
+ number[],
938
+ number[],
939
+ number[],
940
+ bigint,
941
+ bigint
942
+ ]
943
+ > {
944
+ arguments_decoded: [
945
+ SuiAddress,
946
+ number[],
947
+ number[],
948
+ number[],
949
+ number[],
950
+ number[],
951
+ number[],
952
+ number[],
953
+ number[],
954
+ number[],
955
+ number[],
956
+ number[],
957
+ number[],
958
+ bigint,
959
+ bigint
960
+ ];
961
+ type_arguments: [];
962
+ }
963
+
964
+ export interface RequestRemoveValidatorPayload
965
+ extends TypedFunctionPayload<[SuiAddress]> {
966
+ arguments_decoded: [SuiAddress];
967
+ type_arguments: [];
968
+ }
969
+
970
+ export interface RequestRemoveValidatorCandidatePayload
971
+ extends TypedFunctionPayload<[SuiAddress]> {
972
+ arguments_decoded: [SuiAddress];
973
+ type_arguments: [];
974
+ }
975
+
976
+ export interface RequestSetCommissionRatePayload
977
+ extends TypedFunctionPayload<[SuiAddress, bigint]> {
978
+ arguments_decoded: [SuiAddress, bigint];
979
+ type_arguments: [];
980
+ }
981
+
982
+ export interface RequestSetGasPricePayload
983
+ extends TypedFunctionPayload<[SuiAddress, SuiAddress]> {
984
+ arguments_decoded: [SuiAddress, SuiAddress];
985
+ type_arguments: [];
986
+ }
987
+
988
+ export interface RequestWithdrawStakePayload
989
+ extends TypedFunctionPayload<[SuiAddress, staking_pool.StakedSui]> {
990
+ arguments_decoded: [SuiAddress, staking_pool.StakedSui];
991
+ type_arguments: [];
992
+ }
993
+
994
+ export interface RotateOperationCapPayload
995
+ extends TypedFunctionPayload<[SuiAddress]> {
996
+ arguments_decoded: [SuiAddress];
997
+ type_arguments: [];
998
+ }
999
+
1000
+ export interface SetCandidateValidatorCommissionRatePayload
1001
+ extends TypedFunctionPayload<[SuiAddress, bigint]> {
1002
+ arguments_decoded: [SuiAddress, bigint];
1003
+ type_arguments: [];
1004
+ }
1005
+
1006
+ export interface SetCandidateValidatorGasPricePayload
1007
+ extends TypedFunctionPayload<[SuiAddress, SuiAddress]> {
1008
+ arguments_decoded: [SuiAddress, SuiAddress];
1009
+ type_arguments: [];
1010
+ }
1011
+
1012
+ export interface UndoReportValidatorPayload
1013
+ extends TypedFunctionPayload<[SuiAddress, SuiAddress]> {
1014
+ arguments_decoded: [SuiAddress, SuiAddress];
1015
+ type_arguments: [];
1016
+ }
1017
+
1018
+ export interface UpdateCandidateValidatorNetworkAddressPayload
1019
+ extends TypedFunctionPayload<[SuiAddress, number[]]> {
1020
+ arguments_decoded: [SuiAddress, number[]];
1021
+ type_arguments: [];
1022
+ }
1023
+
1024
+ export interface UpdateCandidateValidatorNetworkPubkeyPayload
1025
+ extends TypedFunctionPayload<[SuiAddress, number[]]> {
1026
+ arguments_decoded: [SuiAddress, number[]];
1027
+ type_arguments: [];
1028
+ }
1029
+
1030
+ export interface UpdateCandidateValidatorP2PAddressPayload
1031
+ extends TypedFunctionPayload<[SuiAddress, number[]]> {
1032
+ arguments_decoded: [SuiAddress, number[]];
1033
+ type_arguments: [];
1034
+ }
1035
+
1036
+ export interface UpdateCandidateValidatorPrimaryAddressPayload
1037
+ extends TypedFunctionPayload<[SuiAddress, number[]]> {
1038
+ arguments_decoded: [SuiAddress, number[]];
1039
+ type_arguments: [];
1040
+ }
1041
+
1042
+ export interface UpdateCandidateValidatorProtocolPubkeyPayload
1043
+ extends TypedFunctionPayload<[SuiAddress, number[], number[]]> {
1044
+ arguments_decoded: [SuiAddress, number[], number[]];
1045
+ type_arguments: [];
1046
+ }
1047
+
1048
+ export interface UpdateCandidateValidatorWorkerAddressPayload
1049
+ extends TypedFunctionPayload<[SuiAddress, number[]]> {
1050
+ arguments_decoded: [SuiAddress, number[]];
1051
+ type_arguments: [];
1052
+ }
1053
+
1054
+ export interface UpdateCandidateValidatorWorkerPubkeyPayload
1055
+ extends TypedFunctionPayload<[SuiAddress, number[]]> {
1056
+ arguments_decoded: [SuiAddress, number[]];
1057
+ type_arguments: [];
1058
+ }
1059
+
1060
+ export interface UpdateValidatorDescriptionPayload
1061
+ extends TypedFunctionPayload<[SuiAddress, number[]]> {
1062
+ arguments_decoded: [SuiAddress, number[]];
1063
+ type_arguments: [];
1064
+ }
1065
+
1066
+ export interface UpdateValidatorImageUrlPayload
1067
+ extends TypedFunctionPayload<[SuiAddress, number[]]> {
1068
+ arguments_decoded: [SuiAddress, number[]];
1069
+ type_arguments: [];
1070
+ }
1071
+
1072
+ export interface UpdateValidatorNamePayload
1073
+ extends TypedFunctionPayload<[SuiAddress, number[]]> {
1074
+ arguments_decoded: [SuiAddress, number[]];
1075
+ type_arguments: [];
1076
+ }
1077
+
1078
+ export interface UpdateValidatorNextEpochNetworkAddressPayload
1079
+ extends TypedFunctionPayload<[SuiAddress, number[]]> {
1080
+ arguments_decoded: [SuiAddress, number[]];
1081
+ type_arguments: [];
1082
+ }
1083
+
1084
+ export interface UpdateValidatorNextEpochNetworkPubkeyPayload
1085
+ extends TypedFunctionPayload<[SuiAddress, number[]]> {
1086
+ arguments_decoded: [SuiAddress, number[]];
1087
+ type_arguments: [];
1088
+ }
1089
+
1090
+ export interface UpdateValidatorNextEpochP2PAddressPayload
1091
+ extends TypedFunctionPayload<[SuiAddress, number[]]> {
1092
+ arguments_decoded: [SuiAddress, number[]];
1093
+ type_arguments: [];
1094
+ }
1095
+
1096
+ export interface UpdateValidatorNextEpochPrimaryAddressPayload
1097
+ extends TypedFunctionPayload<[SuiAddress, number[]]> {
1098
+ arguments_decoded: [SuiAddress, number[]];
1099
+ type_arguments: [];
1100
+ }
1101
+
1102
+ export interface UpdateValidatorNextEpochProtocolPubkeyPayload
1103
+ extends TypedFunctionPayload<[SuiAddress, number[], number[]]> {
1104
+ arguments_decoded: [SuiAddress, number[], number[]];
1105
+ type_arguments: [];
1106
+ }
1107
+
1108
+ export interface UpdateValidatorNextEpochWorkerAddressPayload
1109
+ extends TypedFunctionPayload<[SuiAddress, number[]]> {
1110
+ arguments_decoded: [SuiAddress, number[]];
1111
+ type_arguments: [];
1112
+ }
1113
+
1114
+ export interface UpdateValidatorNextEpochWorkerPubkeyPayload
1115
+ extends TypedFunctionPayload<[SuiAddress, number[]]> {
1116
+ arguments_decoded: [SuiAddress, number[]];
1117
+ type_arguments: [];
1118
+ }
1119
+
1120
+ export interface UpdateValidatorProjectUrlPayload
1121
+ extends TypedFunctionPayload<[SuiAddress, number[]]> {
1122
+ arguments_decoded: [SuiAddress, number[]];
1123
+ type_arguments: [];
1124
+ }
1125
+ }
1126
+
1127
+ export class sui_system_state_inner extends SuiBaseProcessor {
1128
+ constructor(options: SuiBindOptions) {
1129
+ super("sui_system_state_inner", options);
1130
+ }
1131
+ static DEFAULT_OPTIONS: SuiBindOptions = {
1132
+ address: "0x3",
1133
+ network: SuiNetwork.MAIN_NET,
1134
+ };
1135
+
1136
+ static bind(options: Partial<SuiBindOptions> = {}): sui_system_state_inner {
1137
+ return new sui_system_state_inner({
1138
+ ...sui_system_state_inner.DEFAULT_OPTIONS,
1139
+ ...options,
1140
+ });
1141
+ }
1142
+
1143
+ onEventSystemEpochInfoEvent(
1144
+ func: (
1145
+ event: sui_system_state_inner.SystemEpochInfoEventInstance,
1146
+ ctx: SuiContext
1147
+ ) => void,
1148
+ fetchConfig?: MoveFetchConfig
1149
+ ): sui_system_state_inner {
1150
+ this.onMoveEvent(
1151
+ func,
1152
+ {
1153
+ type: "sui_system_state_inner::SystemEpochInfoEvent",
1154
+ },
1155
+ fetchConfig
1156
+ );
1157
+ return this;
1158
+ }
1159
+ }
1160
+
1161
+ export namespace sui_system_state_inner {
1162
+ export class SuiSystemStateInner {
1163
+ static TYPE_QNAME = "0x3::sui_system_state_inner::SuiSystemStateInner";
1164
+ epoch: bigint;
1165
+ protocol_version: bigint;
1166
+ system_state_version: bigint;
1167
+ validators: validator_set.ValidatorSet;
1168
+ storage_fund: storage_fund.StorageFund;
1169
+ parameters: sui_system_state_inner.SystemParameters;
1170
+ reference_gas_price: bigint;
1171
+ validator_report_records: _0x2.vec_map.VecMap<
1172
+ SuiAddress,
1173
+ _0x2.vec_set.VecSet<SuiAddress>
1174
+ >;
1175
+ stake_subsidy: stake_subsidy.StakeSubsidy;
1176
+ safe_mode: Boolean;
1177
+ safe_mode_storage_rewards: _0x2.balance.Balance<_0x2.sui.SUI>;
1178
+ safe_mode_computation_rewards: _0x2.balance.Balance<_0x2.sui.SUI>;
1179
+ safe_mode_storage_rebates: bigint;
1180
+ safe_mode_non_refundable_storage_fee: bigint;
1181
+ epoch_start_timestamp_ms: bigint;
1182
+ extra_fields: _0x2.bag.Bag;
1183
+ }
1184
+
1185
+ export class SystemEpochInfoEvent {
1186
+ static TYPE_QNAME = "0x3::sui_system_state_inner::SystemEpochInfoEvent";
1187
+ epoch: bigint;
1188
+ protocol_version: bigint;
1189
+ reference_gas_price: bigint;
1190
+ total_stake: bigint;
1191
+ storage_fund_reinvestment: bigint;
1192
+ storage_charge: bigint;
1193
+ storage_rebate: bigint;
1194
+ storage_fund_balance: bigint;
1195
+ stake_subsidy_amount: bigint;
1196
+ total_gas_fees: bigint;
1197
+ total_stake_rewards_distributed: bigint;
1198
+ leftover_storage_fund_inflow: bigint;
1199
+ }
1200
+
1201
+ export interface SystemEpochInfoEventInstance
1202
+ extends TypedEventInstance<SystemEpochInfoEvent> {
1203
+ fields_decoded: SystemEpochInfoEvent;
1204
+ type_arguments: [];
1205
+ }
1206
+
1207
+ export class SystemParameters {
1208
+ static TYPE_QNAME = "0x3::sui_system_state_inner::SystemParameters";
1209
+ epoch_duration_ms: bigint;
1210
+ stake_subsidy_start_epoch: bigint;
1211
+ max_validator_count: bigint;
1212
+ min_validator_joining_stake: bigint;
1213
+ validator_low_stake_threshold: bigint;
1214
+ validator_very_low_stake_threshold: bigint;
1215
+ validator_low_stake_grace_period: bigint;
1216
+ extra_fields: _0x2.bag.Bag;
1217
+ }
1218
+ }
1219
+
1220
+ export class validator extends SuiBaseProcessor {
1221
+ constructor(options: SuiBindOptions) {
1222
+ super("validator", options);
1223
+ }
1224
+ static DEFAULT_OPTIONS: SuiBindOptions = {
1225
+ address: "0x3",
1226
+ network: SuiNetwork.MAIN_NET,
1227
+ };
1228
+
1229
+ static bind(options: Partial<SuiBindOptions> = {}): validator {
1230
+ return new validator({ ...validator.DEFAULT_OPTIONS, ...options });
1231
+ }
1232
+
1233
+ onEventStakingRequestEvent(
1234
+ func: (
1235
+ event: validator.StakingRequestEventInstance,
1236
+ ctx: SuiContext
1237
+ ) => void,
1238
+ fetchConfig?: MoveFetchConfig
1239
+ ): validator {
1240
+ this.onMoveEvent(
1241
+ func,
1242
+ {
1243
+ type: "validator::StakingRequestEvent",
1244
+ },
1245
+ fetchConfig
1246
+ );
1247
+ return this;
1248
+ }
1249
+
1250
+ onEventUnstakingRequestEvent(
1251
+ func: (
1252
+ event: validator.UnstakingRequestEventInstance,
1253
+ ctx: SuiContext
1254
+ ) => void,
1255
+ fetchConfig?: MoveFetchConfig
1256
+ ): validator {
1257
+ this.onMoveEvent(
1258
+ func,
1259
+ {
1260
+ type: "validator::UnstakingRequestEvent",
1261
+ },
1262
+ fetchConfig
1263
+ );
1264
+ return this;
1265
+ }
1266
+ }
1267
+
1268
+ export namespace validator {
1269
+ export class StakingRequestEvent {
1270
+ static TYPE_QNAME = "0x3::validator::StakingRequestEvent";
1271
+ pool_id: _0x2.object_.ID;
1272
+ validator_address: SuiAddress;
1273
+ staker_address: SuiAddress;
1274
+ epoch: bigint;
1275
+ amount: bigint;
1276
+ }
1277
+
1278
+ export interface StakingRequestEventInstance
1279
+ extends TypedEventInstance<StakingRequestEvent> {
1280
+ fields_decoded: StakingRequestEvent;
1281
+ type_arguments: [];
1282
+ }
1283
+
1284
+ export class UnstakingRequestEvent {
1285
+ static TYPE_QNAME = "0x3::validator::UnstakingRequestEvent";
1286
+ pool_id: _0x2.object_.ID;
1287
+ validator_address: SuiAddress;
1288
+ staker_address: SuiAddress;
1289
+ stake_activation_epoch: bigint;
1290
+ unstaking_epoch: bigint;
1291
+ principal_amount: bigint;
1292
+ reward_amount: bigint;
1293
+ }
1294
+
1295
+ export interface UnstakingRequestEventInstance
1296
+ extends TypedEventInstance<UnstakingRequestEvent> {
1297
+ fields_decoded: UnstakingRequestEvent;
1298
+ type_arguments: [];
1299
+ }
1300
+
1301
+ export class Validator {
1302
+ static TYPE_QNAME = "0x3::validator::Validator";
1303
+ metadata: validator.ValidatorMetadata;
1304
+ voting_power: bigint;
1305
+ operation_cap_id: _0x2.object_.ID;
1306
+ gas_price: bigint;
1307
+ staking_pool: staking_pool.StakingPool;
1308
+ commission_rate: bigint;
1309
+ next_epoch_stake: bigint;
1310
+ next_epoch_gas_price: bigint;
1311
+ next_epoch_commission_rate: bigint;
1312
+ extra_fields: _0x2.bag.Bag;
1313
+ }
1314
+
1315
+ export class ValidatorMetadata {
1316
+ static TYPE_QNAME = "0x3::validator::ValidatorMetadata";
1317
+ sui_address: SuiAddress;
1318
+ protocol_pubkey_bytes: number[];
1319
+ network_pubkey_bytes: number[];
1320
+ worker_pubkey_bytes: number[];
1321
+ proof_of_possession: number[];
1322
+ name: string;
1323
+ description: string;
1324
+ image_url: _0x2.url.Url;
1325
+ project_url: _0x2.url.Url;
1326
+ net_address: string;
1327
+ p2p_address: string;
1328
+ primary_address: string;
1329
+ worker_address: string;
1330
+ next_epoch_protocol_pubkey_bytes: _0x1.option.Option<number[]>;
1331
+ next_epoch_proof_of_possession: _0x1.option.Option<number[]>;
1332
+ next_epoch_network_pubkey_bytes: _0x1.option.Option<number[]>;
1333
+ next_epoch_worker_pubkey_bytes: _0x1.option.Option<number[]>;
1334
+ next_epoch_net_address: _0x1.option.Option<string>;
1335
+ next_epoch_p2p_address: _0x1.option.Option<string>;
1336
+ next_epoch_primary_address: _0x1.option.Option<string>;
1337
+ next_epoch_worker_address: _0x1.option.Option<string>;
1338
+ extra_fields: _0x2.bag.Bag;
1339
+ }
1340
+ }
1341
+
1342
+ export namespace validator_cap {
1343
+ export class UnverifiedValidatorOperationCap {
1344
+ static TYPE_QNAME = "0x3::validator_cap::UnverifiedValidatorOperationCap";
1345
+ id: _0x2.object_.UID;
1346
+ authorizer_validator_address: SuiAddress;
1347
+ }
1348
+
1349
+ export class ValidatorOperationCap {
1350
+ static TYPE_QNAME = "0x3::validator_cap::ValidatorOperationCap";
1351
+ authorizer_validator_address: SuiAddress;
1352
+ }
1353
+ }
1354
+
1355
+ export class validator_set extends SuiBaseProcessor {
1356
+ constructor(options: SuiBindOptions) {
1357
+ super("validator_set", options);
1358
+ }
1359
+ static DEFAULT_OPTIONS: SuiBindOptions = {
1360
+ address: "0x3",
1361
+ network: SuiNetwork.MAIN_NET,
1362
+ };
1363
+
1364
+ static bind(options: Partial<SuiBindOptions> = {}): validator_set {
1365
+ return new validator_set({ ...validator_set.DEFAULT_OPTIONS, ...options });
1366
+ }
1367
+
1368
+ onEventValidatorEpochInfoEvent(
1369
+ func: (
1370
+ event: validator_set.ValidatorEpochInfoEventInstance,
1371
+ ctx: SuiContext
1372
+ ) => void,
1373
+ fetchConfig?: MoveFetchConfig
1374
+ ): validator_set {
1375
+ this.onMoveEvent(
1376
+ func,
1377
+ {
1378
+ type: "validator_set::ValidatorEpochInfoEvent",
1379
+ },
1380
+ fetchConfig
1381
+ );
1382
+ return this;
1383
+ }
1384
+
1385
+ onEventValidatorJoinEvent(
1386
+ func: (
1387
+ event: validator_set.ValidatorJoinEventInstance,
1388
+ ctx: SuiContext
1389
+ ) => void,
1390
+ fetchConfig?: MoveFetchConfig
1391
+ ): validator_set {
1392
+ this.onMoveEvent(
1393
+ func,
1394
+ {
1395
+ type: "validator_set::ValidatorJoinEvent",
1396
+ },
1397
+ fetchConfig
1398
+ );
1399
+ return this;
1400
+ }
1401
+
1402
+ onEventValidatorLeaveEvent(
1403
+ func: (
1404
+ event: validator_set.ValidatorLeaveEventInstance,
1405
+ ctx: SuiContext
1406
+ ) => void,
1407
+ fetchConfig?: MoveFetchConfig
1408
+ ): validator_set {
1409
+ this.onMoveEvent(
1410
+ func,
1411
+ {
1412
+ type: "validator_set::ValidatorLeaveEvent",
1413
+ },
1414
+ fetchConfig
1415
+ );
1416
+ return this;
1417
+ }
1418
+ }
1419
+
1420
+ export namespace validator_set {
1421
+ export class ValidatorEpochInfoEvent {
1422
+ static TYPE_QNAME = "0x3::validator_set::ValidatorEpochInfoEvent";
1423
+ epoch: bigint;
1424
+ validator_address: SuiAddress;
1425
+ reference_gas_survey_quote: bigint;
1426
+ stake: bigint;
1427
+ commission_rate: bigint;
1428
+ pool_staking_reward: bigint;
1429
+ storage_fund_staking_reward: bigint;
1430
+ pool_token_exchange_rate: staking_pool.PoolTokenExchangeRate;
1431
+ tallying_rule_reporters: SuiAddress[];
1432
+ tallying_rule_global_score: bigint;
1433
+ }
1434
+
1435
+ export interface ValidatorEpochInfoEventInstance
1436
+ extends TypedEventInstance<ValidatorEpochInfoEvent> {
1437
+ fields_decoded: ValidatorEpochInfoEvent;
1438
+ type_arguments: [];
1439
+ }
1440
+
1441
+ export class ValidatorJoinEvent {
1442
+ static TYPE_QNAME = "0x3::validator_set::ValidatorJoinEvent";
1443
+ epoch: bigint;
1444
+ validator_address: SuiAddress;
1445
+ staking_pool_id: _0x2.object_.ID;
1446
+ }
1447
+
1448
+ export interface ValidatorJoinEventInstance
1449
+ extends TypedEventInstance<ValidatorJoinEvent> {
1450
+ fields_decoded: ValidatorJoinEvent;
1451
+ type_arguments: [];
1452
+ }
1453
+
1454
+ export class ValidatorLeaveEvent {
1455
+ static TYPE_QNAME = "0x3::validator_set::ValidatorLeaveEvent";
1456
+ epoch: bigint;
1457
+ validator_address: SuiAddress;
1458
+ staking_pool_id: _0x2.object_.ID;
1459
+ is_voluntary: Boolean;
1460
+ }
1461
+
1462
+ export interface ValidatorLeaveEventInstance
1463
+ extends TypedEventInstance<ValidatorLeaveEvent> {
1464
+ fields_decoded: ValidatorLeaveEvent;
1465
+ type_arguments: [];
1466
+ }
1467
+
1468
+ export class ValidatorSet {
1469
+ static TYPE_QNAME = "0x3::validator_set::ValidatorSet";
1470
+ total_stake: bigint;
1471
+ active_validators: validator.Validator[];
1472
+ pending_active_validators: _0x2.table_vec.TableVec<validator.Validator>;
1473
+ pending_removals: bigint[];
1474
+ staking_pool_mappings: _0x2.table.Table<_0x2.object_.ID, SuiAddress>;
1475
+ inactive_validators: _0x2.table.Table<
1476
+ _0x2.object_.ID,
1477
+ validator_wrapper.ValidatorWrapper
1478
+ >;
1479
+ validator_candidates: _0x2.table.Table<
1480
+ SuiAddress,
1481
+ validator_wrapper.ValidatorWrapper
1482
+ >;
1483
+ at_risk_validators: _0x2.vec_map.VecMap<SuiAddress, bigint>;
1484
+ extra_fields: _0x2.bag.Bag;
1485
+ }
1486
+ }
1487
+
1488
+ export namespace validator_wrapper {
1489
+ export class ValidatorWrapper {
1490
+ static TYPE_QNAME = "0x3::validator_wrapper::ValidatorWrapper";
1491
+ inner: _0x2.versioned.Versioned;
1492
+ }
1493
+ }
1494
+
1495
+ export namespace voting_power {
1496
+ export class VotingPowerInfo {
1497
+ static TYPE_QNAME = "0x3::voting_power::VotingPowerInfo";
1498
+ validator_index: bigint;
1499
+ voting_power: bigint;
1500
+ }
1501
+ }
1502
+
1503
+ const MODULES = JSON.parse(
1504
+ '{"genesis":{"fileFormatVersion":6,"address":"0x3","name":"genesis","friends":[],"structs":{"GenesisChainParameters":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"protocol_version","type":"U64"},{"name":"chain_start_timestamp_ms","type":"U64"},{"name":"epoch_duration_ms","type":"U64"},{"name":"stake_subsidy_start_epoch","type":"U64"},{"name":"stake_subsidy_initial_distribution_amount","type":"U64"},{"name":"stake_subsidy_period_length","type":"U64"},{"name":"stake_subsidy_decrease_rate","type":"U16"},{"name":"max_validator_count","type":"U64"},{"name":"min_validator_joining_stake","type":"U64"},{"name":"validator_low_stake_threshold","type":"U64"},{"name":"validator_very_low_stake_threshold","type":"U64"},{"name":"validator_low_stake_grace_period","type":"U64"}]},"GenesisValidatorMetadata":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"name","type":{"Vector":"U8"}},{"name":"description","type":{"Vector":"U8"}},{"name":"image_url","type":{"Vector":"U8"}},{"name":"project_url","type":{"Vector":"U8"}},{"name":"sui_address","type":"Address"},{"name":"gas_price","type":"U64"},{"name":"commission_rate","type":"U64"},{"name":"protocol_public_key","type":{"Vector":"U8"}},{"name":"proof_of_possession","type":{"Vector":"U8"}},{"name":"network_public_key","type":{"Vector":"U8"}},{"name":"worker_public_key","type":{"Vector":"U8"}},{"name":"network_address","type":{"Vector":"U8"}},{"name":"p2p_address","type":{"Vector":"U8"}},{"name":"primary_address","type":{"Vector":"U8"}},{"name":"worker_address","type":{"Vector":"U8"}}]},"TokenAllocation":{"abilities":{"abilities":[]},"typeParameters":[],"fields":[{"name":"recipient_address","type":"Address"},{"name":"amount_mist","type":"U64"},{"name":"staked_with_validator","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["Address"]}}}]},"TokenDistributionSchedule":{"abilities":{"abilities":[]},"typeParameters":[],"fields":[{"name":"stake_subsidy_fund_mist","type":"U64"},{"name":"allocations","type":{"Vector":{"Struct":{"address":"0x3","module":"genesis","name":"TokenAllocation","typeArguments":[]}}}}]}},"exposedFunctions":{}},"stake_subsidy":{"fileFormatVersion":6,"address":"0x3","name":"stake_subsidy","friends":[{"address":"0x3","name":"genesis"},{"address":"0x3","name":"sui_system_state_inner"}],"structs":{"StakeSubsidy":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"balance","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}},{"name":"distribution_counter","type":"U64"},{"name":"current_distribution_amount","type":"U64"},{"name":"stake_subsidy_period_length","type":"U64"},{"name":"stake_subsidy_decrease_rate","type":"U16"},{"name":"extra_fields","type":{"Struct":{"address":"0x2","module":"bag","name":"Bag","typeArguments":[]}}}]}},"exposedFunctions":{"advance_epoch":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"stake_subsidy","name":"StakeSubsidy","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}]},"create":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},"U64","U64","U16",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x3","module":"stake_subsidy","name":"StakeSubsidy","typeArguments":[]}}]},"current_epoch_subsidy_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"stake_subsidy","name":"StakeSubsidy","typeArguments":[]}}}],"return":["U64"]}}},"staking_pool":{"fileFormatVersion":6,"address":"0x3","name":"staking_pool","friends":[{"address":"0x3","name":"validator"},{"address":"0x3","name":"validator_set"}],"structs":{"PoolTokenExchangeRate":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"sui_amount","type":"U64"},{"name":"pool_token_amount","type":"U64"}]},"StakedSui":{"abilities":{"abilities":["Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"stake_activation_epoch","type":"U64"},{"name":"principal","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}}]},"StakingPool":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"activation_epoch","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}},{"name":"deactivation_epoch","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}}},{"name":"sui_balance","type":"U64"},{"name":"rewards_pool","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}},{"name":"pool_token_balance","type":"U64"},{"name":"exchange_rates","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["U64",{"Struct":{"address":"0x3","module":"staking_pool","name":"PoolTokenExchangeRate","typeArguments":[]}}]}}},{"name":"pending_stake","type":"U64"},{"name":"pending_total_sui_withdraw","type":"U64"},{"name":"pending_pool_token_withdraw","type":"U64"},{"name":"extra_fields","type":{"Struct":{"address":"0x2","module":"bag","name":"Bag","typeArguments":[]}}}]}},"exposedFunctions":{"activate_staking_pool":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}},"U64"],"return":[]},"deactivate_staking_pool":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}},"U64"],"return":[]},"deposit_rewards":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}],"return":[]},"is_equal_staking_metadata":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}}],"return":["Bool"]},"is_inactive":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}}],"return":["Bool"]},"is_preactive":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}}],"return":["Bool"]},"join_staked_sui":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}},{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}],"return":[]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}]},"pending_stake_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}}],"return":["U64"]},"pending_stake_withdraw_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}}],"return":["U64"]},"pool_id":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}]},"pool_token_exchange_rate_at_epoch":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}},"U64"],"return":[{"Struct":{"address":"0x3","module":"staking_pool","name":"PoolTokenExchangeRate","typeArguments":[]}}]},"process_pending_stake":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}}],"return":[]},"process_pending_stakes_and_withdraws":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_add_stake":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},"Address","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_withdraw_stake":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}},{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":["U64"]},"request_withdraw_stake_preactive":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}},{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":["U64"]},"split":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}]},"split_staked_sui":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"stake_activation_epoch":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}}],"return":["U64"]},"staked_sui_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}}],"return":["U64"]},"sui_balance":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}}],"return":["U64"]},"withdraw_from_principal":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}},{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}],"return":["U64",{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}]}}},"storage_fund":{"fileFormatVersion":6,"address":"0x3","name":"storage_fund","friends":[{"address":"0x3","name":"sui_system_state_inner"}],"structs":{"StorageFund":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"total_object_storage_rebates","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}},{"name":"non_refundable_balance","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}}]}},"exposedFunctions":{"advance_epoch":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"storage_fund","name":"StorageFund","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},"U64","U64"],"return":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}],"return":[{"Struct":{"address":"0x3","module":"storage_fund","name":"StorageFund","typeArguments":[]}}]},"total_balance":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"storage_fund","name":"StorageFund","typeArguments":[]}}}],"return":["U64"]},"total_object_storage_rebates":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"storage_fund","name":"StorageFund","typeArguments":[]}}}],"return":["U64"]}}},"sui_system":{"fileFormatVersion":6,"address":"0x3","name":"sui_system","friends":[{"address":"0x3","name":"genesis"}],"structs":{"SuiSystemState":{"abilities":{"abilities":["Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"version","type":"U64"}]}},"exposedFunctions":{"create":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}},{"Vector":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},"U64","U64",{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SystemParameters","typeArguments":[]}},{"Struct":{"address":"0x3","module":"stake_subsidy","name":"StakeSubsidy","typeArguments":[]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"report_validator":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x3","module":"validator_cap","name":"UnverifiedValidatorOperationCap","typeArguments":[]}}},"Address"],"return":[]},"request_add_stake":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},"Address",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_add_stake_mul_coin":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}},{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}},"Address",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_add_validator":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_add_validator_candidate":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_remove_validator":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_remove_validator_candidate":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_set_commission_rate":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_set_gas_price":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x3","module":"validator_cap","name":"UnverifiedValidatorOperationCap","typeArguments":[]}}},"U64"],"return":[]},"request_withdraw_stake":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"rotate_operation_cap":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"set_candidate_validator_commission_rate":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"set_candidate_validator_gas_price":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x3","module":"validator_cap","name":"UnverifiedValidatorOperationCap","typeArguments":[]}}},"U64"],"return":[]},"undo_report_validator":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x3","module":"validator_cap","name":"UnverifiedValidatorOperationCap","typeArguments":[]}}},"Address"],"return":[]},"update_candidate_validator_network_address":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_candidate_validator_network_pubkey":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_candidate_validator_p2p_address":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_candidate_validator_primary_address":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_candidate_validator_protocol_pubkey":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_candidate_validator_worker_address":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_candidate_validator_worker_pubkey":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_description":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_image_url":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_name":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_next_epoch_network_address":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_next_epoch_network_pubkey":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_next_epoch_p2p_address":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_next_epoch_primary_address":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_next_epoch_protocol_pubkey":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_next_epoch_worker_address":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_next_epoch_worker_pubkey":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_project_url":{"visibility":"Public","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]}}},"sui_system_state_inner":{"fileFormatVersion":6,"address":"0x3","name":"sui_system_state_inner","friends":[{"address":"0x3","name":"genesis"},{"address":"0x3","name":"sui_system"}],"structs":{"SuiSystemStateInner":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"epoch","type":"U64"},{"name":"protocol_version","type":"U64"},{"name":"system_state_version","type":"U64"},{"name":"validators","type":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},{"name":"storage_fund","type":{"Struct":{"address":"0x3","module":"storage_fund","name":"StorageFund","typeArguments":[]}}},{"name":"parameters","type":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SystemParameters","typeArguments":[]}}},{"name":"reference_gas_price","type":"U64"},{"name":"validator_report_records","type":{"Struct":{"address":"0x2","module":"vec_map","name":"VecMap","typeArguments":["Address",{"Struct":{"address":"0x2","module":"vec_set","name":"VecSet","typeArguments":["Address"]}}]}}},{"name":"stake_subsidy","type":{"Struct":{"address":"0x3","module":"stake_subsidy","name":"StakeSubsidy","typeArguments":[]}}},{"name":"safe_mode","type":"Bool"},{"name":"safe_mode_storage_rewards","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}},{"name":"safe_mode_computation_rewards","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}},{"name":"safe_mode_storage_rebates","type":"U64"},{"name":"safe_mode_non_refundable_storage_fee","type":"U64"},{"name":"epoch_start_timestamp_ms","type":"U64"},{"name":"extra_fields","type":{"Struct":{"address":"0x2","module":"bag","name":"Bag","typeArguments":[]}}}]},"SystemEpochInfoEvent":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"epoch","type":"U64"},{"name":"protocol_version","type":"U64"},{"name":"reference_gas_price","type":"U64"},{"name":"total_stake","type":"U64"},{"name":"storage_fund_reinvestment","type":"U64"},{"name":"storage_charge","type":"U64"},{"name":"storage_rebate","type":"U64"},{"name":"storage_fund_balance","type":"U64"},{"name":"stake_subsidy_amount","type":"U64"},{"name":"total_gas_fees","type":"U64"},{"name":"total_stake_rewards_distributed","type":"U64"},{"name":"leftover_storage_fund_inflow","type":"U64"}]},"SystemParameters":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"epoch_duration_ms","type":"U64"},{"name":"stake_subsidy_start_epoch","type":"U64"},{"name":"max_validator_count","type":"U64"},{"name":"min_validator_joining_stake","type":"U64"},{"name":"validator_low_stake_threshold","type":"U64"},{"name":"validator_very_low_stake_threshold","type":"U64"},{"name":"validator_low_stake_grace_period","type":"U64"},{"name":"extra_fields","type":{"Struct":{"address":"0x2","module":"bag","name":"Bag","typeArguments":[]}}}]}},"exposedFunctions":{"advance_epoch":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},"U64","U64",{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},"U64","U64","U64","U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}]},"advance_epoch_safe_mode":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},"U64","U64",{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},"U64","U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"create":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Vector":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},"U64","U64",{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SystemParameters","typeArguments":[]}},{"Struct":{"address":"0x3","module":"stake_subsidy","name":"StakeSubsidy","typeArguments":[]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}]},"create_system_parameters":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["U64","U64","U64","U64","U64","U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SystemParameters","typeArguments":[]}}]},"epoch":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}}],"return":["U64"]},"epoch_start_timestamp_ms":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}}],"return":["U64"]},"genesis_system_state_version":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[],"return":["U64"]},"get_reporters_of":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},"Address"],"return":[{"Struct":{"address":"0x2","module":"vec_set","name":"VecSet","typeArguments":["Address"]}}]},"get_storage_fund_object_rebates":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}}],"return":["U64"]},"get_storage_fund_total_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}}],"return":["U64"]},"protocol_version":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}}],"return":["U64"]},"report_validator":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x3","module":"validator_cap","name":"UnverifiedValidatorOperationCap","typeArguments":[]}}},"Address"],"return":[]},"request_add_stake":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},"Address",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_add_stake_mul_coin":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}},{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["U64"]}},"Address",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_add_validator":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_add_validator_candidate":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_remove_validator":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_remove_validator_candidate":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_set_commission_rate":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_set_gas_price":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x3","module":"validator_cap","name":"UnverifiedValidatorOperationCap","typeArguments":[]}}},"U64"],"return":[]},"request_withdraw_stake":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"rotate_operation_cap":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"set_candidate_validator_commission_rate":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"set_candidate_validator_gas_price":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x3","module":"validator_cap","name":"UnverifiedValidatorOperationCap","typeArguments":[]}}},"U64"],"return":[]},"system_state_version":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}}],"return":["U64"]},"undo_report_validator":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x3","module":"validator_cap","name":"UnverifiedValidatorOperationCap","typeArguments":[]}}},"Address"],"return":[]},"update_candidate_validator_network_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_candidate_validator_network_pubkey":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_candidate_validator_p2p_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_candidate_validator_primary_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_candidate_validator_protocol_pubkey":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_candidate_validator_worker_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_candidate_validator_worker_pubkey":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_description":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_image_url":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_name":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_next_epoch_network_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_next_epoch_network_pubkey":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_next_epoch_p2p_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_next_epoch_primary_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_next_epoch_protocol_pubkey":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_next_epoch_worker_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_next_epoch_worker_pubkey":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"update_validator_project_url":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"validator_stake_amount":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},"Address"],"return":["U64"]},"validator_staking_pool_id":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}},"Address"],"return":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}]},"validator_staking_pool_mappings":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}},"Address"]}}}]}}},"validator":{"fileFormatVersion":6,"address":"0x3","name":"validator","friends":[{"address":"0x3","name":"genesis"},{"address":"0x3","name":"sui_system_state_inner"},{"address":"0x3","name":"validator_set"},{"address":"0x3","name":"validator_wrapper"},{"address":"0x3","name":"voting_power"}],"structs":{"StakingRequestEvent":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"validator_address","type":"Address"},{"name":"staker_address","type":"Address"},{"name":"epoch","type":"U64"},{"name":"amount","type":"U64"}]},"UnstakingRequestEvent":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"validator_address","type":"Address"},{"name":"staker_address","type":"Address"},{"name":"stake_activation_epoch","type":"U64"},{"name":"unstaking_epoch","type":"U64"},{"name":"principal_amount","type":"U64"},{"name":"reward_amount","type":"U64"}]},"Validator":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"metadata","type":{"Struct":{"address":"0x3","module":"validator","name":"ValidatorMetadata","typeArguments":[]}}},{"name":"voting_power","type":"U64"},{"name":"operation_cap_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"gas_price","type":"U64"},{"name":"staking_pool","type":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}},{"name":"commission_rate","type":"U64"},{"name":"next_epoch_stake","type":"U64"},{"name":"next_epoch_gas_price","type":"U64"},{"name":"next_epoch_commission_rate","type":"U64"},{"name":"extra_fields","type":{"Struct":{"address":"0x2","module":"bag","name":"Bag","typeArguments":[]}}}]},"ValidatorMetadata":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"sui_address","type":"Address"},{"name":"protocol_pubkey_bytes","type":{"Vector":"U8"}},{"name":"network_pubkey_bytes","type":{"Vector":"U8"}},{"name":"worker_pubkey_bytes","type":{"Vector":"U8"}},{"name":"proof_of_possession","type":{"Vector":"U8"}},{"name":"name","type":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},{"name":"description","type":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},{"name":"image_url","type":{"Struct":{"address":"0x2","module":"url","name":"Url","typeArguments":[]}}},{"name":"project_url","type":{"Struct":{"address":"0x2","module":"url","name":"Url","typeArguments":[]}}},{"name":"net_address","type":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},{"name":"p2p_address","type":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},{"name":"primary_address","type":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},{"name":"worker_address","type":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},{"name":"next_epoch_protocol_pubkey_bytes","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Vector":"U8"}]}}},{"name":"next_epoch_proof_of_possession","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Vector":"U8"}]}}},{"name":"next_epoch_network_pubkey_bytes","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Vector":"U8"}]}}},{"name":"next_epoch_worker_pubkey_bytes","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Vector":"U8"}]}}},{"name":"next_epoch_net_address","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]}}},{"name":"next_epoch_p2p_address","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]}}},{"name":"next_epoch_primary_address","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]}}},{"name":"next_epoch_worker_address","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]}}},{"name":"extra_fields","type":{"Struct":{"address":"0x2","module":"bag","name":"Bag","typeArguments":[]}}}]}},"exposedFunctions":{"activate":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},"U64"],"return":[]},"adjust_stake_and_gas_price":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[]},"commission_rate":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":["U64"]},"deactivate":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},"U64"],"return":[]},"deposit_stake_rewards":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}],"return":[]},"description":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}}]},"effectuate_staged_metadata":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[]},"gas_price":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":["U64"]},"image_url":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x2","module":"url","name":"Url","typeArguments":[]}}}]},"is_duplicate":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":["Bool"]},"is_preactive":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":["Bool"]},"metadata":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"ValidatorMetadata","typeArguments":[]}}}]},"name":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}}]},"network_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}}]},"network_pubkey_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Vector":"U8"}}]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["Address",{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},"U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}]},"new_metadata":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["Address",{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Vector":"U8"},{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}},{"Struct":{"address":"0x2","module":"url","name":"Url","typeArguments":[]}},{"Struct":{"address":"0x2","module":"url","name":"Url","typeArguments":[]}},{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}},{"Struct":{"address":"0x2","module":"bag","name":"Bag","typeArguments":[]}}],"return":[{"Struct":{"address":"0x3","module":"validator","name":"ValidatorMetadata","typeArguments":[]}}]},"new_unverified_validator_operation_cap_and_transfer":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"next_epoch_gas_price":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":["U64"]},"next_epoch_network_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]}}}]},"next_epoch_network_pubkey_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Vector":"U8"}]}}}]},"next_epoch_p2p_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]}}}]},"next_epoch_primary_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]}}}]},"next_epoch_proof_of_possession":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Vector":"U8"}]}}}]},"next_epoch_protocol_pubkey_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Vector":"U8"}]}}}]},"next_epoch_worker_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]}}}]},"next_epoch_worker_pubkey_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Vector":"U8"}]}}}]},"operation_cap_id":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}}]},"p2p_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}}]},"pending_stake_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":["U64"]},"pending_stake_withdraw_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":["U64"]},"pool_token_exchange_rate_at_epoch":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},"U64"],"return":[{"Struct":{"address":"0x3","module":"staking_pool","name":"PoolTokenExchangeRate","typeArguments":[]}}]},"primary_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}}]},"process_pending_stakes_and_withdraws":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"project_url":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x2","module":"url","name":"Url","typeArguments":[]}}}]},"proof_of_possession":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Vector":"U8"}}]},"protocol_pubkey_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Vector":"U8"}}]},"request_add_stake":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},"Address",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_add_stake_at_genesis":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},"Address",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_set_commission_rate":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},"U64"],"return":[]},"request_set_gas_price":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Struct":{"address":"0x3","module":"validator_cap","name":"ValidatorOperationCap","typeArguments":[]}},"U64"],"return":[]},"request_withdraw_stake":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"set_candidate_commission_rate":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},"U64"],"return":[]},"set_candidate_gas_price":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Struct":{"address":"0x3","module":"validator_cap","name":"ValidatorOperationCap","typeArguments":[]}},"U64"],"return":[]},"set_voting_power":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},"U64"],"return":[]},"stake_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":["U64"]},"staking_pool_id":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}]},"sui_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":["Address"]},"total_stake":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":["U64"]},"total_stake_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":["U64"]},"update_candidate_network_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"update_candidate_network_pubkey":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"update_candidate_p2p_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"update_candidate_primary_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"update_candidate_protocol_pubkey":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"},{"Vector":"U8"}],"return":[]},"update_candidate_worker_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"update_candidate_worker_pubkey":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"update_description":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"update_image_url":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"update_name":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"update_next_epoch_network_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"update_next_epoch_network_pubkey":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"update_next_epoch_p2p_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"update_next_epoch_primary_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"update_next_epoch_protocol_pubkey":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"},{"Vector":"U8"}],"return":[]},"update_next_epoch_worker_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"update_next_epoch_worker_pubkey":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"update_project_url":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Vector":"U8"}],"return":[]},"validate_metadata":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"ValidatorMetadata","typeArguments":[]}}}],"return":[]},"validate_metadata_bcs":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":[]},"voting_power":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":["U64"]},"worker_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}}]},"worker_pubkey_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Vector":"U8"}}]}}},"validator_cap":{"fileFormatVersion":6,"address":"0x3","name":"validator_cap","friends":[{"address":"0x3","name":"sui_system_state_inner"},{"address":"0x3","name":"validator"},{"address":"0x3","name":"validator_set"}],"structs":{"UnverifiedValidatorOperationCap":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"authorizer_validator_address","type":"Address"}]},"ValidatorOperationCap":{"abilities":{"abilities":["Drop"]},"typeParameters":[],"fields":[{"name":"authorizer_validator_address","type":"Address"}]}},"exposedFunctions":{"new_from_unverified":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_cap","name":"UnverifiedValidatorOperationCap","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x3","module":"validator_cap","name":"ValidatorOperationCap","typeArguments":[]}}]},"new_unverified_validator_operation_cap_and_transfer":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["Address",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}]},"unverified_operation_cap_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_cap","name":"UnverifiedValidatorOperationCap","typeArguments":[]}}}],"return":[{"Reference":"Address"}]},"verified_operation_cap_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_cap","name":"ValidatorOperationCap","typeArguments":[]}}}],"return":[{"Reference":"Address"}]}}},"validator_set":{"fileFormatVersion":6,"address":"0x3","name":"validator_set","friends":[{"address":"0x3","name":"genesis"},{"address":"0x3","name":"sui_system_state_inner"}],"structs":{"ValidatorEpochInfoEvent":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"epoch","type":"U64"},{"name":"validator_address","type":"Address"},{"name":"reference_gas_survey_quote","type":"U64"},{"name":"stake","type":"U64"},{"name":"commission_rate","type":"U64"},{"name":"pool_staking_reward","type":"U64"},{"name":"storage_fund_staking_reward","type":"U64"},{"name":"pool_token_exchange_rate","type":{"Struct":{"address":"0x3","module":"staking_pool","name":"PoolTokenExchangeRate","typeArguments":[]}}},{"name":"tallying_rule_reporters","type":{"Vector":"Address"}},{"name":"tallying_rule_global_score","type":"U64"}]},"ValidatorJoinEvent":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"epoch","type":"U64"},{"name":"validator_address","type":"Address"},{"name":"staking_pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}}]},"ValidatorLeaveEvent":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"epoch","type":"U64"},{"name":"validator_address","type":"Address"},{"name":"staking_pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"is_voluntary","type":"Bool"}]},"ValidatorSet":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"total_stake","type":"U64"},{"name":"active_validators","type":{"Vector":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}},{"name":"pending_active_validators","type":{"Struct":{"address":"0x2","module":"table_vec","name":"TableVec","typeArguments":[{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}]}}},{"name":"pending_removals","type":{"Vector":"U64"}},{"name":"staking_pool_mappings","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}},"Address"]}}},{"name":"inactive_validators","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}},{"Struct":{"address":"0x3","module":"validator_wrapper","name":"ValidatorWrapper","typeArguments":[]}}]}}},{"name":"validator_candidates","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["Address",{"Struct":{"address":"0x3","module":"validator_wrapper","name":"ValidatorWrapper","typeArguments":[]}}]}}},{"name":"at_risk_validators","type":{"Struct":{"address":"0x2","module":"vec_map","name":"VecMap","typeArguments":["Address","U64"]}}},{"name":"extra_fields","type":{"Struct":{"address":"0x2","module":"bag","name":"Bag","typeArguments":[]}}}]}},"exposedFunctions":{"active_validators":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}}],"return":[{"Reference":{"Vector":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}}]},"advance_epoch":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"vec_map","name":"VecMap","typeArguments":["Address",{"Struct":{"address":"0x2","module":"vec_set","name":"VecSet","typeArguments":["Address"]}}]}}},"U64","U64","U64","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"assert_no_pending_or_actice_duplicates":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[]},"derive_reference_gas_price":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}}],"return":["U64"]},"get_active_or_pending_or_candidate_validator_ref":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},"Address","U8"],"return":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}]},"get_active_validator_ref":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},"Address"],"return":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}]},"get_pending_validator_ref":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},"Address"],"return":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}]},"get_validator_mut":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Vector":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}},"Address"],"return":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}]},"get_validator_mut_with_ctx":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}]},"get_validator_mut_with_ctx_including_candidates":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}]},"get_validator_mut_with_verified_cap":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x3","module":"validator_cap","name":"ValidatorOperationCap","typeArguments":[]}}},"Bool"],"return":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}]},"is_active_validator_by_sui_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},"Address"],"return":["Bool"]},"is_duplicate_validator":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Vector":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}},{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":["Bool"]},"is_inactive_validator":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}],"return":["Bool"]},"is_validator_candidate":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},"Address"],"return":["Bool"]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Vector":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}]},"next_epoch_validator_count":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}}],"return":["U64"]},"request_add_stake":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},"Address",{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_add_validator":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_add_validator_candidate":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_remove_validator":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_remove_validator_candidate":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_set_commission_rate":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},"U64",{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"request_withdraw_stake":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"staking_pool_mappings":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}},"Address"]}}}]},"sum_voting_power_by_addresses":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Vector":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}},{"Reference":{"Vector":"Address"}}],"return":["U64"]},"total_stake":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}}],"return":["U64"]},"validator_stake_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},"Address"],"return":["U64"]},"validator_staking_pool_id":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},"Address"],"return":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}]},"validator_total_stake_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},"Address"],"return":["U64"]},"verify_cap":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x3","module":"validator_cap","name":"UnverifiedValidatorOperationCap","typeArguments":[]}}},"U8"],"return":[{"Struct":{"address":"0x3","module":"validator_cap","name":"ValidatorOperationCap","typeArguments":[]}}]}}},"validator_wrapper":{"fileFormatVersion":6,"address":"0x3","name":"validator_wrapper","friends":[{"address":"0x3","name":"validator_set"}],"structs":{"ValidatorWrapper":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"inner","type":{"Struct":{"address":"0x2","module":"versioned","name":"Versioned","typeArguments":[]}}}]}},"exposedFunctions":{"create_v1":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x3","module":"validator_wrapper","name":"ValidatorWrapper","typeArguments":[]}}]},"destroy":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x3","module":"validator_wrapper","name":"ValidatorWrapper","typeArguments":[]}}],"return":[{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}]},"load_validator_maybe_upgrade":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_wrapper","name":"ValidatorWrapper","typeArguments":[]}}}],"return":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}]}}},"voting_power":{"fileFormatVersion":6,"address":"0x3","name":"voting_power","friends":[{"address":"0x3","name":"validator_set"}],"structs":{"VotingPowerInfo":{"abilities":{"abilities":["Drop"]},"typeParameters":[],"fields":[{"name":"validator_index","type":"U64"},{"name":"voting_power","type":"U64"}]}},"exposedFunctions":{"quorum_threshold":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[],"return":["U64"]},"set_voting_power":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Vector":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}}],"return":[]},"total_voting_power":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[],"return":["U64"]}}}}'
1505
+ );
1506
+
1507
+ export function loadAllTypes(coder: MoveCoder) {
1508
+ _0x1.loadAllTypes(coder);
1509
+ _0x2.loadAllTypes(coder);
1510
+ for (const m of Object.values(MODULES)) {
1511
+ coder.load(m as any);
1512
+ }
1513
+ }
1514
+
1515
+ loadAllTypes(defaultMoveCoder());