@typemove/sui 1.2.3 → 1.2.4-rc.1

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