@typemove/sui 1.0.0-rc.10

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 (30) hide show
  1. package/LICENSE +201 -0
  2. package/dist/codegen/run.js +19 -0
  3. package/dist/index.js +5 -0
  4. package/package.json +43 -0
  5. package/src/abis/0x1.json +2063 -0
  6. package/src/abis/0x2.json +13410 -0
  7. package/src/abis/0x3.json +8645 -0
  8. package/src/builtin/0x1.ts +2909 -0
  9. package/src/builtin/0x2.ts +14389 -0
  10. package/src/builtin/0x3.ts +4385 -0
  11. package/src/builtin/index.ts +6 -0
  12. package/src/codegen/codegen.ts +244 -0
  13. package/src/codegen/index.ts +1 -0
  14. package/src/codegen/run.ts +20 -0
  15. package/src/index.ts +8 -0
  16. package/src/models.ts +24 -0
  17. package/src/module-client.ts +23 -0
  18. package/src/move-coder.ts +147 -0
  19. package/src/sui-chain-adapter.ts +113 -0
  20. package/src/tests/abis/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.json +265 -0
  21. package/src/tests/abis/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.json +2429 -0
  22. package/src/tests/abis/testnet/0xdee9.json +5523 -0
  23. package/src/tests/abis/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.json +10060 -0
  24. package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +295 -0
  25. package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +2745 -0
  26. package/src/tests/types/testnet/0xdee9.ts +3148 -0
  27. package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +10516 -0
  28. package/src/tests/types/testnet/index.ts +7 -0
  29. package/src/to-internal.ts +129 -0
  30. package/src/utils.ts +62 -0
@@ -0,0 +1,4385 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ /* Generated modules for account 0x3 */
6
+
7
+ import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
8
+ import { MoveCoder, defaultMoveCoder, TypedEventInstance } from "@typemove/sui";
9
+ import { SuiAddress, ObjectId } from "@mysten/sui.js";
10
+
11
+ import { ZERO_ADDRESS } from "@typemove/sui";
12
+ import {
13
+ TransactionBlock,
14
+ TransactionArgument,
15
+ ObjectCallArg,
16
+ JsonRpcProvider,
17
+ } from "@mysten/sui.js";
18
+
19
+ import * as _0x1 from "./0x1.js";
20
+ import * as _0x2 from "./0x2.js";
21
+
22
+ export namespace genesis {
23
+ export interface GenesisChainParameters {
24
+ protocol_version: bigint;
25
+ chain_start_timestamp_ms: bigint;
26
+ epoch_duration_ms: bigint;
27
+ stake_subsidy_start_epoch: bigint;
28
+ stake_subsidy_initial_distribution_amount: bigint;
29
+ stake_subsidy_period_length: bigint;
30
+ stake_subsidy_decrease_rate: number;
31
+ max_validator_count: bigint;
32
+ min_validator_joining_stake: bigint;
33
+ validator_low_stake_threshold: bigint;
34
+ validator_very_low_stake_threshold: bigint;
35
+ validator_low_stake_grace_period: bigint;
36
+ }
37
+
38
+ export namespace GenesisChainParameters {
39
+ export const TYPE_QNAME = "0x3::genesis::GenesisChainParameters";
40
+
41
+ const TYPE = new TypeDescriptor<GenesisChainParameters>(
42
+ GenesisChainParameters.TYPE_QNAME
43
+ );
44
+
45
+ export function type(): TypeDescriptor<GenesisChainParameters> {
46
+ return TYPE.apply();
47
+ }
48
+ }
49
+
50
+ export interface GenesisChainParametersInstance
51
+ extends TypedEventInstance<GenesisChainParameters> {
52
+ data_decoded: GenesisChainParameters;
53
+ type_arguments: [];
54
+ }
55
+
56
+ export interface GenesisValidatorMetadata {
57
+ name: number[];
58
+ description: number[];
59
+ image_url: number[];
60
+ project_url: number[];
61
+ sui_address: SuiAddress;
62
+ gas_price: bigint;
63
+ commission_rate: bigint;
64
+ protocol_public_key: number[];
65
+ proof_of_possession: number[];
66
+ network_public_key: number[];
67
+ worker_public_key: number[];
68
+ network_address: number[];
69
+ p2p_address: number[];
70
+ primary_address: number[];
71
+ worker_address: number[];
72
+ }
73
+
74
+ export namespace GenesisValidatorMetadata {
75
+ export const TYPE_QNAME = "0x3::genesis::GenesisValidatorMetadata";
76
+
77
+ const TYPE = new TypeDescriptor<GenesisValidatorMetadata>(
78
+ GenesisValidatorMetadata.TYPE_QNAME
79
+ );
80
+
81
+ export function type(): TypeDescriptor<GenesisValidatorMetadata> {
82
+ return TYPE.apply();
83
+ }
84
+ }
85
+
86
+ export interface GenesisValidatorMetadataInstance
87
+ extends TypedEventInstance<GenesisValidatorMetadata> {
88
+ data_decoded: GenesisValidatorMetadata;
89
+ type_arguments: [];
90
+ }
91
+
92
+ export interface TokenAllocation {
93
+ recipient_address: SuiAddress;
94
+ amount_mist: bigint;
95
+ staked_with_validator: _0x1.option.Option<SuiAddress>;
96
+ }
97
+
98
+ export namespace TokenAllocation {
99
+ export const TYPE_QNAME = "0x3::genesis::TokenAllocation";
100
+
101
+ const TYPE = new TypeDescriptor<TokenAllocation>(
102
+ TokenAllocation.TYPE_QNAME
103
+ );
104
+
105
+ export function type(): TypeDescriptor<TokenAllocation> {
106
+ return TYPE.apply();
107
+ }
108
+ }
109
+
110
+ export interface TokenDistributionSchedule {
111
+ stake_subsidy_fund_mist: bigint;
112
+ allocations: genesis.TokenAllocation[];
113
+ }
114
+
115
+ export namespace TokenDistributionSchedule {
116
+ export const TYPE_QNAME = "0x3::genesis::TokenDistributionSchedule";
117
+
118
+ const TYPE = new TypeDescriptor<TokenDistributionSchedule>(
119
+ TokenDistributionSchedule.TYPE_QNAME
120
+ );
121
+
122
+ export function type(): TypeDescriptor<TokenDistributionSchedule> {
123
+ return TYPE.apply();
124
+ }
125
+ }
126
+
127
+ export namespace builder {}
128
+ export namespace view {}
129
+ }
130
+
131
+ export namespace stake_subsidy {
132
+ export interface StakeSubsidy {
133
+ balance: _0x2.balance.Balance<_0x2.sui.SUI>;
134
+ distribution_counter: bigint;
135
+ current_distribution_amount: bigint;
136
+ stake_subsidy_period_length: bigint;
137
+ stake_subsidy_decrease_rate: number;
138
+ extra_fields: _0x2.bag.Bag;
139
+ }
140
+
141
+ export namespace StakeSubsidy {
142
+ export const TYPE_QNAME = "0x3::stake_subsidy::StakeSubsidy";
143
+
144
+ const TYPE = new TypeDescriptor<StakeSubsidy>(StakeSubsidy.TYPE_QNAME);
145
+
146
+ export function type(): TypeDescriptor<StakeSubsidy> {
147
+ return TYPE.apply();
148
+ }
149
+ }
150
+
151
+ export namespace builder {
152
+ export function currentEpochSubsidyAmount(
153
+ tx: TransactionBlock,
154
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
155
+ ): TransactionArgument & [TransactionArgument] {
156
+ const _args: any[] = [];
157
+ _args.push(
158
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
159
+ );
160
+
161
+ // @ts-ignore
162
+ return tx.moveCall({
163
+ target: "0x3::stake_subsidy::current_epoch_subsidy_amount",
164
+ arguments: _args,
165
+ });
166
+ }
167
+ }
168
+ export namespace view {
169
+ export async function currentEpochSubsidyAmount(
170
+ provider: JsonRpcProvider,
171
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
172
+ ) {
173
+ const tx = new TransactionBlock();
174
+ builder.currentEpochSubsidyAmount(tx, args);
175
+ const res = await provider.devInspectTransactionBlock({
176
+ transactionBlock: tx,
177
+ sender: ZERO_ADDRESS,
178
+ });
179
+ return res;
180
+ }
181
+ }
182
+ }
183
+
184
+ export namespace staking_pool {
185
+ export interface PoolTokenExchangeRate {
186
+ sui_amount: bigint;
187
+ pool_token_amount: bigint;
188
+ }
189
+
190
+ export namespace PoolTokenExchangeRate {
191
+ export const TYPE_QNAME = "0x3::staking_pool::PoolTokenExchangeRate";
192
+
193
+ const TYPE = new TypeDescriptor<PoolTokenExchangeRate>(
194
+ PoolTokenExchangeRate.TYPE_QNAME
195
+ );
196
+
197
+ export function type(): TypeDescriptor<PoolTokenExchangeRate> {
198
+ return TYPE.apply();
199
+ }
200
+ }
201
+
202
+ export interface PoolTokenExchangeRateInstance
203
+ extends TypedEventInstance<PoolTokenExchangeRate> {
204
+ data_decoded: PoolTokenExchangeRate;
205
+ type_arguments: [];
206
+ }
207
+
208
+ export interface StakedSui {
209
+ id: _0x2.object_.UID;
210
+ pool_id: _0x2.object_.ID;
211
+ stake_activation_epoch: bigint;
212
+ principal: _0x2.balance.Balance<_0x2.sui.SUI>;
213
+ }
214
+
215
+ export namespace StakedSui {
216
+ export const TYPE_QNAME = "0x3::staking_pool::StakedSui";
217
+
218
+ const TYPE = new TypeDescriptor<StakedSui>(StakedSui.TYPE_QNAME);
219
+
220
+ export function type(): TypeDescriptor<StakedSui> {
221
+ return TYPE.apply();
222
+ }
223
+ }
224
+
225
+ export interface StakingPool {
226
+ id: _0x2.object_.UID;
227
+ activation_epoch: _0x1.option.Option<bigint>;
228
+ deactivation_epoch: _0x1.option.Option<bigint>;
229
+ sui_balance: bigint;
230
+ rewards_pool: _0x2.balance.Balance<_0x2.sui.SUI>;
231
+ pool_token_balance: bigint;
232
+ exchange_rates: _0x2.table.Table<
233
+ bigint,
234
+ staking_pool.PoolTokenExchangeRate
235
+ >;
236
+ pending_stake: bigint;
237
+ pending_total_sui_withdraw: bigint;
238
+ pending_pool_token_withdraw: bigint;
239
+ extra_fields: _0x2.bag.Bag;
240
+ }
241
+
242
+ export namespace StakingPool {
243
+ export const TYPE_QNAME = "0x3::staking_pool::StakingPool";
244
+
245
+ const TYPE = new TypeDescriptor<StakingPool>(StakingPool.TYPE_QNAME);
246
+
247
+ export function type(): TypeDescriptor<StakingPool> {
248
+ return TYPE.apply();
249
+ }
250
+ }
251
+
252
+ export namespace builder {
253
+ export function isEqualStakingMetadata(
254
+ tx: TransactionBlock,
255
+ args: [
256
+ ObjectId | ObjectCallArg | TransactionArgument,
257
+ ObjectId | ObjectCallArg | TransactionArgument
258
+ ]
259
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
260
+ const _args: any[] = [];
261
+ _args.push(
262
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
263
+ );
264
+ _args.push(
265
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
266
+ );
267
+
268
+ // @ts-ignore
269
+ return tx.moveCall({
270
+ target: "0x3::staking_pool::is_equal_staking_metadata",
271
+ arguments: _args,
272
+ });
273
+ }
274
+ export function isInactive(
275
+ tx: TransactionBlock,
276
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
277
+ ): TransactionArgument & [TransactionArgument] {
278
+ const _args: any[] = [];
279
+ _args.push(
280
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
281
+ );
282
+
283
+ // @ts-ignore
284
+ return tx.moveCall({
285
+ target: "0x3::staking_pool::is_inactive",
286
+ arguments: _args,
287
+ });
288
+ }
289
+ export function isPreactive(
290
+ tx: TransactionBlock,
291
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
292
+ ): TransactionArgument & [TransactionArgument] {
293
+ const _args: any[] = [];
294
+ _args.push(
295
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
296
+ );
297
+
298
+ // @ts-ignore
299
+ return tx.moveCall({
300
+ target: "0x3::staking_pool::is_preactive",
301
+ arguments: _args,
302
+ });
303
+ }
304
+ export function joinStakedSui(
305
+ tx: TransactionBlock,
306
+ args: [
307
+ ObjectId | ObjectCallArg | TransactionArgument,
308
+ staking_pool.StakedSui | TransactionArgument
309
+ ]
310
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
311
+ const _args: any[] = [];
312
+ _args.push(
313
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
314
+ );
315
+ _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
316
+
317
+ // @ts-ignore
318
+ return tx.moveCall({
319
+ target: "0x3::staking_pool::join_staked_sui",
320
+ arguments: _args,
321
+ });
322
+ }
323
+
324
+ export function pendingStakeAmount(
325
+ tx: TransactionBlock,
326
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
327
+ ): TransactionArgument & [TransactionArgument] {
328
+ const _args: any[] = [];
329
+ _args.push(
330
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
331
+ );
332
+
333
+ // @ts-ignore
334
+ return tx.moveCall({
335
+ target: "0x3::staking_pool::pending_stake_amount",
336
+ arguments: _args,
337
+ });
338
+ }
339
+ export function pendingStakeWithdrawAmount(
340
+ tx: TransactionBlock,
341
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
342
+ ): TransactionArgument & [TransactionArgument] {
343
+ const _args: any[] = [];
344
+ _args.push(
345
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
346
+ );
347
+
348
+ // @ts-ignore
349
+ return tx.moveCall({
350
+ target: "0x3::staking_pool::pending_stake_withdraw_amount",
351
+ arguments: _args,
352
+ });
353
+ }
354
+ export function poolId(
355
+ tx: TransactionBlock,
356
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
357
+ ): TransactionArgument & [TransactionArgument] {
358
+ const _args: any[] = [];
359
+ _args.push(
360
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
361
+ );
362
+
363
+ // @ts-ignore
364
+ return tx.moveCall({
365
+ target: "0x3::staking_pool::pool_id",
366
+ arguments: _args,
367
+ });
368
+ }
369
+ export function poolTokenExchangeRateAtEpoch(
370
+ tx: TransactionBlock,
371
+ args: [
372
+ ObjectId | ObjectCallArg | TransactionArgument,
373
+ bigint | TransactionArgument
374
+ ]
375
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
376
+ const _args: any[] = [];
377
+ _args.push(
378
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
379
+ );
380
+ _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
381
+
382
+ // @ts-ignore
383
+ return tx.moveCall({
384
+ target: "0x3::staking_pool::pool_token_exchange_rate_at_epoch",
385
+ arguments: _args,
386
+ });
387
+ }
388
+
389
+ export function split(
390
+ tx: TransactionBlock,
391
+ args: [
392
+ ObjectId | ObjectCallArg | TransactionArgument,
393
+ bigint | TransactionArgument,
394
+ ObjectId | ObjectCallArg | TransactionArgument
395
+ ]
396
+ ): TransactionArgument &
397
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
398
+ const _args: any[] = [];
399
+ _args.push(
400
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
401
+ );
402
+ _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
403
+ _args.push(
404
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
405
+ );
406
+
407
+ // @ts-ignore
408
+ return tx.moveCall({
409
+ target: "0x3::staking_pool::split",
410
+ arguments: _args,
411
+ });
412
+ }
413
+ export function splitStakedSui(
414
+ tx: TransactionBlock,
415
+ args: [
416
+ ObjectId | ObjectCallArg | TransactionArgument,
417
+ bigint | TransactionArgument,
418
+ ObjectId | ObjectCallArg | TransactionArgument
419
+ ]
420
+ ): TransactionArgument &
421
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
422
+ const _args: any[] = [];
423
+ _args.push(
424
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
425
+ );
426
+ _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
427
+ _args.push(
428
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
429
+ );
430
+
431
+ // @ts-ignore
432
+ return tx.moveCall({
433
+ target: "0x3::staking_pool::split_staked_sui",
434
+ arguments: _args,
435
+ });
436
+ }
437
+ export function stakeActivationEpoch(
438
+ tx: TransactionBlock,
439
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
440
+ ): TransactionArgument & [TransactionArgument] {
441
+ const _args: any[] = [];
442
+ _args.push(
443
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
444
+ );
445
+
446
+ // @ts-ignore
447
+ return tx.moveCall({
448
+ target: "0x3::staking_pool::stake_activation_epoch",
449
+ arguments: _args,
450
+ });
451
+ }
452
+ export function stakedSuiAmount(
453
+ tx: TransactionBlock,
454
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
455
+ ): TransactionArgument & [TransactionArgument] {
456
+ const _args: any[] = [];
457
+ _args.push(
458
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
459
+ );
460
+
461
+ // @ts-ignore
462
+ return tx.moveCall({
463
+ target: "0x3::staking_pool::staked_sui_amount",
464
+ arguments: _args,
465
+ });
466
+ }
467
+ export function suiBalance(
468
+ tx: TransactionBlock,
469
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
470
+ ): TransactionArgument & [TransactionArgument] {
471
+ const _args: any[] = [];
472
+ _args.push(
473
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
474
+ );
475
+
476
+ // @ts-ignore
477
+ return tx.moveCall({
478
+ target: "0x3::staking_pool::sui_balance",
479
+ arguments: _args,
480
+ });
481
+ }
482
+ }
483
+ export namespace view {
484
+ export async function isEqualStakingMetadata(
485
+ provider: JsonRpcProvider,
486
+ args: [
487
+ ObjectId | ObjectCallArg | TransactionArgument,
488
+ ObjectId | ObjectCallArg | TransactionArgument
489
+ ]
490
+ ) {
491
+ const tx = new TransactionBlock();
492
+ builder.isEqualStakingMetadata(tx, args);
493
+ const res = await provider.devInspectTransactionBlock({
494
+ transactionBlock: tx,
495
+ sender: ZERO_ADDRESS,
496
+ });
497
+ return res;
498
+ }
499
+ export async function isInactive(
500
+ provider: JsonRpcProvider,
501
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
502
+ ) {
503
+ const tx = new TransactionBlock();
504
+ builder.isInactive(tx, args);
505
+ const res = await provider.devInspectTransactionBlock({
506
+ transactionBlock: tx,
507
+ sender: ZERO_ADDRESS,
508
+ });
509
+ return res;
510
+ }
511
+ export async function isPreactive(
512
+ provider: JsonRpcProvider,
513
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
514
+ ) {
515
+ const tx = new TransactionBlock();
516
+ builder.isPreactive(tx, args);
517
+ const res = await provider.devInspectTransactionBlock({
518
+ transactionBlock: tx,
519
+ sender: ZERO_ADDRESS,
520
+ });
521
+ return res;
522
+ }
523
+ export async function joinStakedSui(
524
+ provider: JsonRpcProvider,
525
+ args: [
526
+ ObjectId | ObjectCallArg | TransactionArgument,
527
+ staking_pool.StakedSui | TransactionArgument
528
+ ]
529
+ ) {
530
+ const tx = new TransactionBlock();
531
+ builder.joinStakedSui(tx, args);
532
+ const res = await provider.devInspectTransactionBlock({
533
+ transactionBlock: tx,
534
+ sender: ZERO_ADDRESS,
535
+ });
536
+ return res;
537
+ }
538
+
539
+ export async function pendingStakeAmount(
540
+ provider: JsonRpcProvider,
541
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
542
+ ) {
543
+ const tx = new TransactionBlock();
544
+ builder.pendingStakeAmount(tx, args);
545
+ const res = await provider.devInspectTransactionBlock({
546
+ transactionBlock: tx,
547
+ sender: ZERO_ADDRESS,
548
+ });
549
+ return res;
550
+ }
551
+ export async function pendingStakeWithdrawAmount(
552
+ provider: JsonRpcProvider,
553
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
554
+ ) {
555
+ const tx = new TransactionBlock();
556
+ builder.pendingStakeWithdrawAmount(tx, args);
557
+ const res = await provider.devInspectTransactionBlock({
558
+ transactionBlock: tx,
559
+ sender: ZERO_ADDRESS,
560
+ });
561
+ return res;
562
+ }
563
+ export async function poolId(
564
+ provider: JsonRpcProvider,
565
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
566
+ ) {
567
+ const tx = new TransactionBlock();
568
+ builder.poolId(tx, args);
569
+ const res = await provider.devInspectTransactionBlock({
570
+ transactionBlock: tx,
571
+ sender: ZERO_ADDRESS,
572
+ });
573
+ return res;
574
+ }
575
+ export async function poolTokenExchangeRateAtEpoch(
576
+ provider: JsonRpcProvider,
577
+ args: [
578
+ ObjectId | ObjectCallArg | TransactionArgument,
579
+ bigint | TransactionArgument
580
+ ]
581
+ ) {
582
+ const tx = new TransactionBlock();
583
+ builder.poolTokenExchangeRateAtEpoch(tx, args);
584
+ const res = await provider.devInspectTransactionBlock({
585
+ transactionBlock: tx,
586
+ sender: ZERO_ADDRESS,
587
+ });
588
+ return res;
589
+ }
590
+
591
+ export async function split(
592
+ provider: JsonRpcProvider,
593
+ args: [
594
+ ObjectId | ObjectCallArg | TransactionArgument,
595
+ bigint | TransactionArgument,
596
+ ObjectId | ObjectCallArg | TransactionArgument
597
+ ]
598
+ ) {
599
+ const tx = new TransactionBlock();
600
+ builder.split(tx, args);
601
+ const res = await provider.devInspectTransactionBlock({
602
+ transactionBlock: tx,
603
+ sender: ZERO_ADDRESS,
604
+ });
605
+ return res;
606
+ }
607
+ export async function splitStakedSui(
608
+ provider: JsonRpcProvider,
609
+ args: [
610
+ ObjectId | ObjectCallArg | TransactionArgument,
611
+ bigint | TransactionArgument,
612
+ ObjectId | ObjectCallArg | TransactionArgument
613
+ ]
614
+ ) {
615
+ const tx = new TransactionBlock();
616
+ builder.splitStakedSui(tx, args);
617
+ const res = await provider.devInspectTransactionBlock({
618
+ transactionBlock: tx,
619
+ sender: ZERO_ADDRESS,
620
+ });
621
+ return res;
622
+ }
623
+ export async function stakeActivationEpoch(
624
+ provider: JsonRpcProvider,
625
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
626
+ ) {
627
+ const tx = new TransactionBlock();
628
+ builder.stakeActivationEpoch(tx, args);
629
+ const res = await provider.devInspectTransactionBlock({
630
+ transactionBlock: tx,
631
+ sender: ZERO_ADDRESS,
632
+ });
633
+ return res;
634
+ }
635
+ export async function stakedSuiAmount(
636
+ provider: JsonRpcProvider,
637
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
638
+ ) {
639
+ const tx = new TransactionBlock();
640
+ builder.stakedSuiAmount(tx, args);
641
+ const res = await provider.devInspectTransactionBlock({
642
+ transactionBlock: tx,
643
+ sender: ZERO_ADDRESS,
644
+ });
645
+ return res;
646
+ }
647
+ export async function suiBalance(
648
+ provider: JsonRpcProvider,
649
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
650
+ ) {
651
+ const tx = new TransactionBlock();
652
+ builder.suiBalance(tx, args);
653
+ const res = await provider.devInspectTransactionBlock({
654
+ transactionBlock: tx,
655
+ sender: ZERO_ADDRESS,
656
+ });
657
+ return res;
658
+ }
659
+ }
660
+ }
661
+
662
+ export namespace storage_fund {
663
+ export interface StorageFund {
664
+ total_object_storage_rebates: _0x2.balance.Balance<_0x2.sui.SUI>;
665
+ non_refundable_balance: _0x2.balance.Balance<_0x2.sui.SUI>;
666
+ }
667
+
668
+ export namespace StorageFund {
669
+ export const TYPE_QNAME = "0x3::storage_fund::StorageFund";
670
+
671
+ const TYPE = new TypeDescriptor<StorageFund>(StorageFund.TYPE_QNAME);
672
+
673
+ export function type(): TypeDescriptor<StorageFund> {
674
+ return TYPE.apply();
675
+ }
676
+ }
677
+
678
+ export namespace builder {
679
+ export function totalBalance(
680
+ tx: TransactionBlock,
681
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
682
+ ): TransactionArgument & [TransactionArgument] {
683
+ const _args: any[] = [];
684
+ _args.push(
685
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
686
+ );
687
+
688
+ // @ts-ignore
689
+ return tx.moveCall({
690
+ target: "0x3::storage_fund::total_balance",
691
+ arguments: _args,
692
+ });
693
+ }
694
+ export function totalObjectStorageRebates(
695
+ tx: TransactionBlock,
696
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
697
+ ): TransactionArgument & [TransactionArgument] {
698
+ const _args: any[] = [];
699
+ _args.push(
700
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
701
+ );
702
+
703
+ // @ts-ignore
704
+ return tx.moveCall({
705
+ target: "0x3::storage_fund::total_object_storage_rebates",
706
+ arguments: _args,
707
+ });
708
+ }
709
+ }
710
+ export namespace view {
711
+ export async function totalBalance(
712
+ provider: JsonRpcProvider,
713
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
714
+ ) {
715
+ const tx = new TransactionBlock();
716
+ builder.totalBalance(tx, args);
717
+ const res = await provider.devInspectTransactionBlock({
718
+ transactionBlock: tx,
719
+ sender: ZERO_ADDRESS,
720
+ });
721
+ return res;
722
+ }
723
+ export async function totalObjectStorageRebates(
724
+ provider: JsonRpcProvider,
725
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
726
+ ) {
727
+ const tx = new TransactionBlock();
728
+ builder.totalObjectStorageRebates(tx, args);
729
+ const res = await provider.devInspectTransactionBlock({
730
+ transactionBlock: tx,
731
+ sender: ZERO_ADDRESS,
732
+ });
733
+ return res;
734
+ }
735
+ }
736
+ }
737
+
738
+ export namespace sui_system {
739
+ export interface SuiSystemState {
740
+ id: _0x2.object_.UID;
741
+ version: bigint;
742
+ }
743
+
744
+ export namespace SuiSystemState {
745
+ export const TYPE_QNAME = "0x3::sui_system::SuiSystemState";
746
+
747
+ const TYPE = new TypeDescriptor<SuiSystemState>(SuiSystemState.TYPE_QNAME);
748
+
749
+ export function type(): TypeDescriptor<SuiSystemState> {
750
+ return TYPE.apply();
751
+ }
752
+ }
753
+
754
+ export namespace builder {
755
+ export function reportValidator(
756
+ tx: TransactionBlock,
757
+ args: [
758
+ ObjectId | ObjectCallArg | TransactionArgument,
759
+ ObjectId | ObjectCallArg | TransactionArgument,
760
+ SuiAddress | TransactionArgument
761
+ ]
762
+ ): TransactionArgument &
763
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
764
+ const _args: any[] = [];
765
+ _args.push(
766
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
767
+ );
768
+ _args.push(
769
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
770
+ );
771
+ _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
772
+
773
+ // @ts-ignore
774
+ return tx.moveCall({
775
+ target: "0x3::sui_system::report_validator",
776
+ arguments: _args,
777
+ });
778
+ }
779
+ export function requestAddStake(
780
+ tx: TransactionBlock,
781
+ args: [
782
+ ObjectId | ObjectCallArg | TransactionArgument,
783
+ _0x2.coin.Coin<_0x2.sui.SUI> | TransactionArgument,
784
+ SuiAddress | TransactionArgument,
785
+ ObjectId | ObjectCallArg | TransactionArgument
786
+ ]
787
+ ): TransactionArgument &
788
+ [
789
+ TransactionArgument,
790
+ TransactionArgument,
791
+ TransactionArgument,
792
+ TransactionArgument
793
+ ] {
794
+ const _args: any[] = [];
795
+ _args.push(
796
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
797
+ );
798
+ _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
799
+ _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
800
+ _args.push(
801
+ TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
802
+ );
803
+
804
+ // @ts-ignore
805
+ return tx.moveCall({
806
+ target: "0x3::sui_system::request_add_stake",
807
+ arguments: _args,
808
+ });
809
+ }
810
+ export function requestAddStakeMulCoin(
811
+ tx: TransactionBlock,
812
+ args: [
813
+ ObjectId | ObjectCallArg | TransactionArgument,
814
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
815
+ _0x1.option.Option<bigint> | TransactionArgument,
816
+ SuiAddress | TransactionArgument,
817
+ ObjectId | ObjectCallArg | TransactionArgument
818
+ ]
819
+ ): TransactionArgument &
820
+ [
821
+ TransactionArgument,
822
+ TransactionArgument,
823
+ TransactionArgument,
824
+ TransactionArgument,
825
+ TransactionArgument
826
+ ] {
827
+ const _args: any[] = [];
828
+ _args.push(
829
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
830
+ );
831
+ _args.push(
832
+ TransactionArgument.is(args[1])
833
+ ? args[1]
834
+ : tx.makeMoveVec({
835
+ objects: args[1].map((a: any) => tx.object(a)),
836
+ // type: TODO
837
+ })
838
+ );
839
+ _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
840
+ _args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
841
+ _args.push(
842
+ TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4])
843
+ );
844
+
845
+ // @ts-ignore
846
+ return tx.moveCall({
847
+ target: "0x3::sui_system::request_add_stake_mul_coin",
848
+ arguments: _args,
849
+ });
850
+ }
851
+ export function requestAddValidator(
852
+ tx: TransactionBlock,
853
+ args: [
854
+ ObjectId | ObjectCallArg | TransactionArgument,
855
+ ObjectId | ObjectCallArg | TransactionArgument
856
+ ]
857
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
858
+ const _args: any[] = [];
859
+ _args.push(
860
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
861
+ );
862
+ _args.push(
863
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
864
+ );
865
+
866
+ // @ts-ignore
867
+ return tx.moveCall({
868
+ target: "0x3::sui_system::request_add_validator",
869
+ arguments: _args,
870
+ });
871
+ }
872
+ export function requestAddValidatorCandidate(
873
+ tx: TransactionBlock,
874
+ args: [
875
+ ObjectId | ObjectCallArg | TransactionArgument,
876
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
877
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
878
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
879
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
880
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
881
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
882
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
883
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
884
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
885
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
886
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
887
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
888
+ bigint | TransactionArgument,
889
+ bigint | TransactionArgument,
890
+ ObjectId | ObjectCallArg | TransactionArgument
891
+ ]
892
+ ): TransactionArgument &
893
+ [
894
+ TransactionArgument,
895
+ TransactionArgument,
896
+ TransactionArgument,
897
+ TransactionArgument,
898
+ TransactionArgument,
899
+ TransactionArgument,
900
+ TransactionArgument,
901
+ TransactionArgument,
902
+ TransactionArgument,
903
+ TransactionArgument,
904
+ TransactionArgument,
905
+ TransactionArgument,
906
+ TransactionArgument,
907
+ TransactionArgument,
908
+ TransactionArgument,
909
+ TransactionArgument
910
+ ] {
911
+ const _args: any[] = [];
912
+ _args.push(
913
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
914
+ );
915
+ _args.push(
916
+ TransactionArgument.is(args[1])
917
+ ? args[1]
918
+ : tx.makeMoveVec({
919
+ objects: args[1].map((a: any) => tx.object(a)),
920
+ // type: TODO
921
+ })
922
+ );
923
+ _args.push(
924
+ TransactionArgument.is(args[2])
925
+ ? args[2]
926
+ : tx.makeMoveVec({
927
+ objects: args[2].map((a: any) => tx.object(a)),
928
+ // type: TODO
929
+ })
930
+ );
931
+ _args.push(
932
+ TransactionArgument.is(args[3])
933
+ ? args[3]
934
+ : tx.makeMoveVec({
935
+ objects: args[3].map((a: any) => tx.object(a)),
936
+ // type: TODO
937
+ })
938
+ );
939
+ _args.push(
940
+ TransactionArgument.is(args[4])
941
+ ? args[4]
942
+ : tx.makeMoveVec({
943
+ objects: args[4].map((a: any) => tx.object(a)),
944
+ // type: TODO
945
+ })
946
+ );
947
+ _args.push(
948
+ TransactionArgument.is(args[5])
949
+ ? args[5]
950
+ : tx.makeMoveVec({
951
+ objects: args[5].map((a: any) => tx.object(a)),
952
+ // type: TODO
953
+ })
954
+ );
955
+ _args.push(
956
+ TransactionArgument.is(args[6])
957
+ ? args[6]
958
+ : tx.makeMoveVec({
959
+ objects: args[6].map((a: any) => tx.object(a)),
960
+ // type: TODO
961
+ })
962
+ );
963
+ _args.push(
964
+ TransactionArgument.is(args[7])
965
+ ? args[7]
966
+ : tx.makeMoveVec({
967
+ objects: args[7].map((a: any) => tx.object(a)),
968
+ // type: TODO
969
+ })
970
+ );
971
+ _args.push(
972
+ TransactionArgument.is(args[8])
973
+ ? args[8]
974
+ : tx.makeMoveVec({
975
+ objects: args[8].map((a: any) => tx.object(a)),
976
+ // type: TODO
977
+ })
978
+ );
979
+ _args.push(
980
+ TransactionArgument.is(args[9])
981
+ ? args[9]
982
+ : tx.makeMoveVec({
983
+ objects: args[9].map((a: any) => tx.object(a)),
984
+ // type: TODO
985
+ })
986
+ );
987
+ _args.push(
988
+ TransactionArgument.is(args[10])
989
+ ? args[10]
990
+ : tx.makeMoveVec({
991
+ objects: args[10].map((a: any) => tx.object(a)),
992
+ // type: TODO
993
+ })
994
+ );
995
+ _args.push(
996
+ TransactionArgument.is(args[11])
997
+ ? args[11]
998
+ : tx.makeMoveVec({
999
+ objects: args[11].map((a: any) => tx.object(a)),
1000
+ // type: TODO
1001
+ })
1002
+ );
1003
+ _args.push(
1004
+ TransactionArgument.is(args[12])
1005
+ ? args[12]
1006
+ : tx.makeMoveVec({
1007
+ objects: args[12].map((a: any) => tx.object(a)),
1008
+ // type: TODO
1009
+ })
1010
+ );
1011
+ _args.push(
1012
+ TransactionArgument.is(args[13]) ? args[13] : tx.pure(args[13])
1013
+ );
1014
+ _args.push(
1015
+ TransactionArgument.is(args[14]) ? args[14] : tx.pure(args[14])
1016
+ );
1017
+ _args.push(
1018
+ TransactionArgument.is(args[15]) ? args[15] : tx.object(args[15])
1019
+ );
1020
+
1021
+ // @ts-ignore
1022
+ return tx.moveCall({
1023
+ target: "0x3::sui_system::request_add_validator_candidate",
1024
+ arguments: _args,
1025
+ });
1026
+ }
1027
+ export function requestRemoveValidator(
1028
+ tx: TransactionBlock,
1029
+ args: [
1030
+ ObjectId | ObjectCallArg | TransactionArgument,
1031
+ ObjectId | ObjectCallArg | TransactionArgument
1032
+ ]
1033
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1034
+ const _args: any[] = [];
1035
+ _args.push(
1036
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1037
+ );
1038
+ _args.push(
1039
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1040
+ );
1041
+
1042
+ // @ts-ignore
1043
+ return tx.moveCall({
1044
+ target: "0x3::sui_system::request_remove_validator",
1045
+ arguments: _args,
1046
+ });
1047
+ }
1048
+ export function requestRemoveValidatorCandidate(
1049
+ tx: TransactionBlock,
1050
+ args: [
1051
+ ObjectId | ObjectCallArg | TransactionArgument,
1052
+ ObjectId | ObjectCallArg | TransactionArgument
1053
+ ]
1054
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1055
+ const _args: any[] = [];
1056
+ _args.push(
1057
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1058
+ );
1059
+ _args.push(
1060
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1061
+ );
1062
+
1063
+ // @ts-ignore
1064
+ return tx.moveCall({
1065
+ target: "0x3::sui_system::request_remove_validator_candidate",
1066
+ arguments: _args,
1067
+ });
1068
+ }
1069
+ export function requestSetCommissionRate(
1070
+ tx: TransactionBlock,
1071
+ args: [
1072
+ ObjectId | ObjectCallArg | TransactionArgument,
1073
+ bigint | TransactionArgument,
1074
+ ObjectId | ObjectCallArg | TransactionArgument
1075
+ ]
1076
+ ): TransactionArgument &
1077
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1078
+ const _args: any[] = [];
1079
+ _args.push(
1080
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1081
+ );
1082
+ _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1083
+ _args.push(
1084
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1085
+ );
1086
+
1087
+ // @ts-ignore
1088
+ return tx.moveCall({
1089
+ target: "0x3::sui_system::request_set_commission_rate",
1090
+ arguments: _args,
1091
+ });
1092
+ }
1093
+ export function requestSetGasPrice(
1094
+ tx: TransactionBlock,
1095
+ args: [
1096
+ ObjectId | ObjectCallArg | TransactionArgument,
1097
+ ObjectId | ObjectCallArg | TransactionArgument,
1098
+ bigint | TransactionArgument
1099
+ ]
1100
+ ): TransactionArgument &
1101
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1102
+ const _args: any[] = [];
1103
+ _args.push(
1104
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1105
+ );
1106
+ _args.push(
1107
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1108
+ );
1109
+ _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1110
+
1111
+ // @ts-ignore
1112
+ return tx.moveCall({
1113
+ target: "0x3::sui_system::request_set_gas_price",
1114
+ arguments: _args,
1115
+ });
1116
+ }
1117
+ export function requestWithdrawStake(
1118
+ tx: TransactionBlock,
1119
+ args: [
1120
+ ObjectId | ObjectCallArg | TransactionArgument,
1121
+ staking_pool.StakedSui | TransactionArgument,
1122
+ ObjectId | ObjectCallArg | TransactionArgument
1123
+ ]
1124
+ ): TransactionArgument &
1125
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1126
+ const _args: any[] = [];
1127
+ _args.push(
1128
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1129
+ );
1130
+ _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1131
+ _args.push(
1132
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1133
+ );
1134
+
1135
+ // @ts-ignore
1136
+ return tx.moveCall({
1137
+ target: "0x3::sui_system::request_withdraw_stake",
1138
+ arguments: _args,
1139
+ });
1140
+ }
1141
+ export function rotateOperationCap(
1142
+ tx: TransactionBlock,
1143
+ args: [
1144
+ ObjectId | ObjectCallArg | TransactionArgument,
1145
+ ObjectId | ObjectCallArg | TransactionArgument
1146
+ ]
1147
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
1148
+ const _args: any[] = [];
1149
+ _args.push(
1150
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1151
+ );
1152
+ _args.push(
1153
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1154
+ );
1155
+
1156
+ // @ts-ignore
1157
+ return tx.moveCall({
1158
+ target: "0x3::sui_system::rotate_operation_cap",
1159
+ arguments: _args,
1160
+ });
1161
+ }
1162
+ export function setCandidateValidatorCommissionRate(
1163
+ tx: TransactionBlock,
1164
+ args: [
1165
+ ObjectId | ObjectCallArg | TransactionArgument,
1166
+ bigint | TransactionArgument,
1167
+ ObjectId | ObjectCallArg | TransactionArgument
1168
+ ]
1169
+ ): TransactionArgument &
1170
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1171
+ const _args: any[] = [];
1172
+ _args.push(
1173
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1174
+ );
1175
+ _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
1176
+ _args.push(
1177
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1178
+ );
1179
+
1180
+ // @ts-ignore
1181
+ return tx.moveCall({
1182
+ target: "0x3::sui_system::set_candidate_validator_commission_rate",
1183
+ arguments: _args,
1184
+ });
1185
+ }
1186
+ export function setCandidateValidatorGasPrice(
1187
+ tx: TransactionBlock,
1188
+ args: [
1189
+ ObjectId | ObjectCallArg | TransactionArgument,
1190
+ ObjectId | ObjectCallArg | TransactionArgument,
1191
+ bigint | TransactionArgument
1192
+ ]
1193
+ ): TransactionArgument &
1194
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1195
+ const _args: any[] = [];
1196
+ _args.push(
1197
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1198
+ );
1199
+ _args.push(
1200
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1201
+ );
1202
+ _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1203
+
1204
+ // @ts-ignore
1205
+ return tx.moveCall({
1206
+ target: "0x3::sui_system::set_candidate_validator_gas_price",
1207
+ arguments: _args,
1208
+ });
1209
+ }
1210
+ export function undoReportValidator(
1211
+ tx: TransactionBlock,
1212
+ args: [
1213
+ ObjectId | ObjectCallArg | TransactionArgument,
1214
+ ObjectId | ObjectCallArg | TransactionArgument,
1215
+ SuiAddress | TransactionArgument
1216
+ ]
1217
+ ): TransactionArgument &
1218
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1219
+ const _args: any[] = [];
1220
+ _args.push(
1221
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1222
+ );
1223
+ _args.push(
1224
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
1225
+ );
1226
+ _args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
1227
+
1228
+ // @ts-ignore
1229
+ return tx.moveCall({
1230
+ target: "0x3::sui_system::undo_report_validator",
1231
+ arguments: _args,
1232
+ });
1233
+ }
1234
+ export function updateCandidateValidatorNetworkAddress(
1235
+ tx: TransactionBlock,
1236
+ args: [
1237
+ ObjectId | ObjectCallArg | TransactionArgument,
1238
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1239
+ ObjectId | ObjectCallArg | TransactionArgument
1240
+ ]
1241
+ ): TransactionArgument &
1242
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1243
+ const _args: any[] = [];
1244
+ _args.push(
1245
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1246
+ );
1247
+ _args.push(
1248
+ TransactionArgument.is(args[1])
1249
+ ? args[1]
1250
+ : tx.makeMoveVec({
1251
+ objects: args[1].map((a: any) => tx.object(a)),
1252
+ // type: TODO
1253
+ })
1254
+ );
1255
+ _args.push(
1256
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1257
+ );
1258
+
1259
+ // @ts-ignore
1260
+ return tx.moveCall({
1261
+ target: "0x3::sui_system::update_candidate_validator_network_address",
1262
+ arguments: _args,
1263
+ });
1264
+ }
1265
+ export function updateCandidateValidatorNetworkPubkey(
1266
+ tx: TransactionBlock,
1267
+ args: [
1268
+ ObjectId | ObjectCallArg | TransactionArgument,
1269
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1270
+ ObjectId | ObjectCallArg | TransactionArgument
1271
+ ]
1272
+ ): TransactionArgument &
1273
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1274
+ const _args: any[] = [];
1275
+ _args.push(
1276
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1277
+ );
1278
+ _args.push(
1279
+ TransactionArgument.is(args[1])
1280
+ ? args[1]
1281
+ : tx.makeMoveVec({
1282
+ objects: args[1].map((a: any) => tx.object(a)),
1283
+ // type: TODO
1284
+ })
1285
+ );
1286
+ _args.push(
1287
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1288
+ );
1289
+
1290
+ // @ts-ignore
1291
+ return tx.moveCall({
1292
+ target: "0x3::sui_system::update_candidate_validator_network_pubkey",
1293
+ arguments: _args,
1294
+ });
1295
+ }
1296
+ export function updateCandidateValidatorP2pAddress(
1297
+ tx: TransactionBlock,
1298
+ args: [
1299
+ ObjectId | ObjectCallArg | TransactionArgument,
1300
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1301
+ ObjectId | ObjectCallArg | TransactionArgument
1302
+ ]
1303
+ ): TransactionArgument &
1304
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1305
+ const _args: any[] = [];
1306
+ _args.push(
1307
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1308
+ );
1309
+ _args.push(
1310
+ TransactionArgument.is(args[1])
1311
+ ? args[1]
1312
+ : tx.makeMoveVec({
1313
+ objects: args[1].map((a: any) => tx.object(a)),
1314
+ // type: TODO
1315
+ })
1316
+ );
1317
+ _args.push(
1318
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1319
+ );
1320
+
1321
+ // @ts-ignore
1322
+ return tx.moveCall({
1323
+ target: "0x3::sui_system::update_candidate_validator_p2p_address",
1324
+ arguments: _args,
1325
+ });
1326
+ }
1327
+ export function updateCandidateValidatorPrimaryAddress(
1328
+ tx: TransactionBlock,
1329
+ args: [
1330
+ ObjectId | ObjectCallArg | TransactionArgument,
1331
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1332
+ ObjectId | ObjectCallArg | TransactionArgument
1333
+ ]
1334
+ ): TransactionArgument &
1335
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1336
+ const _args: any[] = [];
1337
+ _args.push(
1338
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1339
+ );
1340
+ _args.push(
1341
+ TransactionArgument.is(args[1])
1342
+ ? args[1]
1343
+ : tx.makeMoveVec({
1344
+ objects: args[1].map((a: any) => tx.object(a)),
1345
+ // type: TODO
1346
+ })
1347
+ );
1348
+ _args.push(
1349
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1350
+ );
1351
+
1352
+ // @ts-ignore
1353
+ return tx.moveCall({
1354
+ target: "0x3::sui_system::update_candidate_validator_primary_address",
1355
+ arguments: _args,
1356
+ });
1357
+ }
1358
+ export function updateCandidateValidatorProtocolPubkey(
1359
+ tx: TransactionBlock,
1360
+ args: [
1361
+ ObjectId | ObjectCallArg | TransactionArgument,
1362
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1363
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1364
+ ObjectId | ObjectCallArg | TransactionArgument
1365
+ ]
1366
+ ): TransactionArgument &
1367
+ [
1368
+ TransactionArgument,
1369
+ TransactionArgument,
1370
+ TransactionArgument,
1371
+ TransactionArgument
1372
+ ] {
1373
+ const _args: any[] = [];
1374
+ _args.push(
1375
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1376
+ );
1377
+ _args.push(
1378
+ TransactionArgument.is(args[1])
1379
+ ? args[1]
1380
+ : tx.makeMoveVec({
1381
+ objects: args[1].map((a: any) => tx.object(a)),
1382
+ // type: TODO
1383
+ })
1384
+ );
1385
+ _args.push(
1386
+ TransactionArgument.is(args[2])
1387
+ ? args[2]
1388
+ : tx.makeMoveVec({
1389
+ objects: args[2].map((a: any) => tx.object(a)),
1390
+ // type: TODO
1391
+ })
1392
+ );
1393
+ _args.push(
1394
+ TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
1395
+ );
1396
+
1397
+ // @ts-ignore
1398
+ return tx.moveCall({
1399
+ target: "0x3::sui_system::update_candidate_validator_protocol_pubkey",
1400
+ arguments: _args,
1401
+ });
1402
+ }
1403
+ export function updateCandidateValidatorWorkerAddress(
1404
+ tx: TransactionBlock,
1405
+ args: [
1406
+ ObjectId | ObjectCallArg | TransactionArgument,
1407
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1408
+ ObjectId | ObjectCallArg | TransactionArgument
1409
+ ]
1410
+ ): TransactionArgument &
1411
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1412
+ const _args: any[] = [];
1413
+ _args.push(
1414
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1415
+ );
1416
+ _args.push(
1417
+ TransactionArgument.is(args[1])
1418
+ ? args[1]
1419
+ : tx.makeMoveVec({
1420
+ objects: args[1].map((a: any) => tx.object(a)),
1421
+ // type: TODO
1422
+ })
1423
+ );
1424
+ _args.push(
1425
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1426
+ );
1427
+
1428
+ // @ts-ignore
1429
+ return tx.moveCall({
1430
+ target: "0x3::sui_system::update_candidate_validator_worker_address",
1431
+ arguments: _args,
1432
+ });
1433
+ }
1434
+ export function updateCandidateValidatorWorkerPubkey(
1435
+ tx: TransactionBlock,
1436
+ args: [
1437
+ ObjectId | ObjectCallArg | TransactionArgument,
1438
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1439
+ ObjectId | ObjectCallArg | TransactionArgument
1440
+ ]
1441
+ ): TransactionArgument &
1442
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1443
+ const _args: any[] = [];
1444
+ _args.push(
1445
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1446
+ );
1447
+ _args.push(
1448
+ TransactionArgument.is(args[1])
1449
+ ? args[1]
1450
+ : tx.makeMoveVec({
1451
+ objects: args[1].map((a: any) => tx.object(a)),
1452
+ // type: TODO
1453
+ })
1454
+ );
1455
+ _args.push(
1456
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1457
+ );
1458
+
1459
+ // @ts-ignore
1460
+ return tx.moveCall({
1461
+ target: "0x3::sui_system::update_candidate_validator_worker_pubkey",
1462
+ arguments: _args,
1463
+ });
1464
+ }
1465
+ export function updateValidatorDescription(
1466
+ tx: TransactionBlock,
1467
+ args: [
1468
+ ObjectId | ObjectCallArg | TransactionArgument,
1469
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1470
+ ObjectId | ObjectCallArg | TransactionArgument
1471
+ ]
1472
+ ): TransactionArgument &
1473
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1474
+ const _args: any[] = [];
1475
+ _args.push(
1476
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1477
+ );
1478
+ _args.push(
1479
+ TransactionArgument.is(args[1])
1480
+ ? args[1]
1481
+ : tx.makeMoveVec({
1482
+ objects: args[1].map((a: any) => tx.object(a)),
1483
+ // type: TODO
1484
+ })
1485
+ );
1486
+ _args.push(
1487
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1488
+ );
1489
+
1490
+ // @ts-ignore
1491
+ return tx.moveCall({
1492
+ target: "0x3::sui_system::update_validator_description",
1493
+ arguments: _args,
1494
+ });
1495
+ }
1496
+ export function updateValidatorImageUrl(
1497
+ tx: TransactionBlock,
1498
+ args: [
1499
+ ObjectId | ObjectCallArg | TransactionArgument,
1500
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1501
+ ObjectId | ObjectCallArg | TransactionArgument
1502
+ ]
1503
+ ): TransactionArgument &
1504
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1505
+ const _args: any[] = [];
1506
+ _args.push(
1507
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1508
+ );
1509
+ _args.push(
1510
+ TransactionArgument.is(args[1])
1511
+ ? args[1]
1512
+ : tx.makeMoveVec({
1513
+ objects: args[1].map((a: any) => tx.object(a)),
1514
+ // type: TODO
1515
+ })
1516
+ );
1517
+ _args.push(
1518
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1519
+ );
1520
+
1521
+ // @ts-ignore
1522
+ return tx.moveCall({
1523
+ target: "0x3::sui_system::update_validator_image_url",
1524
+ arguments: _args,
1525
+ });
1526
+ }
1527
+ export function updateValidatorName(
1528
+ tx: TransactionBlock,
1529
+ args: [
1530
+ ObjectId | ObjectCallArg | TransactionArgument,
1531
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1532
+ ObjectId | ObjectCallArg | TransactionArgument
1533
+ ]
1534
+ ): TransactionArgument &
1535
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1536
+ const _args: any[] = [];
1537
+ _args.push(
1538
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1539
+ );
1540
+ _args.push(
1541
+ TransactionArgument.is(args[1])
1542
+ ? args[1]
1543
+ : tx.makeMoveVec({
1544
+ objects: args[1].map((a: any) => tx.object(a)),
1545
+ // type: TODO
1546
+ })
1547
+ );
1548
+ _args.push(
1549
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1550
+ );
1551
+
1552
+ // @ts-ignore
1553
+ return tx.moveCall({
1554
+ target: "0x3::sui_system::update_validator_name",
1555
+ arguments: _args,
1556
+ });
1557
+ }
1558
+ export function updateValidatorNextEpochNetworkAddress(
1559
+ tx: TransactionBlock,
1560
+ args: [
1561
+ ObjectId | ObjectCallArg | TransactionArgument,
1562
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1563
+ ObjectId | ObjectCallArg | TransactionArgument
1564
+ ]
1565
+ ): TransactionArgument &
1566
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1567
+ const _args: any[] = [];
1568
+ _args.push(
1569
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1570
+ );
1571
+ _args.push(
1572
+ TransactionArgument.is(args[1])
1573
+ ? args[1]
1574
+ : tx.makeMoveVec({
1575
+ objects: args[1].map((a: any) => tx.object(a)),
1576
+ // type: TODO
1577
+ })
1578
+ );
1579
+ _args.push(
1580
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1581
+ );
1582
+
1583
+ // @ts-ignore
1584
+ return tx.moveCall({
1585
+ target: "0x3::sui_system::update_validator_next_epoch_network_address",
1586
+ arguments: _args,
1587
+ });
1588
+ }
1589
+ export function updateValidatorNextEpochNetworkPubkey(
1590
+ tx: TransactionBlock,
1591
+ args: [
1592
+ ObjectId | ObjectCallArg | TransactionArgument,
1593
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1594
+ ObjectId | ObjectCallArg | TransactionArgument
1595
+ ]
1596
+ ): TransactionArgument &
1597
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1598
+ const _args: any[] = [];
1599
+ _args.push(
1600
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1601
+ );
1602
+ _args.push(
1603
+ TransactionArgument.is(args[1])
1604
+ ? args[1]
1605
+ : tx.makeMoveVec({
1606
+ objects: args[1].map((a: any) => tx.object(a)),
1607
+ // type: TODO
1608
+ })
1609
+ );
1610
+ _args.push(
1611
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1612
+ );
1613
+
1614
+ // @ts-ignore
1615
+ return tx.moveCall({
1616
+ target: "0x3::sui_system::update_validator_next_epoch_network_pubkey",
1617
+ arguments: _args,
1618
+ });
1619
+ }
1620
+ export function updateValidatorNextEpochP2pAddress(
1621
+ tx: TransactionBlock,
1622
+ args: [
1623
+ ObjectId | ObjectCallArg | TransactionArgument,
1624
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1625
+ ObjectId | ObjectCallArg | TransactionArgument
1626
+ ]
1627
+ ): TransactionArgument &
1628
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1629
+ const _args: any[] = [];
1630
+ _args.push(
1631
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1632
+ );
1633
+ _args.push(
1634
+ TransactionArgument.is(args[1])
1635
+ ? args[1]
1636
+ : tx.makeMoveVec({
1637
+ objects: args[1].map((a: any) => tx.object(a)),
1638
+ // type: TODO
1639
+ })
1640
+ );
1641
+ _args.push(
1642
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1643
+ );
1644
+
1645
+ // @ts-ignore
1646
+ return tx.moveCall({
1647
+ target: "0x3::sui_system::update_validator_next_epoch_p2p_address",
1648
+ arguments: _args,
1649
+ });
1650
+ }
1651
+ export function updateValidatorNextEpochPrimaryAddress(
1652
+ tx: TransactionBlock,
1653
+ args: [
1654
+ ObjectId | ObjectCallArg | TransactionArgument,
1655
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1656
+ ObjectId | ObjectCallArg | TransactionArgument
1657
+ ]
1658
+ ): TransactionArgument &
1659
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1660
+ const _args: any[] = [];
1661
+ _args.push(
1662
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1663
+ );
1664
+ _args.push(
1665
+ TransactionArgument.is(args[1])
1666
+ ? args[1]
1667
+ : tx.makeMoveVec({
1668
+ objects: args[1].map((a: any) => tx.object(a)),
1669
+ // type: TODO
1670
+ })
1671
+ );
1672
+ _args.push(
1673
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1674
+ );
1675
+
1676
+ // @ts-ignore
1677
+ return tx.moveCall({
1678
+ target: "0x3::sui_system::update_validator_next_epoch_primary_address",
1679
+ arguments: _args,
1680
+ });
1681
+ }
1682
+ export function updateValidatorNextEpochProtocolPubkey(
1683
+ tx: TransactionBlock,
1684
+ args: [
1685
+ ObjectId | ObjectCallArg | TransactionArgument,
1686
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1687
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1688
+ ObjectId | ObjectCallArg | TransactionArgument
1689
+ ]
1690
+ ): TransactionArgument &
1691
+ [
1692
+ TransactionArgument,
1693
+ TransactionArgument,
1694
+ TransactionArgument,
1695
+ TransactionArgument
1696
+ ] {
1697
+ const _args: any[] = [];
1698
+ _args.push(
1699
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1700
+ );
1701
+ _args.push(
1702
+ TransactionArgument.is(args[1])
1703
+ ? args[1]
1704
+ : tx.makeMoveVec({
1705
+ objects: args[1].map((a: any) => tx.object(a)),
1706
+ // type: TODO
1707
+ })
1708
+ );
1709
+ _args.push(
1710
+ TransactionArgument.is(args[2])
1711
+ ? args[2]
1712
+ : tx.makeMoveVec({
1713
+ objects: args[2].map((a: any) => tx.object(a)),
1714
+ // type: TODO
1715
+ })
1716
+ );
1717
+ _args.push(
1718
+ TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3])
1719
+ );
1720
+
1721
+ // @ts-ignore
1722
+ return tx.moveCall({
1723
+ target: "0x3::sui_system::update_validator_next_epoch_protocol_pubkey",
1724
+ arguments: _args,
1725
+ });
1726
+ }
1727
+ export function updateValidatorNextEpochWorkerAddress(
1728
+ tx: TransactionBlock,
1729
+ args: [
1730
+ ObjectId | ObjectCallArg | TransactionArgument,
1731
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1732
+ ObjectId | ObjectCallArg | TransactionArgument
1733
+ ]
1734
+ ): TransactionArgument &
1735
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1736
+ const _args: any[] = [];
1737
+ _args.push(
1738
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1739
+ );
1740
+ _args.push(
1741
+ TransactionArgument.is(args[1])
1742
+ ? args[1]
1743
+ : tx.makeMoveVec({
1744
+ objects: args[1].map((a: any) => tx.object(a)),
1745
+ // type: TODO
1746
+ })
1747
+ );
1748
+ _args.push(
1749
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1750
+ );
1751
+
1752
+ // @ts-ignore
1753
+ return tx.moveCall({
1754
+ target: "0x3::sui_system::update_validator_next_epoch_worker_address",
1755
+ arguments: _args,
1756
+ });
1757
+ }
1758
+ export function updateValidatorNextEpochWorkerPubkey(
1759
+ tx: TransactionBlock,
1760
+ args: [
1761
+ ObjectId | ObjectCallArg | TransactionArgument,
1762
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1763
+ ObjectId | ObjectCallArg | TransactionArgument
1764
+ ]
1765
+ ): TransactionArgument &
1766
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1767
+ const _args: any[] = [];
1768
+ _args.push(
1769
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1770
+ );
1771
+ _args.push(
1772
+ TransactionArgument.is(args[1])
1773
+ ? args[1]
1774
+ : tx.makeMoveVec({
1775
+ objects: args[1].map((a: any) => tx.object(a)),
1776
+ // type: TODO
1777
+ })
1778
+ );
1779
+ _args.push(
1780
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1781
+ );
1782
+
1783
+ // @ts-ignore
1784
+ return tx.moveCall({
1785
+ target: "0x3::sui_system::update_validator_next_epoch_worker_pubkey",
1786
+ arguments: _args,
1787
+ });
1788
+ }
1789
+ export function updateValidatorProjectUrl(
1790
+ tx: TransactionBlock,
1791
+ args: [
1792
+ ObjectId | ObjectCallArg | TransactionArgument,
1793
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1794
+ ObjectId | ObjectCallArg | TransactionArgument
1795
+ ]
1796
+ ): TransactionArgument &
1797
+ [TransactionArgument, TransactionArgument, TransactionArgument] {
1798
+ const _args: any[] = [];
1799
+ _args.push(
1800
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
1801
+ );
1802
+ _args.push(
1803
+ TransactionArgument.is(args[1])
1804
+ ? args[1]
1805
+ : tx.makeMoveVec({
1806
+ objects: args[1].map((a: any) => tx.object(a)),
1807
+ // type: TODO
1808
+ })
1809
+ );
1810
+ _args.push(
1811
+ TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2])
1812
+ );
1813
+
1814
+ // @ts-ignore
1815
+ return tx.moveCall({
1816
+ target: "0x3::sui_system::update_validator_project_url",
1817
+ arguments: _args,
1818
+ });
1819
+ }
1820
+ }
1821
+ export namespace view {
1822
+ export async function reportValidator(
1823
+ provider: JsonRpcProvider,
1824
+ args: [
1825
+ ObjectId | ObjectCallArg | TransactionArgument,
1826
+ ObjectId | ObjectCallArg | TransactionArgument,
1827
+ SuiAddress | TransactionArgument
1828
+ ]
1829
+ ) {
1830
+ const tx = new TransactionBlock();
1831
+ builder.reportValidator(tx, args);
1832
+ const res = await provider.devInspectTransactionBlock({
1833
+ transactionBlock: tx,
1834
+ sender: ZERO_ADDRESS,
1835
+ });
1836
+ return res;
1837
+ }
1838
+ export async function requestAddStake(
1839
+ provider: JsonRpcProvider,
1840
+ args: [
1841
+ ObjectId | ObjectCallArg | TransactionArgument,
1842
+ _0x2.coin.Coin<_0x2.sui.SUI> | TransactionArgument,
1843
+ SuiAddress | TransactionArgument,
1844
+ ObjectId | ObjectCallArg | TransactionArgument
1845
+ ]
1846
+ ) {
1847
+ const tx = new TransactionBlock();
1848
+ builder.requestAddStake(tx, args);
1849
+ const res = await provider.devInspectTransactionBlock({
1850
+ transactionBlock: tx,
1851
+ sender: ZERO_ADDRESS,
1852
+ });
1853
+ return res;
1854
+ }
1855
+ export async function requestAddStakeMulCoin(
1856
+ provider: JsonRpcProvider,
1857
+ args: [
1858
+ ObjectId | ObjectCallArg | TransactionArgument,
1859
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1860
+ _0x1.option.Option<bigint> | TransactionArgument,
1861
+ SuiAddress | TransactionArgument,
1862
+ ObjectId | ObjectCallArg | TransactionArgument
1863
+ ]
1864
+ ) {
1865
+ const tx = new TransactionBlock();
1866
+ builder.requestAddStakeMulCoin(tx, args);
1867
+ const res = await provider.devInspectTransactionBlock({
1868
+ transactionBlock: tx,
1869
+ sender: ZERO_ADDRESS,
1870
+ });
1871
+ return res;
1872
+ }
1873
+ export async function requestAddValidator(
1874
+ provider: JsonRpcProvider,
1875
+ args: [
1876
+ ObjectId | ObjectCallArg | TransactionArgument,
1877
+ ObjectId | ObjectCallArg | TransactionArgument
1878
+ ]
1879
+ ) {
1880
+ const tx = new TransactionBlock();
1881
+ builder.requestAddValidator(tx, args);
1882
+ const res = await provider.devInspectTransactionBlock({
1883
+ transactionBlock: tx,
1884
+ sender: ZERO_ADDRESS,
1885
+ });
1886
+ return res;
1887
+ }
1888
+ export async function requestAddValidatorCandidate(
1889
+ provider: JsonRpcProvider,
1890
+ args: [
1891
+ ObjectId | ObjectCallArg | TransactionArgument,
1892
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1893
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1894
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1895
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1896
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1897
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1898
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1899
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1900
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1901
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1902
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1903
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
1904
+ bigint | TransactionArgument,
1905
+ bigint | TransactionArgument,
1906
+ ObjectId | ObjectCallArg | TransactionArgument
1907
+ ]
1908
+ ) {
1909
+ const tx = new TransactionBlock();
1910
+ builder.requestAddValidatorCandidate(tx, args);
1911
+ const res = await provider.devInspectTransactionBlock({
1912
+ transactionBlock: tx,
1913
+ sender: ZERO_ADDRESS,
1914
+ });
1915
+ return res;
1916
+ }
1917
+ export async function requestRemoveValidator(
1918
+ provider: JsonRpcProvider,
1919
+ args: [
1920
+ ObjectId | ObjectCallArg | TransactionArgument,
1921
+ ObjectId | ObjectCallArg | TransactionArgument
1922
+ ]
1923
+ ) {
1924
+ const tx = new TransactionBlock();
1925
+ builder.requestRemoveValidator(tx, args);
1926
+ const res = await provider.devInspectTransactionBlock({
1927
+ transactionBlock: tx,
1928
+ sender: ZERO_ADDRESS,
1929
+ });
1930
+ return res;
1931
+ }
1932
+ export async function requestRemoveValidatorCandidate(
1933
+ provider: JsonRpcProvider,
1934
+ args: [
1935
+ ObjectId | ObjectCallArg | TransactionArgument,
1936
+ ObjectId | ObjectCallArg | TransactionArgument
1937
+ ]
1938
+ ) {
1939
+ const tx = new TransactionBlock();
1940
+ builder.requestRemoveValidatorCandidate(tx, args);
1941
+ const res = await provider.devInspectTransactionBlock({
1942
+ transactionBlock: tx,
1943
+ sender: ZERO_ADDRESS,
1944
+ });
1945
+ return res;
1946
+ }
1947
+ export async function requestSetCommissionRate(
1948
+ provider: JsonRpcProvider,
1949
+ args: [
1950
+ ObjectId | ObjectCallArg | TransactionArgument,
1951
+ bigint | TransactionArgument,
1952
+ ObjectId | ObjectCallArg | TransactionArgument
1953
+ ]
1954
+ ) {
1955
+ const tx = new TransactionBlock();
1956
+ builder.requestSetCommissionRate(tx, args);
1957
+ const res = await provider.devInspectTransactionBlock({
1958
+ transactionBlock: tx,
1959
+ sender: ZERO_ADDRESS,
1960
+ });
1961
+ return res;
1962
+ }
1963
+ export async function requestSetGasPrice(
1964
+ provider: JsonRpcProvider,
1965
+ args: [
1966
+ ObjectId | ObjectCallArg | TransactionArgument,
1967
+ ObjectId | ObjectCallArg | TransactionArgument,
1968
+ bigint | TransactionArgument
1969
+ ]
1970
+ ) {
1971
+ const tx = new TransactionBlock();
1972
+ builder.requestSetGasPrice(tx, args);
1973
+ const res = await provider.devInspectTransactionBlock({
1974
+ transactionBlock: tx,
1975
+ sender: ZERO_ADDRESS,
1976
+ });
1977
+ return res;
1978
+ }
1979
+ export async function requestWithdrawStake(
1980
+ provider: JsonRpcProvider,
1981
+ args: [
1982
+ ObjectId | ObjectCallArg | TransactionArgument,
1983
+ staking_pool.StakedSui | TransactionArgument,
1984
+ ObjectId | ObjectCallArg | TransactionArgument
1985
+ ]
1986
+ ) {
1987
+ const tx = new TransactionBlock();
1988
+ builder.requestWithdrawStake(tx, args);
1989
+ const res = await provider.devInspectTransactionBlock({
1990
+ transactionBlock: tx,
1991
+ sender: ZERO_ADDRESS,
1992
+ });
1993
+ return res;
1994
+ }
1995
+ export async function rotateOperationCap(
1996
+ provider: JsonRpcProvider,
1997
+ args: [
1998
+ ObjectId | ObjectCallArg | TransactionArgument,
1999
+ ObjectId | ObjectCallArg | TransactionArgument
2000
+ ]
2001
+ ) {
2002
+ const tx = new TransactionBlock();
2003
+ builder.rotateOperationCap(tx, args);
2004
+ const res = await provider.devInspectTransactionBlock({
2005
+ transactionBlock: tx,
2006
+ sender: ZERO_ADDRESS,
2007
+ });
2008
+ return res;
2009
+ }
2010
+ export async function setCandidateValidatorCommissionRate(
2011
+ provider: JsonRpcProvider,
2012
+ args: [
2013
+ ObjectId | ObjectCallArg | TransactionArgument,
2014
+ bigint | TransactionArgument,
2015
+ ObjectId | ObjectCallArg | TransactionArgument
2016
+ ]
2017
+ ) {
2018
+ const tx = new TransactionBlock();
2019
+ builder.setCandidateValidatorCommissionRate(tx, args);
2020
+ const res = await provider.devInspectTransactionBlock({
2021
+ transactionBlock: tx,
2022
+ sender: ZERO_ADDRESS,
2023
+ });
2024
+ return res;
2025
+ }
2026
+ export async function setCandidateValidatorGasPrice(
2027
+ provider: JsonRpcProvider,
2028
+ args: [
2029
+ ObjectId | ObjectCallArg | TransactionArgument,
2030
+ ObjectId | ObjectCallArg | TransactionArgument,
2031
+ bigint | TransactionArgument
2032
+ ]
2033
+ ) {
2034
+ const tx = new TransactionBlock();
2035
+ builder.setCandidateValidatorGasPrice(tx, args);
2036
+ const res = await provider.devInspectTransactionBlock({
2037
+ transactionBlock: tx,
2038
+ sender: ZERO_ADDRESS,
2039
+ });
2040
+ return res;
2041
+ }
2042
+ export async function undoReportValidator(
2043
+ provider: JsonRpcProvider,
2044
+ args: [
2045
+ ObjectId | ObjectCallArg | TransactionArgument,
2046
+ ObjectId | ObjectCallArg | TransactionArgument,
2047
+ SuiAddress | TransactionArgument
2048
+ ]
2049
+ ) {
2050
+ const tx = new TransactionBlock();
2051
+ builder.undoReportValidator(tx, args);
2052
+ const res = await provider.devInspectTransactionBlock({
2053
+ transactionBlock: tx,
2054
+ sender: ZERO_ADDRESS,
2055
+ });
2056
+ return res;
2057
+ }
2058
+ export async function updateCandidateValidatorNetworkAddress(
2059
+ provider: JsonRpcProvider,
2060
+ args: [
2061
+ ObjectId | ObjectCallArg | TransactionArgument,
2062
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2063
+ ObjectId | ObjectCallArg | TransactionArgument
2064
+ ]
2065
+ ) {
2066
+ const tx = new TransactionBlock();
2067
+ builder.updateCandidateValidatorNetworkAddress(tx, args);
2068
+ const res = await provider.devInspectTransactionBlock({
2069
+ transactionBlock: tx,
2070
+ sender: ZERO_ADDRESS,
2071
+ });
2072
+ return res;
2073
+ }
2074
+ export async function updateCandidateValidatorNetworkPubkey(
2075
+ provider: JsonRpcProvider,
2076
+ args: [
2077
+ ObjectId | ObjectCallArg | TransactionArgument,
2078
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2079
+ ObjectId | ObjectCallArg | TransactionArgument
2080
+ ]
2081
+ ) {
2082
+ const tx = new TransactionBlock();
2083
+ builder.updateCandidateValidatorNetworkPubkey(tx, args);
2084
+ const res = await provider.devInspectTransactionBlock({
2085
+ transactionBlock: tx,
2086
+ sender: ZERO_ADDRESS,
2087
+ });
2088
+ return res;
2089
+ }
2090
+ export async function updateCandidateValidatorP2pAddress(
2091
+ provider: JsonRpcProvider,
2092
+ args: [
2093
+ ObjectId | ObjectCallArg | TransactionArgument,
2094
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2095
+ ObjectId | ObjectCallArg | TransactionArgument
2096
+ ]
2097
+ ) {
2098
+ const tx = new TransactionBlock();
2099
+ builder.updateCandidateValidatorP2pAddress(tx, args);
2100
+ const res = await provider.devInspectTransactionBlock({
2101
+ transactionBlock: tx,
2102
+ sender: ZERO_ADDRESS,
2103
+ });
2104
+ return res;
2105
+ }
2106
+ export async function updateCandidateValidatorPrimaryAddress(
2107
+ provider: JsonRpcProvider,
2108
+ args: [
2109
+ ObjectId | ObjectCallArg | TransactionArgument,
2110
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2111
+ ObjectId | ObjectCallArg | TransactionArgument
2112
+ ]
2113
+ ) {
2114
+ const tx = new TransactionBlock();
2115
+ builder.updateCandidateValidatorPrimaryAddress(tx, args);
2116
+ const res = await provider.devInspectTransactionBlock({
2117
+ transactionBlock: tx,
2118
+ sender: ZERO_ADDRESS,
2119
+ });
2120
+ return res;
2121
+ }
2122
+ export async function updateCandidateValidatorProtocolPubkey(
2123
+ provider: JsonRpcProvider,
2124
+ args: [
2125
+ ObjectId | ObjectCallArg | TransactionArgument,
2126
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2127
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2128
+ ObjectId | ObjectCallArg | TransactionArgument
2129
+ ]
2130
+ ) {
2131
+ const tx = new TransactionBlock();
2132
+ builder.updateCandidateValidatorProtocolPubkey(tx, args);
2133
+ const res = await provider.devInspectTransactionBlock({
2134
+ transactionBlock: tx,
2135
+ sender: ZERO_ADDRESS,
2136
+ });
2137
+ return res;
2138
+ }
2139
+ export async function updateCandidateValidatorWorkerAddress(
2140
+ provider: JsonRpcProvider,
2141
+ args: [
2142
+ ObjectId | ObjectCallArg | TransactionArgument,
2143
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2144
+ ObjectId | ObjectCallArg | TransactionArgument
2145
+ ]
2146
+ ) {
2147
+ const tx = new TransactionBlock();
2148
+ builder.updateCandidateValidatorWorkerAddress(tx, args);
2149
+ const res = await provider.devInspectTransactionBlock({
2150
+ transactionBlock: tx,
2151
+ sender: ZERO_ADDRESS,
2152
+ });
2153
+ return res;
2154
+ }
2155
+ export async function updateCandidateValidatorWorkerPubkey(
2156
+ provider: JsonRpcProvider,
2157
+ args: [
2158
+ ObjectId | ObjectCallArg | TransactionArgument,
2159
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2160
+ ObjectId | ObjectCallArg | TransactionArgument
2161
+ ]
2162
+ ) {
2163
+ const tx = new TransactionBlock();
2164
+ builder.updateCandidateValidatorWorkerPubkey(tx, args);
2165
+ const res = await provider.devInspectTransactionBlock({
2166
+ transactionBlock: tx,
2167
+ sender: ZERO_ADDRESS,
2168
+ });
2169
+ return res;
2170
+ }
2171
+ export async function updateValidatorDescription(
2172
+ provider: JsonRpcProvider,
2173
+ args: [
2174
+ ObjectId | ObjectCallArg | TransactionArgument,
2175
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2176
+ ObjectId | ObjectCallArg | TransactionArgument
2177
+ ]
2178
+ ) {
2179
+ const tx = new TransactionBlock();
2180
+ builder.updateValidatorDescription(tx, args);
2181
+ const res = await provider.devInspectTransactionBlock({
2182
+ transactionBlock: tx,
2183
+ sender: ZERO_ADDRESS,
2184
+ });
2185
+ return res;
2186
+ }
2187
+ export async function updateValidatorImageUrl(
2188
+ provider: JsonRpcProvider,
2189
+ args: [
2190
+ ObjectId | ObjectCallArg | TransactionArgument,
2191
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2192
+ ObjectId | ObjectCallArg | TransactionArgument
2193
+ ]
2194
+ ) {
2195
+ const tx = new TransactionBlock();
2196
+ builder.updateValidatorImageUrl(tx, args);
2197
+ const res = await provider.devInspectTransactionBlock({
2198
+ transactionBlock: tx,
2199
+ sender: ZERO_ADDRESS,
2200
+ });
2201
+ return res;
2202
+ }
2203
+ export async function updateValidatorName(
2204
+ provider: JsonRpcProvider,
2205
+ args: [
2206
+ ObjectId | ObjectCallArg | TransactionArgument,
2207
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2208
+ ObjectId | ObjectCallArg | TransactionArgument
2209
+ ]
2210
+ ) {
2211
+ const tx = new TransactionBlock();
2212
+ builder.updateValidatorName(tx, args);
2213
+ const res = await provider.devInspectTransactionBlock({
2214
+ transactionBlock: tx,
2215
+ sender: ZERO_ADDRESS,
2216
+ });
2217
+ return res;
2218
+ }
2219
+ export async function updateValidatorNextEpochNetworkAddress(
2220
+ provider: JsonRpcProvider,
2221
+ args: [
2222
+ ObjectId | ObjectCallArg | TransactionArgument,
2223
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2224
+ ObjectId | ObjectCallArg | TransactionArgument
2225
+ ]
2226
+ ) {
2227
+ const tx = new TransactionBlock();
2228
+ builder.updateValidatorNextEpochNetworkAddress(tx, args);
2229
+ const res = await provider.devInspectTransactionBlock({
2230
+ transactionBlock: tx,
2231
+ sender: ZERO_ADDRESS,
2232
+ });
2233
+ return res;
2234
+ }
2235
+ export async function updateValidatorNextEpochNetworkPubkey(
2236
+ provider: JsonRpcProvider,
2237
+ args: [
2238
+ ObjectId | ObjectCallArg | TransactionArgument,
2239
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2240
+ ObjectId | ObjectCallArg | TransactionArgument
2241
+ ]
2242
+ ) {
2243
+ const tx = new TransactionBlock();
2244
+ builder.updateValidatorNextEpochNetworkPubkey(tx, args);
2245
+ const res = await provider.devInspectTransactionBlock({
2246
+ transactionBlock: tx,
2247
+ sender: ZERO_ADDRESS,
2248
+ });
2249
+ return res;
2250
+ }
2251
+ export async function updateValidatorNextEpochP2pAddress(
2252
+ provider: JsonRpcProvider,
2253
+ args: [
2254
+ ObjectId | ObjectCallArg | TransactionArgument,
2255
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2256
+ ObjectId | ObjectCallArg | TransactionArgument
2257
+ ]
2258
+ ) {
2259
+ const tx = new TransactionBlock();
2260
+ builder.updateValidatorNextEpochP2pAddress(tx, args);
2261
+ const res = await provider.devInspectTransactionBlock({
2262
+ transactionBlock: tx,
2263
+ sender: ZERO_ADDRESS,
2264
+ });
2265
+ return res;
2266
+ }
2267
+ export async function updateValidatorNextEpochPrimaryAddress(
2268
+ provider: JsonRpcProvider,
2269
+ args: [
2270
+ ObjectId | ObjectCallArg | TransactionArgument,
2271
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2272
+ ObjectId | ObjectCallArg | TransactionArgument
2273
+ ]
2274
+ ) {
2275
+ const tx = new TransactionBlock();
2276
+ builder.updateValidatorNextEpochPrimaryAddress(tx, args);
2277
+ const res = await provider.devInspectTransactionBlock({
2278
+ transactionBlock: tx,
2279
+ sender: ZERO_ADDRESS,
2280
+ });
2281
+ return res;
2282
+ }
2283
+ export async function updateValidatorNextEpochProtocolPubkey(
2284
+ provider: JsonRpcProvider,
2285
+ args: [
2286
+ ObjectId | ObjectCallArg | TransactionArgument,
2287
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2288
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2289
+ ObjectId | ObjectCallArg | TransactionArgument
2290
+ ]
2291
+ ) {
2292
+ const tx = new TransactionBlock();
2293
+ builder.updateValidatorNextEpochProtocolPubkey(tx, args);
2294
+ const res = await provider.devInspectTransactionBlock({
2295
+ transactionBlock: tx,
2296
+ sender: ZERO_ADDRESS,
2297
+ });
2298
+ return res;
2299
+ }
2300
+ export async function updateValidatorNextEpochWorkerAddress(
2301
+ provider: JsonRpcProvider,
2302
+ args: [
2303
+ ObjectId | ObjectCallArg | TransactionArgument,
2304
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2305
+ ObjectId | ObjectCallArg | TransactionArgument
2306
+ ]
2307
+ ) {
2308
+ const tx = new TransactionBlock();
2309
+ builder.updateValidatorNextEpochWorkerAddress(tx, args);
2310
+ const res = await provider.devInspectTransactionBlock({
2311
+ transactionBlock: tx,
2312
+ sender: ZERO_ADDRESS,
2313
+ });
2314
+ return res;
2315
+ }
2316
+ export async function updateValidatorNextEpochWorkerPubkey(
2317
+ provider: JsonRpcProvider,
2318
+ args: [
2319
+ ObjectId | ObjectCallArg | TransactionArgument,
2320
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2321
+ ObjectId | ObjectCallArg | TransactionArgument
2322
+ ]
2323
+ ) {
2324
+ const tx = new TransactionBlock();
2325
+ builder.updateValidatorNextEpochWorkerPubkey(tx, args);
2326
+ const res = await provider.devInspectTransactionBlock({
2327
+ transactionBlock: tx,
2328
+ sender: ZERO_ADDRESS,
2329
+ });
2330
+ return res;
2331
+ }
2332
+ export async function updateValidatorProjectUrl(
2333
+ provider: JsonRpcProvider,
2334
+ args: [
2335
+ ObjectId | ObjectCallArg | TransactionArgument,
2336
+ (ObjectId | ObjectCallArg)[] | TransactionArgument,
2337
+ ObjectId | ObjectCallArg | TransactionArgument
2338
+ ]
2339
+ ) {
2340
+ const tx = new TransactionBlock();
2341
+ builder.updateValidatorProjectUrl(tx, args);
2342
+ const res = await provider.devInspectTransactionBlock({
2343
+ transactionBlock: tx,
2344
+ sender: ZERO_ADDRESS,
2345
+ });
2346
+ return res;
2347
+ }
2348
+ }
2349
+ }
2350
+
2351
+ export namespace sui_system_state_inner {
2352
+ export interface SuiSystemStateInner {
2353
+ epoch: bigint;
2354
+ protocol_version: bigint;
2355
+ system_state_version: bigint;
2356
+ validators: validator_set.ValidatorSet;
2357
+ storage_fund: storage_fund.StorageFund;
2358
+ parameters: sui_system_state_inner.SystemParameters;
2359
+ reference_gas_price: bigint;
2360
+ validator_report_records: _0x2.vec_map.VecMap<
2361
+ SuiAddress,
2362
+ _0x2.vec_set.VecSet<SuiAddress>
2363
+ >;
2364
+ stake_subsidy: stake_subsidy.StakeSubsidy;
2365
+ safe_mode: Boolean;
2366
+ safe_mode_storage_rewards: _0x2.balance.Balance<_0x2.sui.SUI>;
2367
+ safe_mode_computation_rewards: _0x2.balance.Balance<_0x2.sui.SUI>;
2368
+ safe_mode_storage_rebates: bigint;
2369
+ safe_mode_non_refundable_storage_fee: bigint;
2370
+ epoch_start_timestamp_ms: bigint;
2371
+ extra_fields: _0x2.bag.Bag;
2372
+ }
2373
+
2374
+ export namespace SuiSystemStateInner {
2375
+ export const TYPE_QNAME =
2376
+ "0x3::sui_system_state_inner::SuiSystemStateInner";
2377
+
2378
+ const TYPE = new TypeDescriptor<SuiSystemStateInner>(
2379
+ SuiSystemStateInner.TYPE_QNAME
2380
+ );
2381
+
2382
+ export function type(): TypeDescriptor<SuiSystemStateInner> {
2383
+ return TYPE.apply();
2384
+ }
2385
+ }
2386
+
2387
+ export interface SuiSystemStateInnerV2 {
2388
+ epoch: bigint;
2389
+ protocol_version: bigint;
2390
+ system_state_version: bigint;
2391
+ validators: validator_set.ValidatorSet;
2392
+ storage_fund: storage_fund.StorageFund;
2393
+ parameters: sui_system_state_inner.SystemParametersV2;
2394
+ reference_gas_price: bigint;
2395
+ validator_report_records: _0x2.vec_map.VecMap<
2396
+ SuiAddress,
2397
+ _0x2.vec_set.VecSet<SuiAddress>
2398
+ >;
2399
+ stake_subsidy: stake_subsidy.StakeSubsidy;
2400
+ safe_mode: Boolean;
2401
+ safe_mode_storage_rewards: _0x2.balance.Balance<_0x2.sui.SUI>;
2402
+ safe_mode_computation_rewards: _0x2.balance.Balance<_0x2.sui.SUI>;
2403
+ safe_mode_storage_rebates: bigint;
2404
+ safe_mode_non_refundable_storage_fee: bigint;
2405
+ epoch_start_timestamp_ms: bigint;
2406
+ extra_fields: _0x2.bag.Bag;
2407
+ }
2408
+
2409
+ export namespace SuiSystemStateInnerV2 {
2410
+ export const TYPE_QNAME =
2411
+ "0x3::sui_system_state_inner::SuiSystemStateInnerV2";
2412
+
2413
+ const TYPE = new TypeDescriptor<SuiSystemStateInnerV2>(
2414
+ SuiSystemStateInnerV2.TYPE_QNAME
2415
+ );
2416
+
2417
+ export function type(): TypeDescriptor<SuiSystemStateInnerV2> {
2418
+ return TYPE.apply();
2419
+ }
2420
+ }
2421
+
2422
+ export interface SystemEpochInfoEvent {
2423
+ epoch: bigint;
2424
+ protocol_version: bigint;
2425
+ reference_gas_price: bigint;
2426
+ total_stake: bigint;
2427
+ storage_fund_reinvestment: bigint;
2428
+ storage_charge: bigint;
2429
+ storage_rebate: bigint;
2430
+ storage_fund_balance: bigint;
2431
+ stake_subsidy_amount: bigint;
2432
+ total_gas_fees: bigint;
2433
+ total_stake_rewards_distributed: bigint;
2434
+ leftover_storage_fund_inflow: bigint;
2435
+ }
2436
+
2437
+ export namespace SystemEpochInfoEvent {
2438
+ export const TYPE_QNAME =
2439
+ "0x3::sui_system_state_inner::SystemEpochInfoEvent";
2440
+
2441
+ const TYPE = new TypeDescriptor<SystemEpochInfoEvent>(
2442
+ SystemEpochInfoEvent.TYPE_QNAME
2443
+ );
2444
+
2445
+ export function type(): TypeDescriptor<SystemEpochInfoEvent> {
2446
+ return TYPE.apply();
2447
+ }
2448
+ }
2449
+
2450
+ export interface SystemEpochInfoEventInstance
2451
+ extends TypedEventInstance<SystemEpochInfoEvent> {
2452
+ data_decoded: SystemEpochInfoEvent;
2453
+ type_arguments: [];
2454
+ }
2455
+
2456
+ export interface SystemParameters {
2457
+ epoch_duration_ms: bigint;
2458
+ stake_subsidy_start_epoch: bigint;
2459
+ max_validator_count: bigint;
2460
+ min_validator_joining_stake: bigint;
2461
+ validator_low_stake_threshold: bigint;
2462
+ validator_very_low_stake_threshold: bigint;
2463
+ validator_low_stake_grace_period: bigint;
2464
+ extra_fields: _0x2.bag.Bag;
2465
+ }
2466
+
2467
+ export namespace SystemParameters {
2468
+ export const TYPE_QNAME = "0x3::sui_system_state_inner::SystemParameters";
2469
+
2470
+ const TYPE = new TypeDescriptor<SystemParameters>(
2471
+ SystemParameters.TYPE_QNAME
2472
+ );
2473
+
2474
+ export function type(): TypeDescriptor<SystemParameters> {
2475
+ return TYPE.apply();
2476
+ }
2477
+ }
2478
+
2479
+ export interface SystemParametersV2 {
2480
+ epoch_duration_ms: bigint;
2481
+ stake_subsidy_start_epoch: bigint;
2482
+ min_validator_count: bigint;
2483
+ max_validator_count: bigint;
2484
+ min_validator_joining_stake: bigint;
2485
+ validator_low_stake_threshold: bigint;
2486
+ validator_very_low_stake_threshold: bigint;
2487
+ validator_low_stake_grace_period: bigint;
2488
+ extra_fields: _0x2.bag.Bag;
2489
+ }
2490
+
2491
+ export namespace SystemParametersV2 {
2492
+ export const TYPE_QNAME = "0x3::sui_system_state_inner::SystemParametersV2";
2493
+
2494
+ const TYPE = new TypeDescriptor<SystemParametersV2>(
2495
+ SystemParametersV2.TYPE_QNAME
2496
+ );
2497
+
2498
+ export function type(): TypeDescriptor<SystemParametersV2> {
2499
+ return TYPE.apply();
2500
+ }
2501
+ }
2502
+
2503
+ export namespace builder {}
2504
+ export namespace view {}
2505
+ }
2506
+
2507
+ export namespace validator {
2508
+ export interface StakingRequestEvent {
2509
+ pool_id: _0x2.object_.ID;
2510
+ validator_address: SuiAddress;
2511
+ staker_address: SuiAddress;
2512
+ epoch: bigint;
2513
+ amount: bigint;
2514
+ }
2515
+
2516
+ export namespace StakingRequestEvent {
2517
+ export const TYPE_QNAME = "0x3::validator::StakingRequestEvent";
2518
+
2519
+ const TYPE = new TypeDescriptor<StakingRequestEvent>(
2520
+ StakingRequestEvent.TYPE_QNAME
2521
+ );
2522
+
2523
+ export function type(): TypeDescriptor<StakingRequestEvent> {
2524
+ return TYPE.apply();
2525
+ }
2526
+ }
2527
+
2528
+ export interface StakingRequestEventInstance
2529
+ extends TypedEventInstance<StakingRequestEvent> {
2530
+ data_decoded: StakingRequestEvent;
2531
+ type_arguments: [];
2532
+ }
2533
+
2534
+ export interface UnstakingRequestEvent {
2535
+ pool_id: _0x2.object_.ID;
2536
+ validator_address: SuiAddress;
2537
+ staker_address: SuiAddress;
2538
+ stake_activation_epoch: bigint;
2539
+ unstaking_epoch: bigint;
2540
+ principal_amount: bigint;
2541
+ reward_amount: bigint;
2542
+ }
2543
+
2544
+ export namespace UnstakingRequestEvent {
2545
+ export const TYPE_QNAME = "0x3::validator::UnstakingRequestEvent";
2546
+
2547
+ const TYPE = new TypeDescriptor<UnstakingRequestEvent>(
2548
+ UnstakingRequestEvent.TYPE_QNAME
2549
+ );
2550
+
2551
+ export function type(): TypeDescriptor<UnstakingRequestEvent> {
2552
+ return TYPE.apply();
2553
+ }
2554
+ }
2555
+
2556
+ export interface UnstakingRequestEventInstance
2557
+ extends TypedEventInstance<UnstakingRequestEvent> {
2558
+ data_decoded: UnstakingRequestEvent;
2559
+ type_arguments: [];
2560
+ }
2561
+
2562
+ export interface Validator {
2563
+ metadata: validator.ValidatorMetadata;
2564
+ voting_power: bigint;
2565
+ operation_cap_id: _0x2.object_.ID;
2566
+ gas_price: bigint;
2567
+ staking_pool: staking_pool.StakingPool;
2568
+ commission_rate: bigint;
2569
+ next_epoch_stake: bigint;
2570
+ next_epoch_gas_price: bigint;
2571
+ next_epoch_commission_rate: bigint;
2572
+ extra_fields: _0x2.bag.Bag;
2573
+ }
2574
+
2575
+ export namespace Validator {
2576
+ export const TYPE_QNAME = "0x3::validator::Validator";
2577
+
2578
+ const TYPE = new TypeDescriptor<Validator>(Validator.TYPE_QNAME);
2579
+
2580
+ export function type(): TypeDescriptor<Validator> {
2581
+ return TYPE.apply();
2582
+ }
2583
+ }
2584
+
2585
+ export interface ValidatorMetadata {
2586
+ sui_address: SuiAddress;
2587
+ protocol_pubkey_bytes: number[];
2588
+ network_pubkey_bytes: number[];
2589
+ worker_pubkey_bytes: number[];
2590
+ proof_of_possession: number[];
2591
+ name: string;
2592
+ description: string;
2593
+ image_url: _0x2.url.Url;
2594
+ project_url: _0x2.url.Url;
2595
+ net_address: string;
2596
+ p2p_address: string;
2597
+ primary_address: string;
2598
+ worker_address: string;
2599
+ next_epoch_protocol_pubkey_bytes: _0x1.option.Option<number[]>;
2600
+ next_epoch_proof_of_possession: _0x1.option.Option<number[]>;
2601
+ next_epoch_network_pubkey_bytes: _0x1.option.Option<number[]>;
2602
+ next_epoch_worker_pubkey_bytes: _0x1.option.Option<number[]>;
2603
+ next_epoch_net_address: _0x1.option.Option<string>;
2604
+ next_epoch_p2p_address: _0x1.option.Option<string>;
2605
+ next_epoch_primary_address: _0x1.option.Option<string>;
2606
+ next_epoch_worker_address: _0x1.option.Option<string>;
2607
+ extra_fields: _0x2.bag.Bag;
2608
+ }
2609
+
2610
+ export namespace ValidatorMetadata {
2611
+ export const TYPE_QNAME = "0x3::validator::ValidatorMetadata";
2612
+
2613
+ const TYPE = new TypeDescriptor<ValidatorMetadata>(
2614
+ ValidatorMetadata.TYPE_QNAME
2615
+ );
2616
+
2617
+ export function type(): TypeDescriptor<ValidatorMetadata> {
2618
+ return TYPE.apply();
2619
+ }
2620
+ }
2621
+
2622
+ export namespace builder {
2623
+ export function commissionRate(
2624
+ tx: TransactionBlock,
2625
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2626
+ ): TransactionArgument & [TransactionArgument] {
2627
+ const _args: any[] = [];
2628
+ _args.push(
2629
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2630
+ );
2631
+
2632
+ // @ts-ignore
2633
+ return tx.moveCall({
2634
+ target: "0x3::validator::commission_rate",
2635
+ arguments: _args,
2636
+ });
2637
+ }
2638
+
2639
+ export function description(
2640
+ tx: TransactionBlock,
2641
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2642
+ ): TransactionArgument & [TransactionArgument] {
2643
+ const _args: any[] = [];
2644
+ _args.push(
2645
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2646
+ );
2647
+
2648
+ // @ts-ignore
2649
+ return tx.moveCall({
2650
+ target: "0x3::validator::description",
2651
+ arguments: _args,
2652
+ });
2653
+ }
2654
+
2655
+ export function gasPrice(
2656
+ tx: TransactionBlock,
2657
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2658
+ ): TransactionArgument & [TransactionArgument] {
2659
+ const _args: any[] = [];
2660
+ _args.push(
2661
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2662
+ );
2663
+
2664
+ // @ts-ignore
2665
+ return tx.moveCall({
2666
+ target: "0x3::validator::gas_price",
2667
+ arguments: _args,
2668
+ });
2669
+ }
2670
+ export function imageUrl(
2671
+ tx: TransactionBlock,
2672
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2673
+ ): TransactionArgument & [TransactionArgument] {
2674
+ const _args: any[] = [];
2675
+ _args.push(
2676
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2677
+ );
2678
+
2679
+ // @ts-ignore
2680
+ return tx.moveCall({
2681
+ target: "0x3::validator::image_url",
2682
+ arguments: _args,
2683
+ });
2684
+ }
2685
+ export function isDuplicate(
2686
+ tx: TransactionBlock,
2687
+ args: [
2688
+ ObjectId | ObjectCallArg | TransactionArgument,
2689
+ ObjectId | ObjectCallArg | TransactionArgument
2690
+ ]
2691
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2692
+ const _args: any[] = [];
2693
+ _args.push(
2694
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2695
+ );
2696
+ _args.push(
2697
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
2698
+ );
2699
+
2700
+ // @ts-ignore
2701
+ return tx.moveCall({
2702
+ target: "0x3::validator::is_duplicate",
2703
+ arguments: _args,
2704
+ });
2705
+ }
2706
+ export function isPreactive(
2707
+ tx: TransactionBlock,
2708
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2709
+ ): TransactionArgument & [TransactionArgument] {
2710
+ const _args: any[] = [];
2711
+ _args.push(
2712
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2713
+ );
2714
+
2715
+ // @ts-ignore
2716
+ return tx.moveCall({
2717
+ target: "0x3::validator::is_preactive",
2718
+ arguments: _args,
2719
+ });
2720
+ }
2721
+ export function metadata(
2722
+ tx: TransactionBlock,
2723
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2724
+ ): TransactionArgument & [TransactionArgument] {
2725
+ const _args: any[] = [];
2726
+ _args.push(
2727
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2728
+ );
2729
+
2730
+ // @ts-ignore
2731
+ return tx.moveCall({
2732
+ target: "0x3::validator::metadata",
2733
+ arguments: _args,
2734
+ });
2735
+ }
2736
+ export function name(
2737
+ tx: TransactionBlock,
2738
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2739
+ ): TransactionArgument & [TransactionArgument] {
2740
+ const _args: any[] = [];
2741
+ _args.push(
2742
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2743
+ );
2744
+
2745
+ // @ts-ignore
2746
+ return tx.moveCall({
2747
+ target: "0x3::validator::name",
2748
+ arguments: _args,
2749
+ });
2750
+ }
2751
+ export function networkAddress(
2752
+ tx: TransactionBlock,
2753
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2754
+ ): TransactionArgument & [TransactionArgument] {
2755
+ const _args: any[] = [];
2756
+ _args.push(
2757
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2758
+ );
2759
+
2760
+ // @ts-ignore
2761
+ return tx.moveCall({
2762
+ target: "0x3::validator::network_address",
2763
+ arguments: _args,
2764
+ });
2765
+ }
2766
+ export function networkPubkeyBytes(
2767
+ tx: TransactionBlock,
2768
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2769
+ ): TransactionArgument & [TransactionArgument] {
2770
+ const _args: any[] = [];
2771
+ _args.push(
2772
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2773
+ );
2774
+
2775
+ // @ts-ignore
2776
+ return tx.moveCall({
2777
+ target: "0x3::validator::network_pubkey_bytes",
2778
+ arguments: _args,
2779
+ });
2780
+ }
2781
+
2782
+ export function nextEpochGasPrice(
2783
+ tx: TransactionBlock,
2784
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2785
+ ): TransactionArgument & [TransactionArgument] {
2786
+ const _args: any[] = [];
2787
+ _args.push(
2788
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2789
+ );
2790
+
2791
+ // @ts-ignore
2792
+ return tx.moveCall({
2793
+ target: "0x3::validator::next_epoch_gas_price",
2794
+ arguments: _args,
2795
+ });
2796
+ }
2797
+ export function nextEpochNetworkAddress(
2798
+ tx: TransactionBlock,
2799
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2800
+ ): TransactionArgument & [TransactionArgument] {
2801
+ const _args: any[] = [];
2802
+ _args.push(
2803
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2804
+ );
2805
+
2806
+ // @ts-ignore
2807
+ return tx.moveCall({
2808
+ target: "0x3::validator::next_epoch_network_address",
2809
+ arguments: _args,
2810
+ });
2811
+ }
2812
+ export function nextEpochNetworkPubkeyBytes(
2813
+ tx: TransactionBlock,
2814
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2815
+ ): TransactionArgument & [TransactionArgument] {
2816
+ const _args: any[] = [];
2817
+ _args.push(
2818
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2819
+ );
2820
+
2821
+ // @ts-ignore
2822
+ return tx.moveCall({
2823
+ target: "0x3::validator::next_epoch_network_pubkey_bytes",
2824
+ arguments: _args,
2825
+ });
2826
+ }
2827
+ export function nextEpochP2pAddress(
2828
+ tx: TransactionBlock,
2829
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2830
+ ): TransactionArgument & [TransactionArgument] {
2831
+ const _args: any[] = [];
2832
+ _args.push(
2833
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2834
+ );
2835
+
2836
+ // @ts-ignore
2837
+ return tx.moveCall({
2838
+ target: "0x3::validator::next_epoch_p2p_address",
2839
+ arguments: _args,
2840
+ });
2841
+ }
2842
+ export function nextEpochPrimaryAddress(
2843
+ tx: TransactionBlock,
2844
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2845
+ ): TransactionArgument & [TransactionArgument] {
2846
+ const _args: any[] = [];
2847
+ _args.push(
2848
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2849
+ );
2850
+
2851
+ // @ts-ignore
2852
+ return tx.moveCall({
2853
+ target: "0x3::validator::next_epoch_primary_address",
2854
+ arguments: _args,
2855
+ });
2856
+ }
2857
+ export function nextEpochProofOfPossession(
2858
+ tx: TransactionBlock,
2859
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2860
+ ): TransactionArgument & [TransactionArgument] {
2861
+ const _args: any[] = [];
2862
+ _args.push(
2863
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2864
+ );
2865
+
2866
+ // @ts-ignore
2867
+ return tx.moveCall({
2868
+ target: "0x3::validator::next_epoch_proof_of_possession",
2869
+ arguments: _args,
2870
+ });
2871
+ }
2872
+ export function nextEpochProtocolPubkeyBytes(
2873
+ tx: TransactionBlock,
2874
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2875
+ ): TransactionArgument & [TransactionArgument] {
2876
+ const _args: any[] = [];
2877
+ _args.push(
2878
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2879
+ );
2880
+
2881
+ // @ts-ignore
2882
+ return tx.moveCall({
2883
+ target: "0x3::validator::next_epoch_protocol_pubkey_bytes",
2884
+ arguments: _args,
2885
+ });
2886
+ }
2887
+ export function nextEpochWorkerAddress(
2888
+ tx: TransactionBlock,
2889
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2890
+ ): TransactionArgument & [TransactionArgument] {
2891
+ const _args: any[] = [];
2892
+ _args.push(
2893
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2894
+ );
2895
+
2896
+ // @ts-ignore
2897
+ return tx.moveCall({
2898
+ target: "0x3::validator::next_epoch_worker_address",
2899
+ arguments: _args,
2900
+ });
2901
+ }
2902
+ export function nextEpochWorkerPubkeyBytes(
2903
+ tx: TransactionBlock,
2904
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2905
+ ): TransactionArgument & [TransactionArgument] {
2906
+ const _args: any[] = [];
2907
+ _args.push(
2908
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2909
+ );
2910
+
2911
+ // @ts-ignore
2912
+ return tx.moveCall({
2913
+ target: "0x3::validator::next_epoch_worker_pubkey_bytes",
2914
+ arguments: _args,
2915
+ });
2916
+ }
2917
+ export function operationCapId(
2918
+ tx: TransactionBlock,
2919
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2920
+ ): TransactionArgument & [TransactionArgument] {
2921
+ const _args: any[] = [];
2922
+ _args.push(
2923
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2924
+ );
2925
+
2926
+ // @ts-ignore
2927
+ return tx.moveCall({
2928
+ target: "0x3::validator::operation_cap_id",
2929
+ arguments: _args,
2930
+ });
2931
+ }
2932
+ export function p2pAddress(
2933
+ tx: TransactionBlock,
2934
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2935
+ ): TransactionArgument & [TransactionArgument] {
2936
+ const _args: any[] = [];
2937
+ _args.push(
2938
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2939
+ );
2940
+
2941
+ // @ts-ignore
2942
+ return tx.moveCall({
2943
+ target: "0x3::validator::p2p_address",
2944
+ arguments: _args,
2945
+ });
2946
+ }
2947
+ export function pendingStakeAmount(
2948
+ tx: TransactionBlock,
2949
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2950
+ ): TransactionArgument & [TransactionArgument] {
2951
+ const _args: any[] = [];
2952
+ _args.push(
2953
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2954
+ );
2955
+
2956
+ // @ts-ignore
2957
+ return tx.moveCall({
2958
+ target: "0x3::validator::pending_stake_amount",
2959
+ arguments: _args,
2960
+ });
2961
+ }
2962
+ export function pendingStakeWithdrawAmount(
2963
+ tx: TransactionBlock,
2964
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2965
+ ): TransactionArgument & [TransactionArgument] {
2966
+ const _args: any[] = [];
2967
+ _args.push(
2968
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2969
+ );
2970
+
2971
+ // @ts-ignore
2972
+ return tx.moveCall({
2973
+ target: "0x3::validator::pending_stake_withdraw_amount",
2974
+ arguments: _args,
2975
+ });
2976
+ }
2977
+ export function poolTokenExchangeRateAtEpoch(
2978
+ tx: TransactionBlock,
2979
+ args: [
2980
+ ObjectId | ObjectCallArg | TransactionArgument,
2981
+ bigint | TransactionArgument
2982
+ ]
2983
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
2984
+ const _args: any[] = [];
2985
+ _args.push(
2986
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
2987
+ );
2988
+ _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
2989
+
2990
+ // @ts-ignore
2991
+ return tx.moveCall({
2992
+ target: "0x3::validator::pool_token_exchange_rate_at_epoch",
2993
+ arguments: _args,
2994
+ });
2995
+ }
2996
+ export function primaryAddress(
2997
+ tx: TransactionBlock,
2998
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
2999
+ ): TransactionArgument & [TransactionArgument] {
3000
+ const _args: any[] = [];
3001
+ _args.push(
3002
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3003
+ );
3004
+
3005
+ // @ts-ignore
3006
+ return tx.moveCall({
3007
+ target: "0x3::validator::primary_address",
3008
+ arguments: _args,
3009
+ });
3010
+ }
3011
+
3012
+ export function projectUrl(
3013
+ tx: TransactionBlock,
3014
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3015
+ ): TransactionArgument & [TransactionArgument] {
3016
+ const _args: any[] = [];
3017
+ _args.push(
3018
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3019
+ );
3020
+
3021
+ // @ts-ignore
3022
+ return tx.moveCall({
3023
+ target: "0x3::validator::project_url",
3024
+ arguments: _args,
3025
+ });
3026
+ }
3027
+ export function proofOfPossession(
3028
+ tx: TransactionBlock,
3029
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3030
+ ): TransactionArgument & [TransactionArgument] {
3031
+ const _args: any[] = [];
3032
+ _args.push(
3033
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3034
+ );
3035
+
3036
+ // @ts-ignore
3037
+ return tx.moveCall({
3038
+ target: "0x3::validator::proof_of_possession",
3039
+ arguments: _args,
3040
+ });
3041
+ }
3042
+ export function protocolPubkeyBytes(
3043
+ tx: TransactionBlock,
3044
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3045
+ ): TransactionArgument & [TransactionArgument] {
3046
+ const _args: any[] = [];
3047
+ _args.push(
3048
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3049
+ );
3050
+
3051
+ // @ts-ignore
3052
+ return tx.moveCall({
3053
+ target: "0x3::validator::protocol_pubkey_bytes",
3054
+ arguments: _args,
3055
+ });
3056
+ }
3057
+
3058
+ export function stakeAmount(
3059
+ tx: TransactionBlock,
3060
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3061
+ ): TransactionArgument & [TransactionArgument] {
3062
+ const _args: any[] = [];
3063
+ _args.push(
3064
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3065
+ );
3066
+
3067
+ // @ts-ignore
3068
+ return tx.moveCall({
3069
+ target: "0x3::validator::stake_amount",
3070
+ arguments: _args,
3071
+ });
3072
+ }
3073
+ export function stakingPoolId(
3074
+ tx: TransactionBlock,
3075
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3076
+ ): TransactionArgument & [TransactionArgument] {
3077
+ const _args: any[] = [];
3078
+ _args.push(
3079
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3080
+ );
3081
+
3082
+ // @ts-ignore
3083
+ return tx.moveCall({
3084
+ target: "0x3::validator::staking_pool_id",
3085
+ arguments: _args,
3086
+ });
3087
+ }
3088
+ export function suiAddress(
3089
+ tx: TransactionBlock,
3090
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3091
+ ): TransactionArgument & [TransactionArgument] {
3092
+ const _args: any[] = [];
3093
+ _args.push(
3094
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3095
+ );
3096
+
3097
+ // @ts-ignore
3098
+ return tx.moveCall({
3099
+ target: "0x3::validator::sui_address",
3100
+ arguments: _args,
3101
+ });
3102
+ }
3103
+ export function totalStake(
3104
+ tx: TransactionBlock,
3105
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3106
+ ): TransactionArgument & [TransactionArgument] {
3107
+ const _args: any[] = [];
3108
+ _args.push(
3109
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3110
+ );
3111
+
3112
+ // @ts-ignore
3113
+ return tx.moveCall({
3114
+ target: "0x3::validator::total_stake",
3115
+ arguments: _args,
3116
+ });
3117
+ }
3118
+ export function totalStakeAmount(
3119
+ tx: TransactionBlock,
3120
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3121
+ ): TransactionArgument & [TransactionArgument] {
3122
+ const _args: any[] = [];
3123
+ _args.push(
3124
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3125
+ );
3126
+
3127
+ // @ts-ignore
3128
+ return tx.moveCall({
3129
+ target: "0x3::validator::total_stake_amount",
3130
+ arguments: _args,
3131
+ });
3132
+ }
3133
+
3134
+ export function validateMetadata(
3135
+ tx: TransactionBlock,
3136
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3137
+ ): TransactionArgument & [TransactionArgument] {
3138
+ const _args: any[] = [];
3139
+ _args.push(
3140
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3141
+ );
3142
+
3143
+ // @ts-ignore
3144
+ return tx.moveCall({
3145
+ target: "0x3::validator::validate_metadata",
3146
+ arguments: _args,
3147
+ });
3148
+ }
3149
+ export function validateMetadataBcs(
3150
+ tx: TransactionBlock,
3151
+ args: [(ObjectId | ObjectCallArg)[] | TransactionArgument]
3152
+ ): TransactionArgument & [TransactionArgument] {
3153
+ const _args: any[] = [];
3154
+ _args.push(
3155
+ TransactionArgument.is(args[0])
3156
+ ? args[0]
3157
+ : tx.makeMoveVec({
3158
+ objects: args[0].map((a: any) => tx.object(a)),
3159
+ // type: TODO
3160
+ })
3161
+ );
3162
+
3163
+ // @ts-ignore
3164
+ return tx.moveCall({
3165
+ target: "0x3::validator::validate_metadata_bcs",
3166
+ arguments: _args,
3167
+ });
3168
+ }
3169
+ export function votingPower(
3170
+ tx: TransactionBlock,
3171
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3172
+ ): TransactionArgument & [TransactionArgument] {
3173
+ const _args: any[] = [];
3174
+ _args.push(
3175
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3176
+ );
3177
+
3178
+ // @ts-ignore
3179
+ return tx.moveCall({
3180
+ target: "0x3::validator::voting_power",
3181
+ arguments: _args,
3182
+ });
3183
+ }
3184
+ export function workerAddress(
3185
+ tx: TransactionBlock,
3186
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3187
+ ): TransactionArgument & [TransactionArgument] {
3188
+ const _args: any[] = [];
3189
+ _args.push(
3190
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3191
+ );
3192
+
3193
+ // @ts-ignore
3194
+ return tx.moveCall({
3195
+ target: "0x3::validator::worker_address",
3196
+ arguments: _args,
3197
+ });
3198
+ }
3199
+ export function workerPubkeyBytes(
3200
+ tx: TransactionBlock,
3201
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3202
+ ): TransactionArgument & [TransactionArgument] {
3203
+ const _args: any[] = [];
3204
+ _args.push(
3205
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3206
+ );
3207
+
3208
+ // @ts-ignore
3209
+ return tx.moveCall({
3210
+ target: "0x3::validator::worker_pubkey_bytes",
3211
+ arguments: _args,
3212
+ });
3213
+ }
3214
+ }
3215
+ export namespace view {
3216
+ export async function commissionRate(
3217
+ provider: JsonRpcProvider,
3218
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3219
+ ) {
3220
+ const tx = new TransactionBlock();
3221
+ builder.commissionRate(tx, args);
3222
+ const res = await provider.devInspectTransactionBlock({
3223
+ transactionBlock: tx,
3224
+ sender: ZERO_ADDRESS,
3225
+ });
3226
+ return res;
3227
+ }
3228
+
3229
+ export async function description(
3230
+ provider: JsonRpcProvider,
3231
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3232
+ ) {
3233
+ const tx = new TransactionBlock();
3234
+ builder.description(tx, args);
3235
+ const res = await provider.devInspectTransactionBlock({
3236
+ transactionBlock: tx,
3237
+ sender: ZERO_ADDRESS,
3238
+ });
3239
+ return res;
3240
+ }
3241
+
3242
+ export async function gasPrice(
3243
+ provider: JsonRpcProvider,
3244
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3245
+ ) {
3246
+ const tx = new TransactionBlock();
3247
+ builder.gasPrice(tx, args);
3248
+ const res = await provider.devInspectTransactionBlock({
3249
+ transactionBlock: tx,
3250
+ sender: ZERO_ADDRESS,
3251
+ });
3252
+ return res;
3253
+ }
3254
+ export async function imageUrl(
3255
+ provider: JsonRpcProvider,
3256
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3257
+ ) {
3258
+ const tx = new TransactionBlock();
3259
+ builder.imageUrl(tx, args);
3260
+ const res = await provider.devInspectTransactionBlock({
3261
+ transactionBlock: tx,
3262
+ sender: ZERO_ADDRESS,
3263
+ });
3264
+ return res;
3265
+ }
3266
+ export async function isDuplicate(
3267
+ provider: JsonRpcProvider,
3268
+ args: [
3269
+ ObjectId | ObjectCallArg | TransactionArgument,
3270
+ ObjectId | ObjectCallArg | TransactionArgument
3271
+ ]
3272
+ ) {
3273
+ const tx = new TransactionBlock();
3274
+ builder.isDuplicate(tx, args);
3275
+ const res = await provider.devInspectTransactionBlock({
3276
+ transactionBlock: tx,
3277
+ sender: ZERO_ADDRESS,
3278
+ });
3279
+ return res;
3280
+ }
3281
+ export async function isPreactive(
3282
+ provider: JsonRpcProvider,
3283
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3284
+ ) {
3285
+ const tx = new TransactionBlock();
3286
+ builder.isPreactive(tx, args);
3287
+ const res = await provider.devInspectTransactionBlock({
3288
+ transactionBlock: tx,
3289
+ sender: ZERO_ADDRESS,
3290
+ });
3291
+ return res;
3292
+ }
3293
+ export async function metadata(
3294
+ provider: JsonRpcProvider,
3295
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3296
+ ) {
3297
+ const tx = new TransactionBlock();
3298
+ builder.metadata(tx, args);
3299
+ const res = await provider.devInspectTransactionBlock({
3300
+ transactionBlock: tx,
3301
+ sender: ZERO_ADDRESS,
3302
+ });
3303
+ return res;
3304
+ }
3305
+ export async function name(
3306
+ provider: JsonRpcProvider,
3307
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3308
+ ) {
3309
+ const tx = new TransactionBlock();
3310
+ builder.name(tx, args);
3311
+ const res = await provider.devInspectTransactionBlock({
3312
+ transactionBlock: tx,
3313
+ sender: ZERO_ADDRESS,
3314
+ });
3315
+ return res;
3316
+ }
3317
+ export async function networkAddress(
3318
+ provider: JsonRpcProvider,
3319
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3320
+ ) {
3321
+ const tx = new TransactionBlock();
3322
+ builder.networkAddress(tx, args);
3323
+ const res = await provider.devInspectTransactionBlock({
3324
+ transactionBlock: tx,
3325
+ sender: ZERO_ADDRESS,
3326
+ });
3327
+ return res;
3328
+ }
3329
+ export async function networkPubkeyBytes(
3330
+ provider: JsonRpcProvider,
3331
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3332
+ ) {
3333
+ const tx = new TransactionBlock();
3334
+ builder.networkPubkeyBytes(tx, args);
3335
+ const res = await provider.devInspectTransactionBlock({
3336
+ transactionBlock: tx,
3337
+ sender: ZERO_ADDRESS,
3338
+ });
3339
+ return res;
3340
+ }
3341
+
3342
+ export async function nextEpochGasPrice(
3343
+ provider: JsonRpcProvider,
3344
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3345
+ ) {
3346
+ const tx = new TransactionBlock();
3347
+ builder.nextEpochGasPrice(tx, args);
3348
+ const res = await provider.devInspectTransactionBlock({
3349
+ transactionBlock: tx,
3350
+ sender: ZERO_ADDRESS,
3351
+ });
3352
+ return res;
3353
+ }
3354
+ export async function nextEpochNetworkAddress(
3355
+ provider: JsonRpcProvider,
3356
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3357
+ ) {
3358
+ const tx = new TransactionBlock();
3359
+ builder.nextEpochNetworkAddress(tx, args);
3360
+ const res = await provider.devInspectTransactionBlock({
3361
+ transactionBlock: tx,
3362
+ sender: ZERO_ADDRESS,
3363
+ });
3364
+ return res;
3365
+ }
3366
+ export async function nextEpochNetworkPubkeyBytes(
3367
+ provider: JsonRpcProvider,
3368
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3369
+ ) {
3370
+ const tx = new TransactionBlock();
3371
+ builder.nextEpochNetworkPubkeyBytes(tx, args);
3372
+ const res = await provider.devInspectTransactionBlock({
3373
+ transactionBlock: tx,
3374
+ sender: ZERO_ADDRESS,
3375
+ });
3376
+ return res;
3377
+ }
3378
+ export async function nextEpochP2pAddress(
3379
+ provider: JsonRpcProvider,
3380
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3381
+ ) {
3382
+ const tx = new TransactionBlock();
3383
+ builder.nextEpochP2pAddress(tx, args);
3384
+ const res = await provider.devInspectTransactionBlock({
3385
+ transactionBlock: tx,
3386
+ sender: ZERO_ADDRESS,
3387
+ });
3388
+ return res;
3389
+ }
3390
+ export async function nextEpochPrimaryAddress(
3391
+ provider: JsonRpcProvider,
3392
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3393
+ ) {
3394
+ const tx = new TransactionBlock();
3395
+ builder.nextEpochPrimaryAddress(tx, args);
3396
+ const res = await provider.devInspectTransactionBlock({
3397
+ transactionBlock: tx,
3398
+ sender: ZERO_ADDRESS,
3399
+ });
3400
+ return res;
3401
+ }
3402
+ export async function nextEpochProofOfPossession(
3403
+ provider: JsonRpcProvider,
3404
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3405
+ ) {
3406
+ const tx = new TransactionBlock();
3407
+ builder.nextEpochProofOfPossession(tx, args);
3408
+ const res = await provider.devInspectTransactionBlock({
3409
+ transactionBlock: tx,
3410
+ sender: ZERO_ADDRESS,
3411
+ });
3412
+ return res;
3413
+ }
3414
+ export async function nextEpochProtocolPubkeyBytes(
3415
+ provider: JsonRpcProvider,
3416
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3417
+ ) {
3418
+ const tx = new TransactionBlock();
3419
+ builder.nextEpochProtocolPubkeyBytes(tx, args);
3420
+ const res = await provider.devInspectTransactionBlock({
3421
+ transactionBlock: tx,
3422
+ sender: ZERO_ADDRESS,
3423
+ });
3424
+ return res;
3425
+ }
3426
+ export async function nextEpochWorkerAddress(
3427
+ provider: JsonRpcProvider,
3428
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3429
+ ) {
3430
+ const tx = new TransactionBlock();
3431
+ builder.nextEpochWorkerAddress(tx, args);
3432
+ const res = await provider.devInspectTransactionBlock({
3433
+ transactionBlock: tx,
3434
+ sender: ZERO_ADDRESS,
3435
+ });
3436
+ return res;
3437
+ }
3438
+ export async function nextEpochWorkerPubkeyBytes(
3439
+ provider: JsonRpcProvider,
3440
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3441
+ ) {
3442
+ const tx = new TransactionBlock();
3443
+ builder.nextEpochWorkerPubkeyBytes(tx, args);
3444
+ const res = await provider.devInspectTransactionBlock({
3445
+ transactionBlock: tx,
3446
+ sender: ZERO_ADDRESS,
3447
+ });
3448
+ return res;
3449
+ }
3450
+ export async function operationCapId(
3451
+ provider: JsonRpcProvider,
3452
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3453
+ ) {
3454
+ const tx = new TransactionBlock();
3455
+ builder.operationCapId(tx, args);
3456
+ const res = await provider.devInspectTransactionBlock({
3457
+ transactionBlock: tx,
3458
+ sender: ZERO_ADDRESS,
3459
+ });
3460
+ return res;
3461
+ }
3462
+ export async function p2pAddress(
3463
+ provider: JsonRpcProvider,
3464
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3465
+ ) {
3466
+ const tx = new TransactionBlock();
3467
+ builder.p2pAddress(tx, args);
3468
+ const res = await provider.devInspectTransactionBlock({
3469
+ transactionBlock: tx,
3470
+ sender: ZERO_ADDRESS,
3471
+ });
3472
+ return res;
3473
+ }
3474
+ export async function pendingStakeAmount(
3475
+ provider: JsonRpcProvider,
3476
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3477
+ ) {
3478
+ const tx = new TransactionBlock();
3479
+ builder.pendingStakeAmount(tx, args);
3480
+ const res = await provider.devInspectTransactionBlock({
3481
+ transactionBlock: tx,
3482
+ sender: ZERO_ADDRESS,
3483
+ });
3484
+ return res;
3485
+ }
3486
+ export async function pendingStakeWithdrawAmount(
3487
+ provider: JsonRpcProvider,
3488
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3489
+ ) {
3490
+ const tx = new TransactionBlock();
3491
+ builder.pendingStakeWithdrawAmount(tx, args);
3492
+ const res = await provider.devInspectTransactionBlock({
3493
+ transactionBlock: tx,
3494
+ sender: ZERO_ADDRESS,
3495
+ });
3496
+ return res;
3497
+ }
3498
+ export async function poolTokenExchangeRateAtEpoch(
3499
+ provider: JsonRpcProvider,
3500
+ args: [
3501
+ ObjectId | ObjectCallArg | TransactionArgument,
3502
+ bigint | TransactionArgument
3503
+ ]
3504
+ ) {
3505
+ const tx = new TransactionBlock();
3506
+ builder.poolTokenExchangeRateAtEpoch(tx, args);
3507
+ const res = await provider.devInspectTransactionBlock({
3508
+ transactionBlock: tx,
3509
+ sender: ZERO_ADDRESS,
3510
+ });
3511
+ return res;
3512
+ }
3513
+ export async function primaryAddress(
3514
+ provider: JsonRpcProvider,
3515
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3516
+ ) {
3517
+ const tx = new TransactionBlock();
3518
+ builder.primaryAddress(tx, args);
3519
+ const res = await provider.devInspectTransactionBlock({
3520
+ transactionBlock: tx,
3521
+ sender: ZERO_ADDRESS,
3522
+ });
3523
+ return res;
3524
+ }
3525
+
3526
+ export async function projectUrl(
3527
+ provider: JsonRpcProvider,
3528
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3529
+ ) {
3530
+ const tx = new TransactionBlock();
3531
+ builder.projectUrl(tx, args);
3532
+ const res = await provider.devInspectTransactionBlock({
3533
+ transactionBlock: tx,
3534
+ sender: ZERO_ADDRESS,
3535
+ });
3536
+ return res;
3537
+ }
3538
+ export async function proofOfPossession(
3539
+ provider: JsonRpcProvider,
3540
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3541
+ ) {
3542
+ const tx = new TransactionBlock();
3543
+ builder.proofOfPossession(tx, args);
3544
+ const res = await provider.devInspectTransactionBlock({
3545
+ transactionBlock: tx,
3546
+ sender: ZERO_ADDRESS,
3547
+ });
3548
+ return res;
3549
+ }
3550
+ export async function protocolPubkeyBytes(
3551
+ provider: JsonRpcProvider,
3552
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3553
+ ) {
3554
+ const tx = new TransactionBlock();
3555
+ builder.protocolPubkeyBytes(tx, args);
3556
+ const res = await provider.devInspectTransactionBlock({
3557
+ transactionBlock: tx,
3558
+ sender: ZERO_ADDRESS,
3559
+ });
3560
+ return res;
3561
+ }
3562
+
3563
+ export async function stakeAmount(
3564
+ provider: JsonRpcProvider,
3565
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3566
+ ) {
3567
+ const tx = new TransactionBlock();
3568
+ builder.stakeAmount(tx, args);
3569
+ const res = await provider.devInspectTransactionBlock({
3570
+ transactionBlock: tx,
3571
+ sender: ZERO_ADDRESS,
3572
+ });
3573
+ return res;
3574
+ }
3575
+ export async function stakingPoolId(
3576
+ provider: JsonRpcProvider,
3577
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3578
+ ) {
3579
+ const tx = new TransactionBlock();
3580
+ builder.stakingPoolId(tx, args);
3581
+ const res = await provider.devInspectTransactionBlock({
3582
+ transactionBlock: tx,
3583
+ sender: ZERO_ADDRESS,
3584
+ });
3585
+ return res;
3586
+ }
3587
+ export async function suiAddress(
3588
+ provider: JsonRpcProvider,
3589
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3590
+ ) {
3591
+ const tx = new TransactionBlock();
3592
+ builder.suiAddress(tx, args);
3593
+ const res = await provider.devInspectTransactionBlock({
3594
+ transactionBlock: tx,
3595
+ sender: ZERO_ADDRESS,
3596
+ });
3597
+ return res;
3598
+ }
3599
+ export async function totalStake(
3600
+ provider: JsonRpcProvider,
3601
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3602
+ ) {
3603
+ const tx = new TransactionBlock();
3604
+ builder.totalStake(tx, args);
3605
+ const res = await provider.devInspectTransactionBlock({
3606
+ transactionBlock: tx,
3607
+ sender: ZERO_ADDRESS,
3608
+ });
3609
+ return res;
3610
+ }
3611
+ export async function totalStakeAmount(
3612
+ provider: JsonRpcProvider,
3613
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3614
+ ) {
3615
+ const tx = new TransactionBlock();
3616
+ builder.totalStakeAmount(tx, args);
3617
+ const res = await provider.devInspectTransactionBlock({
3618
+ transactionBlock: tx,
3619
+ sender: ZERO_ADDRESS,
3620
+ });
3621
+ return res;
3622
+ }
3623
+
3624
+ export async function validateMetadata(
3625
+ provider: JsonRpcProvider,
3626
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3627
+ ) {
3628
+ const tx = new TransactionBlock();
3629
+ builder.validateMetadata(tx, args);
3630
+ const res = await provider.devInspectTransactionBlock({
3631
+ transactionBlock: tx,
3632
+ sender: ZERO_ADDRESS,
3633
+ });
3634
+ return res;
3635
+ }
3636
+ export async function validateMetadataBcs(
3637
+ provider: JsonRpcProvider,
3638
+ args: [(ObjectId | ObjectCallArg)[] | TransactionArgument]
3639
+ ) {
3640
+ const tx = new TransactionBlock();
3641
+ builder.validateMetadataBcs(tx, args);
3642
+ const res = await provider.devInspectTransactionBlock({
3643
+ transactionBlock: tx,
3644
+ sender: ZERO_ADDRESS,
3645
+ });
3646
+ return res;
3647
+ }
3648
+ export async function votingPower(
3649
+ provider: JsonRpcProvider,
3650
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3651
+ ) {
3652
+ const tx = new TransactionBlock();
3653
+ builder.votingPower(tx, args);
3654
+ const res = await provider.devInspectTransactionBlock({
3655
+ transactionBlock: tx,
3656
+ sender: ZERO_ADDRESS,
3657
+ });
3658
+ return res;
3659
+ }
3660
+ export async function workerAddress(
3661
+ provider: JsonRpcProvider,
3662
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3663
+ ) {
3664
+ const tx = new TransactionBlock();
3665
+ builder.workerAddress(tx, args);
3666
+ const res = await provider.devInspectTransactionBlock({
3667
+ transactionBlock: tx,
3668
+ sender: ZERO_ADDRESS,
3669
+ });
3670
+ return res;
3671
+ }
3672
+ export async function workerPubkeyBytes(
3673
+ provider: JsonRpcProvider,
3674
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3675
+ ) {
3676
+ const tx = new TransactionBlock();
3677
+ builder.workerPubkeyBytes(tx, args);
3678
+ const res = await provider.devInspectTransactionBlock({
3679
+ transactionBlock: tx,
3680
+ sender: ZERO_ADDRESS,
3681
+ });
3682
+ return res;
3683
+ }
3684
+ }
3685
+ }
3686
+
3687
+ export namespace validator_cap {
3688
+ export interface UnverifiedValidatorOperationCap {
3689
+ id: _0x2.object_.UID;
3690
+ authorizer_validator_address: SuiAddress;
3691
+ }
3692
+
3693
+ export namespace UnverifiedValidatorOperationCap {
3694
+ export const TYPE_QNAME =
3695
+ "0x3::validator_cap::UnverifiedValidatorOperationCap";
3696
+
3697
+ const TYPE = new TypeDescriptor<UnverifiedValidatorOperationCap>(
3698
+ UnverifiedValidatorOperationCap.TYPE_QNAME
3699
+ );
3700
+
3701
+ export function type(): TypeDescriptor<UnverifiedValidatorOperationCap> {
3702
+ return TYPE.apply();
3703
+ }
3704
+ }
3705
+
3706
+ export interface ValidatorOperationCap {
3707
+ authorizer_validator_address: SuiAddress;
3708
+ }
3709
+
3710
+ export namespace ValidatorOperationCap {
3711
+ export const TYPE_QNAME = "0x3::validator_cap::ValidatorOperationCap";
3712
+
3713
+ const TYPE = new TypeDescriptor<ValidatorOperationCap>(
3714
+ ValidatorOperationCap.TYPE_QNAME
3715
+ );
3716
+
3717
+ export function type(): TypeDescriptor<ValidatorOperationCap> {
3718
+ return TYPE.apply();
3719
+ }
3720
+ }
3721
+
3722
+ export namespace builder {}
3723
+ export namespace view {}
3724
+ }
3725
+
3726
+ export namespace validator_set {
3727
+ export interface ValidatorEpochInfoEvent {
3728
+ epoch: bigint;
3729
+ validator_address: SuiAddress;
3730
+ reference_gas_survey_quote: bigint;
3731
+ stake: bigint;
3732
+ commission_rate: bigint;
3733
+ pool_staking_reward: bigint;
3734
+ storage_fund_staking_reward: bigint;
3735
+ pool_token_exchange_rate: staking_pool.PoolTokenExchangeRate;
3736
+ tallying_rule_reporters: SuiAddress[];
3737
+ tallying_rule_global_score: bigint;
3738
+ }
3739
+
3740
+ export namespace ValidatorEpochInfoEvent {
3741
+ export const TYPE_QNAME = "0x3::validator_set::ValidatorEpochInfoEvent";
3742
+
3743
+ const TYPE = new TypeDescriptor<ValidatorEpochInfoEvent>(
3744
+ ValidatorEpochInfoEvent.TYPE_QNAME
3745
+ );
3746
+
3747
+ export function type(): TypeDescriptor<ValidatorEpochInfoEvent> {
3748
+ return TYPE.apply();
3749
+ }
3750
+ }
3751
+
3752
+ export interface ValidatorEpochInfoEventInstance
3753
+ extends TypedEventInstance<ValidatorEpochInfoEvent> {
3754
+ data_decoded: ValidatorEpochInfoEvent;
3755
+ type_arguments: [];
3756
+ }
3757
+
3758
+ export interface ValidatorEpochInfoEventV2 {
3759
+ epoch: bigint;
3760
+ validator_address: SuiAddress;
3761
+ reference_gas_survey_quote: bigint;
3762
+ stake: bigint;
3763
+ voting_power: bigint;
3764
+ commission_rate: bigint;
3765
+ pool_staking_reward: bigint;
3766
+ storage_fund_staking_reward: bigint;
3767
+ pool_token_exchange_rate: staking_pool.PoolTokenExchangeRate;
3768
+ tallying_rule_reporters: SuiAddress[];
3769
+ tallying_rule_global_score: bigint;
3770
+ }
3771
+
3772
+ export namespace ValidatorEpochInfoEventV2 {
3773
+ export const TYPE_QNAME = "0x3::validator_set::ValidatorEpochInfoEventV2";
3774
+
3775
+ const TYPE = new TypeDescriptor<ValidatorEpochInfoEventV2>(
3776
+ ValidatorEpochInfoEventV2.TYPE_QNAME
3777
+ );
3778
+
3779
+ export function type(): TypeDescriptor<ValidatorEpochInfoEventV2> {
3780
+ return TYPE.apply();
3781
+ }
3782
+ }
3783
+
3784
+ export interface ValidatorEpochInfoEventV2Instance
3785
+ extends TypedEventInstance<ValidatorEpochInfoEventV2> {
3786
+ data_decoded: ValidatorEpochInfoEventV2;
3787
+ type_arguments: [];
3788
+ }
3789
+
3790
+ export interface ValidatorJoinEvent {
3791
+ epoch: bigint;
3792
+ validator_address: SuiAddress;
3793
+ staking_pool_id: _0x2.object_.ID;
3794
+ }
3795
+
3796
+ export namespace ValidatorJoinEvent {
3797
+ export const TYPE_QNAME = "0x3::validator_set::ValidatorJoinEvent";
3798
+
3799
+ const TYPE = new TypeDescriptor<ValidatorJoinEvent>(
3800
+ ValidatorJoinEvent.TYPE_QNAME
3801
+ );
3802
+
3803
+ export function type(): TypeDescriptor<ValidatorJoinEvent> {
3804
+ return TYPE.apply();
3805
+ }
3806
+ }
3807
+
3808
+ export interface ValidatorJoinEventInstance
3809
+ extends TypedEventInstance<ValidatorJoinEvent> {
3810
+ data_decoded: ValidatorJoinEvent;
3811
+ type_arguments: [];
3812
+ }
3813
+
3814
+ export interface ValidatorLeaveEvent {
3815
+ epoch: bigint;
3816
+ validator_address: SuiAddress;
3817
+ staking_pool_id: _0x2.object_.ID;
3818
+ is_voluntary: Boolean;
3819
+ }
3820
+
3821
+ export namespace ValidatorLeaveEvent {
3822
+ export const TYPE_QNAME = "0x3::validator_set::ValidatorLeaveEvent";
3823
+
3824
+ const TYPE = new TypeDescriptor<ValidatorLeaveEvent>(
3825
+ ValidatorLeaveEvent.TYPE_QNAME
3826
+ );
3827
+
3828
+ export function type(): TypeDescriptor<ValidatorLeaveEvent> {
3829
+ return TYPE.apply();
3830
+ }
3831
+ }
3832
+
3833
+ export interface ValidatorLeaveEventInstance
3834
+ extends TypedEventInstance<ValidatorLeaveEvent> {
3835
+ data_decoded: ValidatorLeaveEvent;
3836
+ type_arguments: [];
3837
+ }
3838
+
3839
+ export interface ValidatorSet {
3840
+ total_stake: bigint;
3841
+ active_validators: validator.Validator[];
3842
+ pending_active_validators: _0x2.table_vec.TableVec<validator.Validator>;
3843
+ pending_removals: bigint[];
3844
+ staking_pool_mappings: _0x2.table.Table<_0x2.object_.ID, SuiAddress>;
3845
+ inactive_validators: _0x2.table.Table<
3846
+ _0x2.object_.ID,
3847
+ validator_wrapper.ValidatorWrapper
3848
+ >;
3849
+ validator_candidates: _0x2.table.Table<
3850
+ SuiAddress,
3851
+ validator_wrapper.ValidatorWrapper
3852
+ >;
3853
+ at_risk_validators: _0x2.vec_map.VecMap<SuiAddress, bigint>;
3854
+ extra_fields: _0x2.bag.Bag;
3855
+ }
3856
+
3857
+ export namespace ValidatorSet {
3858
+ export const TYPE_QNAME = "0x3::validator_set::ValidatorSet";
3859
+
3860
+ const TYPE = new TypeDescriptor<ValidatorSet>(ValidatorSet.TYPE_QNAME);
3861
+
3862
+ export function type(): TypeDescriptor<ValidatorSet> {
3863
+ return TYPE.apply();
3864
+ }
3865
+ }
3866
+
3867
+ export namespace builder {
3868
+ export function activeValidators(
3869
+ tx: TransactionBlock,
3870
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3871
+ ): TransactionArgument & [TransactionArgument] {
3872
+ const _args: any[] = [];
3873
+ _args.push(
3874
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3875
+ );
3876
+
3877
+ // @ts-ignore
3878
+ return tx.moveCall({
3879
+ target: "0x3::validator_set::active_validators",
3880
+ arguments: _args,
3881
+ });
3882
+ }
3883
+
3884
+ export function deriveReferenceGasPrice(
3885
+ tx: TransactionBlock,
3886
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3887
+ ): TransactionArgument & [TransactionArgument] {
3888
+ const _args: any[] = [];
3889
+ _args.push(
3890
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3891
+ );
3892
+
3893
+ // @ts-ignore
3894
+ return tx.moveCall({
3895
+ target: "0x3::validator_set::derive_reference_gas_price",
3896
+ arguments: _args,
3897
+ });
3898
+ }
3899
+
3900
+ export function getActiveValidatorRef(
3901
+ tx: TransactionBlock,
3902
+ args: [
3903
+ ObjectId | ObjectCallArg | TransactionArgument,
3904
+ SuiAddress | TransactionArgument
3905
+ ]
3906
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
3907
+ const _args: any[] = [];
3908
+ _args.push(
3909
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3910
+ );
3911
+ _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3912
+
3913
+ // @ts-ignore
3914
+ return tx.moveCall({
3915
+ target: "0x3::validator_set::get_active_validator_ref",
3916
+ arguments: _args,
3917
+ });
3918
+ }
3919
+ export function getPendingValidatorRef(
3920
+ tx: TransactionBlock,
3921
+ args: [
3922
+ ObjectId | ObjectCallArg | TransactionArgument,
3923
+ SuiAddress | TransactionArgument
3924
+ ]
3925
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
3926
+ const _args: any[] = [];
3927
+ _args.push(
3928
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3929
+ );
3930
+ _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3931
+
3932
+ // @ts-ignore
3933
+ return tx.moveCall({
3934
+ target: "0x3::validator_set::get_pending_validator_ref",
3935
+ arguments: _args,
3936
+ });
3937
+ }
3938
+
3939
+ export function isInactiveValidator(
3940
+ tx: TransactionBlock,
3941
+ args: [
3942
+ ObjectId | ObjectCallArg | TransactionArgument,
3943
+ _0x2.object_.ID | TransactionArgument
3944
+ ]
3945
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
3946
+ const _args: any[] = [];
3947
+ _args.push(
3948
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3949
+ );
3950
+ _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3951
+
3952
+ // @ts-ignore
3953
+ return tx.moveCall({
3954
+ target: "0x3::validator_set::is_inactive_validator",
3955
+ arguments: _args,
3956
+ });
3957
+ }
3958
+ export function isValidatorCandidate(
3959
+ tx: TransactionBlock,
3960
+ args: [
3961
+ ObjectId | ObjectCallArg | TransactionArgument,
3962
+ SuiAddress | TransactionArgument
3963
+ ]
3964
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
3965
+ const _args: any[] = [];
3966
+ _args.push(
3967
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3968
+ );
3969
+ _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
3970
+
3971
+ // @ts-ignore
3972
+ return tx.moveCall({
3973
+ target: "0x3::validator_set::is_validator_candidate",
3974
+ arguments: _args,
3975
+ });
3976
+ }
3977
+
3978
+ export function stakingPoolMappings(
3979
+ tx: TransactionBlock,
3980
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
3981
+ ): TransactionArgument & [TransactionArgument] {
3982
+ const _args: any[] = [];
3983
+ _args.push(
3984
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
3985
+ );
3986
+
3987
+ // @ts-ignore
3988
+ return tx.moveCall({
3989
+ target: "0x3::validator_set::staking_pool_mappings",
3990
+ arguments: _args,
3991
+ });
3992
+ }
3993
+ export function sumVotingPowerByAddresses(
3994
+ tx: TransactionBlock,
3995
+ args: [
3996
+ ObjectId | ObjectCallArg | TransactionArgument,
3997
+ ObjectId | ObjectCallArg | TransactionArgument
3998
+ ]
3999
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4000
+ const _args: any[] = [];
4001
+ _args.push(
4002
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
4003
+ );
4004
+ _args.push(
4005
+ TransactionArgument.is(args[1]) ? args[1] : tx.object(args[1])
4006
+ );
4007
+
4008
+ // @ts-ignore
4009
+ return tx.moveCall({
4010
+ target: "0x3::validator_set::sum_voting_power_by_addresses",
4011
+ arguments: _args,
4012
+ });
4013
+ }
4014
+ export function totalStake(
4015
+ tx: TransactionBlock,
4016
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
4017
+ ): TransactionArgument & [TransactionArgument] {
4018
+ const _args: any[] = [];
4019
+ _args.push(
4020
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
4021
+ );
4022
+
4023
+ // @ts-ignore
4024
+ return tx.moveCall({
4025
+ target: "0x3::validator_set::total_stake",
4026
+ arguments: _args,
4027
+ });
4028
+ }
4029
+ export function validatorStakeAmount(
4030
+ tx: TransactionBlock,
4031
+ args: [
4032
+ ObjectId | ObjectCallArg | TransactionArgument,
4033
+ SuiAddress | TransactionArgument
4034
+ ]
4035
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4036
+ const _args: any[] = [];
4037
+ _args.push(
4038
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
4039
+ );
4040
+ _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
4041
+
4042
+ // @ts-ignore
4043
+ return tx.moveCall({
4044
+ target: "0x3::validator_set::validator_stake_amount",
4045
+ arguments: _args,
4046
+ });
4047
+ }
4048
+ export function validatorStakingPoolId(
4049
+ tx: TransactionBlock,
4050
+ args: [
4051
+ ObjectId | ObjectCallArg | TransactionArgument,
4052
+ SuiAddress | TransactionArgument
4053
+ ]
4054
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4055
+ const _args: any[] = [];
4056
+ _args.push(
4057
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
4058
+ );
4059
+ _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
4060
+
4061
+ // @ts-ignore
4062
+ return tx.moveCall({
4063
+ target: "0x3::validator_set::validator_staking_pool_id",
4064
+ arguments: _args,
4065
+ });
4066
+ }
4067
+ export function validatorTotalStakeAmount(
4068
+ tx: TransactionBlock,
4069
+ args: [
4070
+ ObjectId | ObjectCallArg | TransactionArgument,
4071
+ SuiAddress | TransactionArgument
4072
+ ]
4073
+ ): TransactionArgument & [TransactionArgument, TransactionArgument] {
4074
+ const _args: any[] = [];
4075
+ _args.push(
4076
+ TransactionArgument.is(args[0]) ? args[0] : tx.object(args[0])
4077
+ );
4078
+ _args.push(TransactionArgument.is(args[1]) ? args[1] : tx.pure(args[1]));
4079
+
4080
+ // @ts-ignore
4081
+ return tx.moveCall({
4082
+ target: "0x3::validator_set::validator_total_stake_amount",
4083
+ arguments: _args,
4084
+ });
4085
+ }
4086
+ }
4087
+ export namespace view {
4088
+ export async function activeValidators(
4089
+ provider: JsonRpcProvider,
4090
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
4091
+ ) {
4092
+ const tx = new TransactionBlock();
4093
+ builder.activeValidators(tx, args);
4094
+ const res = await provider.devInspectTransactionBlock({
4095
+ transactionBlock: tx,
4096
+ sender: ZERO_ADDRESS,
4097
+ });
4098
+ return res;
4099
+ }
4100
+
4101
+ export async function deriveReferenceGasPrice(
4102
+ provider: JsonRpcProvider,
4103
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
4104
+ ) {
4105
+ const tx = new TransactionBlock();
4106
+ builder.deriveReferenceGasPrice(tx, args);
4107
+ const res = await provider.devInspectTransactionBlock({
4108
+ transactionBlock: tx,
4109
+ sender: ZERO_ADDRESS,
4110
+ });
4111
+ return res;
4112
+ }
4113
+
4114
+ export async function getActiveValidatorRef(
4115
+ provider: JsonRpcProvider,
4116
+ args: [
4117
+ ObjectId | ObjectCallArg | TransactionArgument,
4118
+ SuiAddress | TransactionArgument
4119
+ ]
4120
+ ) {
4121
+ const tx = new TransactionBlock();
4122
+ builder.getActiveValidatorRef(tx, args);
4123
+ const res = await provider.devInspectTransactionBlock({
4124
+ transactionBlock: tx,
4125
+ sender: ZERO_ADDRESS,
4126
+ });
4127
+ return res;
4128
+ }
4129
+ export async function getPendingValidatorRef(
4130
+ provider: JsonRpcProvider,
4131
+ args: [
4132
+ ObjectId | ObjectCallArg | TransactionArgument,
4133
+ SuiAddress | TransactionArgument
4134
+ ]
4135
+ ) {
4136
+ const tx = new TransactionBlock();
4137
+ builder.getPendingValidatorRef(tx, args);
4138
+ const res = await provider.devInspectTransactionBlock({
4139
+ transactionBlock: tx,
4140
+ sender: ZERO_ADDRESS,
4141
+ });
4142
+ return res;
4143
+ }
4144
+
4145
+ export async function isInactiveValidator(
4146
+ provider: JsonRpcProvider,
4147
+ args: [
4148
+ ObjectId | ObjectCallArg | TransactionArgument,
4149
+ _0x2.object_.ID | TransactionArgument
4150
+ ]
4151
+ ) {
4152
+ const tx = new TransactionBlock();
4153
+ builder.isInactiveValidator(tx, args);
4154
+ const res = await provider.devInspectTransactionBlock({
4155
+ transactionBlock: tx,
4156
+ sender: ZERO_ADDRESS,
4157
+ });
4158
+ return res;
4159
+ }
4160
+ export async function isValidatorCandidate(
4161
+ provider: JsonRpcProvider,
4162
+ args: [
4163
+ ObjectId | ObjectCallArg | TransactionArgument,
4164
+ SuiAddress | TransactionArgument
4165
+ ]
4166
+ ) {
4167
+ const tx = new TransactionBlock();
4168
+ builder.isValidatorCandidate(tx, args);
4169
+ const res = await provider.devInspectTransactionBlock({
4170
+ transactionBlock: tx,
4171
+ sender: ZERO_ADDRESS,
4172
+ });
4173
+ return res;
4174
+ }
4175
+
4176
+ export async function stakingPoolMappings(
4177
+ provider: JsonRpcProvider,
4178
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
4179
+ ) {
4180
+ const tx = new TransactionBlock();
4181
+ builder.stakingPoolMappings(tx, args);
4182
+ const res = await provider.devInspectTransactionBlock({
4183
+ transactionBlock: tx,
4184
+ sender: ZERO_ADDRESS,
4185
+ });
4186
+ return res;
4187
+ }
4188
+ export async function sumVotingPowerByAddresses(
4189
+ provider: JsonRpcProvider,
4190
+ args: [
4191
+ ObjectId | ObjectCallArg | TransactionArgument,
4192
+ ObjectId | ObjectCallArg | TransactionArgument
4193
+ ]
4194
+ ) {
4195
+ const tx = new TransactionBlock();
4196
+ builder.sumVotingPowerByAddresses(tx, args);
4197
+ const res = await provider.devInspectTransactionBlock({
4198
+ transactionBlock: tx,
4199
+ sender: ZERO_ADDRESS,
4200
+ });
4201
+ return res;
4202
+ }
4203
+ export async function totalStake(
4204
+ provider: JsonRpcProvider,
4205
+ args: [ObjectId | ObjectCallArg | TransactionArgument]
4206
+ ) {
4207
+ const tx = new TransactionBlock();
4208
+ builder.totalStake(tx, args);
4209
+ const res = await provider.devInspectTransactionBlock({
4210
+ transactionBlock: tx,
4211
+ sender: ZERO_ADDRESS,
4212
+ });
4213
+ return res;
4214
+ }
4215
+ export async function validatorStakeAmount(
4216
+ provider: JsonRpcProvider,
4217
+ args: [
4218
+ ObjectId | ObjectCallArg | TransactionArgument,
4219
+ SuiAddress | TransactionArgument
4220
+ ]
4221
+ ) {
4222
+ const tx = new TransactionBlock();
4223
+ builder.validatorStakeAmount(tx, args);
4224
+ const res = await provider.devInspectTransactionBlock({
4225
+ transactionBlock: tx,
4226
+ sender: ZERO_ADDRESS,
4227
+ });
4228
+ return res;
4229
+ }
4230
+ export async function validatorStakingPoolId(
4231
+ provider: JsonRpcProvider,
4232
+ args: [
4233
+ ObjectId | ObjectCallArg | TransactionArgument,
4234
+ SuiAddress | TransactionArgument
4235
+ ]
4236
+ ) {
4237
+ const tx = new TransactionBlock();
4238
+ builder.validatorStakingPoolId(tx, args);
4239
+ const res = await provider.devInspectTransactionBlock({
4240
+ transactionBlock: tx,
4241
+ sender: ZERO_ADDRESS,
4242
+ });
4243
+ return res;
4244
+ }
4245
+ export async function validatorTotalStakeAmount(
4246
+ provider: JsonRpcProvider,
4247
+ args: [
4248
+ ObjectId | ObjectCallArg | TransactionArgument,
4249
+ SuiAddress | TransactionArgument
4250
+ ]
4251
+ ) {
4252
+ const tx = new TransactionBlock();
4253
+ builder.validatorTotalStakeAmount(tx, args);
4254
+ const res = await provider.devInspectTransactionBlock({
4255
+ transactionBlock: tx,
4256
+ sender: ZERO_ADDRESS,
4257
+ });
4258
+ return res;
4259
+ }
4260
+ }
4261
+ }
4262
+
4263
+ export namespace validator_wrapper {
4264
+ export interface ValidatorWrapper {
4265
+ inner: _0x2.versioned.Versioned;
4266
+ }
4267
+
4268
+ export namespace ValidatorWrapper {
4269
+ export const TYPE_QNAME = "0x3::validator_wrapper::ValidatorWrapper";
4270
+
4271
+ const TYPE = new TypeDescriptor<ValidatorWrapper>(
4272
+ ValidatorWrapper.TYPE_QNAME
4273
+ );
4274
+
4275
+ export function type(): TypeDescriptor<ValidatorWrapper> {
4276
+ return TYPE.apply();
4277
+ }
4278
+ }
4279
+
4280
+ export namespace builder {}
4281
+ export namespace view {}
4282
+ }
4283
+
4284
+ export namespace voting_power {
4285
+ export interface VotingPowerInfo {
4286
+ validator_index: bigint;
4287
+ voting_power: bigint;
4288
+ }
4289
+
4290
+ export namespace VotingPowerInfo {
4291
+ export const TYPE_QNAME = "0x3::voting_power::VotingPowerInfo";
4292
+
4293
+ const TYPE = new TypeDescriptor<VotingPowerInfo>(
4294
+ VotingPowerInfo.TYPE_QNAME
4295
+ );
4296
+
4297
+ export function type(): TypeDescriptor<VotingPowerInfo> {
4298
+ return TYPE.apply();
4299
+ }
4300
+ }
4301
+
4302
+ export interface VotingPowerInfoV2 {
4303
+ validator_index: bigint;
4304
+ voting_power: bigint;
4305
+ stake: bigint;
4306
+ }
4307
+
4308
+ export namespace VotingPowerInfoV2 {
4309
+ export const TYPE_QNAME = "0x3::voting_power::VotingPowerInfoV2";
4310
+
4311
+ const TYPE = new TypeDescriptor<VotingPowerInfoV2>(
4312
+ VotingPowerInfoV2.TYPE_QNAME
4313
+ );
4314
+
4315
+ export function type(): TypeDescriptor<VotingPowerInfoV2> {
4316
+ return TYPE.apply();
4317
+ }
4318
+ }
4319
+
4320
+ export namespace builder {
4321
+ export function quorumThreshold(
4322
+ tx: TransactionBlock,
4323
+ args: []
4324
+ ): TransactionArgument & [] {
4325
+ const _args: any[] = [];
4326
+
4327
+ // @ts-ignore
4328
+ return tx.moveCall({
4329
+ target: "0x3::voting_power::quorum_threshold",
4330
+ arguments: _args,
4331
+ });
4332
+ }
4333
+
4334
+ export function totalVotingPower(
4335
+ tx: TransactionBlock,
4336
+ args: []
4337
+ ): TransactionArgument & [] {
4338
+ const _args: any[] = [];
4339
+
4340
+ // @ts-ignore
4341
+ return tx.moveCall({
4342
+ target: "0x3::voting_power::total_voting_power",
4343
+ arguments: _args,
4344
+ });
4345
+ }
4346
+ }
4347
+ export namespace view {
4348
+ export async function quorumThreshold(provider: JsonRpcProvider, args: []) {
4349
+ const tx = new TransactionBlock();
4350
+ builder.quorumThreshold(tx, args);
4351
+ const res = await provider.devInspectTransactionBlock({
4352
+ transactionBlock: tx,
4353
+ sender: ZERO_ADDRESS,
4354
+ });
4355
+ return res;
4356
+ }
4357
+
4358
+ export async function totalVotingPower(
4359
+ provider: JsonRpcProvider,
4360
+ args: []
4361
+ ) {
4362
+ const tx = new TransactionBlock();
4363
+ builder.totalVotingPower(tx, args);
4364
+ const res = await provider.devInspectTransactionBlock({
4365
+ transactionBlock: tx,
4366
+ sender: ZERO_ADDRESS,
4367
+ });
4368
+ return res;
4369
+ }
4370
+ }
4371
+ }
4372
+
4373
+ const MODULES = JSON.parse(
4374
+ '{"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":[]}}}]},"SuiSystemStateInnerV2":{"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":"SystemParametersV2","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":[]}}}]},"SystemParametersV2":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"epoch_duration_ms","type":"U64"},{"name":"stake_subsidy_start_epoch","type":"U64"},{"name":"min_validator_count","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":"SuiSystemStateInnerV2","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":[]}}]}}]},"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":"SuiSystemStateInnerV2","typeArguments":[]}}}],"return":["U64"]},"epoch_start_timestamp_ms":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","typeArguments":[]}}}],"return":["U64"]},"get_storage_fund_total_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","typeArguments":[]}}}],"return":["U64"]},"protocol_version":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","typeArguments":[]}}}],"return":["U64"]},"report_validator":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","typeArguments":[]}}}],"return":["U64"]},"undo_report_validator":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","typeArguments":[]}}},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"v1_to_v2":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInner","typeArguments":[]}}],"return":[{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","typeArguments":[]}}]},"validator_stake_amount":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","typeArguments":[]}}},"Address"],"return":["U64"]},"validator_staking_pool_id":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","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":"SuiSystemStateInnerV2","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"}]},"ValidatorEpochInfoEventV2":{"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":"voting_power","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_active_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"}]},"VotingPowerInfoV2":{"abilities":{"abilities":["Drop"]},"typeParameters":[],"fields":[{"name":"validator_index","type":"U64"},{"name":"voting_power","type":"U64"},{"name":"stake","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"]}}}}'
4375
+ );
4376
+
4377
+ export function loadAllTypes(coder: MoveCoder) {
4378
+ _0x1.loadAllTypes(coder);
4379
+ _0x2.loadAllTypes(coder);
4380
+ for (const m of Object.values(MODULES)) {
4381
+ coder.load(m as any);
4382
+ }
4383
+ }
4384
+
4385
+ loadAllTypes(defaultMoveCoder());