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