@typemove/sui 1.2.4 → 1.2.5

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/dist/cjs/builtin/0x1.d.ts +496 -0
  2. package/dist/cjs/builtin/0x1.d.ts.map +1 -0
  3. package/dist/cjs/builtin/0x1.js +2038 -0
  4. package/dist/cjs/builtin/0x1.js.map +1 -0
  5. package/dist/cjs/builtin/0x2.d.ts +2933 -0
  6. package/dist/cjs/builtin/0x2.d.ts.map +1 -0
  7. package/dist/cjs/builtin/0x2.js +9511 -0
  8. package/dist/cjs/builtin/0x2.js.map +1 -0
  9. package/dist/cjs/builtin/0x3.d.ts +1208 -0
  10. package/dist/cjs/builtin/0x3.d.ts.map +1 -0
  11. package/dist/cjs/builtin/0x3.js +2455 -0
  12. package/dist/cjs/builtin/0x3.js.map +1 -0
  13. package/dist/cjs/builtin/index.d.ts +4 -0
  14. package/dist/cjs/builtin/index.d.ts.map +1 -0
  15. package/dist/cjs/builtin/index.js +11 -0
  16. package/dist/cjs/builtin/index.js.map +1 -0
  17. package/dist/cjs/codegen/codegen.d.ts +19 -0
  18. package/dist/cjs/codegen/codegen.d.ts.map +1 -0
  19. package/dist/cjs/codegen/codegen.js +178 -0
  20. package/dist/cjs/codegen/codegen.js.map +1 -0
  21. package/dist/cjs/codegen/index.d.ts +2 -0
  22. package/dist/cjs/codegen/index.d.ts.map +1 -0
  23. package/dist/cjs/codegen/index.js +5 -0
  24. package/dist/cjs/codegen/index.js.map +1 -0
  25. package/dist/cjs/index.d.ts +4 -0
  26. package/dist/cjs/index.d.ts.map +1 -0
  27. package/dist/cjs/index.js +11 -0
  28. package/dist/cjs/index.js.map +1 -0
  29. package/dist/cjs/models.d.ts +18 -0
  30. package/dist/cjs/models.d.ts.map +1 -0
  31. package/dist/cjs/models.js +5 -0
  32. package/dist/cjs/models.js.map +1 -0
  33. package/dist/cjs/move-coder.d.ts +25 -0
  34. package/dist/cjs/move-coder.d.ts.map +1 -0
  35. package/dist/cjs/move-coder.js +229 -0
  36. package/dist/cjs/move-coder.js.map +1 -0
  37. package/dist/cjs/move-coder.test.d.ts +2 -0
  38. package/dist/cjs/move-coder.test.d.ts.map +1 -0
  39. package/dist/cjs/move-coder.test.js.map +1 -0
  40. package/dist/cjs/sui-chain-adapter.d.ts +15 -0
  41. package/dist/cjs/sui-chain-adapter.d.ts.map +1 -0
  42. package/dist/cjs/sui-chain-adapter.js +95 -0
  43. package/dist/cjs/sui-chain-adapter.js.map +1 -0
  44. package/dist/cjs/to-internal.d.ts +4 -0
  45. package/dist/cjs/to-internal.d.ts.map +1 -0
  46. package/dist/cjs/to-internal.js +85 -0
  47. package/dist/cjs/to-internal.js.map +1 -0
  48. package/dist/cjs/transaction.d.ts +6 -0
  49. package/dist/cjs/transaction.d.ts.map +1 -0
  50. package/dist/cjs/transaction.js +35 -0
  51. package/dist/cjs/transaction.js.map +1 -0
  52. package/dist/esm/builtin/0x1.d.ts +496 -0
  53. package/dist/esm/builtin/0x1.d.ts.map +1 -0
  54. package/dist/esm/builtin/0x1.js +2034 -0
  55. package/dist/esm/builtin/0x1.js.map +1 -0
  56. package/dist/esm/builtin/0x2.d.ts +2933 -0
  57. package/dist/esm/builtin/0x2.d.ts.map +1 -0
  58. package/dist/esm/builtin/0x2.js +9506 -0
  59. package/dist/esm/builtin/0x2.js.map +1 -0
  60. package/dist/esm/builtin/0x3.d.ts +1208 -0
  61. package/dist/esm/builtin/0x3.d.ts.map +1 -0
  62. package/dist/esm/builtin/0x3.js +2450 -0
  63. package/dist/esm/builtin/0x3.js.map +1 -0
  64. package/dist/esm/builtin/index.d.ts +4 -0
  65. package/dist/esm/builtin/index.d.ts.map +1 -0
  66. package/dist/esm/builtin/index.js +7 -0
  67. package/dist/esm/builtin/index.js.map +1 -0
  68. package/dist/esm/codegen/codegen.d.ts +19 -0
  69. package/dist/esm/codegen/codegen.d.ts.map +1 -0
  70. package/dist/esm/codegen/codegen.js +172 -0
  71. package/dist/esm/codegen/codegen.js.map +1 -0
  72. package/dist/esm/codegen/index.d.ts +2 -0
  73. package/dist/esm/codegen/index.d.ts.map +1 -0
  74. package/dist/esm/codegen/index.js +2 -0
  75. package/dist/esm/codegen/index.js.map +1 -0
  76. package/dist/esm/codegen/run.d.ts +2 -0
  77. package/dist/esm/codegen/run.d.ts.map +1 -0
  78. package/dist/esm/codegen/run.js.map +1 -0
  79. package/dist/esm/index.d.ts +4 -0
  80. package/dist/esm/index.d.ts.map +1 -0
  81. package/dist/esm/index.js +4 -0
  82. package/dist/esm/index.js.map +1 -0
  83. package/dist/esm/models.d.ts +18 -0
  84. package/dist/esm/models.d.ts.map +1 -0
  85. package/dist/esm/models.js +2 -0
  86. package/dist/esm/models.js.map +1 -0
  87. package/dist/esm/move-coder.d.ts +25 -0
  88. package/dist/esm/move-coder.d.ts.map +1 -0
  89. package/dist/esm/move-coder.js +223 -0
  90. package/dist/esm/move-coder.js.map +1 -0
  91. package/dist/esm/move-coder.test.d.ts +2 -0
  92. package/dist/esm/move-coder.test.d.ts.map +1 -0
  93. package/dist/esm/move-coder.test.js.map +1 -0
  94. package/dist/esm/sui-chain-adapter.d.ts +15 -0
  95. package/dist/esm/sui-chain-adapter.d.ts.map +1 -0
  96. package/dist/esm/sui-chain-adapter.js +91 -0
  97. package/dist/esm/sui-chain-adapter.js.map +1 -0
  98. package/dist/esm/to-internal.d.ts +4 -0
  99. package/dist/esm/to-internal.d.ts.map +1 -0
  100. package/dist/esm/to-internal.js +81 -0
  101. package/dist/esm/to-internal.js.map +1 -0
  102. package/dist/esm/transaction.d.ts +6 -0
  103. package/dist/esm/transaction.d.ts.map +1 -0
  104. package/dist/esm/transaction.js +28 -0
  105. package/dist/esm/transaction.js.map +1 -0
  106. package/package.json +2 -2
  107. package/src/abis/0x1.json +2063 -0
  108. package/src/abis/0x2.json +13410 -0
  109. package/src/abis/0x3.json +8645 -0
  110. package/src/builtin/0x1.ts +3000 -0
  111. package/src/builtin/0x2.ts +14596 -0
  112. package/src/builtin/0x3.ts +4188 -0
  113. package/src/builtin/index.ts +6 -0
  114. package/src/codegen/codegen.ts +211 -0
  115. package/src/codegen/index.ts +1 -0
  116. package/src/codegen/run.ts +20 -0
  117. package/src/index.ts +4 -0
  118. package/src/models.ts +21 -0
  119. package/src/move-coder.ts +276 -0
  120. package/src/sui-chain-adapter.ts +121 -0
  121. package/src/tests/abis/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.json +265 -0
  122. package/src/tests/abis/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.json +2429 -0
  123. package/src/tests/abis/testnet/0xdee9.json +5523 -0
  124. package/src/tests/abis/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.json +10060 -0
  125. package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +303 -0
  126. package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +2697 -0
  127. package/src/tests/types/testnet/0xdee9.ts +3099 -0
  128. package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +10215 -0
  129. package/src/tests/types/testnet/index.ts +7 -0
  130. package/src/to-internal.ts +109 -0
  131. package/src/transaction.ts +31 -0
@@ -0,0 +1,2450 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* Generated modules for account 0x3 */
5
+ import { TypeDescriptor } from "@typemove/move";
6
+ import { defaultMoveCoder } from "@typemove/sui";
7
+ import { ZERO_ADDRESS, getMoveCoder, } from "@typemove/sui";
8
+ import { TransactionBlock, } from "@mysten/sui.js/transactions";
9
+ import { transactionArgumentOrObject, transactionArgumentOrPure, transactionArgumentOrVec, } from "@typemove/sui";
10
+ import * as _0x1 from "./0x1.js";
11
+ import * as _0x2 from "./0x2.js";
12
+ export var genesis;
13
+ (function (genesis) {
14
+ let GenesisChainParameters;
15
+ (function (GenesisChainParameters) {
16
+ GenesisChainParameters.TYPE_QNAME = "0x3::genesis::GenesisChainParameters";
17
+ const TYPE = new TypeDescriptor(GenesisChainParameters.TYPE_QNAME);
18
+ function type() {
19
+ return TYPE.apply();
20
+ }
21
+ GenesisChainParameters.type = type;
22
+ })(GenesisChainParameters = genesis.GenesisChainParameters || (genesis.GenesisChainParameters = {}));
23
+ let GenesisValidatorMetadata;
24
+ (function (GenesisValidatorMetadata) {
25
+ GenesisValidatorMetadata.TYPE_QNAME = "0x3::genesis::GenesisValidatorMetadata";
26
+ const TYPE = new TypeDescriptor(GenesisValidatorMetadata.TYPE_QNAME);
27
+ function type() {
28
+ return TYPE.apply();
29
+ }
30
+ GenesisValidatorMetadata.type = type;
31
+ })(GenesisValidatorMetadata = genesis.GenesisValidatorMetadata || (genesis.GenesisValidatorMetadata = {}));
32
+ let TokenAllocation;
33
+ (function (TokenAllocation) {
34
+ TokenAllocation.TYPE_QNAME = "0x3::genesis::TokenAllocation";
35
+ const TYPE = new TypeDescriptor(TokenAllocation.TYPE_QNAME);
36
+ function type() {
37
+ return TYPE.apply();
38
+ }
39
+ TokenAllocation.type = type;
40
+ })(TokenAllocation = genesis.TokenAllocation || (genesis.TokenAllocation = {}));
41
+ let TokenDistributionSchedule;
42
+ (function (TokenDistributionSchedule) {
43
+ TokenDistributionSchedule.TYPE_QNAME = "0x3::genesis::TokenDistributionSchedule";
44
+ const TYPE = new TypeDescriptor(TokenDistributionSchedule.TYPE_QNAME);
45
+ function type() {
46
+ return TYPE.apply();
47
+ }
48
+ TokenDistributionSchedule.type = type;
49
+ })(TokenDistributionSchedule = genesis.TokenDistributionSchedule || (genesis.TokenDistributionSchedule = {}));
50
+ })(genesis || (genesis = {}));
51
+ export var stake_subsidy;
52
+ (function (stake_subsidy) {
53
+ let StakeSubsidy;
54
+ (function (StakeSubsidy) {
55
+ StakeSubsidy.TYPE_QNAME = "0x3::stake_subsidy::StakeSubsidy";
56
+ const TYPE = new TypeDescriptor(StakeSubsidy.TYPE_QNAME);
57
+ function type() {
58
+ return TYPE.apply();
59
+ }
60
+ StakeSubsidy.type = type;
61
+ })(StakeSubsidy = stake_subsidy.StakeSubsidy || (stake_subsidy.StakeSubsidy = {}));
62
+ let builder;
63
+ (function (builder) {
64
+ function currentEpochSubsidyAmount(tx, args) {
65
+ const _args = [];
66
+ _args.push(transactionArgumentOrObject(args[0], tx));
67
+ // @ts-ignore
68
+ return tx.moveCall({
69
+ target: "0x3::stake_subsidy::current_epoch_subsidy_amount",
70
+ arguments: _args,
71
+ });
72
+ }
73
+ builder.currentEpochSubsidyAmount = currentEpochSubsidyAmount;
74
+ })(builder = stake_subsidy.builder || (stake_subsidy.builder = {}));
75
+ let view;
76
+ (function (view) {
77
+ async function currentEpochSubsidyAmount(client, args) {
78
+ const tx = new TransactionBlock();
79
+ builder.currentEpochSubsidyAmount(tx, args);
80
+ const insepctRes = await client.devInspectTransactionBlock({
81
+ transactionBlock: tx,
82
+ sender: ZERO_ADDRESS,
83
+ });
84
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
85
+ }
86
+ view.currentEpochSubsidyAmount = currentEpochSubsidyAmount;
87
+ })(view = stake_subsidy.view || (stake_subsidy.view = {}));
88
+ })(stake_subsidy || (stake_subsidy = {}));
89
+ export var staking_pool;
90
+ (function (staking_pool) {
91
+ let PoolTokenExchangeRate;
92
+ (function (PoolTokenExchangeRate) {
93
+ PoolTokenExchangeRate.TYPE_QNAME = "0x3::staking_pool::PoolTokenExchangeRate";
94
+ const TYPE = new TypeDescriptor(PoolTokenExchangeRate.TYPE_QNAME);
95
+ function type() {
96
+ return TYPE.apply();
97
+ }
98
+ PoolTokenExchangeRate.type = type;
99
+ })(PoolTokenExchangeRate = staking_pool.PoolTokenExchangeRate || (staking_pool.PoolTokenExchangeRate = {}));
100
+ let StakedSui;
101
+ (function (StakedSui) {
102
+ StakedSui.TYPE_QNAME = "0x3::staking_pool::StakedSui";
103
+ const TYPE = new TypeDescriptor(StakedSui.TYPE_QNAME);
104
+ function type() {
105
+ return TYPE.apply();
106
+ }
107
+ StakedSui.type = type;
108
+ })(StakedSui = staking_pool.StakedSui || (staking_pool.StakedSui = {}));
109
+ let StakingPool;
110
+ (function (StakingPool) {
111
+ StakingPool.TYPE_QNAME = "0x3::staking_pool::StakingPool";
112
+ const TYPE = new TypeDescriptor(StakingPool.TYPE_QNAME);
113
+ function type() {
114
+ return TYPE.apply();
115
+ }
116
+ StakingPool.type = type;
117
+ })(StakingPool = staking_pool.StakingPool || (staking_pool.StakingPool = {}));
118
+ let builder;
119
+ (function (builder) {
120
+ function isEqualStakingMetadata(tx, args) {
121
+ const _args = [];
122
+ _args.push(transactionArgumentOrObject(args[0], tx));
123
+ _args.push(transactionArgumentOrObject(args[1], tx));
124
+ // @ts-ignore
125
+ return tx.moveCall({
126
+ target: "0x3::staking_pool::is_equal_staking_metadata",
127
+ arguments: _args,
128
+ });
129
+ }
130
+ builder.isEqualStakingMetadata = isEqualStakingMetadata;
131
+ function isInactive(tx, args) {
132
+ const _args = [];
133
+ _args.push(transactionArgumentOrObject(args[0], tx));
134
+ // @ts-ignore
135
+ return tx.moveCall({
136
+ target: "0x3::staking_pool::is_inactive",
137
+ arguments: _args,
138
+ });
139
+ }
140
+ builder.isInactive = isInactive;
141
+ function isPreactive(tx, args) {
142
+ const _args = [];
143
+ _args.push(transactionArgumentOrObject(args[0], tx));
144
+ // @ts-ignore
145
+ return tx.moveCall({
146
+ target: "0x3::staking_pool::is_preactive",
147
+ arguments: _args,
148
+ });
149
+ }
150
+ builder.isPreactive = isPreactive;
151
+ function joinStakedSui(tx, args) {
152
+ const _args = [];
153
+ _args.push(transactionArgumentOrObject(args[0], tx));
154
+ _args.push(transactionArgumentOrPure(args[1], tx));
155
+ // @ts-ignore
156
+ return tx.moveCall({
157
+ target: "0x3::staking_pool::join_staked_sui",
158
+ arguments: _args,
159
+ });
160
+ }
161
+ builder.joinStakedSui = joinStakedSui;
162
+ function pendingStakeAmount(tx, args) {
163
+ const _args = [];
164
+ _args.push(transactionArgumentOrObject(args[0], tx));
165
+ // @ts-ignore
166
+ return tx.moveCall({
167
+ target: "0x3::staking_pool::pending_stake_amount",
168
+ arguments: _args,
169
+ });
170
+ }
171
+ builder.pendingStakeAmount = pendingStakeAmount;
172
+ function pendingStakeWithdrawAmount(tx, args) {
173
+ const _args = [];
174
+ _args.push(transactionArgumentOrObject(args[0], tx));
175
+ // @ts-ignore
176
+ return tx.moveCall({
177
+ target: "0x3::staking_pool::pending_stake_withdraw_amount",
178
+ arguments: _args,
179
+ });
180
+ }
181
+ builder.pendingStakeWithdrawAmount = pendingStakeWithdrawAmount;
182
+ function poolId(tx, args) {
183
+ const _args = [];
184
+ _args.push(transactionArgumentOrObject(args[0], tx));
185
+ // @ts-ignore
186
+ return tx.moveCall({
187
+ target: "0x3::staking_pool::pool_id",
188
+ arguments: _args,
189
+ });
190
+ }
191
+ builder.poolId = poolId;
192
+ function poolTokenExchangeRateAtEpoch(tx, args) {
193
+ const _args = [];
194
+ _args.push(transactionArgumentOrObject(args[0], tx));
195
+ _args.push(transactionArgumentOrPure(args[1], tx));
196
+ // @ts-ignore
197
+ return tx.moveCall({
198
+ target: "0x3::staking_pool::pool_token_exchange_rate_at_epoch",
199
+ arguments: _args,
200
+ });
201
+ }
202
+ builder.poolTokenExchangeRateAtEpoch = poolTokenExchangeRateAtEpoch;
203
+ function split(tx, args) {
204
+ const _args = [];
205
+ _args.push(transactionArgumentOrObject(args[0], tx));
206
+ _args.push(transactionArgumentOrPure(args[1], tx));
207
+ _args.push(transactionArgumentOrObject(args[2], tx));
208
+ // @ts-ignore
209
+ return tx.moveCall({
210
+ target: "0x3::staking_pool::split",
211
+ arguments: _args,
212
+ });
213
+ }
214
+ builder.split = split;
215
+ function splitStakedSui(tx, args) {
216
+ const _args = [];
217
+ _args.push(transactionArgumentOrObject(args[0], tx));
218
+ _args.push(transactionArgumentOrPure(args[1], tx));
219
+ _args.push(transactionArgumentOrObject(args[2], tx));
220
+ // @ts-ignore
221
+ return tx.moveCall({
222
+ target: "0x3::staking_pool::split_staked_sui",
223
+ arguments: _args,
224
+ });
225
+ }
226
+ builder.splitStakedSui = splitStakedSui;
227
+ function stakeActivationEpoch(tx, args) {
228
+ const _args = [];
229
+ _args.push(transactionArgumentOrObject(args[0], tx));
230
+ // @ts-ignore
231
+ return tx.moveCall({
232
+ target: "0x3::staking_pool::stake_activation_epoch",
233
+ arguments: _args,
234
+ });
235
+ }
236
+ builder.stakeActivationEpoch = stakeActivationEpoch;
237
+ function stakedSuiAmount(tx, args) {
238
+ const _args = [];
239
+ _args.push(transactionArgumentOrObject(args[0], tx));
240
+ // @ts-ignore
241
+ return tx.moveCall({
242
+ target: "0x3::staking_pool::staked_sui_amount",
243
+ arguments: _args,
244
+ });
245
+ }
246
+ builder.stakedSuiAmount = stakedSuiAmount;
247
+ function suiBalance(tx, args) {
248
+ const _args = [];
249
+ _args.push(transactionArgumentOrObject(args[0], tx));
250
+ // @ts-ignore
251
+ return tx.moveCall({
252
+ target: "0x3::staking_pool::sui_balance",
253
+ arguments: _args,
254
+ });
255
+ }
256
+ builder.suiBalance = suiBalance;
257
+ })(builder = staking_pool.builder || (staking_pool.builder = {}));
258
+ let view;
259
+ (function (view) {
260
+ async function isEqualStakingMetadata(client, args) {
261
+ const tx = new TransactionBlock();
262
+ builder.isEqualStakingMetadata(tx, args);
263
+ const insepctRes = await client.devInspectTransactionBlock({
264
+ transactionBlock: tx,
265
+ sender: ZERO_ADDRESS,
266
+ });
267
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
268
+ }
269
+ view.isEqualStakingMetadata = isEqualStakingMetadata;
270
+ async function isInactive(client, args) {
271
+ const tx = new TransactionBlock();
272
+ builder.isInactive(tx, args);
273
+ const insepctRes = await client.devInspectTransactionBlock({
274
+ transactionBlock: tx,
275
+ sender: ZERO_ADDRESS,
276
+ });
277
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
278
+ }
279
+ view.isInactive = isInactive;
280
+ async function isPreactive(client, args) {
281
+ const tx = new TransactionBlock();
282
+ builder.isPreactive(tx, args);
283
+ const insepctRes = await client.devInspectTransactionBlock({
284
+ transactionBlock: tx,
285
+ sender: ZERO_ADDRESS,
286
+ });
287
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
288
+ }
289
+ view.isPreactive = isPreactive;
290
+ async function joinStakedSui(client, args) {
291
+ const tx = new TransactionBlock();
292
+ builder.joinStakedSui(tx, args);
293
+ const insepctRes = await client.devInspectTransactionBlock({
294
+ transactionBlock: tx,
295
+ sender: ZERO_ADDRESS,
296
+ });
297
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
298
+ }
299
+ view.joinStakedSui = joinStakedSui;
300
+ async function pendingStakeAmount(client, args) {
301
+ const tx = new TransactionBlock();
302
+ builder.pendingStakeAmount(tx, args);
303
+ const insepctRes = await client.devInspectTransactionBlock({
304
+ transactionBlock: tx,
305
+ sender: ZERO_ADDRESS,
306
+ });
307
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
308
+ }
309
+ view.pendingStakeAmount = pendingStakeAmount;
310
+ async function pendingStakeWithdrawAmount(client, args) {
311
+ const tx = new TransactionBlock();
312
+ builder.pendingStakeWithdrawAmount(tx, args);
313
+ const insepctRes = await client.devInspectTransactionBlock({
314
+ transactionBlock: tx,
315
+ sender: ZERO_ADDRESS,
316
+ });
317
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
318
+ }
319
+ view.pendingStakeWithdrawAmount = pendingStakeWithdrawAmount;
320
+ async function poolId(client, args) {
321
+ const tx = new TransactionBlock();
322
+ builder.poolId(tx, args);
323
+ const insepctRes = await client.devInspectTransactionBlock({
324
+ transactionBlock: tx,
325
+ sender: ZERO_ADDRESS,
326
+ });
327
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
328
+ }
329
+ view.poolId = poolId;
330
+ async function poolTokenExchangeRateAtEpoch(client, args) {
331
+ const tx = new TransactionBlock();
332
+ builder.poolTokenExchangeRateAtEpoch(tx, args);
333
+ const insepctRes = await client.devInspectTransactionBlock({
334
+ transactionBlock: tx,
335
+ sender: ZERO_ADDRESS,
336
+ });
337
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
338
+ }
339
+ view.poolTokenExchangeRateAtEpoch = poolTokenExchangeRateAtEpoch;
340
+ async function split(client, args) {
341
+ const tx = new TransactionBlock();
342
+ builder.split(tx, args);
343
+ const insepctRes = await client.devInspectTransactionBlock({
344
+ transactionBlock: tx,
345
+ sender: ZERO_ADDRESS,
346
+ });
347
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
348
+ }
349
+ view.split = split;
350
+ async function splitStakedSui(client, args) {
351
+ const tx = new TransactionBlock();
352
+ builder.splitStakedSui(tx, args);
353
+ const insepctRes = await client.devInspectTransactionBlock({
354
+ transactionBlock: tx,
355
+ sender: ZERO_ADDRESS,
356
+ });
357
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
358
+ }
359
+ view.splitStakedSui = splitStakedSui;
360
+ async function stakeActivationEpoch(client, args) {
361
+ const tx = new TransactionBlock();
362
+ builder.stakeActivationEpoch(tx, args);
363
+ const insepctRes = await client.devInspectTransactionBlock({
364
+ transactionBlock: tx,
365
+ sender: ZERO_ADDRESS,
366
+ });
367
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
368
+ }
369
+ view.stakeActivationEpoch = stakeActivationEpoch;
370
+ async function stakedSuiAmount(client, args) {
371
+ const tx = new TransactionBlock();
372
+ builder.stakedSuiAmount(tx, args);
373
+ const insepctRes = await client.devInspectTransactionBlock({
374
+ transactionBlock: tx,
375
+ sender: ZERO_ADDRESS,
376
+ });
377
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
378
+ }
379
+ view.stakedSuiAmount = stakedSuiAmount;
380
+ async function suiBalance(client, args) {
381
+ const tx = new TransactionBlock();
382
+ builder.suiBalance(tx, args);
383
+ const insepctRes = await client.devInspectTransactionBlock({
384
+ transactionBlock: tx,
385
+ sender: ZERO_ADDRESS,
386
+ });
387
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
388
+ }
389
+ view.suiBalance = suiBalance;
390
+ })(view = staking_pool.view || (staking_pool.view = {}));
391
+ })(staking_pool || (staking_pool = {}));
392
+ export var storage_fund;
393
+ (function (storage_fund) {
394
+ let StorageFund;
395
+ (function (StorageFund) {
396
+ StorageFund.TYPE_QNAME = "0x3::storage_fund::StorageFund";
397
+ const TYPE = new TypeDescriptor(StorageFund.TYPE_QNAME);
398
+ function type() {
399
+ return TYPE.apply();
400
+ }
401
+ StorageFund.type = type;
402
+ })(StorageFund = storage_fund.StorageFund || (storage_fund.StorageFund = {}));
403
+ let builder;
404
+ (function (builder) {
405
+ function totalBalance(tx, args) {
406
+ const _args = [];
407
+ _args.push(transactionArgumentOrObject(args[0], tx));
408
+ // @ts-ignore
409
+ return tx.moveCall({
410
+ target: "0x3::storage_fund::total_balance",
411
+ arguments: _args,
412
+ });
413
+ }
414
+ builder.totalBalance = totalBalance;
415
+ function totalObjectStorageRebates(tx, args) {
416
+ const _args = [];
417
+ _args.push(transactionArgumentOrObject(args[0], tx));
418
+ // @ts-ignore
419
+ return tx.moveCall({
420
+ target: "0x3::storage_fund::total_object_storage_rebates",
421
+ arguments: _args,
422
+ });
423
+ }
424
+ builder.totalObjectStorageRebates = totalObjectStorageRebates;
425
+ })(builder = storage_fund.builder || (storage_fund.builder = {}));
426
+ let view;
427
+ (function (view) {
428
+ async function totalBalance(client, args) {
429
+ const tx = new TransactionBlock();
430
+ builder.totalBalance(tx, args);
431
+ const insepctRes = await client.devInspectTransactionBlock({
432
+ transactionBlock: tx,
433
+ sender: ZERO_ADDRESS,
434
+ });
435
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
436
+ }
437
+ view.totalBalance = totalBalance;
438
+ async function totalObjectStorageRebates(client, args) {
439
+ const tx = new TransactionBlock();
440
+ builder.totalObjectStorageRebates(tx, args);
441
+ const insepctRes = await client.devInspectTransactionBlock({
442
+ transactionBlock: tx,
443
+ sender: ZERO_ADDRESS,
444
+ });
445
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
446
+ }
447
+ view.totalObjectStorageRebates = totalObjectStorageRebates;
448
+ })(view = storage_fund.view || (storage_fund.view = {}));
449
+ })(storage_fund || (storage_fund = {}));
450
+ export var sui_system;
451
+ (function (sui_system) {
452
+ let SuiSystemState;
453
+ (function (SuiSystemState) {
454
+ SuiSystemState.TYPE_QNAME = "0x3::sui_system::SuiSystemState";
455
+ const TYPE = new TypeDescriptor(SuiSystemState.TYPE_QNAME);
456
+ function type() {
457
+ return TYPE.apply();
458
+ }
459
+ SuiSystemState.type = type;
460
+ })(SuiSystemState = sui_system.SuiSystemState || (sui_system.SuiSystemState = {}));
461
+ let builder;
462
+ (function (builder) {
463
+ function reportValidator(tx, args) {
464
+ const _args = [];
465
+ _args.push(transactionArgumentOrObject(args[0], tx));
466
+ _args.push(transactionArgumentOrObject(args[1], tx));
467
+ _args.push(transactionArgumentOrPure(args[2], tx));
468
+ // @ts-ignore
469
+ return tx.moveCall({
470
+ target: "0x3::sui_system::report_validator",
471
+ arguments: _args,
472
+ });
473
+ }
474
+ builder.reportValidator = reportValidator;
475
+ function requestAddStake(tx, args) {
476
+ const _args = [];
477
+ _args.push(transactionArgumentOrObject(args[0], tx));
478
+ _args.push(transactionArgumentOrPure(args[1], tx));
479
+ _args.push(transactionArgumentOrPure(args[2], tx));
480
+ _args.push(transactionArgumentOrObject(args[3], tx));
481
+ // @ts-ignore
482
+ return tx.moveCall({
483
+ target: "0x3::sui_system::request_add_stake",
484
+ arguments: _args,
485
+ });
486
+ }
487
+ builder.requestAddStake = requestAddStake;
488
+ function requestAddStakeMulCoin(tx, args) {
489
+ const _args = [];
490
+ _args.push(transactionArgumentOrObject(args[0], tx));
491
+ _args.push(transactionArgumentOrVec(args[1], tx));
492
+ _args.push(transactionArgumentOrPure(args[2], tx));
493
+ _args.push(transactionArgumentOrPure(args[3], tx));
494
+ _args.push(transactionArgumentOrObject(args[4], tx));
495
+ // @ts-ignore
496
+ return tx.moveCall({
497
+ target: "0x3::sui_system::request_add_stake_mul_coin",
498
+ arguments: _args,
499
+ });
500
+ }
501
+ builder.requestAddStakeMulCoin = requestAddStakeMulCoin;
502
+ function requestAddValidator(tx, args) {
503
+ const _args = [];
504
+ _args.push(transactionArgumentOrObject(args[0], tx));
505
+ _args.push(transactionArgumentOrObject(args[1], tx));
506
+ // @ts-ignore
507
+ return tx.moveCall({
508
+ target: "0x3::sui_system::request_add_validator",
509
+ arguments: _args,
510
+ });
511
+ }
512
+ builder.requestAddValidator = requestAddValidator;
513
+ function requestAddValidatorCandidate(tx, args) {
514
+ const _args = [];
515
+ _args.push(transactionArgumentOrObject(args[0], tx));
516
+ _args.push(transactionArgumentOrVec(args[1], tx));
517
+ _args.push(transactionArgumentOrVec(args[2], tx));
518
+ _args.push(transactionArgumentOrVec(args[3], tx));
519
+ _args.push(transactionArgumentOrVec(args[4], tx));
520
+ _args.push(transactionArgumentOrVec(args[5], tx));
521
+ _args.push(transactionArgumentOrVec(args[6], tx));
522
+ _args.push(transactionArgumentOrVec(args[7], tx));
523
+ _args.push(transactionArgumentOrVec(args[8], tx));
524
+ _args.push(transactionArgumentOrVec(args[9], tx));
525
+ _args.push(transactionArgumentOrVec(args[10], tx));
526
+ _args.push(transactionArgumentOrVec(args[11], tx));
527
+ _args.push(transactionArgumentOrVec(args[12], tx));
528
+ _args.push(transactionArgumentOrPure(args[13], tx));
529
+ _args.push(transactionArgumentOrPure(args[14], tx));
530
+ _args.push(transactionArgumentOrObject(args[15], tx));
531
+ // @ts-ignore
532
+ return tx.moveCall({
533
+ target: "0x3::sui_system::request_add_validator_candidate",
534
+ arguments: _args,
535
+ });
536
+ }
537
+ builder.requestAddValidatorCandidate = requestAddValidatorCandidate;
538
+ function requestRemoveValidator(tx, args) {
539
+ const _args = [];
540
+ _args.push(transactionArgumentOrObject(args[0], tx));
541
+ _args.push(transactionArgumentOrObject(args[1], tx));
542
+ // @ts-ignore
543
+ return tx.moveCall({
544
+ target: "0x3::sui_system::request_remove_validator",
545
+ arguments: _args,
546
+ });
547
+ }
548
+ builder.requestRemoveValidator = requestRemoveValidator;
549
+ function requestRemoveValidatorCandidate(tx, args) {
550
+ const _args = [];
551
+ _args.push(transactionArgumentOrObject(args[0], tx));
552
+ _args.push(transactionArgumentOrObject(args[1], tx));
553
+ // @ts-ignore
554
+ return tx.moveCall({
555
+ target: "0x3::sui_system::request_remove_validator_candidate",
556
+ arguments: _args,
557
+ });
558
+ }
559
+ builder.requestRemoveValidatorCandidate = requestRemoveValidatorCandidate;
560
+ function requestSetCommissionRate(tx, args) {
561
+ const _args = [];
562
+ _args.push(transactionArgumentOrObject(args[0], tx));
563
+ _args.push(transactionArgumentOrPure(args[1], tx));
564
+ _args.push(transactionArgumentOrObject(args[2], tx));
565
+ // @ts-ignore
566
+ return tx.moveCall({
567
+ target: "0x3::sui_system::request_set_commission_rate",
568
+ arguments: _args,
569
+ });
570
+ }
571
+ builder.requestSetCommissionRate = requestSetCommissionRate;
572
+ function requestSetGasPrice(tx, args) {
573
+ const _args = [];
574
+ _args.push(transactionArgumentOrObject(args[0], tx));
575
+ _args.push(transactionArgumentOrObject(args[1], tx));
576
+ _args.push(transactionArgumentOrPure(args[2], tx));
577
+ // @ts-ignore
578
+ return tx.moveCall({
579
+ target: "0x3::sui_system::request_set_gas_price",
580
+ arguments: _args,
581
+ });
582
+ }
583
+ builder.requestSetGasPrice = requestSetGasPrice;
584
+ function requestWithdrawStake(tx, args) {
585
+ const _args = [];
586
+ _args.push(transactionArgumentOrObject(args[0], tx));
587
+ _args.push(transactionArgumentOrPure(args[1], tx));
588
+ _args.push(transactionArgumentOrObject(args[2], tx));
589
+ // @ts-ignore
590
+ return tx.moveCall({
591
+ target: "0x3::sui_system::request_withdraw_stake",
592
+ arguments: _args,
593
+ });
594
+ }
595
+ builder.requestWithdrawStake = requestWithdrawStake;
596
+ function rotateOperationCap(tx, args) {
597
+ const _args = [];
598
+ _args.push(transactionArgumentOrObject(args[0], tx));
599
+ _args.push(transactionArgumentOrObject(args[1], tx));
600
+ // @ts-ignore
601
+ return tx.moveCall({
602
+ target: "0x3::sui_system::rotate_operation_cap",
603
+ arguments: _args,
604
+ });
605
+ }
606
+ builder.rotateOperationCap = rotateOperationCap;
607
+ function setCandidateValidatorCommissionRate(tx, args) {
608
+ const _args = [];
609
+ _args.push(transactionArgumentOrObject(args[0], tx));
610
+ _args.push(transactionArgumentOrPure(args[1], tx));
611
+ _args.push(transactionArgumentOrObject(args[2], tx));
612
+ // @ts-ignore
613
+ return tx.moveCall({
614
+ target: "0x3::sui_system::set_candidate_validator_commission_rate",
615
+ arguments: _args,
616
+ });
617
+ }
618
+ builder.setCandidateValidatorCommissionRate = setCandidateValidatorCommissionRate;
619
+ function setCandidateValidatorGasPrice(tx, args) {
620
+ const _args = [];
621
+ _args.push(transactionArgumentOrObject(args[0], tx));
622
+ _args.push(transactionArgumentOrObject(args[1], tx));
623
+ _args.push(transactionArgumentOrPure(args[2], tx));
624
+ // @ts-ignore
625
+ return tx.moveCall({
626
+ target: "0x3::sui_system::set_candidate_validator_gas_price",
627
+ arguments: _args,
628
+ });
629
+ }
630
+ builder.setCandidateValidatorGasPrice = setCandidateValidatorGasPrice;
631
+ function undoReportValidator(tx, args) {
632
+ const _args = [];
633
+ _args.push(transactionArgumentOrObject(args[0], tx));
634
+ _args.push(transactionArgumentOrObject(args[1], tx));
635
+ _args.push(transactionArgumentOrPure(args[2], tx));
636
+ // @ts-ignore
637
+ return tx.moveCall({
638
+ target: "0x3::sui_system::undo_report_validator",
639
+ arguments: _args,
640
+ });
641
+ }
642
+ builder.undoReportValidator = undoReportValidator;
643
+ function updateCandidateValidatorNetworkAddress(tx, args) {
644
+ const _args = [];
645
+ _args.push(transactionArgumentOrObject(args[0], tx));
646
+ _args.push(transactionArgumentOrVec(args[1], tx));
647
+ _args.push(transactionArgumentOrObject(args[2], tx));
648
+ // @ts-ignore
649
+ return tx.moveCall({
650
+ target: "0x3::sui_system::update_candidate_validator_network_address",
651
+ arguments: _args,
652
+ });
653
+ }
654
+ builder.updateCandidateValidatorNetworkAddress = updateCandidateValidatorNetworkAddress;
655
+ function updateCandidateValidatorNetworkPubkey(tx, args) {
656
+ const _args = [];
657
+ _args.push(transactionArgumentOrObject(args[0], tx));
658
+ _args.push(transactionArgumentOrVec(args[1], tx));
659
+ _args.push(transactionArgumentOrObject(args[2], tx));
660
+ // @ts-ignore
661
+ return tx.moveCall({
662
+ target: "0x3::sui_system::update_candidate_validator_network_pubkey",
663
+ arguments: _args,
664
+ });
665
+ }
666
+ builder.updateCandidateValidatorNetworkPubkey = updateCandidateValidatorNetworkPubkey;
667
+ function updateCandidateValidatorP2pAddress(tx, args) {
668
+ const _args = [];
669
+ _args.push(transactionArgumentOrObject(args[0], tx));
670
+ _args.push(transactionArgumentOrVec(args[1], tx));
671
+ _args.push(transactionArgumentOrObject(args[2], tx));
672
+ // @ts-ignore
673
+ return tx.moveCall({
674
+ target: "0x3::sui_system::update_candidate_validator_p2p_address",
675
+ arguments: _args,
676
+ });
677
+ }
678
+ builder.updateCandidateValidatorP2pAddress = updateCandidateValidatorP2pAddress;
679
+ function updateCandidateValidatorPrimaryAddress(tx, args) {
680
+ const _args = [];
681
+ _args.push(transactionArgumentOrObject(args[0], tx));
682
+ _args.push(transactionArgumentOrVec(args[1], tx));
683
+ _args.push(transactionArgumentOrObject(args[2], tx));
684
+ // @ts-ignore
685
+ return tx.moveCall({
686
+ target: "0x3::sui_system::update_candidate_validator_primary_address",
687
+ arguments: _args,
688
+ });
689
+ }
690
+ builder.updateCandidateValidatorPrimaryAddress = updateCandidateValidatorPrimaryAddress;
691
+ function updateCandidateValidatorProtocolPubkey(tx, args) {
692
+ const _args = [];
693
+ _args.push(transactionArgumentOrObject(args[0], tx));
694
+ _args.push(transactionArgumentOrVec(args[1], tx));
695
+ _args.push(transactionArgumentOrVec(args[2], tx));
696
+ _args.push(transactionArgumentOrObject(args[3], tx));
697
+ // @ts-ignore
698
+ return tx.moveCall({
699
+ target: "0x3::sui_system::update_candidate_validator_protocol_pubkey",
700
+ arguments: _args,
701
+ });
702
+ }
703
+ builder.updateCandidateValidatorProtocolPubkey = updateCandidateValidatorProtocolPubkey;
704
+ function updateCandidateValidatorWorkerAddress(tx, args) {
705
+ const _args = [];
706
+ _args.push(transactionArgumentOrObject(args[0], tx));
707
+ _args.push(transactionArgumentOrVec(args[1], tx));
708
+ _args.push(transactionArgumentOrObject(args[2], tx));
709
+ // @ts-ignore
710
+ return tx.moveCall({
711
+ target: "0x3::sui_system::update_candidate_validator_worker_address",
712
+ arguments: _args,
713
+ });
714
+ }
715
+ builder.updateCandidateValidatorWorkerAddress = updateCandidateValidatorWorkerAddress;
716
+ function updateCandidateValidatorWorkerPubkey(tx, args) {
717
+ const _args = [];
718
+ _args.push(transactionArgumentOrObject(args[0], tx));
719
+ _args.push(transactionArgumentOrVec(args[1], tx));
720
+ _args.push(transactionArgumentOrObject(args[2], tx));
721
+ // @ts-ignore
722
+ return tx.moveCall({
723
+ target: "0x3::sui_system::update_candidate_validator_worker_pubkey",
724
+ arguments: _args,
725
+ });
726
+ }
727
+ builder.updateCandidateValidatorWorkerPubkey = updateCandidateValidatorWorkerPubkey;
728
+ function updateValidatorDescription(tx, args) {
729
+ const _args = [];
730
+ _args.push(transactionArgumentOrObject(args[0], tx));
731
+ _args.push(transactionArgumentOrVec(args[1], tx));
732
+ _args.push(transactionArgumentOrObject(args[2], tx));
733
+ // @ts-ignore
734
+ return tx.moveCall({
735
+ target: "0x3::sui_system::update_validator_description",
736
+ arguments: _args,
737
+ });
738
+ }
739
+ builder.updateValidatorDescription = updateValidatorDescription;
740
+ function updateValidatorImageUrl(tx, args) {
741
+ const _args = [];
742
+ _args.push(transactionArgumentOrObject(args[0], tx));
743
+ _args.push(transactionArgumentOrVec(args[1], tx));
744
+ _args.push(transactionArgumentOrObject(args[2], tx));
745
+ // @ts-ignore
746
+ return tx.moveCall({
747
+ target: "0x3::sui_system::update_validator_image_url",
748
+ arguments: _args,
749
+ });
750
+ }
751
+ builder.updateValidatorImageUrl = updateValidatorImageUrl;
752
+ function updateValidatorName(tx, args) {
753
+ const _args = [];
754
+ _args.push(transactionArgumentOrObject(args[0], tx));
755
+ _args.push(transactionArgumentOrVec(args[1], tx));
756
+ _args.push(transactionArgumentOrObject(args[2], tx));
757
+ // @ts-ignore
758
+ return tx.moveCall({
759
+ target: "0x3::sui_system::update_validator_name",
760
+ arguments: _args,
761
+ });
762
+ }
763
+ builder.updateValidatorName = updateValidatorName;
764
+ function updateValidatorNextEpochNetworkAddress(tx, args) {
765
+ const _args = [];
766
+ _args.push(transactionArgumentOrObject(args[0], tx));
767
+ _args.push(transactionArgumentOrVec(args[1], tx));
768
+ _args.push(transactionArgumentOrObject(args[2], tx));
769
+ // @ts-ignore
770
+ return tx.moveCall({
771
+ target: "0x3::sui_system::update_validator_next_epoch_network_address",
772
+ arguments: _args,
773
+ });
774
+ }
775
+ builder.updateValidatorNextEpochNetworkAddress = updateValidatorNextEpochNetworkAddress;
776
+ function updateValidatorNextEpochNetworkPubkey(tx, args) {
777
+ const _args = [];
778
+ _args.push(transactionArgumentOrObject(args[0], tx));
779
+ _args.push(transactionArgumentOrVec(args[1], tx));
780
+ _args.push(transactionArgumentOrObject(args[2], tx));
781
+ // @ts-ignore
782
+ return tx.moveCall({
783
+ target: "0x3::sui_system::update_validator_next_epoch_network_pubkey",
784
+ arguments: _args,
785
+ });
786
+ }
787
+ builder.updateValidatorNextEpochNetworkPubkey = updateValidatorNextEpochNetworkPubkey;
788
+ function updateValidatorNextEpochP2pAddress(tx, args) {
789
+ const _args = [];
790
+ _args.push(transactionArgumentOrObject(args[0], tx));
791
+ _args.push(transactionArgumentOrVec(args[1], tx));
792
+ _args.push(transactionArgumentOrObject(args[2], tx));
793
+ // @ts-ignore
794
+ return tx.moveCall({
795
+ target: "0x3::sui_system::update_validator_next_epoch_p2p_address",
796
+ arguments: _args,
797
+ });
798
+ }
799
+ builder.updateValidatorNextEpochP2pAddress = updateValidatorNextEpochP2pAddress;
800
+ function updateValidatorNextEpochPrimaryAddress(tx, args) {
801
+ const _args = [];
802
+ _args.push(transactionArgumentOrObject(args[0], tx));
803
+ _args.push(transactionArgumentOrVec(args[1], tx));
804
+ _args.push(transactionArgumentOrObject(args[2], tx));
805
+ // @ts-ignore
806
+ return tx.moveCall({
807
+ target: "0x3::sui_system::update_validator_next_epoch_primary_address",
808
+ arguments: _args,
809
+ });
810
+ }
811
+ builder.updateValidatorNextEpochPrimaryAddress = updateValidatorNextEpochPrimaryAddress;
812
+ function updateValidatorNextEpochProtocolPubkey(tx, args) {
813
+ const _args = [];
814
+ _args.push(transactionArgumentOrObject(args[0], tx));
815
+ _args.push(transactionArgumentOrVec(args[1], tx));
816
+ _args.push(transactionArgumentOrVec(args[2], tx));
817
+ _args.push(transactionArgumentOrObject(args[3], tx));
818
+ // @ts-ignore
819
+ return tx.moveCall({
820
+ target: "0x3::sui_system::update_validator_next_epoch_protocol_pubkey",
821
+ arguments: _args,
822
+ });
823
+ }
824
+ builder.updateValidatorNextEpochProtocolPubkey = updateValidatorNextEpochProtocolPubkey;
825
+ function updateValidatorNextEpochWorkerAddress(tx, args) {
826
+ const _args = [];
827
+ _args.push(transactionArgumentOrObject(args[0], tx));
828
+ _args.push(transactionArgumentOrVec(args[1], tx));
829
+ _args.push(transactionArgumentOrObject(args[2], tx));
830
+ // @ts-ignore
831
+ return tx.moveCall({
832
+ target: "0x3::sui_system::update_validator_next_epoch_worker_address",
833
+ arguments: _args,
834
+ });
835
+ }
836
+ builder.updateValidatorNextEpochWorkerAddress = updateValidatorNextEpochWorkerAddress;
837
+ function updateValidatorNextEpochWorkerPubkey(tx, args) {
838
+ const _args = [];
839
+ _args.push(transactionArgumentOrObject(args[0], tx));
840
+ _args.push(transactionArgumentOrVec(args[1], tx));
841
+ _args.push(transactionArgumentOrObject(args[2], tx));
842
+ // @ts-ignore
843
+ return tx.moveCall({
844
+ target: "0x3::sui_system::update_validator_next_epoch_worker_pubkey",
845
+ arguments: _args,
846
+ });
847
+ }
848
+ builder.updateValidatorNextEpochWorkerPubkey = updateValidatorNextEpochWorkerPubkey;
849
+ function updateValidatorProjectUrl(tx, args) {
850
+ const _args = [];
851
+ _args.push(transactionArgumentOrObject(args[0], tx));
852
+ _args.push(transactionArgumentOrVec(args[1], tx));
853
+ _args.push(transactionArgumentOrObject(args[2], tx));
854
+ // @ts-ignore
855
+ return tx.moveCall({
856
+ target: "0x3::sui_system::update_validator_project_url",
857
+ arguments: _args,
858
+ });
859
+ }
860
+ builder.updateValidatorProjectUrl = updateValidatorProjectUrl;
861
+ })(builder = sui_system.builder || (sui_system.builder = {}));
862
+ let view;
863
+ (function (view) {
864
+ async function reportValidator(client, args) {
865
+ const tx = new TransactionBlock();
866
+ builder.reportValidator(tx, args);
867
+ const insepctRes = await client.devInspectTransactionBlock({
868
+ transactionBlock: tx,
869
+ sender: ZERO_ADDRESS,
870
+ });
871
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
872
+ }
873
+ view.reportValidator = reportValidator;
874
+ async function requestAddStake(client, args) {
875
+ const tx = new TransactionBlock();
876
+ builder.requestAddStake(tx, args);
877
+ const insepctRes = await client.devInspectTransactionBlock({
878
+ transactionBlock: tx,
879
+ sender: ZERO_ADDRESS,
880
+ });
881
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
882
+ }
883
+ view.requestAddStake = requestAddStake;
884
+ async function requestAddStakeMulCoin(client, args) {
885
+ const tx = new TransactionBlock();
886
+ builder.requestAddStakeMulCoin(tx, args);
887
+ const insepctRes = await client.devInspectTransactionBlock({
888
+ transactionBlock: tx,
889
+ sender: ZERO_ADDRESS,
890
+ });
891
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
892
+ }
893
+ view.requestAddStakeMulCoin = requestAddStakeMulCoin;
894
+ async function requestAddValidator(client, args) {
895
+ const tx = new TransactionBlock();
896
+ builder.requestAddValidator(tx, args);
897
+ const insepctRes = await client.devInspectTransactionBlock({
898
+ transactionBlock: tx,
899
+ sender: ZERO_ADDRESS,
900
+ });
901
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
902
+ }
903
+ view.requestAddValidator = requestAddValidator;
904
+ async function requestAddValidatorCandidate(client, args) {
905
+ const tx = new TransactionBlock();
906
+ builder.requestAddValidatorCandidate(tx, args);
907
+ const insepctRes = await client.devInspectTransactionBlock({
908
+ transactionBlock: tx,
909
+ sender: ZERO_ADDRESS,
910
+ });
911
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
912
+ }
913
+ view.requestAddValidatorCandidate = requestAddValidatorCandidate;
914
+ async function requestRemoveValidator(client, args) {
915
+ const tx = new TransactionBlock();
916
+ builder.requestRemoveValidator(tx, args);
917
+ const insepctRes = await client.devInspectTransactionBlock({
918
+ transactionBlock: tx,
919
+ sender: ZERO_ADDRESS,
920
+ });
921
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
922
+ }
923
+ view.requestRemoveValidator = requestRemoveValidator;
924
+ async function requestRemoveValidatorCandidate(client, args) {
925
+ const tx = new TransactionBlock();
926
+ builder.requestRemoveValidatorCandidate(tx, args);
927
+ const insepctRes = await client.devInspectTransactionBlock({
928
+ transactionBlock: tx,
929
+ sender: ZERO_ADDRESS,
930
+ });
931
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
932
+ }
933
+ view.requestRemoveValidatorCandidate = requestRemoveValidatorCandidate;
934
+ async function requestSetCommissionRate(client, args) {
935
+ const tx = new TransactionBlock();
936
+ builder.requestSetCommissionRate(tx, args);
937
+ const insepctRes = await client.devInspectTransactionBlock({
938
+ transactionBlock: tx,
939
+ sender: ZERO_ADDRESS,
940
+ });
941
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
942
+ }
943
+ view.requestSetCommissionRate = requestSetCommissionRate;
944
+ async function requestSetGasPrice(client, args) {
945
+ const tx = new TransactionBlock();
946
+ builder.requestSetGasPrice(tx, args);
947
+ const insepctRes = await client.devInspectTransactionBlock({
948
+ transactionBlock: tx,
949
+ sender: ZERO_ADDRESS,
950
+ });
951
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
952
+ }
953
+ view.requestSetGasPrice = requestSetGasPrice;
954
+ async function requestWithdrawStake(client, args) {
955
+ const tx = new TransactionBlock();
956
+ builder.requestWithdrawStake(tx, args);
957
+ const insepctRes = await client.devInspectTransactionBlock({
958
+ transactionBlock: tx,
959
+ sender: ZERO_ADDRESS,
960
+ });
961
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
962
+ }
963
+ view.requestWithdrawStake = requestWithdrawStake;
964
+ async function rotateOperationCap(client, args) {
965
+ const tx = new TransactionBlock();
966
+ builder.rotateOperationCap(tx, args);
967
+ const insepctRes = await client.devInspectTransactionBlock({
968
+ transactionBlock: tx,
969
+ sender: ZERO_ADDRESS,
970
+ });
971
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
972
+ }
973
+ view.rotateOperationCap = rotateOperationCap;
974
+ async function setCandidateValidatorCommissionRate(client, args) {
975
+ const tx = new TransactionBlock();
976
+ builder.setCandidateValidatorCommissionRate(tx, args);
977
+ const insepctRes = await client.devInspectTransactionBlock({
978
+ transactionBlock: tx,
979
+ sender: ZERO_ADDRESS,
980
+ });
981
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
982
+ }
983
+ view.setCandidateValidatorCommissionRate = setCandidateValidatorCommissionRate;
984
+ async function setCandidateValidatorGasPrice(client, args) {
985
+ const tx = new TransactionBlock();
986
+ builder.setCandidateValidatorGasPrice(tx, args);
987
+ const insepctRes = await client.devInspectTransactionBlock({
988
+ transactionBlock: tx,
989
+ sender: ZERO_ADDRESS,
990
+ });
991
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
992
+ }
993
+ view.setCandidateValidatorGasPrice = setCandidateValidatorGasPrice;
994
+ async function undoReportValidator(client, args) {
995
+ const tx = new TransactionBlock();
996
+ builder.undoReportValidator(tx, args);
997
+ const insepctRes = await client.devInspectTransactionBlock({
998
+ transactionBlock: tx,
999
+ sender: ZERO_ADDRESS,
1000
+ });
1001
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1002
+ }
1003
+ view.undoReportValidator = undoReportValidator;
1004
+ async function updateCandidateValidatorNetworkAddress(client, args) {
1005
+ const tx = new TransactionBlock();
1006
+ builder.updateCandidateValidatorNetworkAddress(tx, args);
1007
+ const insepctRes = await client.devInspectTransactionBlock({
1008
+ transactionBlock: tx,
1009
+ sender: ZERO_ADDRESS,
1010
+ });
1011
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1012
+ }
1013
+ view.updateCandidateValidatorNetworkAddress = updateCandidateValidatorNetworkAddress;
1014
+ async function updateCandidateValidatorNetworkPubkey(client, args) {
1015
+ const tx = new TransactionBlock();
1016
+ builder.updateCandidateValidatorNetworkPubkey(tx, args);
1017
+ const insepctRes = await client.devInspectTransactionBlock({
1018
+ transactionBlock: tx,
1019
+ sender: ZERO_ADDRESS,
1020
+ });
1021
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1022
+ }
1023
+ view.updateCandidateValidatorNetworkPubkey = updateCandidateValidatorNetworkPubkey;
1024
+ async function updateCandidateValidatorP2pAddress(client, args) {
1025
+ const tx = new TransactionBlock();
1026
+ builder.updateCandidateValidatorP2pAddress(tx, args);
1027
+ const insepctRes = await client.devInspectTransactionBlock({
1028
+ transactionBlock: tx,
1029
+ sender: ZERO_ADDRESS,
1030
+ });
1031
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1032
+ }
1033
+ view.updateCandidateValidatorP2pAddress = updateCandidateValidatorP2pAddress;
1034
+ async function updateCandidateValidatorPrimaryAddress(client, args) {
1035
+ const tx = new TransactionBlock();
1036
+ builder.updateCandidateValidatorPrimaryAddress(tx, args);
1037
+ const insepctRes = await client.devInspectTransactionBlock({
1038
+ transactionBlock: tx,
1039
+ sender: ZERO_ADDRESS,
1040
+ });
1041
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1042
+ }
1043
+ view.updateCandidateValidatorPrimaryAddress = updateCandidateValidatorPrimaryAddress;
1044
+ async function updateCandidateValidatorProtocolPubkey(client, args) {
1045
+ const tx = new TransactionBlock();
1046
+ builder.updateCandidateValidatorProtocolPubkey(tx, args);
1047
+ const insepctRes = await client.devInspectTransactionBlock({
1048
+ transactionBlock: tx,
1049
+ sender: ZERO_ADDRESS,
1050
+ });
1051
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1052
+ }
1053
+ view.updateCandidateValidatorProtocolPubkey = updateCandidateValidatorProtocolPubkey;
1054
+ async function updateCandidateValidatorWorkerAddress(client, args) {
1055
+ const tx = new TransactionBlock();
1056
+ builder.updateCandidateValidatorWorkerAddress(tx, args);
1057
+ const insepctRes = await client.devInspectTransactionBlock({
1058
+ transactionBlock: tx,
1059
+ sender: ZERO_ADDRESS,
1060
+ });
1061
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1062
+ }
1063
+ view.updateCandidateValidatorWorkerAddress = updateCandidateValidatorWorkerAddress;
1064
+ async function updateCandidateValidatorWorkerPubkey(client, args) {
1065
+ const tx = new TransactionBlock();
1066
+ builder.updateCandidateValidatorWorkerPubkey(tx, args);
1067
+ const insepctRes = await client.devInspectTransactionBlock({
1068
+ transactionBlock: tx,
1069
+ sender: ZERO_ADDRESS,
1070
+ });
1071
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1072
+ }
1073
+ view.updateCandidateValidatorWorkerPubkey = updateCandidateValidatorWorkerPubkey;
1074
+ async function updateValidatorDescription(client, args) {
1075
+ const tx = new TransactionBlock();
1076
+ builder.updateValidatorDescription(tx, args);
1077
+ const insepctRes = await client.devInspectTransactionBlock({
1078
+ transactionBlock: tx,
1079
+ sender: ZERO_ADDRESS,
1080
+ });
1081
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1082
+ }
1083
+ view.updateValidatorDescription = updateValidatorDescription;
1084
+ async function updateValidatorImageUrl(client, args) {
1085
+ const tx = new TransactionBlock();
1086
+ builder.updateValidatorImageUrl(tx, args);
1087
+ const insepctRes = await client.devInspectTransactionBlock({
1088
+ transactionBlock: tx,
1089
+ sender: ZERO_ADDRESS,
1090
+ });
1091
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1092
+ }
1093
+ view.updateValidatorImageUrl = updateValidatorImageUrl;
1094
+ async function updateValidatorName(client, args) {
1095
+ const tx = new TransactionBlock();
1096
+ builder.updateValidatorName(tx, args);
1097
+ const insepctRes = await client.devInspectTransactionBlock({
1098
+ transactionBlock: tx,
1099
+ sender: ZERO_ADDRESS,
1100
+ });
1101
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1102
+ }
1103
+ view.updateValidatorName = updateValidatorName;
1104
+ async function updateValidatorNextEpochNetworkAddress(client, args) {
1105
+ const tx = new TransactionBlock();
1106
+ builder.updateValidatorNextEpochNetworkAddress(tx, args);
1107
+ const insepctRes = await client.devInspectTransactionBlock({
1108
+ transactionBlock: tx,
1109
+ sender: ZERO_ADDRESS,
1110
+ });
1111
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1112
+ }
1113
+ view.updateValidatorNextEpochNetworkAddress = updateValidatorNextEpochNetworkAddress;
1114
+ async function updateValidatorNextEpochNetworkPubkey(client, args) {
1115
+ const tx = new TransactionBlock();
1116
+ builder.updateValidatorNextEpochNetworkPubkey(tx, args);
1117
+ const insepctRes = await client.devInspectTransactionBlock({
1118
+ transactionBlock: tx,
1119
+ sender: ZERO_ADDRESS,
1120
+ });
1121
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1122
+ }
1123
+ view.updateValidatorNextEpochNetworkPubkey = updateValidatorNextEpochNetworkPubkey;
1124
+ async function updateValidatorNextEpochP2pAddress(client, args) {
1125
+ const tx = new TransactionBlock();
1126
+ builder.updateValidatorNextEpochP2pAddress(tx, args);
1127
+ const insepctRes = await client.devInspectTransactionBlock({
1128
+ transactionBlock: tx,
1129
+ sender: ZERO_ADDRESS,
1130
+ });
1131
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1132
+ }
1133
+ view.updateValidatorNextEpochP2pAddress = updateValidatorNextEpochP2pAddress;
1134
+ async function updateValidatorNextEpochPrimaryAddress(client, args) {
1135
+ const tx = new TransactionBlock();
1136
+ builder.updateValidatorNextEpochPrimaryAddress(tx, args);
1137
+ const insepctRes = await client.devInspectTransactionBlock({
1138
+ transactionBlock: tx,
1139
+ sender: ZERO_ADDRESS,
1140
+ });
1141
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1142
+ }
1143
+ view.updateValidatorNextEpochPrimaryAddress = updateValidatorNextEpochPrimaryAddress;
1144
+ async function updateValidatorNextEpochProtocolPubkey(client, args) {
1145
+ const tx = new TransactionBlock();
1146
+ builder.updateValidatorNextEpochProtocolPubkey(tx, args);
1147
+ const insepctRes = await client.devInspectTransactionBlock({
1148
+ transactionBlock: tx,
1149
+ sender: ZERO_ADDRESS,
1150
+ });
1151
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1152
+ }
1153
+ view.updateValidatorNextEpochProtocolPubkey = updateValidatorNextEpochProtocolPubkey;
1154
+ async function updateValidatorNextEpochWorkerAddress(client, args) {
1155
+ const tx = new TransactionBlock();
1156
+ builder.updateValidatorNextEpochWorkerAddress(tx, args);
1157
+ const insepctRes = await client.devInspectTransactionBlock({
1158
+ transactionBlock: tx,
1159
+ sender: ZERO_ADDRESS,
1160
+ });
1161
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1162
+ }
1163
+ view.updateValidatorNextEpochWorkerAddress = updateValidatorNextEpochWorkerAddress;
1164
+ async function updateValidatorNextEpochWorkerPubkey(client, args) {
1165
+ const tx = new TransactionBlock();
1166
+ builder.updateValidatorNextEpochWorkerPubkey(tx, args);
1167
+ const insepctRes = await client.devInspectTransactionBlock({
1168
+ transactionBlock: tx,
1169
+ sender: ZERO_ADDRESS,
1170
+ });
1171
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1172
+ }
1173
+ view.updateValidatorNextEpochWorkerPubkey = updateValidatorNextEpochWorkerPubkey;
1174
+ async function updateValidatorProjectUrl(client, args) {
1175
+ const tx = new TransactionBlock();
1176
+ builder.updateValidatorProjectUrl(tx, args);
1177
+ const insepctRes = await client.devInspectTransactionBlock({
1178
+ transactionBlock: tx,
1179
+ sender: ZERO_ADDRESS,
1180
+ });
1181
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1182
+ }
1183
+ view.updateValidatorProjectUrl = updateValidatorProjectUrl;
1184
+ })(view = sui_system.view || (sui_system.view = {}));
1185
+ })(sui_system || (sui_system = {}));
1186
+ export var sui_system_state_inner;
1187
+ (function (sui_system_state_inner) {
1188
+ let SuiSystemStateInner;
1189
+ (function (SuiSystemStateInner) {
1190
+ SuiSystemStateInner.TYPE_QNAME = "0x3::sui_system_state_inner::SuiSystemStateInner";
1191
+ const TYPE = new TypeDescriptor(SuiSystemStateInner.TYPE_QNAME);
1192
+ function type() {
1193
+ return TYPE.apply();
1194
+ }
1195
+ SuiSystemStateInner.type = type;
1196
+ })(SuiSystemStateInner = sui_system_state_inner.SuiSystemStateInner || (sui_system_state_inner.SuiSystemStateInner = {}));
1197
+ let SuiSystemStateInnerV2;
1198
+ (function (SuiSystemStateInnerV2) {
1199
+ SuiSystemStateInnerV2.TYPE_QNAME = "0x3::sui_system_state_inner::SuiSystemStateInnerV2";
1200
+ const TYPE = new TypeDescriptor(SuiSystemStateInnerV2.TYPE_QNAME);
1201
+ function type() {
1202
+ return TYPE.apply();
1203
+ }
1204
+ SuiSystemStateInnerV2.type = type;
1205
+ })(SuiSystemStateInnerV2 = sui_system_state_inner.SuiSystemStateInnerV2 || (sui_system_state_inner.SuiSystemStateInnerV2 = {}));
1206
+ let SystemEpochInfoEvent;
1207
+ (function (SystemEpochInfoEvent) {
1208
+ SystemEpochInfoEvent.TYPE_QNAME = "0x3::sui_system_state_inner::SystemEpochInfoEvent";
1209
+ const TYPE = new TypeDescriptor(SystemEpochInfoEvent.TYPE_QNAME);
1210
+ function type() {
1211
+ return TYPE.apply();
1212
+ }
1213
+ SystemEpochInfoEvent.type = type;
1214
+ })(SystemEpochInfoEvent = sui_system_state_inner.SystemEpochInfoEvent || (sui_system_state_inner.SystemEpochInfoEvent = {}));
1215
+ let SystemParameters;
1216
+ (function (SystemParameters) {
1217
+ SystemParameters.TYPE_QNAME = "0x3::sui_system_state_inner::SystemParameters";
1218
+ const TYPE = new TypeDescriptor(SystemParameters.TYPE_QNAME);
1219
+ function type() {
1220
+ return TYPE.apply();
1221
+ }
1222
+ SystemParameters.type = type;
1223
+ })(SystemParameters = sui_system_state_inner.SystemParameters || (sui_system_state_inner.SystemParameters = {}));
1224
+ let SystemParametersV2;
1225
+ (function (SystemParametersV2) {
1226
+ SystemParametersV2.TYPE_QNAME = "0x3::sui_system_state_inner::SystemParametersV2";
1227
+ const TYPE = new TypeDescriptor(SystemParametersV2.TYPE_QNAME);
1228
+ function type() {
1229
+ return TYPE.apply();
1230
+ }
1231
+ SystemParametersV2.type = type;
1232
+ })(SystemParametersV2 = sui_system_state_inner.SystemParametersV2 || (sui_system_state_inner.SystemParametersV2 = {}));
1233
+ })(sui_system_state_inner || (sui_system_state_inner = {}));
1234
+ export var validator;
1235
+ (function (validator) {
1236
+ let StakingRequestEvent;
1237
+ (function (StakingRequestEvent) {
1238
+ StakingRequestEvent.TYPE_QNAME = "0x3::validator::StakingRequestEvent";
1239
+ const TYPE = new TypeDescriptor(StakingRequestEvent.TYPE_QNAME);
1240
+ function type() {
1241
+ return TYPE.apply();
1242
+ }
1243
+ StakingRequestEvent.type = type;
1244
+ })(StakingRequestEvent = validator.StakingRequestEvent || (validator.StakingRequestEvent = {}));
1245
+ let UnstakingRequestEvent;
1246
+ (function (UnstakingRequestEvent) {
1247
+ UnstakingRequestEvent.TYPE_QNAME = "0x3::validator::UnstakingRequestEvent";
1248
+ const TYPE = new TypeDescriptor(UnstakingRequestEvent.TYPE_QNAME);
1249
+ function type() {
1250
+ return TYPE.apply();
1251
+ }
1252
+ UnstakingRequestEvent.type = type;
1253
+ })(UnstakingRequestEvent = validator.UnstakingRequestEvent || (validator.UnstakingRequestEvent = {}));
1254
+ let Validator;
1255
+ (function (Validator) {
1256
+ Validator.TYPE_QNAME = "0x3::validator::Validator";
1257
+ const TYPE = new TypeDescriptor(Validator.TYPE_QNAME);
1258
+ function type() {
1259
+ return TYPE.apply();
1260
+ }
1261
+ Validator.type = type;
1262
+ })(Validator = validator.Validator || (validator.Validator = {}));
1263
+ let ValidatorMetadata;
1264
+ (function (ValidatorMetadata) {
1265
+ ValidatorMetadata.TYPE_QNAME = "0x3::validator::ValidatorMetadata";
1266
+ const TYPE = new TypeDescriptor(ValidatorMetadata.TYPE_QNAME);
1267
+ function type() {
1268
+ return TYPE.apply();
1269
+ }
1270
+ ValidatorMetadata.type = type;
1271
+ })(ValidatorMetadata = validator.ValidatorMetadata || (validator.ValidatorMetadata = {}));
1272
+ let builder;
1273
+ (function (builder) {
1274
+ function commissionRate(tx, args) {
1275
+ const _args = [];
1276
+ _args.push(transactionArgumentOrObject(args[0], tx));
1277
+ // @ts-ignore
1278
+ return tx.moveCall({
1279
+ target: "0x3::validator::commission_rate",
1280
+ arguments: _args,
1281
+ });
1282
+ }
1283
+ builder.commissionRate = commissionRate;
1284
+ function description(tx, args) {
1285
+ const _args = [];
1286
+ _args.push(transactionArgumentOrObject(args[0], tx));
1287
+ // @ts-ignore
1288
+ return tx.moveCall({
1289
+ target: "0x3::validator::description",
1290
+ arguments: _args,
1291
+ });
1292
+ }
1293
+ builder.description = description;
1294
+ function gasPrice(tx, args) {
1295
+ const _args = [];
1296
+ _args.push(transactionArgumentOrObject(args[0], tx));
1297
+ // @ts-ignore
1298
+ return tx.moveCall({
1299
+ target: "0x3::validator::gas_price",
1300
+ arguments: _args,
1301
+ });
1302
+ }
1303
+ builder.gasPrice = gasPrice;
1304
+ function imageUrl(tx, args) {
1305
+ const _args = [];
1306
+ _args.push(transactionArgumentOrObject(args[0], tx));
1307
+ // @ts-ignore
1308
+ return tx.moveCall({
1309
+ target: "0x3::validator::image_url",
1310
+ arguments: _args,
1311
+ });
1312
+ }
1313
+ builder.imageUrl = imageUrl;
1314
+ function isDuplicate(tx, args) {
1315
+ const _args = [];
1316
+ _args.push(transactionArgumentOrObject(args[0], tx));
1317
+ _args.push(transactionArgumentOrObject(args[1], tx));
1318
+ // @ts-ignore
1319
+ return tx.moveCall({
1320
+ target: "0x3::validator::is_duplicate",
1321
+ arguments: _args,
1322
+ });
1323
+ }
1324
+ builder.isDuplicate = isDuplicate;
1325
+ function isPreactive(tx, args) {
1326
+ const _args = [];
1327
+ _args.push(transactionArgumentOrObject(args[0], tx));
1328
+ // @ts-ignore
1329
+ return tx.moveCall({
1330
+ target: "0x3::validator::is_preactive",
1331
+ arguments: _args,
1332
+ });
1333
+ }
1334
+ builder.isPreactive = isPreactive;
1335
+ function metadata(tx, args) {
1336
+ const _args = [];
1337
+ _args.push(transactionArgumentOrObject(args[0], tx));
1338
+ // @ts-ignore
1339
+ return tx.moveCall({
1340
+ target: "0x3::validator::metadata",
1341
+ arguments: _args,
1342
+ });
1343
+ }
1344
+ builder.metadata = metadata;
1345
+ function name(tx, args) {
1346
+ const _args = [];
1347
+ _args.push(transactionArgumentOrObject(args[0], tx));
1348
+ // @ts-ignore
1349
+ return tx.moveCall({
1350
+ target: "0x3::validator::name",
1351
+ arguments: _args,
1352
+ });
1353
+ }
1354
+ builder.name = name;
1355
+ function networkAddress(tx, args) {
1356
+ const _args = [];
1357
+ _args.push(transactionArgumentOrObject(args[0], tx));
1358
+ // @ts-ignore
1359
+ return tx.moveCall({
1360
+ target: "0x3::validator::network_address",
1361
+ arguments: _args,
1362
+ });
1363
+ }
1364
+ builder.networkAddress = networkAddress;
1365
+ function networkPubkeyBytes(tx, args) {
1366
+ const _args = [];
1367
+ _args.push(transactionArgumentOrObject(args[0], tx));
1368
+ // @ts-ignore
1369
+ return tx.moveCall({
1370
+ target: "0x3::validator::network_pubkey_bytes",
1371
+ arguments: _args,
1372
+ });
1373
+ }
1374
+ builder.networkPubkeyBytes = networkPubkeyBytes;
1375
+ function nextEpochGasPrice(tx, args) {
1376
+ const _args = [];
1377
+ _args.push(transactionArgumentOrObject(args[0], tx));
1378
+ // @ts-ignore
1379
+ return tx.moveCall({
1380
+ target: "0x3::validator::next_epoch_gas_price",
1381
+ arguments: _args,
1382
+ });
1383
+ }
1384
+ builder.nextEpochGasPrice = nextEpochGasPrice;
1385
+ function nextEpochNetworkAddress(tx, args) {
1386
+ const _args = [];
1387
+ _args.push(transactionArgumentOrObject(args[0], tx));
1388
+ // @ts-ignore
1389
+ return tx.moveCall({
1390
+ target: "0x3::validator::next_epoch_network_address",
1391
+ arguments: _args,
1392
+ });
1393
+ }
1394
+ builder.nextEpochNetworkAddress = nextEpochNetworkAddress;
1395
+ function nextEpochNetworkPubkeyBytes(tx, args) {
1396
+ const _args = [];
1397
+ _args.push(transactionArgumentOrObject(args[0], tx));
1398
+ // @ts-ignore
1399
+ return tx.moveCall({
1400
+ target: "0x3::validator::next_epoch_network_pubkey_bytes",
1401
+ arguments: _args,
1402
+ });
1403
+ }
1404
+ builder.nextEpochNetworkPubkeyBytes = nextEpochNetworkPubkeyBytes;
1405
+ function nextEpochP2pAddress(tx, args) {
1406
+ const _args = [];
1407
+ _args.push(transactionArgumentOrObject(args[0], tx));
1408
+ // @ts-ignore
1409
+ return tx.moveCall({
1410
+ target: "0x3::validator::next_epoch_p2p_address",
1411
+ arguments: _args,
1412
+ });
1413
+ }
1414
+ builder.nextEpochP2pAddress = nextEpochP2pAddress;
1415
+ function nextEpochPrimaryAddress(tx, args) {
1416
+ const _args = [];
1417
+ _args.push(transactionArgumentOrObject(args[0], tx));
1418
+ // @ts-ignore
1419
+ return tx.moveCall({
1420
+ target: "0x3::validator::next_epoch_primary_address",
1421
+ arguments: _args,
1422
+ });
1423
+ }
1424
+ builder.nextEpochPrimaryAddress = nextEpochPrimaryAddress;
1425
+ function nextEpochProofOfPossession(tx, args) {
1426
+ const _args = [];
1427
+ _args.push(transactionArgumentOrObject(args[0], tx));
1428
+ // @ts-ignore
1429
+ return tx.moveCall({
1430
+ target: "0x3::validator::next_epoch_proof_of_possession",
1431
+ arguments: _args,
1432
+ });
1433
+ }
1434
+ builder.nextEpochProofOfPossession = nextEpochProofOfPossession;
1435
+ function nextEpochProtocolPubkeyBytes(tx, args) {
1436
+ const _args = [];
1437
+ _args.push(transactionArgumentOrObject(args[0], tx));
1438
+ // @ts-ignore
1439
+ return tx.moveCall({
1440
+ target: "0x3::validator::next_epoch_protocol_pubkey_bytes",
1441
+ arguments: _args,
1442
+ });
1443
+ }
1444
+ builder.nextEpochProtocolPubkeyBytes = nextEpochProtocolPubkeyBytes;
1445
+ function nextEpochWorkerAddress(tx, args) {
1446
+ const _args = [];
1447
+ _args.push(transactionArgumentOrObject(args[0], tx));
1448
+ // @ts-ignore
1449
+ return tx.moveCall({
1450
+ target: "0x3::validator::next_epoch_worker_address",
1451
+ arguments: _args,
1452
+ });
1453
+ }
1454
+ builder.nextEpochWorkerAddress = nextEpochWorkerAddress;
1455
+ function nextEpochWorkerPubkeyBytes(tx, args) {
1456
+ const _args = [];
1457
+ _args.push(transactionArgumentOrObject(args[0], tx));
1458
+ // @ts-ignore
1459
+ return tx.moveCall({
1460
+ target: "0x3::validator::next_epoch_worker_pubkey_bytes",
1461
+ arguments: _args,
1462
+ });
1463
+ }
1464
+ builder.nextEpochWorkerPubkeyBytes = nextEpochWorkerPubkeyBytes;
1465
+ function operationCapId(tx, args) {
1466
+ const _args = [];
1467
+ _args.push(transactionArgumentOrObject(args[0], tx));
1468
+ // @ts-ignore
1469
+ return tx.moveCall({
1470
+ target: "0x3::validator::operation_cap_id",
1471
+ arguments: _args,
1472
+ });
1473
+ }
1474
+ builder.operationCapId = operationCapId;
1475
+ function p2pAddress(tx, args) {
1476
+ const _args = [];
1477
+ _args.push(transactionArgumentOrObject(args[0], tx));
1478
+ // @ts-ignore
1479
+ return tx.moveCall({
1480
+ target: "0x3::validator::p2p_address",
1481
+ arguments: _args,
1482
+ });
1483
+ }
1484
+ builder.p2pAddress = p2pAddress;
1485
+ function pendingStakeAmount(tx, args) {
1486
+ const _args = [];
1487
+ _args.push(transactionArgumentOrObject(args[0], tx));
1488
+ // @ts-ignore
1489
+ return tx.moveCall({
1490
+ target: "0x3::validator::pending_stake_amount",
1491
+ arguments: _args,
1492
+ });
1493
+ }
1494
+ builder.pendingStakeAmount = pendingStakeAmount;
1495
+ function pendingStakeWithdrawAmount(tx, args) {
1496
+ const _args = [];
1497
+ _args.push(transactionArgumentOrObject(args[0], tx));
1498
+ // @ts-ignore
1499
+ return tx.moveCall({
1500
+ target: "0x3::validator::pending_stake_withdraw_amount",
1501
+ arguments: _args,
1502
+ });
1503
+ }
1504
+ builder.pendingStakeWithdrawAmount = pendingStakeWithdrawAmount;
1505
+ function poolTokenExchangeRateAtEpoch(tx, args) {
1506
+ const _args = [];
1507
+ _args.push(transactionArgumentOrObject(args[0], tx));
1508
+ _args.push(transactionArgumentOrPure(args[1], tx));
1509
+ // @ts-ignore
1510
+ return tx.moveCall({
1511
+ target: "0x3::validator::pool_token_exchange_rate_at_epoch",
1512
+ arguments: _args,
1513
+ });
1514
+ }
1515
+ builder.poolTokenExchangeRateAtEpoch = poolTokenExchangeRateAtEpoch;
1516
+ function primaryAddress(tx, args) {
1517
+ const _args = [];
1518
+ _args.push(transactionArgumentOrObject(args[0], tx));
1519
+ // @ts-ignore
1520
+ return tx.moveCall({
1521
+ target: "0x3::validator::primary_address",
1522
+ arguments: _args,
1523
+ });
1524
+ }
1525
+ builder.primaryAddress = primaryAddress;
1526
+ function projectUrl(tx, args) {
1527
+ const _args = [];
1528
+ _args.push(transactionArgumentOrObject(args[0], tx));
1529
+ // @ts-ignore
1530
+ return tx.moveCall({
1531
+ target: "0x3::validator::project_url",
1532
+ arguments: _args,
1533
+ });
1534
+ }
1535
+ builder.projectUrl = projectUrl;
1536
+ function proofOfPossession(tx, args) {
1537
+ const _args = [];
1538
+ _args.push(transactionArgumentOrObject(args[0], tx));
1539
+ // @ts-ignore
1540
+ return tx.moveCall({
1541
+ target: "0x3::validator::proof_of_possession",
1542
+ arguments: _args,
1543
+ });
1544
+ }
1545
+ builder.proofOfPossession = proofOfPossession;
1546
+ function protocolPubkeyBytes(tx, args) {
1547
+ const _args = [];
1548
+ _args.push(transactionArgumentOrObject(args[0], tx));
1549
+ // @ts-ignore
1550
+ return tx.moveCall({
1551
+ target: "0x3::validator::protocol_pubkey_bytes",
1552
+ arguments: _args,
1553
+ });
1554
+ }
1555
+ builder.protocolPubkeyBytes = protocolPubkeyBytes;
1556
+ function stakeAmount(tx, args) {
1557
+ const _args = [];
1558
+ _args.push(transactionArgumentOrObject(args[0], tx));
1559
+ // @ts-ignore
1560
+ return tx.moveCall({
1561
+ target: "0x3::validator::stake_amount",
1562
+ arguments: _args,
1563
+ });
1564
+ }
1565
+ builder.stakeAmount = stakeAmount;
1566
+ function stakingPoolId(tx, args) {
1567
+ const _args = [];
1568
+ _args.push(transactionArgumentOrObject(args[0], tx));
1569
+ // @ts-ignore
1570
+ return tx.moveCall({
1571
+ target: "0x3::validator::staking_pool_id",
1572
+ arguments: _args,
1573
+ });
1574
+ }
1575
+ builder.stakingPoolId = stakingPoolId;
1576
+ function suiAddress(tx, args) {
1577
+ const _args = [];
1578
+ _args.push(transactionArgumentOrObject(args[0], tx));
1579
+ // @ts-ignore
1580
+ return tx.moveCall({
1581
+ target: "0x3::validator::sui_address",
1582
+ arguments: _args,
1583
+ });
1584
+ }
1585
+ builder.suiAddress = suiAddress;
1586
+ function totalStake(tx, args) {
1587
+ const _args = [];
1588
+ _args.push(transactionArgumentOrObject(args[0], tx));
1589
+ // @ts-ignore
1590
+ return tx.moveCall({
1591
+ target: "0x3::validator::total_stake",
1592
+ arguments: _args,
1593
+ });
1594
+ }
1595
+ builder.totalStake = totalStake;
1596
+ function totalStakeAmount(tx, args) {
1597
+ const _args = [];
1598
+ _args.push(transactionArgumentOrObject(args[0], tx));
1599
+ // @ts-ignore
1600
+ return tx.moveCall({
1601
+ target: "0x3::validator::total_stake_amount",
1602
+ arguments: _args,
1603
+ });
1604
+ }
1605
+ builder.totalStakeAmount = totalStakeAmount;
1606
+ function validateMetadata(tx, args) {
1607
+ const _args = [];
1608
+ _args.push(transactionArgumentOrObject(args[0], tx));
1609
+ // @ts-ignore
1610
+ return tx.moveCall({
1611
+ target: "0x3::validator::validate_metadata",
1612
+ arguments: _args,
1613
+ });
1614
+ }
1615
+ builder.validateMetadata = validateMetadata;
1616
+ function validateMetadataBcs(tx, args) {
1617
+ const _args = [];
1618
+ _args.push(transactionArgumentOrVec(args[0], tx));
1619
+ // @ts-ignore
1620
+ return tx.moveCall({
1621
+ target: "0x3::validator::validate_metadata_bcs",
1622
+ arguments: _args,
1623
+ });
1624
+ }
1625
+ builder.validateMetadataBcs = validateMetadataBcs;
1626
+ function votingPower(tx, args) {
1627
+ const _args = [];
1628
+ _args.push(transactionArgumentOrObject(args[0], tx));
1629
+ // @ts-ignore
1630
+ return tx.moveCall({
1631
+ target: "0x3::validator::voting_power",
1632
+ arguments: _args,
1633
+ });
1634
+ }
1635
+ builder.votingPower = votingPower;
1636
+ function workerAddress(tx, args) {
1637
+ const _args = [];
1638
+ _args.push(transactionArgumentOrObject(args[0], tx));
1639
+ // @ts-ignore
1640
+ return tx.moveCall({
1641
+ target: "0x3::validator::worker_address",
1642
+ arguments: _args,
1643
+ });
1644
+ }
1645
+ builder.workerAddress = workerAddress;
1646
+ function workerPubkeyBytes(tx, args) {
1647
+ const _args = [];
1648
+ _args.push(transactionArgumentOrObject(args[0], tx));
1649
+ // @ts-ignore
1650
+ return tx.moveCall({
1651
+ target: "0x3::validator::worker_pubkey_bytes",
1652
+ arguments: _args,
1653
+ });
1654
+ }
1655
+ builder.workerPubkeyBytes = workerPubkeyBytes;
1656
+ })(builder = validator.builder || (validator.builder = {}));
1657
+ let view;
1658
+ (function (view) {
1659
+ async function commissionRate(client, args) {
1660
+ const tx = new TransactionBlock();
1661
+ builder.commissionRate(tx, args);
1662
+ const insepctRes = await client.devInspectTransactionBlock({
1663
+ transactionBlock: tx,
1664
+ sender: ZERO_ADDRESS,
1665
+ });
1666
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1667
+ }
1668
+ view.commissionRate = commissionRate;
1669
+ async function description(client, args) {
1670
+ const tx = new TransactionBlock();
1671
+ builder.description(tx, args);
1672
+ const insepctRes = await client.devInspectTransactionBlock({
1673
+ transactionBlock: tx,
1674
+ sender: ZERO_ADDRESS,
1675
+ });
1676
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1677
+ }
1678
+ view.description = description;
1679
+ async function gasPrice(client, args) {
1680
+ const tx = new TransactionBlock();
1681
+ builder.gasPrice(tx, args);
1682
+ const insepctRes = await client.devInspectTransactionBlock({
1683
+ transactionBlock: tx,
1684
+ sender: ZERO_ADDRESS,
1685
+ });
1686
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1687
+ }
1688
+ view.gasPrice = gasPrice;
1689
+ async function imageUrl(client, args) {
1690
+ const tx = new TransactionBlock();
1691
+ builder.imageUrl(tx, args);
1692
+ const insepctRes = await client.devInspectTransactionBlock({
1693
+ transactionBlock: tx,
1694
+ sender: ZERO_ADDRESS,
1695
+ });
1696
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1697
+ }
1698
+ view.imageUrl = imageUrl;
1699
+ async function isDuplicate(client, args) {
1700
+ const tx = new TransactionBlock();
1701
+ builder.isDuplicate(tx, args);
1702
+ const insepctRes = await client.devInspectTransactionBlock({
1703
+ transactionBlock: tx,
1704
+ sender: ZERO_ADDRESS,
1705
+ });
1706
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1707
+ }
1708
+ view.isDuplicate = isDuplicate;
1709
+ async function isPreactive(client, args) {
1710
+ const tx = new TransactionBlock();
1711
+ builder.isPreactive(tx, args);
1712
+ const insepctRes = await client.devInspectTransactionBlock({
1713
+ transactionBlock: tx,
1714
+ sender: ZERO_ADDRESS,
1715
+ });
1716
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1717
+ }
1718
+ view.isPreactive = isPreactive;
1719
+ async function metadata(client, args) {
1720
+ const tx = new TransactionBlock();
1721
+ builder.metadata(tx, args);
1722
+ const insepctRes = await client.devInspectTransactionBlock({
1723
+ transactionBlock: tx,
1724
+ sender: ZERO_ADDRESS,
1725
+ });
1726
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1727
+ }
1728
+ view.metadata = metadata;
1729
+ async function name(client, args) {
1730
+ const tx = new TransactionBlock();
1731
+ builder.name(tx, args);
1732
+ const insepctRes = await client.devInspectTransactionBlock({
1733
+ transactionBlock: tx,
1734
+ sender: ZERO_ADDRESS,
1735
+ });
1736
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1737
+ }
1738
+ view.name = name;
1739
+ async function networkAddress(client, args) {
1740
+ const tx = new TransactionBlock();
1741
+ builder.networkAddress(tx, args);
1742
+ const insepctRes = await client.devInspectTransactionBlock({
1743
+ transactionBlock: tx,
1744
+ sender: ZERO_ADDRESS,
1745
+ });
1746
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1747
+ }
1748
+ view.networkAddress = networkAddress;
1749
+ async function networkPubkeyBytes(client, args) {
1750
+ const tx = new TransactionBlock();
1751
+ builder.networkPubkeyBytes(tx, args);
1752
+ const insepctRes = await client.devInspectTransactionBlock({
1753
+ transactionBlock: tx,
1754
+ sender: ZERO_ADDRESS,
1755
+ });
1756
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1757
+ }
1758
+ view.networkPubkeyBytes = networkPubkeyBytes;
1759
+ async function nextEpochGasPrice(client, args) {
1760
+ const tx = new TransactionBlock();
1761
+ builder.nextEpochGasPrice(tx, args);
1762
+ const insepctRes = await client.devInspectTransactionBlock({
1763
+ transactionBlock: tx,
1764
+ sender: ZERO_ADDRESS,
1765
+ });
1766
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1767
+ }
1768
+ view.nextEpochGasPrice = nextEpochGasPrice;
1769
+ async function nextEpochNetworkAddress(client, args) {
1770
+ const tx = new TransactionBlock();
1771
+ builder.nextEpochNetworkAddress(tx, args);
1772
+ const insepctRes = await client.devInspectTransactionBlock({
1773
+ transactionBlock: tx,
1774
+ sender: ZERO_ADDRESS,
1775
+ });
1776
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1777
+ }
1778
+ view.nextEpochNetworkAddress = nextEpochNetworkAddress;
1779
+ async function nextEpochNetworkPubkeyBytes(client, args) {
1780
+ const tx = new TransactionBlock();
1781
+ builder.nextEpochNetworkPubkeyBytes(tx, args);
1782
+ const insepctRes = await client.devInspectTransactionBlock({
1783
+ transactionBlock: tx,
1784
+ sender: ZERO_ADDRESS,
1785
+ });
1786
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1787
+ }
1788
+ view.nextEpochNetworkPubkeyBytes = nextEpochNetworkPubkeyBytes;
1789
+ async function nextEpochP2pAddress(client, args) {
1790
+ const tx = new TransactionBlock();
1791
+ builder.nextEpochP2pAddress(tx, args);
1792
+ const insepctRes = await client.devInspectTransactionBlock({
1793
+ transactionBlock: tx,
1794
+ sender: ZERO_ADDRESS,
1795
+ });
1796
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1797
+ }
1798
+ view.nextEpochP2pAddress = nextEpochP2pAddress;
1799
+ async function nextEpochPrimaryAddress(client, args) {
1800
+ const tx = new TransactionBlock();
1801
+ builder.nextEpochPrimaryAddress(tx, args);
1802
+ const insepctRes = await client.devInspectTransactionBlock({
1803
+ transactionBlock: tx,
1804
+ sender: ZERO_ADDRESS,
1805
+ });
1806
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1807
+ }
1808
+ view.nextEpochPrimaryAddress = nextEpochPrimaryAddress;
1809
+ async function nextEpochProofOfPossession(client, args) {
1810
+ const tx = new TransactionBlock();
1811
+ builder.nextEpochProofOfPossession(tx, args);
1812
+ const insepctRes = await client.devInspectTransactionBlock({
1813
+ transactionBlock: tx,
1814
+ sender: ZERO_ADDRESS,
1815
+ });
1816
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1817
+ }
1818
+ view.nextEpochProofOfPossession = nextEpochProofOfPossession;
1819
+ async function nextEpochProtocolPubkeyBytes(client, args) {
1820
+ const tx = new TransactionBlock();
1821
+ builder.nextEpochProtocolPubkeyBytes(tx, args);
1822
+ const insepctRes = await client.devInspectTransactionBlock({
1823
+ transactionBlock: tx,
1824
+ sender: ZERO_ADDRESS,
1825
+ });
1826
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1827
+ }
1828
+ view.nextEpochProtocolPubkeyBytes = nextEpochProtocolPubkeyBytes;
1829
+ async function nextEpochWorkerAddress(client, args) {
1830
+ const tx = new TransactionBlock();
1831
+ builder.nextEpochWorkerAddress(tx, args);
1832
+ const insepctRes = await client.devInspectTransactionBlock({
1833
+ transactionBlock: tx,
1834
+ sender: ZERO_ADDRESS,
1835
+ });
1836
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1837
+ }
1838
+ view.nextEpochWorkerAddress = nextEpochWorkerAddress;
1839
+ async function nextEpochWorkerPubkeyBytes(client, args) {
1840
+ const tx = new TransactionBlock();
1841
+ builder.nextEpochWorkerPubkeyBytes(tx, args);
1842
+ const insepctRes = await client.devInspectTransactionBlock({
1843
+ transactionBlock: tx,
1844
+ sender: ZERO_ADDRESS,
1845
+ });
1846
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1847
+ }
1848
+ view.nextEpochWorkerPubkeyBytes = nextEpochWorkerPubkeyBytes;
1849
+ async function operationCapId(client, args) {
1850
+ const tx = new TransactionBlock();
1851
+ builder.operationCapId(tx, args);
1852
+ const insepctRes = await client.devInspectTransactionBlock({
1853
+ transactionBlock: tx,
1854
+ sender: ZERO_ADDRESS,
1855
+ });
1856
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1857
+ }
1858
+ view.operationCapId = operationCapId;
1859
+ async function p2pAddress(client, args) {
1860
+ const tx = new TransactionBlock();
1861
+ builder.p2pAddress(tx, args);
1862
+ const insepctRes = await client.devInspectTransactionBlock({
1863
+ transactionBlock: tx,
1864
+ sender: ZERO_ADDRESS,
1865
+ });
1866
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1867
+ }
1868
+ view.p2pAddress = p2pAddress;
1869
+ async function pendingStakeAmount(client, args) {
1870
+ const tx = new TransactionBlock();
1871
+ builder.pendingStakeAmount(tx, args);
1872
+ const insepctRes = await client.devInspectTransactionBlock({
1873
+ transactionBlock: tx,
1874
+ sender: ZERO_ADDRESS,
1875
+ });
1876
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1877
+ }
1878
+ view.pendingStakeAmount = pendingStakeAmount;
1879
+ async function pendingStakeWithdrawAmount(client, args) {
1880
+ const tx = new TransactionBlock();
1881
+ builder.pendingStakeWithdrawAmount(tx, args);
1882
+ const insepctRes = await client.devInspectTransactionBlock({
1883
+ transactionBlock: tx,
1884
+ sender: ZERO_ADDRESS,
1885
+ });
1886
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1887
+ }
1888
+ view.pendingStakeWithdrawAmount = pendingStakeWithdrawAmount;
1889
+ async function poolTokenExchangeRateAtEpoch(client, args) {
1890
+ const tx = new TransactionBlock();
1891
+ builder.poolTokenExchangeRateAtEpoch(tx, args);
1892
+ const insepctRes = await client.devInspectTransactionBlock({
1893
+ transactionBlock: tx,
1894
+ sender: ZERO_ADDRESS,
1895
+ });
1896
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1897
+ }
1898
+ view.poolTokenExchangeRateAtEpoch = poolTokenExchangeRateAtEpoch;
1899
+ async function primaryAddress(client, args) {
1900
+ const tx = new TransactionBlock();
1901
+ builder.primaryAddress(tx, args);
1902
+ const insepctRes = await client.devInspectTransactionBlock({
1903
+ transactionBlock: tx,
1904
+ sender: ZERO_ADDRESS,
1905
+ });
1906
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1907
+ }
1908
+ view.primaryAddress = primaryAddress;
1909
+ async function projectUrl(client, args) {
1910
+ const tx = new TransactionBlock();
1911
+ builder.projectUrl(tx, args);
1912
+ const insepctRes = await client.devInspectTransactionBlock({
1913
+ transactionBlock: tx,
1914
+ sender: ZERO_ADDRESS,
1915
+ });
1916
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1917
+ }
1918
+ view.projectUrl = projectUrl;
1919
+ async function proofOfPossession(client, args) {
1920
+ const tx = new TransactionBlock();
1921
+ builder.proofOfPossession(tx, args);
1922
+ const insepctRes = await client.devInspectTransactionBlock({
1923
+ transactionBlock: tx,
1924
+ sender: ZERO_ADDRESS,
1925
+ });
1926
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1927
+ }
1928
+ view.proofOfPossession = proofOfPossession;
1929
+ async function protocolPubkeyBytes(client, args) {
1930
+ const tx = new TransactionBlock();
1931
+ builder.protocolPubkeyBytes(tx, args);
1932
+ const insepctRes = await client.devInspectTransactionBlock({
1933
+ transactionBlock: tx,
1934
+ sender: ZERO_ADDRESS,
1935
+ });
1936
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1937
+ }
1938
+ view.protocolPubkeyBytes = protocolPubkeyBytes;
1939
+ async function stakeAmount(client, args) {
1940
+ const tx = new TransactionBlock();
1941
+ builder.stakeAmount(tx, args);
1942
+ const insepctRes = await client.devInspectTransactionBlock({
1943
+ transactionBlock: tx,
1944
+ sender: ZERO_ADDRESS,
1945
+ });
1946
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1947
+ }
1948
+ view.stakeAmount = stakeAmount;
1949
+ async function stakingPoolId(client, args) {
1950
+ const tx = new TransactionBlock();
1951
+ builder.stakingPoolId(tx, args);
1952
+ const insepctRes = await client.devInspectTransactionBlock({
1953
+ transactionBlock: tx,
1954
+ sender: ZERO_ADDRESS,
1955
+ });
1956
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1957
+ }
1958
+ view.stakingPoolId = stakingPoolId;
1959
+ async function suiAddress(client, args) {
1960
+ const tx = new TransactionBlock();
1961
+ builder.suiAddress(tx, args);
1962
+ const insepctRes = await client.devInspectTransactionBlock({
1963
+ transactionBlock: tx,
1964
+ sender: ZERO_ADDRESS,
1965
+ });
1966
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1967
+ }
1968
+ view.suiAddress = suiAddress;
1969
+ async function totalStake(client, args) {
1970
+ const tx = new TransactionBlock();
1971
+ builder.totalStake(tx, args);
1972
+ const insepctRes = await client.devInspectTransactionBlock({
1973
+ transactionBlock: tx,
1974
+ sender: ZERO_ADDRESS,
1975
+ });
1976
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1977
+ }
1978
+ view.totalStake = totalStake;
1979
+ async function totalStakeAmount(client, args) {
1980
+ const tx = new TransactionBlock();
1981
+ builder.totalStakeAmount(tx, args);
1982
+ const insepctRes = await client.devInspectTransactionBlock({
1983
+ transactionBlock: tx,
1984
+ sender: ZERO_ADDRESS,
1985
+ });
1986
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1987
+ }
1988
+ view.totalStakeAmount = totalStakeAmount;
1989
+ async function validateMetadata(client, args) {
1990
+ const tx = new TransactionBlock();
1991
+ builder.validateMetadata(tx, args);
1992
+ const insepctRes = await client.devInspectTransactionBlock({
1993
+ transactionBlock: tx,
1994
+ sender: ZERO_ADDRESS,
1995
+ });
1996
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
1997
+ }
1998
+ view.validateMetadata = validateMetadata;
1999
+ async function validateMetadataBcs(client, args) {
2000
+ const tx = new TransactionBlock();
2001
+ builder.validateMetadataBcs(tx, args);
2002
+ const insepctRes = await client.devInspectTransactionBlock({
2003
+ transactionBlock: tx,
2004
+ sender: ZERO_ADDRESS,
2005
+ });
2006
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2007
+ }
2008
+ view.validateMetadataBcs = validateMetadataBcs;
2009
+ async function votingPower(client, args) {
2010
+ const tx = new TransactionBlock();
2011
+ builder.votingPower(tx, args);
2012
+ const insepctRes = await client.devInspectTransactionBlock({
2013
+ transactionBlock: tx,
2014
+ sender: ZERO_ADDRESS,
2015
+ });
2016
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2017
+ }
2018
+ view.votingPower = votingPower;
2019
+ async function workerAddress(client, args) {
2020
+ const tx = new TransactionBlock();
2021
+ builder.workerAddress(tx, args);
2022
+ const insepctRes = await client.devInspectTransactionBlock({
2023
+ transactionBlock: tx,
2024
+ sender: ZERO_ADDRESS,
2025
+ });
2026
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2027
+ }
2028
+ view.workerAddress = workerAddress;
2029
+ async function workerPubkeyBytes(client, args) {
2030
+ const tx = new TransactionBlock();
2031
+ builder.workerPubkeyBytes(tx, args);
2032
+ const insepctRes = await client.devInspectTransactionBlock({
2033
+ transactionBlock: tx,
2034
+ sender: ZERO_ADDRESS,
2035
+ });
2036
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2037
+ }
2038
+ view.workerPubkeyBytes = workerPubkeyBytes;
2039
+ })(view = validator.view || (validator.view = {}));
2040
+ })(validator || (validator = {}));
2041
+ export var validator_cap;
2042
+ (function (validator_cap) {
2043
+ let UnverifiedValidatorOperationCap;
2044
+ (function (UnverifiedValidatorOperationCap) {
2045
+ UnverifiedValidatorOperationCap.TYPE_QNAME = "0x3::validator_cap::UnverifiedValidatorOperationCap";
2046
+ const TYPE = new TypeDescriptor(UnverifiedValidatorOperationCap.TYPE_QNAME);
2047
+ function type() {
2048
+ return TYPE.apply();
2049
+ }
2050
+ UnverifiedValidatorOperationCap.type = type;
2051
+ })(UnverifiedValidatorOperationCap = validator_cap.UnverifiedValidatorOperationCap || (validator_cap.UnverifiedValidatorOperationCap = {}));
2052
+ let ValidatorOperationCap;
2053
+ (function (ValidatorOperationCap) {
2054
+ ValidatorOperationCap.TYPE_QNAME = "0x3::validator_cap::ValidatorOperationCap";
2055
+ const TYPE = new TypeDescriptor(ValidatorOperationCap.TYPE_QNAME);
2056
+ function type() {
2057
+ return TYPE.apply();
2058
+ }
2059
+ ValidatorOperationCap.type = type;
2060
+ })(ValidatorOperationCap = validator_cap.ValidatorOperationCap || (validator_cap.ValidatorOperationCap = {}));
2061
+ })(validator_cap || (validator_cap = {}));
2062
+ export var validator_set;
2063
+ (function (validator_set) {
2064
+ let ValidatorEpochInfoEvent;
2065
+ (function (ValidatorEpochInfoEvent) {
2066
+ ValidatorEpochInfoEvent.TYPE_QNAME = "0x3::validator_set::ValidatorEpochInfoEvent";
2067
+ const TYPE = new TypeDescriptor(ValidatorEpochInfoEvent.TYPE_QNAME);
2068
+ function type() {
2069
+ return TYPE.apply();
2070
+ }
2071
+ ValidatorEpochInfoEvent.type = type;
2072
+ })(ValidatorEpochInfoEvent = validator_set.ValidatorEpochInfoEvent || (validator_set.ValidatorEpochInfoEvent = {}));
2073
+ let ValidatorEpochInfoEventV2;
2074
+ (function (ValidatorEpochInfoEventV2) {
2075
+ ValidatorEpochInfoEventV2.TYPE_QNAME = "0x3::validator_set::ValidatorEpochInfoEventV2";
2076
+ const TYPE = new TypeDescriptor(ValidatorEpochInfoEventV2.TYPE_QNAME);
2077
+ function type() {
2078
+ return TYPE.apply();
2079
+ }
2080
+ ValidatorEpochInfoEventV2.type = type;
2081
+ })(ValidatorEpochInfoEventV2 = validator_set.ValidatorEpochInfoEventV2 || (validator_set.ValidatorEpochInfoEventV2 = {}));
2082
+ let ValidatorJoinEvent;
2083
+ (function (ValidatorJoinEvent) {
2084
+ ValidatorJoinEvent.TYPE_QNAME = "0x3::validator_set::ValidatorJoinEvent";
2085
+ const TYPE = new TypeDescriptor(ValidatorJoinEvent.TYPE_QNAME);
2086
+ function type() {
2087
+ return TYPE.apply();
2088
+ }
2089
+ ValidatorJoinEvent.type = type;
2090
+ })(ValidatorJoinEvent = validator_set.ValidatorJoinEvent || (validator_set.ValidatorJoinEvent = {}));
2091
+ let ValidatorLeaveEvent;
2092
+ (function (ValidatorLeaveEvent) {
2093
+ ValidatorLeaveEvent.TYPE_QNAME = "0x3::validator_set::ValidatorLeaveEvent";
2094
+ const TYPE = new TypeDescriptor(ValidatorLeaveEvent.TYPE_QNAME);
2095
+ function type() {
2096
+ return TYPE.apply();
2097
+ }
2098
+ ValidatorLeaveEvent.type = type;
2099
+ })(ValidatorLeaveEvent = validator_set.ValidatorLeaveEvent || (validator_set.ValidatorLeaveEvent = {}));
2100
+ let ValidatorSet;
2101
+ (function (ValidatorSet) {
2102
+ ValidatorSet.TYPE_QNAME = "0x3::validator_set::ValidatorSet";
2103
+ const TYPE = new TypeDescriptor(ValidatorSet.TYPE_QNAME);
2104
+ function type() {
2105
+ return TYPE.apply();
2106
+ }
2107
+ ValidatorSet.type = type;
2108
+ })(ValidatorSet = validator_set.ValidatorSet || (validator_set.ValidatorSet = {}));
2109
+ let builder;
2110
+ (function (builder) {
2111
+ function activeValidators(tx, args) {
2112
+ const _args = [];
2113
+ _args.push(transactionArgumentOrObject(args[0], tx));
2114
+ // @ts-ignore
2115
+ return tx.moveCall({
2116
+ target: "0x3::validator_set::active_validators",
2117
+ arguments: _args,
2118
+ });
2119
+ }
2120
+ builder.activeValidators = activeValidators;
2121
+ function deriveReferenceGasPrice(tx, args) {
2122
+ const _args = [];
2123
+ _args.push(transactionArgumentOrObject(args[0], tx));
2124
+ // @ts-ignore
2125
+ return tx.moveCall({
2126
+ target: "0x3::validator_set::derive_reference_gas_price",
2127
+ arguments: _args,
2128
+ });
2129
+ }
2130
+ builder.deriveReferenceGasPrice = deriveReferenceGasPrice;
2131
+ function getActiveValidatorRef(tx, args) {
2132
+ const _args = [];
2133
+ _args.push(transactionArgumentOrObject(args[0], tx));
2134
+ _args.push(transactionArgumentOrPure(args[1], tx));
2135
+ // @ts-ignore
2136
+ return tx.moveCall({
2137
+ target: "0x3::validator_set::get_active_validator_ref",
2138
+ arguments: _args,
2139
+ });
2140
+ }
2141
+ builder.getActiveValidatorRef = getActiveValidatorRef;
2142
+ function getPendingValidatorRef(tx, args) {
2143
+ const _args = [];
2144
+ _args.push(transactionArgumentOrObject(args[0], tx));
2145
+ _args.push(transactionArgumentOrPure(args[1], tx));
2146
+ // @ts-ignore
2147
+ return tx.moveCall({
2148
+ target: "0x3::validator_set::get_pending_validator_ref",
2149
+ arguments: _args,
2150
+ });
2151
+ }
2152
+ builder.getPendingValidatorRef = getPendingValidatorRef;
2153
+ function isInactiveValidator(tx, args) {
2154
+ const _args = [];
2155
+ _args.push(transactionArgumentOrObject(args[0], tx));
2156
+ _args.push(transactionArgumentOrPure(args[1], tx));
2157
+ // @ts-ignore
2158
+ return tx.moveCall({
2159
+ target: "0x3::validator_set::is_inactive_validator",
2160
+ arguments: _args,
2161
+ });
2162
+ }
2163
+ builder.isInactiveValidator = isInactiveValidator;
2164
+ function isValidatorCandidate(tx, args) {
2165
+ const _args = [];
2166
+ _args.push(transactionArgumentOrObject(args[0], tx));
2167
+ _args.push(transactionArgumentOrPure(args[1], tx));
2168
+ // @ts-ignore
2169
+ return tx.moveCall({
2170
+ target: "0x3::validator_set::is_validator_candidate",
2171
+ arguments: _args,
2172
+ });
2173
+ }
2174
+ builder.isValidatorCandidate = isValidatorCandidate;
2175
+ function stakingPoolMappings(tx, args) {
2176
+ const _args = [];
2177
+ _args.push(transactionArgumentOrObject(args[0], tx));
2178
+ // @ts-ignore
2179
+ return tx.moveCall({
2180
+ target: "0x3::validator_set::staking_pool_mappings",
2181
+ arguments: _args,
2182
+ });
2183
+ }
2184
+ builder.stakingPoolMappings = stakingPoolMappings;
2185
+ function sumVotingPowerByAddresses(tx, args) {
2186
+ const _args = [];
2187
+ _args.push(transactionArgumentOrObject(args[0], tx));
2188
+ _args.push(transactionArgumentOrObject(args[1], tx));
2189
+ // @ts-ignore
2190
+ return tx.moveCall({
2191
+ target: "0x3::validator_set::sum_voting_power_by_addresses",
2192
+ arguments: _args,
2193
+ });
2194
+ }
2195
+ builder.sumVotingPowerByAddresses = sumVotingPowerByAddresses;
2196
+ function totalStake(tx, args) {
2197
+ const _args = [];
2198
+ _args.push(transactionArgumentOrObject(args[0], tx));
2199
+ // @ts-ignore
2200
+ return tx.moveCall({
2201
+ target: "0x3::validator_set::total_stake",
2202
+ arguments: _args,
2203
+ });
2204
+ }
2205
+ builder.totalStake = totalStake;
2206
+ function validatorStakeAmount(tx, args) {
2207
+ const _args = [];
2208
+ _args.push(transactionArgumentOrObject(args[0], tx));
2209
+ _args.push(transactionArgumentOrPure(args[1], tx));
2210
+ // @ts-ignore
2211
+ return tx.moveCall({
2212
+ target: "0x3::validator_set::validator_stake_amount",
2213
+ arguments: _args,
2214
+ });
2215
+ }
2216
+ builder.validatorStakeAmount = validatorStakeAmount;
2217
+ function validatorStakingPoolId(tx, args) {
2218
+ const _args = [];
2219
+ _args.push(transactionArgumentOrObject(args[0], tx));
2220
+ _args.push(transactionArgumentOrPure(args[1], tx));
2221
+ // @ts-ignore
2222
+ return tx.moveCall({
2223
+ target: "0x3::validator_set::validator_staking_pool_id",
2224
+ arguments: _args,
2225
+ });
2226
+ }
2227
+ builder.validatorStakingPoolId = validatorStakingPoolId;
2228
+ function validatorTotalStakeAmount(tx, args) {
2229
+ const _args = [];
2230
+ _args.push(transactionArgumentOrObject(args[0], tx));
2231
+ _args.push(transactionArgumentOrPure(args[1], tx));
2232
+ // @ts-ignore
2233
+ return tx.moveCall({
2234
+ target: "0x3::validator_set::validator_total_stake_amount",
2235
+ arguments: _args,
2236
+ });
2237
+ }
2238
+ builder.validatorTotalStakeAmount = validatorTotalStakeAmount;
2239
+ })(builder = validator_set.builder || (validator_set.builder = {}));
2240
+ let view;
2241
+ (function (view) {
2242
+ async function activeValidators(client, args) {
2243
+ const tx = new TransactionBlock();
2244
+ builder.activeValidators(tx, args);
2245
+ const insepctRes = await client.devInspectTransactionBlock({
2246
+ transactionBlock: tx,
2247
+ sender: ZERO_ADDRESS,
2248
+ });
2249
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2250
+ }
2251
+ view.activeValidators = activeValidators;
2252
+ async function deriveReferenceGasPrice(client, args) {
2253
+ const tx = new TransactionBlock();
2254
+ builder.deriveReferenceGasPrice(tx, args);
2255
+ const insepctRes = await client.devInspectTransactionBlock({
2256
+ transactionBlock: tx,
2257
+ sender: ZERO_ADDRESS,
2258
+ });
2259
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2260
+ }
2261
+ view.deriveReferenceGasPrice = deriveReferenceGasPrice;
2262
+ async function getActiveValidatorRef(client, args) {
2263
+ const tx = new TransactionBlock();
2264
+ builder.getActiveValidatorRef(tx, args);
2265
+ const insepctRes = await client.devInspectTransactionBlock({
2266
+ transactionBlock: tx,
2267
+ sender: ZERO_ADDRESS,
2268
+ });
2269
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2270
+ }
2271
+ view.getActiveValidatorRef = getActiveValidatorRef;
2272
+ async function getPendingValidatorRef(client, args) {
2273
+ const tx = new TransactionBlock();
2274
+ builder.getPendingValidatorRef(tx, args);
2275
+ const insepctRes = await client.devInspectTransactionBlock({
2276
+ transactionBlock: tx,
2277
+ sender: ZERO_ADDRESS,
2278
+ });
2279
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2280
+ }
2281
+ view.getPendingValidatorRef = getPendingValidatorRef;
2282
+ async function isInactiveValidator(client, args) {
2283
+ const tx = new TransactionBlock();
2284
+ builder.isInactiveValidator(tx, args);
2285
+ const insepctRes = await client.devInspectTransactionBlock({
2286
+ transactionBlock: tx,
2287
+ sender: ZERO_ADDRESS,
2288
+ });
2289
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2290
+ }
2291
+ view.isInactiveValidator = isInactiveValidator;
2292
+ async function isValidatorCandidate(client, args) {
2293
+ const tx = new TransactionBlock();
2294
+ builder.isValidatorCandidate(tx, args);
2295
+ const insepctRes = await client.devInspectTransactionBlock({
2296
+ transactionBlock: tx,
2297
+ sender: ZERO_ADDRESS,
2298
+ });
2299
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2300
+ }
2301
+ view.isValidatorCandidate = isValidatorCandidate;
2302
+ async function stakingPoolMappings(client, args) {
2303
+ const tx = new TransactionBlock();
2304
+ builder.stakingPoolMappings(tx, args);
2305
+ const insepctRes = await client.devInspectTransactionBlock({
2306
+ transactionBlock: tx,
2307
+ sender: ZERO_ADDRESS,
2308
+ });
2309
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2310
+ }
2311
+ view.stakingPoolMappings = stakingPoolMappings;
2312
+ async function sumVotingPowerByAddresses(client, args) {
2313
+ const tx = new TransactionBlock();
2314
+ builder.sumVotingPowerByAddresses(tx, args);
2315
+ const insepctRes = await client.devInspectTransactionBlock({
2316
+ transactionBlock: tx,
2317
+ sender: ZERO_ADDRESS,
2318
+ });
2319
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2320
+ }
2321
+ view.sumVotingPowerByAddresses = sumVotingPowerByAddresses;
2322
+ async function totalStake(client, args) {
2323
+ const tx = new TransactionBlock();
2324
+ builder.totalStake(tx, args);
2325
+ const insepctRes = await client.devInspectTransactionBlock({
2326
+ transactionBlock: tx,
2327
+ sender: ZERO_ADDRESS,
2328
+ });
2329
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2330
+ }
2331
+ view.totalStake = totalStake;
2332
+ async function validatorStakeAmount(client, args) {
2333
+ const tx = new TransactionBlock();
2334
+ builder.validatorStakeAmount(tx, args);
2335
+ const insepctRes = await client.devInspectTransactionBlock({
2336
+ transactionBlock: tx,
2337
+ sender: ZERO_ADDRESS,
2338
+ });
2339
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2340
+ }
2341
+ view.validatorStakeAmount = validatorStakeAmount;
2342
+ async function validatorStakingPoolId(client, args) {
2343
+ const tx = new TransactionBlock();
2344
+ builder.validatorStakingPoolId(tx, args);
2345
+ const insepctRes = await client.devInspectTransactionBlock({
2346
+ transactionBlock: tx,
2347
+ sender: ZERO_ADDRESS,
2348
+ });
2349
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2350
+ }
2351
+ view.validatorStakingPoolId = validatorStakingPoolId;
2352
+ async function validatorTotalStakeAmount(client, args) {
2353
+ const tx = new TransactionBlock();
2354
+ builder.validatorTotalStakeAmount(tx, args);
2355
+ const insepctRes = await client.devInspectTransactionBlock({
2356
+ transactionBlock: tx,
2357
+ sender: ZERO_ADDRESS,
2358
+ });
2359
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2360
+ }
2361
+ view.validatorTotalStakeAmount = validatorTotalStakeAmount;
2362
+ })(view = validator_set.view || (validator_set.view = {}));
2363
+ })(validator_set || (validator_set = {}));
2364
+ export var validator_wrapper;
2365
+ (function (validator_wrapper) {
2366
+ let ValidatorWrapper;
2367
+ (function (ValidatorWrapper) {
2368
+ ValidatorWrapper.TYPE_QNAME = "0x3::validator_wrapper::ValidatorWrapper";
2369
+ const TYPE = new TypeDescriptor(ValidatorWrapper.TYPE_QNAME);
2370
+ function type() {
2371
+ return TYPE.apply();
2372
+ }
2373
+ ValidatorWrapper.type = type;
2374
+ })(ValidatorWrapper = validator_wrapper.ValidatorWrapper || (validator_wrapper.ValidatorWrapper = {}));
2375
+ })(validator_wrapper || (validator_wrapper = {}));
2376
+ export var voting_power;
2377
+ (function (voting_power) {
2378
+ let VotingPowerInfo;
2379
+ (function (VotingPowerInfo) {
2380
+ VotingPowerInfo.TYPE_QNAME = "0x3::voting_power::VotingPowerInfo";
2381
+ const TYPE = new TypeDescriptor(VotingPowerInfo.TYPE_QNAME);
2382
+ function type() {
2383
+ return TYPE.apply();
2384
+ }
2385
+ VotingPowerInfo.type = type;
2386
+ })(VotingPowerInfo = voting_power.VotingPowerInfo || (voting_power.VotingPowerInfo = {}));
2387
+ let VotingPowerInfoV2;
2388
+ (function (VotingPowerInfoV2) {
2389
+ VotingPowerInfoV2.TYPE_QNAME = "0x3::voting_power::VotingPowerInfoV2";
2390
+ const TYPE = new TypeDescriptor(VotingPowerInfoV2.TYPE_QNAME);
2391
+ function type() {
2392
+ return TYPE.apply();
2393
+ }
2394
+ VotingPowerInfoV2.type = type;
2395
+ })(VotingPowerInfoV2 = voting_power.VotingPowerInfoV2 || (voting_power.VotingPowerInfoV2 = {}));
2396
+ let builder;
2397
+ (function (builder) {
2398
+ function quorumThreshold(tx, args) {
2399
+ const _args = [];
2400
+ // @ts-ignore
2401
+ return tx.moveCall({
2402
+ target: "0x3::voting_power::quorum_threshold",
2403
+ arguments: _args,
2404
+ });
2405
+ }
2406
+ builder.quorumThreshold = quorumThreshold;
2407
+ function totalVotingPower(tx, args) {
2408
+ const _args = [];
2409
+ // @ts-ignore
2410
+ return tx.moveCall({
2411
+ target: "0x3::voting_power::total_voting_power",
2412
+ arguments: _args,
2413
+ });
2414
+ }
2415
+ builder.totalVotingPower = totalVotingPower;
2416
+ })(builder = voting_power.builder || (voting_power.builder = {}));
2417
+ let view;
2418
+ (function (view) {
2419
+ async function quorumThreshold(client, args) {
2420
+ const tx = new TransactionBlock();
2421
+ builder.quorumThreshold(tx, args);
2422
+ const insepctRes = await client.devInspectTransactionBlock({
2423
+ transactionBlock: tx,
2424
+ sender: ZERO_ADDRESS,
2425
+ });
2426
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2427
+ }
2428
+ view.quorumThreshold = quorumThreshold;
2429
+ async function totalVotingPower(client, args) {
2430
+ const tx = new TransactionBlock();
2431
+ builder.totalVotingPower(tx, args);
2432
+ const insepctRes = await client.devInspectTransactionBlock({
2433
+ transactionBlock: tx,
2434
+ sender: ZERO_ADDRESS,
2435
+ });
2436
+ return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
2437
+ }
2438
+ view.totalVotingPower = totalVotingPower;
2439
+ })(view = voting_power.view || (voting_power.view = {}));
2440
+ })(voting_power || (voting_power = {}));
2441
+ const MODULES = JSON.parse('{"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"]}}}}');
2442
+ export function loadAllTypes(coder) {
2443
+ _0x1.loadAllTypes(coder);
2444
+ _0x2.loadAllTypes(coder);
2445
+ for (const m of Object.values(MODULES)) {
2446
+ coder.load(m);
2447
+ }
2448
+ }
2449
+ loadAllTypes(defaultMoveCoder());
2450
+ //# sourceMappingURL=0x3.js.map