@typemove/sui 1.6.3 → 1.6.4
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/dist/cjs/builtin/0x1.d.ts +187 -131
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +696 -131
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x2.d.ts +572 -572
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +569 -569
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +422 -242
- package/dist/cjs/builtin/0x3.d.ts.map +1 -1
- package/dist/cjs/builtin/0x3.js +639 -239
- package/dist/cjs/builtin/0x3.js.map +1 -1
- package/dist/cjs/codegen/codegen.d.ts +1 -1
- package/dist/cjs/codegen/codegen.d.ts.map +1 -1
- package/dist/cjs/codegen/codegen.js +7 -7
- package/dist/cjs/codegen/codegen.js.map +1 -1
- package/dist/cjs/models.d.ts +1 -1
- package/dist/cjs/models.d.ts.map +1 -1
- package/dist/cjs/move-coder.d.ts +5 -4
- package/dist/cjs/move-coder.d.ts.map +1 -1
- package/dist/cjs/move-coder.js +62 -23
- package/dist/cjs/move-coder.js.map +1 -1
- package/dist/cjs/move-coder.test.js.map +1 -1
- package/dist/cjs/sui-chain-adapter.d.ts +1 -1
- package/dist/cjs/sui-chain-adapter.d.ts.map +1 -1
- package/dist/cjs/sui-chain-adapter.js +1 -1
- package/dist/cjs/sui-chain-adapter.js.map +1 -1
- package/dist/cjs/to-internal.d.ts +1 -1
- package/dist/cjs/to-internal.d.ts.map +1 -1
- package/dist/cjs/to-internal.js +4 -4
- package/dist/cjs/transaction.d.ts +4 -4
- package/dist/cjs/transaction.d.ts.map +1 -1
- package/dist/cjs/transaction.js +2 -2
- package/dist/cjs/transaction.js.map +1 -1
- package/dist/esm/builtin/0x1.d.ts +187 -131
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +696 -131
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +572 -572
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +569 -569
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +422 -242
- package/dist/esm/builtin/0x3.d.ts.map +1 -1
- package/dist/esm/builtin/0x3.js +639 -239
- package/dist/esm/builtin/0x3.js.map +1 -1
- package/dist/esm/codegen/codegen.d.ts +1 -1
- package/dist/esm/codegen/codegen.d.ts.map +1 -1
- package/dist/esm/codegen/codegen.js +7 -7
- package/dist/esm/codegen/codegen.js.map +1 -1
- package/dist/esm/codegen/run.js +1 -1
- package/dist/esm/codegen/run.js.map +1 -1
- package/dist/esm/models.d.ts +1 -1
- package/dist/esm/models.d.ts.map +1 -1
- package/dist/esm/move-coder.d.ts +5 -4
- package/dist/esm/move-coder.d.ts.map +1 -1
- package/dist/esm/move-coder.js +62 -23
- package/dist/esm/move-coder.js.map +1 -1
- package/dist/esm/move-coder.test.js.map +1 -1
- package/dist/esm/sui-chain-adapter.d.ts +1 -1
- package/dist/esm/sui-chain-adapter.d.ts.map +1 -1
- package/dist/esm/sui-chain-adapter.js +1 -1
- package/dist/esm/sui-chain-adapter.js.map +1 -1
- package/dist/esm/to-internal.d.ts +1 -1
- package/dist/esm/to-internal.d.ts.map +1 -1
- package/dist/esm/to-internal.js +5 -5
- package/dist/esm/to-internal.js.map +1 -1
- package/dist/esm/transaction.d.ts +4 -4
- package/dist/esm/transaction.d.ts.map +1 -1
- package/dist/esm/transaction.js +2 -2
- package/dist/esm/transaction.js.map +1 -1
- package/package.json +3 -4
- package/src/abis/0x1.json +499 -0
- package/src/abis/0x3.json +900 -41
- package/src/builtin/0x1.ts +1058 -267
- package/src/builtin/0x2.ts +1141 -1165
- package/src/builtin/0x3.ts +1171 -485
- package/src/codegen/codegen.ts +7 -7
- package/src/codegen/run.ts +1 -1
- package/src/models.ts +1 -1
- package/src/move-coder.ts +60 -28
- package/src/sui-chain-adapter.ts +1 -1
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +11 -11
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +99 -99
- package/src/tests/types/testnet/0xdee9.ts +183 -183
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +313 -316
- package/src/to-internal.ts +7 -7
- package/src/transaction.ts +6 -6
package/dist/cjs/builtin/0x3.js
CHANGED
|
@@ -9,7 +9,7 @@ const tslib_1 = require("tslib");
|
|
|
9
9
|
const move_1 = require("@typemove/move");
|
|
10
10
|
const sui_1 = require("@typemove/sui");
|
|
11
11
|
const sui_2 = require("@typemove/sui");
|
|
12
|
-
const transactions_1 = require("@mysten/sui
|
|
12
|
+
const transactions_1 = require("@mysten/sui/transactions");
|
|
13
13
|
const sui_3 = require("@typemove/sui");
|
|
14
14
|
const _0x1 = tslib_1.__importStar(require("./0x1.js"));
|
|
15
15
|
const _0x2 = tslib_1.__importStar(require("./0x2.js"));
|
|
@@ -102,7 +102,7 @@ var stake_subsidy;
|
|
|
102
102
|
let view;
|
|
103
103
|
(function (view) {
|
|
104
104
|
async function advanceEpoch(client, args) {
|
|
105
|
-
const tx = new transactions_1.
|
|
105
|
+
const tx = new transactions_1.Transaction();
|
|
106
106
|
builder.advanceEpoch(tx, args);
|
|
107
107
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
108
108
|
transactionBlock: tx,
|
|
@@ -112,7 +112,7 @@ var stake_subsidy;
|
|
|
112
112
|
}
|
|
113
113
|
view.advanceEpoch = advanceEpoch;
|
|
114
114
|
async function create(client, args) {
|
|
115
|
-
const tx = new transactions_1.
|
|
115
|
+
const tx = new transactions_1.Transaction();
|
|
116
116
|
builder.create(tx, args);
|
|
117
117
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
118
118
|
transactionBlock: tx,
|
|
@@ -122,7 +122,7 @@ var stake_subsidy;
|
|
|
122
122
|
}
|
|
123
123
|
view.create = create;
|
|
124
124
|
async function currentEpochSubsidyAmount(client, args) {
|
|
125
|
-
const tx = new transactions_1.
|
|
125
|
+
const tx = new transactions_1.Transaction();
|
|
126
126
|
builder.currentEpochSubsidyAmount(tx, args);
|
|
127
127
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
128
128
|
transactionBlock: tx,
|
|
@@ -135,6 +135,33 @@ var stake_subsidy;
|
|
|
135
135
|
})(stake_subsidy || (exports.stake_subsidy = stake_subsidy = {}));
|
|
136
136
|
var staking_pool;
|
|
137
137
|
(function (staking_pool) {
|
|
138
|
+
let FungibleStakedSui;
|
|
139
|
+
(function (FungibleStakedSui) {
|
|
140
|
+
FungibleStakedSui.TYPE_QNAME = "0x3::staking_pool::FungibleStakedSui";
|
|
141
|
+
const TYPE = new move_1.TypeDescriptor(FungibleStakedSui.TYPE_QNAME);
|
|
142
|
+
function type() {
|
|
143
|
+
return TYPE.apply();
|
|
144
|
+
}
|
|
145
|
+
FungibleStakedSui.type = type;
|
|
146
|
+
})(FungibleStakedSui = staking_pool.FungibleStakedSui || (staking_pool.FungibleStakedSui = {}));
|
|
147
|
+
let FungibleStakedSuiData;
|
|
148
|
+
(function (FungibleStakedSuiData) {
|
|
149
|
+
FungibleStakedSuiData.TYPE_QNAME = "0x3::staking_pool::FungibleStakedSuiData";
|
|
150
|
+
const TYPE = new move_1.TypeDescriptor(FungibleStakedSuiData.TYPE_QNAME);
|
|
151
|
+
function type() {
|
|
152
|
+
return TYPE.apply();
|
|
153
|
+
}
|
|
154
|
+
FungibleStakedSuiData.type = type;
|
|
155
|
+
})(FungibleStakedSuiData = staking_pool.FungibleStakedSuiData || (staking_pool.FungibleStakedSuiData = {}));
|
|
156
|
+
let FungibleStakedSuiDataKey;
|
|
157
|
+
(function (FungibleStakedSuiDataKey) {
|
|
158
|
+
FungibleStakedSuiDataKey.TYPE_QNAME = "0x3::staking_pool::FungibleStakedSuiDataKey";
|
|
159
|
+
const TYPE = new move_1.TypeDescriptor(FungibleStakedSuiDataKey.TYPE_QNAME);
|
|
160
|
+
function type() {
|
|
161
|
+
return TYPE.apply();
|
|
162
|
+
}
|
|
163
|
+
FungibleStakedSuiDataKey.type = type;
|
|
164
|
+
})(FungibleStakedSuiDataKey = staking_pool.FungibleStakedSuiDataKey || (staking_pool.FungibleStakedSuiDataKey = {}));
|
|
138
165
|
let PoolTokenExchangeRate;
|
|
139
166
|
(function (PoolTokenExchangeRate) {
|
|
140
167
|
PoolTokenExchangeRate.TYPE_QNAME = "0x3::staking_pool::PoolTokenExchangeRate";
|
|
@@ -175,6 +202,17 @@ var staking_pool;
|
|
|
175
202
|
});
|
|
176
203
|
}
|
|
177
204
|
builder.activateStakingPool = activateStakingPool;
|
|
205
|
+
function convertToFungibleStakedSui(tx, args) {
|
|
206
|
+
const _args = [];
|
|
207
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
208
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
209
|
+
// @ts-ignore
|
|
210
|
+
return tx.moveCall({
|
|
211
|
+
target: "0x3::staking_pool::convert_to_fungible_staked_sui",
|
|
212
|
+
arguments: _args,
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
builder.convertToFungibleStakedSui = convertToFungibleStakedSui;
|
|
178
216
|
function deactivateStakingPool(tx, args) {
|
|
179
217
|
const _args = [];
|
|
180
218
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -207,6 +245,26 @@ var staking_pool;
|
|
|
207
245
|
});
|
|
208
246
|
}
|
|
209
247
|
builder.exchangeRates = exchangeRates;
|
|
248
|
+
function fungibleStakedSuiPoolId(tx, args) {
|
|
249
|
+
const _args = [];
|
|
250
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
251
|
+
// @ts-ignore
|
|
252
|
+
return tx.moveCall({
|
|
253
|
+
target: "0x3::staking_pool::fungible_staked_sui_pool_id",
|
|
254
|
+
arguments: _args,
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
builder.fungibleStakedSuiPoolId = fungibleStakedSuiPoolId;
|
|
258
|
+
function fungibleStakedSuiValue(tx, args) {
|
|
259
|
+
const _args = [];
|
|
260
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
261
|
+
// @ts-ignore
|
|
262
|
+
return tx.moveCall({
|
|
263
|
+
target: "0x3::staking_pool::fungible_staked_sui_value",
|
|
264
|
+
arguments: _args,
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
builder.fungibleStakedSuiValue = fungibleStakedSuiValue;
|
|
210
268
|
function isEqualStakingMetadata(tx, args) {
|
|
211
269
|
const _args = [];
|
|
212
270
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -238,6 +296,17 @@ var staking_pool;
|
|
|
238
296
|
});
|
|
239
297
|
}
|
|
240
298
|
builder.isPreactive = isPreactive;
|
|
299
|
+
function joinFungibleStakedSui(tx, args) {
|
|
300
|
+
const _args = [];
|
|
301
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
302
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
303
|
+
// @ts-ignore
|
|
304
|
+
return tx.moveCall({
|
|
305
|
+
target: "0x3::staking_pool::join_fungible_staked_sui",
|
|
306
|
+
arguments: _args,
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
builder.joinFungibleStakedSui = joinFungibleStakedSui;
|
|
241
310
|
function joinStakedSui(tx, args) {
|
|
242
311
|
const _args = [];
|
|
243
312
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -329,6 +398,17 @@ var staking_pool;
|
|
|
329
398
|
});
|
|
330
399
|
}
|
|
331
400
|
builder.processPendingStakesAndWithdraws = processPendingStakesAndWithdraws;
|
|
401
|
+
function redeemFungibleStakedSui(tx, args) {
|
|
402
|
+
const _args = [];
|
|
403
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
404
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
405
|
+
// @ts-ignore
|
|
406
|
+
return tx.moveCall({
|
|
407
|
+
target: "0x3::staking_pool::redeem_fungible_staked_sui",
|
|
408
|
+
arguments: _args,
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
builder.redeemFungibleStakedSui = redeemFungibleStakedSui;
|
|
332
412
|
function requestAddStake(tx, args) {
|
|
333
413
|
const _args = [];
|
|
334
414
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -363,6 +443,17 @@ var staking_pool;
|
|
|
363
443
|
});
|
|
364
444
|
}
|
|
365
445
|
builder.split = split;
|
|
446
|
+
function splitFungibleStakedSui(tx, args) {
|
|
447
|
+
const _args = [];
|
|
448
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
449
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
450
|
+
// @ts-ignore
|
|
451
|
+
return tx.moveCall({
|
|
452
|
+
target: "0x3::staking_pool::split_fungible_staked_sui",
|
|
453
|
+
arguments: _args,
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
builder.splitFungibleStakedSui = splitFungibleStakedSui;
|
|
366
457
|
function splitStakedSui(tx, args) {
|
|
367
458
|
const _args = [];
|
|
368
459
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -429,7 +520,7 @@ var staking_pool;
|
|
|
429
520
|
let view;
|
|
430
521
|
(function (view) {
|
|
431
522
|
async function activateStakingPool(client, args) {
|
|
432
|
-
const tx = new transactions_1.
|
|
523
|
+
const tx = new transactions_1.Transaction();
|
|
433
524
|
builder.activateStakingPool(tx, args);
|
|
434
525
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
435
526
|
transactionBlock: tx,
|
|
@@ -438,8 +529,18 @@ var staking_pool;
|
|
|
438
529
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
439
530
|
}
|
|
440
531
|
view.activateStakingPool = activateStakingPool;
|
|
532
|
+
async function convertToFungibleStakedSui(client, args) {
|
|
533
|
+
const tx = new transactions_1.Transaction();
|
|
534
|
+
builder.convertToFungibleStakedSui(tx, args);
|
|
535
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
536
|
+
transactionBlock: tx,
|
|
537
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
538
|
+
});
|
|
539
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
540
|
+
}
|
|
541
|
+
view.convertToFungibleStakedSui = convertToFungibleStakedSui;
|
|
441
542
|
async function deactivateStakingPool(client, args) {
|
|
442
|
-
const tx = new transactions_1.
|
|
543
|
+
const tx = new transactions_1.Transaction();
|
|
443
544
|
builder.deactivateStakingPool(tx, args);
|
|
444
545
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
445
546
|
transactionBlock: tx,
|
|
@@ -449,7 +550,7 @@ var staking_pool;
|
|
|
449
550
|
}
|
|
450
551
|
view.deactivateStakingPool = deactivateStakingPool;
|
|
451
552
|
async function depositRewards(client, args) {
|
|
452
|
-
const tx = new transactions_1.
|
|
553
|
+
const tx = new transactions_1.Transaction();
|
|
453
554
|
builder.depositRewards(tx, args);
|
|
454
555
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
455
556
|
transactionBlock: tx,
|
|
@@ -459,7 +560,7 @@ var staking_pool;
|
|
|
459
560
|
}
|
|
460
561
|
view.depositRewards = depositRewards;
|
|
461
562
|
async function exchangeRates(client, args) {
|
|
462
|
-
const tx = new transactions_1.
|
|
563
|
+
const tx = new transactions_1.Transaction();
|
|
463
564
|
builder.exchangeRates(tx, args);
|
|
464
565
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
465
566
|
transactionBlock: tx,
|
|
@@ -468,8 +569,28 @@ var staking_pool;
|
|
|
468
569
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
469
570
|
}
|
|
470
571
|
view.exchangeRates = exchangeRates;
|
|
572
|
+
async function fungibleStakedSuiPoolId(client, args) {
|
|
573
|
+
const tx = new transactions_1.Transaction();
|
|
574
|
+
builder.fungibleStakedSuiPoolId(tx, args);
|
|
575
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
576
|
+
transactionBlock: tx,
|
|
577
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
578
|
+
});
|
|
579
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
580
|
+
}
|
|
581
|
+
view.fungibleStakedSuiPoolId = fungibleStakedSuiPoolId;
|
|
582
|
+
async function fungibleStakedSuiValue(client, args) {
|
|
583
|
+
const tx = new transactions_1.Transaction();
|
|
584
|
+
builder.fungibleStakedSuiValue(tx, args);
|
|
585
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
586
|
+
transactionBlock: tx,
|
|
587
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
588
|
+
});
|
|
589
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
590
|
+
}
|
|
591
|
+
view.fungibleStakedSuiValue = fungibleStakedSuiValue;
|
|
471
592
|
async function isEqualStakingMetadata(client, args) {
|
|
472
|
-
const tx = new transactions_1.
|
|
593
|
+
const tx = new transactions_1.Transaction();
|
|
473
594
|
builder.isEqualStakingMetadata(tx, args);
|
|
474
595
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
475
596
|
transactionBlock: tx,
|
|
@@ -479,7 +600,7 @@ var staking_pool;
|
|
|
479
600
|
}
|
|
480
601
|
view.isEqualStakingMetadata = isEqualStakingMetadata;
|
|
481
602
|
async function isInactive(client, args) {
|
|
482
|
-
const tx = new transactions_1.
|
|
603
|
+
const tx = new transactions_1.Transaction();
|
|
483
604
|
builder.isInactive(tx, args);
|
|
484
605
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
485
606
|
transactionBlock: tx,
|
|
@@ -489,7 +610,7 @@ var staking_pool;
|
|
|
489
610
|
}
|
|
490
611
|
view.isInactive = isInactive;
|
|
491
612
|
async function isPreactive(client, args) {
|
|
492
|
-
const tx = new transactions_1.
|
|
613
|
+
const tx = new transactions_1.Transaction();
|
|
493
614
|
builder.isPreactive(tx, args);
|
|
494
615
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
495
616
|
transactionBlock: tx,
|
|
@@ -498,8 +619,18 @@ var staking_pool;
|
|
|
498
619
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
499
620
|
}
|
|
500
621
|
view.isPreactive = isPreactive;
|
|
622
|
+
async function joinFungibleStakedSui(client, args) {
|
|
623
|
+
const tx = new transactions_1.Transaction();
|
|
624
|
+
builder.joinFungibleStakedSui(tx, args);
|
|
625
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
626
|
+
transactionBlock: tx,
|
|
627
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
628
|
+
});
|
|
629
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
630
|
+
}
|
|
631
|
+
view.joinFungibleStakedSui = joinFungibleStakedSui;
|
|
501
632
|
async function joinStakedSui(client, args) {
|
|
502
|
-
const tx = new transactions_1.
|
|
633
|
+
const tx = new transactions_1.Transaction();
|
|
503
634
|
builder.joinStakedSui(tx, args);
|
|
504
635
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
505
636
|
transactionBlock: tx,
|
|
@@ -509,7 +640,7 @@ var staking_pool;
|
|
|
509
640
|
}
|
|
510
641
|
view.joinStakedSui = joinStakedSui;
|
|
511
642
|
async function new_(client, args) {
|
|
512
|
-
const tx = new transactions_1.
|
|
643
|
+
const tx = new transactions_1.Transaction();
|
|
513
644
|
builder.new_(tx, args);
|
|
514
645
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
515
646
|
transactionBlock: tx,
|
|
@@ -519,7 +650,7 @@ var staking_pool;
|
|
|
519
650
|
}
|
|
520
651
|
view.new_ = new_;
|
|
521
652
|
async function pendingStakeAmount(client, args) {
|
|
522
|
-
const tx = new transactions_1.
|
|
653
|
+
const tx = new transactions_1.Transaction();
|
|
523
654
|
builder.pendingStakeAmount(tx, args);
|
|
524
655
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
525
656
|
transactionBlock: tx,
|
|
@@ -529,7 +660,7 @@ var staking_pool;
|
|
|
529
660
|
}
|
|
530
661
|
view.pendingStakeAmount = pendingStakeAmount;
|
|
531
662
|
async function pendingStakeWithdrawAmount(client, args) {
|
|
532
|
-
const tx = new transactions_1.
|
|
663
|
+
const tx = new transactions_1.Transaction();
|
|
533
664
|
builder.pendingStakeWithdrawAmount(tx, args);
|
|
534
665
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
535
666
|
transactionBlock: tx,
|
|
@@ -539,7 +670,7 @@ var staking_pool;
|
|
|
539
670
|
}
|
|
540
671
|
view.pendingStakeWithdrawAmount = pendingStakeWithdrawAmount;
|
|
541
672
|
async function poolId(client, args) {
|
|
542
|
-
const tx = new transactions_1.
|
|
673
|
+
const tx = new transactions_1.Transaction();
|
|
543
674
|
builder.poolId(tx, args);
|
|
544
675
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
545
676
|
transactionBlock: tx,
|
|
@@ -549,7 +680,7 @@ var staking_pool;
|
|
|
549
680
|
}
|
|
550
681
|
view.poolId = poolId;
|
|
551
682
|
async function poolTokenAmount(client, args) {
|
|
552
|
-
const tx = new transactions_1.
|
|
683
|
+
const tx = new transactions_1.Transaction();
|
|
553
684
|
builder.poolTokenAmount(tx, args);
|
|
554
685
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
555
686
|
transactionBlock: tx,
|
|
@@ -559,7 +690,7 @@ var staking_pool;
|
|
|
559
690
|
}
|
|
560
691
|
view.poolTokenAmount = poolTokenAmount;
|
|
561
692
|
async function poolTokenExchangeRateAtEpoch(client, args) {
|
|
562
|
-
const tx = new transactions_1.
|
|
693
|
+
const tx = new transactions_1.Transaction();
|
|
563
694
|
builder.poolTokenExchangeRateAtEpoch(tx, args);
|
|
564
695
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
565
696
|
transactionBlock: tx,
|
|
@@ -569,7 +700,7 @@ var staking_pool;
|
|
|
569
700
|
}
|
|
570
701
|
view.poolTokenExchangeRateAtEpoch = poolTokenExchangeRateAtEpoch;
|
|
571
702
|
async function processPendingStake(client, args) {
|
|
572
|
-
const tx = new transactions_1.
|
|
703
|
+
const tx = new transactions_1.Transaction();
|
|
573
704
|
builder.processPendingStake(tx, args);
|
|
574
705
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
575
706
|
transactionBlock: tx,
|
|
@@ -579,7 +710,7 @@ var staking_pool;
|
|
|
579
710
|
}
|
|
580
711
|
view.processPendingStake = processPendingStake;
|
|
581
712
|
async function processPendingStakesAndWithdraws(client, args) {
|
|
582
|
-
const tx = new transactions_1.
|
|
713
|
+
const tx = new transactions_1.Transaction();
|
|
583
714
|
builder.processPendingStakesAndWithdraws(tx, args);
|
|
584
715
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
585
716
|
transactionBlock: tx,
|
|
@@ -588,8 +719,18 @@ var staking_pool;
|
|
|
588
719
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
589
720
|
}
|
|
590
721
|
view.processPendingStakesAndWithdraws = processPendingStakesAndWithdraws;
|
|
722
|
+
async function redeemFungibleStakedSui(client, args) {
|
|
723
|
+
const tx = new transactions_1.Transaction();
|
|
724
|
+
builder.redeemFungibleStakedSui(tx, args);
|
|
725
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
726
|
+
transactionBlock: tx,
|
|
727
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
728
|
+
});
|
|
729
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
730
|
+
}
|
|
731
|
+
view.redeemFungibleStakedSui = redeemFungibleStakedSui;
|
|
591
732
|
async function requestAddStake(client, args) {
|
|
592
|
-
const tx = new transactions_1.
|
|
733
|
+
const tx = new transactions_1.Transaction();
|
|
593
734
|
builder.requestAddStake(tx, args);
|
|
594
735
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
595
736
|
transactionBlock: tx,
|
|
@@ -599,7 +740,7 @@ var staking_pool;
|
|
|
599
740
|
}
|
|
600
741
|
view.requestAddStake = requestAddStake;
|
|
601
742
|
async function requestWithdrawStake(client, args) {
|
|
602
|
-
const tx = new transactions_1.
|
|
743
|
+
const tx = new transactions_1.Transaction();
|
|
603
744
|
builder.requestWithdrawStake(tx, args);
|
|
604
745
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
605
746
|
transactionBlock: tx,
|
|
@@ -609,7 +750,7 @@ var staking_pool;
|
|
|
609
750
|
}
|
|
610
751
|
view.requestWithdrawStake = requestWithdrawStake;
|
|
611
752
|
async function split(client, args) {
|
|
612
|
-
const tx = new transactions_1.
|
|
753
|
+
const tx = new transactions_1.Transaction();
|
|
613
754
|
builder.split(tx, args);
|
|
614
755
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
615
756
|
transactionBlock: tx,
|
|
@@ -618,8 +759,18 @@ var staking_pool;
|
|
|
618
759
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
619
760
|
}
|
|
620
761
|
view.split = split;
|
|
762
|
+
async function splitFungibleStakedSui(client, args) {
|
|
763
|
+
const tx = new transactions_1.Transaction();
|
|
764
|
+
builder.splitFungibleStakedSui(tx, args);
|
|
765
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
766
|
+
transactionBlock: tx,
|
|
767
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
768
|
+
});
|
|
769
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
770
|
+
}
|
|
771
|
+
view.splitFungibleStakedSui = splitFungibleStakedSui;
|
|
621
772
|
async function splitStakedSui(client, args) {
|
|
622
|
-
const tx = new transactions_1.
|
|
773
|
+
const tx = new transactions_1.Transaction();
|
|
623
774
|
builder.splitStakedSui(tx, args);
|
|
624
775
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
625
776
|
transactionBlock: tx,
|
|
@@ -629,7 +780,7 @@ var staking_pool;
|
|
|
629
780
|
}
|
|
630
781
|
view.splitStakedSui = splitStakedSui;
|
|
631
782
|
async function stakeActivationEpoch(client, args) {
|
|
632
|
-
const tx = new transactions_1.
|
|
783
|
+
const tx = new transactions_1.Transaction();
|
|
633
784
|
builder.stakeActivationEpoch(tx, args);
|
|
634
785
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
635
786
|
transactionBlock: tx,
|
|
@@ -639,7 +790,7 @@ var staking_pool;
|
|
|
639
790
|
}
|
|
640
791
|
view.stakeActivationEpoch = stakeActivationEpoch;
|
|
641
792
|
async function stakedSuiAmount(client, args) {
|
|
642
|
-
const tx = new transactions_1.
|
|
793
|
+
const tx = new transactions_1.Transaction();
|
|
643
794
|
builder.stakedSuiAmount(tx, args);
|
|
644
795
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
645
796
|
transactionBlock: tx,
|
|
@@ -649,7 +800,7 @@ var staking_pool;
|
|
|
649
800
|
}
|
|
650
801
|
view.stakedSuiAmount = stakedSuiAmount;
|
|
651
802
|
async function suiAmount(client, args) {
|
|
652
|
-
const tx = new transactions_1.
|
|
803
|
+
const tx = new transactions_1.Transaction();
|
|
653
804
|
builder.suiAmount(tx, args);
|
|
654
805
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
655
806
|
transactionBlock: tx,
|
|
@@ -659,7 +810,7 @@ var staking_pool;
|
|
|
659
810
|
}
|
|
660
811
|
view.suiAmount = suiAmount;
|
|
661
812
|
async function suiBalance(client, args) {
|
|
662
|
-
const tx = new transactions_1.
|
|
813
|
+
const tx = new transactions_1.Transaction();
|
|
663
814
|
builder.suiBalance(tx, args);
|
|
664
815
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
665
816
|
transactionBlock: tx,
|
|
@@ -669,7 +820,7 @@ var staking_pool;
|
|
|
669
820
|
}
|
|
670
821
|
view.suiBalance = suiBalance;
|
|
671
822
|
async function withdrawFromPrincipal(client, args) {
|
|
672
|
-
const tx = new transactions_1.
|
|
823
|
+
const tx = new transactions_1.Transaction();
|
|
673
824
|
builder.withdrawFromPrincipal(tx, args);
|
|
674
825
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
675
826
|
transactionBlock: tx,
|
|
@@ -742,7 +893,7 @@ var storage_fund;
|
|
|
742
893
|
let view;
|
|
743
894
|
(function (view) {
|
|
744
895
|
async function advanceEpoch(client, args) {
|
|
745
|
-
const tx = new transactions_1.
|
|
896
|
+
const tx = new transactions_1.Transaction();
|
|
746
897
|
builder.advanceEpoch(tx, args);
|
|
747
898
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
748
899
|
transactionBlock: tx,
|
|
@@ -752,7 +903,7 @@ var storage_fund;
|
|
|
752
903
|
}
|
|
753
904
|
view.advanceEpoch = advanceEpoch;
|
|
754
905
|
async function new_(client, args) {
|
|
755
|
-
const tx = new transactions_1.
|
|
906
|
+
const tx = new transactions_1.Transaction();
|
|
756
907
|
builder.new_(tx, args);
|
|
757
908
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
758
909
|
transactionBlock: tx,
|
|
@@ -762,7 +913,7 @@ var storage_fund;
|
|
|
762
913
|
}
|
|
763
914
|
view.new_ = new_;
|
|
764
915
|
async function totalBalance(client, args) {
|
|
765
|
-
const tx = new transactions_1.
|
|
916
|
+
const tx = new transactions_1.Transaction();
|
|
766
917
|
builder.totalBalance(tx, args);
|
|
767
918
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
768
919
|
transactionBlock: tx,
|
|
@@ -772,7 +923,7 @@ var storage_fund;
|
|
|
772
923
|
}
|
|
773
924
|
view.totalBalance = totalBalance;
|
|
774
925
|
async function totalObjectStorageRebates(client, args) {
|
|
775
|
-
const tx = new transactions_1.
|
|
926
|
+
const tx = new transactions_1.Transaction();
|
|
776
927
|
builder.totalObjectStorageRebates(tx, args);
|
|
777
928
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
778
929
|
transactionBlock: tx,
|
|
@@ -806,6 +957,17 @@ var sui_system;
|
|
|
806
957
|
});
|
|
807
958
|
}
|
|
808
959
|
builder.activeValidatorAddresses = activeValidatorAddresses;
|
|
960
|
+
function convertToFungibleStakedSui(tx, args) {
|
|
961
|
+
const _args = [];
|
|
962
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
963
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
964
|
+
// @ts-ignore
|
|
965
|
+
return tx.moveCall({
|
|
966
|
+
target: "0x3::sui_system::convert_to_fungible_staked_sui",
|
|
967
|
+
arguments: _args,
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
builder.convertToFungibleStakedSui = convertToFungibleStakedSui;
|
|
809
971
|
function create(tx, args) {
|
|
810
972
|
const _args = [];
|
|
811
973
|
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
@@ -833,6 +995,17 @@ var sui_system;
|
|
|
833
995
|
});
|
|
834
996
|
}
|
|
835
997
|
builder.poolExchangeRates = poolExchangeRates;
|
|
998
|
+
function redeemFungibleStakedSui(tx, args) {
|
|
999
|
+
const _args = [];
|
|
1000
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1001
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1002
|
+
// @ts-ignore
|
|
1003
|
+
return tx.moveCall({
|
|
1004
|
+
target: "0x3::sui_system::redeem_fungible_staked_sui",
|
|
1005
|
+
arguments: _args,
|
|
1006
|
+
});
|
|
1007
|
+
}
|
|
1008
|
+
builder.redeemFungibleStakedSui = redeemFungibleStakedSui;
|
|
836
1009
|
function reportValidator(tx, args) {
|
|
837
1010
|
const _args = [];
|
|
838
1011
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -1226,11 +1399,22 @@ var sui_system;
|
|
|
1226
1399
|
});
|
|
1227
1400
|
}
|
|
1228
1401
|
builder.updateValidatorProjectUrl = updateValidatorProjectUrl;
|
|
1402
|
+
function validatorAddressByPoolId(tx, args) {
|
|
1403
|
+
const _args = [];
|
|
1404
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1405
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
1406
|
+
// @ts-ignore
|
|
1407
|
+
return tx.moveCall({
|
|
1408
|
+
target: "0x3::sui_system::validator_address_by_pool_id",
|
|
1409
|
+
arguments: _args,
|
|
1410
|
+
});
|
|
1411
|
+
}
|
|
1412
|
+
builder.validatorAddressByPoolId = validatorAddressByPoolId;
|
|
1229
1413
|
})(builder = sui_system.builder || (sui_system.builder = {}));
|
|
1230
1414
|
let view;
|
|
1231
1415
|
(function (view) {
|
|
1232
1416
|
async function activeValidatorAddresses(client, args) {
|
|
1233
|
-
const tx = new transactions_1.
|
|
1417
|
+
const tx = new transactions_1.Transaction();
|
|
1234
1418
|
builder.activeValidatorAddresses(tx, args);
|
|
1235
1419
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1236
1420
|
transactionBlock: tx,
|
|
@@ -1239,8 +1423,18 @@ var sui_system;
|
|
|
1239
1423
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1240
1424
|
}
|
|
1241
1425
|
view.activeValidatorAddresses = activeValidatorAddresses;
|
|
1426
|
+
async function convertToFungibleStakedSui(client, args) {
|
|
1427
|
+
const tx = new transactions_1.Transaction();
|
|
1428
|
+
builder.convertToFungibleStakedSui(tx, args);
|
|
1429
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1430
|
+
transactionBlock: tx,
|
|
1431
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
1432
|
+
});
|
|
1433
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1434
|
+
}
|
|
1435
|
+
view.convertToFungibleStakedSui = convertToFungibleStakedSui;
|
|
1242
1436
|
async function create(client, args) {
|
|
1243
|
-
const tx = new transactions_1.
|
|
1437
|
+
const tx = new transactions_1.Transaction();
|
|
1244
1438
|
builder.create(tx, args);
|
|
1245
1439
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1246
1440
|
transactionBlock: tx,
|
|
@@ -1250,7 +1444,7 @@ var sui_system;
|
|
|
1250
1444
|
}
|
|
1251
1445
|
view.create = create;
|
|
1252
1446
|
async function poolExchangeRates(client, args) {
|
|
1253
|
-
const tx = new transactions_1.
|
|
1447
|
+
const tx = new transactions_1.Transaction();
|
|
1254
1448
|
builder.poolExchangeRates(tx, args);
|
|
1255
1449
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1256
1450
|
transactionBlock: tx,
|
|
@@ -1259,8 +1453,18 @@ var sui_system;
|
|
|
1259
1453
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1260
1454
|
}
|
|
1261
1455
|
view.poolExchangeRates = poolExchangeRates;
|
|
1456
|
+
async function redeemFungibleStakedSui(client, args) {
|
|
1457
|
+
const tx = new transactions_1.Transaction();
|
|
1458
|
+
builder.redeemFungibleStakedSui(tx, args);
|
|
1459
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1460
|
+
transactionBlock: tx,
|
|
1461
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
1462
|
+
});
|
|
1463
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1464
|
+
}
|
|
1465
|
+
view.redeemFungibleStakedSui = redeemFungibleStakedSui;
|
|
1262
1466
|
async function reportValidator(client, args) {
|
|
1263
|
-
const tx = new transactions_1.
|
|
1467
|
+
const tx = new transactions_1.Transaction();
|
|
1264
1468
|
builder.reportValidator(tx, args);
|
|
1265
1469
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1266
1470
|
transactionBlock: tx,
|
|
@@ -1270,7 +1474,7 @@ var sui_system;
|
|
|
1270
1474
|
}
|
|
1271
1475
|
view.reportValidator = reportValidator;
|
|
1272
1476
|
async function requestAddStake(client, args) {
|
|
1273
|
-
const tx = new transactions_1.
|
|
1477
|
+
const tx = new transactions_1.Transaction();
|
|
1274
1478
|
builder.requestAddStake(tx, args);
|
|
1275
1479
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1276
1480
|
transactionBlock: tx,
|
|
@@ -1280,7 +1484,7 @@ var sui_system;
|
|
|
1280
1484
|
}
|
|
1281
1485
|
view.requestAddStake = requestAddStake;
|
|
1282
1486
|
async function requestAddStakeMulCoin(client, args) {
|
|
1283
|
-
const tx = new transactions_1.
|
|
1487
|
+
const tx = new transactions_1.Transaction();
|
|
1284
1488
|
builder.requestAddStakeMulCoin(tx, args);
|
|
1285
1489
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1286
1490
|
transactionBlock: tx,
|
|
@@ -1290,7 +1494,7 @@ var sui_system;
|
|
|
1290
1494
|
}
|
|
1291
1495
|
view.requestAddStakeMulCoin = requestAddStakeMulCoin;
|
|
1292
1496
|
async function requestAddStakeNonEntry(client, args) {
|
|
1293
|
-
const tx = new transactions_1.
|
|
1497
|
+
const tx = new transactions_1.Transaction();
|
|
1294
1498
|
builder.requestAddStakeNonEntry(tx, args);
|
|
1295
1499
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1296
1500
|
transactionBlock: tx,
|
|
@@ -1300,7 +1504,7 @@ var sui_system;
|
|
|
1300
1504
|
}
|
|
1301
1505
|
view.requestAddStakeNonEntry = requestAddStakeNonEntry;
|
|
1302
1506
|
async function requestAddValidator(client, args) {
|
|
1303
|
-
const tx = new transactions_1.
|
|
1507
|
+
const tx = new transactions_1.Transaction();
|
|
1304
1508
|
builder.requestAddValidator(tx, args);
|
|
1305
1509
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1306
1510
|
transactionBlock: tx,
|
|
@@ -1310,7 +1514,7 @@ var sui_system;
|
|
|
1310
1514
|
}
|
|
1311
1515
|
view.requestAddValidator = requestAddValidator;
|
|
1312
1516
|
async function requestAddValidatorCandidate(client, args) {
|
|
1313
|
-
const tx = new transactions_1.
|
|
1517
|
+
const tx = new transactions_1.Transaction();
|
|
1314
1518
|
builder.requestAddValidatorCandidate(tx, args);
|
|
1315
1519
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1316
1520
|
transactionBlock: tx,
|
|
@@ -1320,7 +1524,7 @@ var sui_system;
|
|
|
1320
1524
|
}
|
|
1321
1525
|
view.requestAddValidatorCandidate = requestAddValidatorCandidate;
|
|
1322
1526
|
async function requestRemoveValidator(client, args) {
|
|
1323
|
-
const tx = new transactions_1.
|
|
1527
|
+
const tx = new transactions_1.Transaction();
|
|
1324
1528
|
builder.requestRemoveValidator(tx, args);
|
|
1325
1529
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1326
1530
|
transactionBlock: tx,
|
|
@@ -1330,7 +1534,7 @@ var sui_system;
|
|
|
1330
1534
|
}
|
|
1331
1535
|
view.requestRemoveValidator = requestRemoveValidator;
|
|
1332
1536
|
async function requestRemoveValidatorCandidate(client, args) {
|
|
1333
|
-
const tx = new transactions_1.
|
|
1537
|
+
const tx = new transactions_1.Transaction();
|
|
1334
1538
|
builder.requestRemoveValidatorCandidate(tx, args);
|
|
1335
1539
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1336
1540
|
transactionBlock: tx,
|
|
@@ -1340,7 +1544,7 @@ var sui_system;
|
|
|
1340
1544
|
}
|
|
1341
1545
|
view.requestRemoveValidatorCandidate = requestRemoveValidatorCandidate;
|
|
1342
1546
|
async function requestSetCommissionRate(client, args) {
|
|
1343
|
-
const tx = new transactions_1.
|
|
1547
|
+
const tx = new transactions_1.Transaction();
|
|
1344
1548
|
builder.requestSetCommissionRate(tx, args);
|
|
1345
1549
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1346
1550
|
transactionBlock: tx,
|
|
@@ -1350,7 +1554,7 @@ var sui_system;
|
|
|
1350
1554
|
}
|
|
1351
1555
|
view.requestSetCommissionRate = requestSetCommissionRate;
|
|
1352
1556
|
async function requestSetGasPrice(client, args) {
|
|
1353
|
-
const tx = new transactions_1.
|
|
1557
|
+
const tx = new transactions_1.Transaction();
|
|
1354
1558
|
builder.requestSetGasPrice(tx, args);
|
|
1355
1559
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1356
1560
|
transactionBlock: tx,
|
|
@@ -1360,7 +1564,7 @@ var sui_system;
|
|
|
1360
1564
|
}
|
|
1361
1565
|
view.requestSetGasPrice = requestSetGasPrice;
|
|
1362
1566
|
async function requestWithdrawStake(client, args) {
|
|
1363
|
-
const tx = new transactions_1.
|
|
1567
|
+
const tx = new transactions_1.Transaction();
|
|
1364
1568
|
builder.requestWithdrawStake(tx, args);
|
|
1365
1569
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1366
1570
|
transactionBlock: tx,
|
|
@@ -1370,7 +1574,7 @@ var sui_system;
|
|
|
1370
1574
|
}
|
|
1371
1575
|
view.requestWithdrawStake = requestWithdrawStake;
|
|
1372
1576
|
async function requestWithdrawStakeNonEntry(client, args) {
|
|
1373
|
-
const tx = new transactions_1.
|
|
1577
|
+
const tx = new transactions_1.Transaction();
|
|
1374
1578
|
builder.requestWithdrawStakeNonEntry(tx, args);
|
|
1375
1579
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1376
1580
|
transactionBlock: tx,
|
|
@@ -1380,7 +1584,7 @@ var sui_system;
|
|
|
1380
1584
|
}
|
|
1381
1585
|
view.requestWithdrawStakeNonEntry = requestWithdrawStakeNonEntry;
|
|
1382
1586
|
async function rotateOperationCap(client, args) {
|
|
1383
|
-
const tx = new transactions_1.
|
|
1587
|
+
const tx = new transactions_1.Transaction();
|
|
1384
1588
|
builder.rotateOperationCap(tx, args);
|
|
1385
1589
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1386
1590
|
transactionBlock: tx,
|
|
@@ -1390,7 +1594,7 @@ var sui_system;
|
|
|
1390
1594
|
}
|
|
1391
1595
|
view.rotateOperationCap = rotateOperationCap;
|
|
1392
1596
|
async function setCandidateValidatorCommissionRate(client, args) {
|
|
1393
|
-
const tx = new transactions_1.
|
|
1597
|
+
const tx = new transactions_1.Transaction();
|
|
1394
1598
|
builder.setCandidateValidatorCommissionRate(tx, args);
|
|
1395
1599
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1396
1600
|
transactionBlock: tx,
|
|
@@ -1400,7 +1604,7 @@ var sui_system;
|
|
|
1400
1604
|
}
|
|
1401
1605
|
view.setCandidateValidatorCommissionRate = setCandidateValidatorCommissionRate;
|
|
1402
1606
|
async function setCandidateValidatorGasPrice(client, args) {
|
|
1403
|
-
const tx = new transactions_1.
|
|
1607
|
+
const tx = new transactions_1.Transaction();
|
|
1404
1608
|
builder.setCandidateValidatorGasPrice(tx, args);
|
|
1405
1609
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1406
1610
|
transactionBlock: tx,
|
|
@@ -1410,7 +1614,7 @@ var sui_system;
|
|
|
1410
1614
|
}
|
|
1411
1615
|
view.setCandidateValidatorGasPrice = setCandidateValidatorGasPrice;
|
|
1412
1616
|
async function undoReportValidator(client, args) {
|
|
1413
|
-
const tx = new transactions_1.
|
|
1617
|
+
const tx = new transactions_1.Transaction();
|
|
1414
1618
|
builder.undoReportValidator(tx, args);
|
|
1415
1619
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1416
1620
|
transactionBlock: tx,
|
|
@@ -1420,7 +1624,7 @@ var sui_system;
|
|
|
1420
1624
|
}
|
|
1421
1625
|
view.undoReportValidator = undoReportValidator;
|
|
1422
1626
|
async function updateCandidateValidatorNetworkAddress(client, args) {
|
|
1423
|
-
const tx = new transactions_1.
|
|
1627
|
+
const tx = new transactions_1.Transaction();
|
|
1424
1628
|
builder.updateCandidateValidatorNetworkAddress(tx, args);
|
|
1425
1629
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1426
1630
|
transactionBlock: tx,
|
|
@@ -1430,7 +1634,7 @@ var sui_system;
|
|
|
1430
1634
|
}
|
|
1431
1635
|
view.updateCandidateValidatorNetworkAddress = updateCandidateValidatorNetworkAddress;
|
|
1432
1636
|
async function updateCandidateValidatorNetworkPubkey(client, args) {
|
|
1433
|
-
const tx = new transactions_1.
|
|
1637
|
+
const tx = new transactions_1.Transaction();
|
|
1434
1638
|
builder.updateCandidateValidatorNetworkPubkey(tx, args);
|
|
1435
1639
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1436
1640
|
transactionBlock: tx,
|
|
@@ -1440,7 +1644,7 @@ var sui_system;
|
|
|
1440
1644
|
}
|
|
1441
1645
|
view.updateCandidateValidatorNetworkPubkey = updateCandidateValidatorNetworkPubkey;
|
|
1442
1646
|
async function updateCandidateValidatorP2pAddress(client, args) {
|
|
1443
|
-
const tx = new transactions_1.
|
|
1647
|
+
const tx = new transactions_1.Transaction();
|
|
1444
1648
|
builder.updateCandidateValidatorP2pAddress(tx, args);
|
|
1445
1649
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1446
1650
|
transactionBlock: tx,
|
|
@@ -1450,7 +1654,7 @@ var sui_system;
|
|
|
1450
1654
|
}
|
|
1451
1655
|
view.updateCandidateValidatorP2pAddress = updateCandidateValidatorP2pAddress;
|
|
1452
1656
|
async function updateCandidateValidatorPrimaryAddress(client, args) {
|
|
1453
|
-
const tx = new transactions_1.
|
|
1657
|
+
const tx = new transactions_1.Transaction();
|
|
1454
1658
|
builder.updateCandidateValidatorPrimaryAddress(tx, args);
|
|
1455
1659
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1456
1660
|
transactionBlock: tx,
|
|
@@ -1460,7 +1664,7 @@ var sui_system;
|
|
|
1460
1664
|
}
|
|
1461
1665
|
view.updateCandidateValidatorPrimaryAddress = updateCandidateValidatorPrimaryAddress;
|
|
1462
1666
|
async function updateCandidateValidatorProtocolPubkey(client, args) {
|
|
1463
|
-
const tx = new transactions_1.
|
|
1667
|
+
const tx = new transactions_1.Transaction();
|
|
1464
1668
|
builder.updateCandidateValidatorProtocolPubkey(tx, args);
|
|
1465
1669
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1466
1670
|
transactionBlock: tx,
|
|
@@ -1470,7 +1674,7 @@ var sui_system;
|
|
|
1470
1674
|
}
|
|
1471
1675
|
view.updateCandidateValidatorProtocolPubkey = updateCandidateValidatorProtocolPubkey;
|
|
1472
1676
|
async function updateCandidateValidatorWorkerAddress(client, args) {
|
|
1473
|
-
const tx = new transactions_1.
|
|
1677
|
+
const tx = new transactions_1.Transaction();
|
|
1474
1678
|
builder.updateCandidateValidatorWorkerAddress(tx, args);
|
|
1475
1679
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1476
1680
|
transactionBlock: tx,
|
|
@@ -1480,7 +1684,7 @@ var sui_system;
|
|
|
1480
1684
|
}
|
|
1481
1685
|
view.updateCandidateValidatorWorkerAddress = updateCandidateValidatorWorkerAddress;
|
|
1482
1686
|
async function updateCandidateValidatorWorkerPubkey(client, args) {
|
|
1483
|
-
const tx = new transactions_1.
|
|
1687
|
+
const tx = new transactions_1.Transaction();
|
|
1484
1688
|
builder.updateCandidateValidatorWorkerPubkey(tx, args);
|
|
1485
1689
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1486
1690
|
transactionBlock: tx,
|
|
@@ -1490,7 +1694,7 @@ var sui_system;
|
|
|
1490
1694
|
}
|
|
1491
1695
|
view.updateCandidateValidatorWorkerPubkey = updateCandidateValidatorWorkerPubkey;
|
|
1492
1696
|
async function updateValidatorDescription(client, args) {
|
|
1493
|
-
const tx = new transactions_1.
|
|
1697
|
+
const tx = new transactions_1.Transaction();
|
|
1494
1698
|
builder.updateValidatorDescription(tx, args);
|
|
1495
1699
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1496
1700
|
transactionBlock: tx,
|
|
@@ -1500,7 +1704,7 @@ var sui_system;
|
|
|
1500
1704
|
}
|
|
1501
1705
|
view.updateValidatorDescription = updateValidatorDescription;
|
|
1502
1706
|
async function updateValidatorImageUrl(client, args) {
|
|
1503
|
-
const tx = new transactions_1.
|
|
1707
|
+
const tx = new transactions_1.Transaction();
|
|
1504
1708
|
builder.updateValidatorImageUrl(tx, args);
|
|
1505
1709
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1506
1710
|
transactionBlock: tx,
|
|
@@ -1510,7 +1714,7 @@ var sui_system;
|
|
|
1510
1714
|
}
|
|
1511
1715
|
view.updateValidatorImageUrl = updateValidatorImageUrl;
|
|
1512
1716
|
async function updateValidatorName(client, args) {
|
|
1513
|
-
const tx = new transactions_1.
|
|
1717
|
+
const tx = new transactions_1.Transaction();
|
|
1514
1718
|
builder.updateValidatorName(tx, args);
|
|
1515
1719
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1516
1720
|
transactionBlock: tx,
|
|
@@ -1520,7 +1724,7 @@ var sui_system;
|
|
|
1520
1724
|
}
|
|
1521
1725
|
view.updateValidatorName = updateValidatorName;
|
|
1522
1726
|
async function updateValidatorNextEpochNetworkAddress(client, args) {
|
|
1523
|
-
const tx = new transactions_1.
|
|
1727
|
+
const tx = new transactions_1.Transaction();
|
|
1524
1728
|
builder.updateValidatorNextEpochNetworkAddress(tx, args);
|
|
1525
1729
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1526
1730
|
transactionBlock: tx,
|
|
@@ -1530,7 +1734,7 @@ var sui_system;
|
|
|
1530
1734
|
}
|
|
1531
1735
|
view.updateValidatorNextEpochNetworkAddress = updateValidatorNextEpochNetworkAddress;
|
|
1532
1736
|
async function updateValidatorNextEpochNetworkPubkey(client, args) {
|
|
1533
|
-
const tx = new transactions_1.
|
|
1737
|
+
const tx = new transactions_1.Transaction();
|
|
1534
1738
|
builder.updateValidatorNextEpochNetworkPubkey(tx, args);
|
|
1535
1739
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1536
1740
|
transactionBlock: tx,
|
|
@@ -1540,7 +1744,7 @@ var sui_system;
|
|
|
1540
1744
|
}
|
|
1541
1745
|
view.updateValidatorNextEpochNetworkPubkey = updateValidatorNextEpochNetworkPubkey;
|
|
1542
1746
|
async function updateValidatorNextEpochP2pAddress(client, args) {
|
|
1543
|
-
const tx = new transactions_1.
|
|
1747
|
+
const tx = new transactions_1.Transaction();
|
|
1544
1748
|
builder.updateValidatorNextEpochP2pAddress(tx, args);
|
|
1545
1749
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1546
1750
|
transactionBlock: tx,
|
|
@@ -1550,7 +1754,7 @@ var sui_system;
|
|
|
1550
1754
|
}
|
|
1551
1755
|
view.updateValidatorNextEpochP2pAddress = updateValidatorNextEpochP2pAddress;
|
|
1552
1756
|
async function updateValidatorNextEpochPrimaryAddress(client, args) {
|
|
1553
|
-
const tx = new transactions_1.
|
|
1757
|
+
const tx = new transactions_1.Transaction();
|
|
1554
1758
|
builder.updateValidatorNextEpochPrimaryAddress(tx, args);
|
|
1555
1759
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1556
1760
|
transactionBlock: tx,
|
|
@@ -1560,7 +1764,7 @@ var sui_system;
|
|
|
1560
1764
|
}
|
|
1561
1765
|
view.updateValidatorNextEpochPrimaryAddress = updateValidatorNextEpochPrimaryAddress;
|
|
1562
1766
|
async function updateValidatorNextEpochProtocolPubkey(client, args) {
|
|
1563
|
-
const tx = new transactions_1.
|
|
1767
|
+
const tx = new transactions_1.Transaction();
|
|
1564
1768
|
builder.updateValidatorNextEpochProtocolPubkey(tx, args);
|
|
1565
1769
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1566
1770
|
transactionBlock: tx,
|
|
@@ -1570,7 +1774,7 @@ var sui_system;
|
|
|
1570
1774
|
}
|
|
1571
1775
|
view.updateValidatorNextEpochProtocolPubkey = updateValidatorNextEpochProtocolPubkey;
|
|
1572
1776
|
async function updateValidatorNextEpochWorkerAddress(client, args) {
|
|
1573
|
-
const tx = new transactions_1.
|
|
1777
|
+
const tx = new transactions_1.Transaction();
|
|
1574
1778
|
builder.updateValidatorNextEpochWorkerAddress(tx, args);
|
|
1575
1779
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1576
1780
|
transactionBlock: tx,
|
|
@@ -1580,7 +1784,7 @@ var sui_system;
|
|
|
1580
1784
|
}
|
|
1581
1785
|
view.updateValidatorNextEpochWorkerAddress = updateValidatorNextEpochWorkerAddress;
|
|
1582
1786
|
async function updateValidatorNextEpochWorkerPubkey(client, args) {
|
|
1583
|
-
const tx = new transactions_1.
|
|
1787
|
+
const tx = new transactions_1.Transaction();
|
|
1584
1788
|
builder.updateValidatorNextEpochWorkerPubkey(tx, args);
|
|
1585
1789
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1586
1790
|
transactionBlock: tx,
|
|
@@ -1590,7 +1794,7 @@ var sui_system;
|
|
|
1590
1794
|
}
|
|
1591
1795
|
view.updateValidatorNextEpochWorkerPubkey = updateValidatorNextEpochWorkerPubkey;
|
|
1592
1796
|
async function updateValidatorProjectUrl(client, args) {
|
|
1593
|
-
const tx = new transactions_1.
|
|
1797
|
+
const tx = new transactions_1.Transaction();
|
|
1594
1798
|
builder.updateValidatorProjectUrl(tx, args);
|
|
1595
1799
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1596
1800
|
transactionBlock: tx,
|
|
@@ -1599,6 +1803,16 @@ var sui_system;
|
|
|
1599
1803
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1600
1804
|
}
|
|
1601
1805
|
view.updateValidatorProjectUrl = updateValidatorProjectUrl;
|
|
1806
|
+
async function validatorAddressByPoolId(client, args) {
|
|
1807
|
+
const tx = new transactions_1.Transaction();
|
|
1808
|
+
builder.validatorAddressByPoolId(tx, args);
|
|
1809
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1810
|
+
transactionBlock: tx,
|
|
1811
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
1812
|
+
});
|
|
1813
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1814
|
+
}
|
|
1815
|
+
view.validatorAddressByPoolId = validatorAddressByPoolId;
|
|
1602
1816
|
})(view = sui_system.view || (sui_system.view = {}));
|
|
1603
1817
|
})(sui_system || (exports.sui_system = sui_system = {}));
|
|
1604
1818
|
var sui_system_state_inner;
|
|
@@ -1689,6 +1903,17 @@ var sui_system_state_inner;
|
|
|
1689
1903
|
});
|
|
1690
1904
|
}
|
|
1691
1905
|
builder.advanceEpoch = advanceEpoch;
|
|
1906
|
+
function convertToFungibleStakedSui(tx, args) {
|
|
1907
|
+
const _args = [];
|
|
1908
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1909
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1910
|
+
// @ts-ignore
|
|
1911
|
+
return tx.moveCall({
|
|
1912
|
+
target: "0x3::sui_system_state_inner::convert_to_fungible_staked_sui",
|
|
1913
|
+
arguments: _args,
|
|
1914
|
+
});
|
|
1915
|
+
}
|
|
1916
|
+
builder.convertToFungibleStakedSui = convertToFungibleStakedSui;
|
|
1692
1917
|
function create(tx, args) {
|
|
1693
1918
|
const _args = [];
|
|
1694
1919
|
_args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
|
|
@@ -1801,6 +2026,17 @@ var sui_system_state_inner;
|
|
|
1801
2026
|
});
|
|
1802
2027
|
}
|
|
1803
2028
|
builder.protocolVersion = protocolVersion;
|
|
2029
|
+
function redeemFungibleStakedSui(tx, args) {
|
|
2030
|
+
const _args = [];
|
|
2031
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2032
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
2033
|
+
// @ts-ignore
|
|
2034
|
+
return tx.moveCall({
|
|
2035
|
+
target: "0x3::sui_system_state_inner::redeem_fungible_staked_sui",
|
|
2036
|
+
arguments: _args,
|
|
2037
|
+
});
|
|
2038
|
+
}
|
|
2039
|
+
builder.redeemFungibleStakedSui = redeemFungibleStakedSui;
|
|
1804
2040
|
function reportValidator(tx, args) {
|
|
1805
2041
|
const _args = [];
|
|
1806
2042
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -2191,6 +2427,17 @@ var sui_system_state_inner;
|
|
|
2191
2427
|
});
|
|
2192
2428
|
}
|
|
2193
2429
|
builder.v1ToV2 = v1ToV2;
|
|
2430
|
+
function validatorAddressByPoolId(tx, args) {
|
|
2431
|
+
const _args = [];
|
|
2432
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2433
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
2434
|
+
// @ts-ignore
|
|
2435
|
+
return tx.moveCall({
|
|
2436
|
+
target: "0x3::sui_system_state_inner::validator_address_by_pool_id",
|
|
2437
|
+
arguments: _args,
|
|
2438
|
+
});
|
|
2439
|
+
}
|
|
2440
|
+
builder.validatorAddressByPoolId = validatorAddressByPoolId;
|
|
2194
2441
|
function validatorStakeAmount(tx, args) {
|
|
2195
2442
|
const _args = [];
|
|
2196
2443
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -2227,7 +2474,7 @@ var sui_system_state_inner;
|
|
|
2227
2474
|
let view;
|
|
2228
2475
|
(function (view) {
|
|
2229
2476
|
async function activeValidatorAddresses(client, args) {
|
|
2230
|
-
const tx = new transactions_1.
|
|
2477
|
+
const tx = new transactions_1.Transaction();
|
|
2231
2478
|
builder.activeValidatorAddresses(tx, args);
|
|
2232
2479
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2233
2480
|
transactionBlock: tx,
|
|
@@ -2237,7 +2484,7 @@ var sui_system_state_inner;
|
|
|
2237
2484
|
}
|
|
2238
2485
|
view.activeValidatorAddresses = activeValidatorAddresses;
|
|
2239
2486
|
async function activeValidatorVotingPowers(client, args) {
|
|
2240
|
-
const tx = new transactions_1.
|
|
2487
|
+
const tx = new transactions_1.Transaction();
|
|
2241
2488
|
builder.activeValidatorVotingPowers(tx, args);
|
|
2242
2489
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2243
2490
|
transactionBlock: tx,
|
|
@@ -2247,7 +2494,7 @@ var sui_system_state_inner;
|
|
|
2247
2494
|
}
|
|
2248
2495
|
view.activeValidatorVotingPowers = activeValidatorVotingPowers;
|
|
2249
2496
|
async function advanceEpoch(client, args) {
|
|
2250
|
-
const tx = new transactions_1.
|
|
2497
|
+
const tx = new transactions_1.Transaction();
|
|
2251
2498
|
builder.advanceEpoch(tx, args);
|
|
2252
2499
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2253
2500
|
transactionBlock: tx,
|
|
@@ -2256,8 +2503,18 @@ var sui_system_state_inner;
|
|
|
2256
2503
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2257
2504
|
}
|
|
2258
2505
|
view.advanceEpoch = advanceEpoch;
|
|
2506
|
+
async function convertToFungibleStakedSui(client, args) {
|
|
2507
|
+
const tx = new transactions_1.Transaction();
|
|
2508
|
+
builder.convertToFungibleStakedSui(tx, args);
|
|
2509
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2510
|
+
transactionBlock: tx,
|
|
2511
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2512
|
+
});
|
|
2513
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2514
|
+
}
|
|
2515
|
+
view.convertToFungibleStakedSui = convertToFungibleStakedSui;
|
|
2259
2516
|
async function create(client, args) {
|
|
2260
|
-
const tx = new transactions_1.
|
|
2517
|
+
const tx = new transactions_1.Transaction();
|
|
2261
2518
|
builder.create(tx, args);
|
|
2262
2519
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2263
2520
|
transactionBlock: tx,
|
|
@@ -2267,7 +2524,7 @@ var sui_system_state_inner;
|
|
|
2267
2524
|
}
|
|
2268
2525
|
view.create = create;
|
|
2269
2526
|
async function createSystemParameters(client, args) {
|
|
2270
|
-
const tx = new transactions_1.
|
|
2527
|
+
const tx = new transactions_1.Transaction();
|
|
2271
2528
|
builder.createSystemParameters(tx, args);
|
|
2272
2529
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2273
2530
|
transactionBlock: tx,
|
|
@@ -2277,7 +2534,7 @@ var sui_system_state_inner;
|
|
|
2277
2534
|
}
|
|
2278
2535
|
view.createSystemParameters = createSystemParameters;
|
|
2279
2536
|
async function epoch(client, args) {
|
|
2280
|
-
const tx = new transactions_1.
|
|
2537
|
+
const tx = new transactions_1.Transaction();
|
|
2281
2538
|
builder.epoch(tx, args);
|
|
2282
2539
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2283
2540
|
transactionBlock: tx,
|
|
@@ -2287,7 +2544,7 @@ var sui_system_state_inner;
|
|
|
2287
2544
|
}
|
|
2288
2545
|
view.epoch = epoch;
|
|
2289
2546
|
async function epochStartTimestampMs(client, args) {
|
|
2290
|
-
const tx = new transactions_1.
|
|
2547
|
+
const tx = new transactions_1.Transaction();
|
|
2291
2548
|
builder.epochStartTimestampMs(tx, args);
|
|
2292
2549
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2293
2550
|
transactionBlock: tx,
|
|
@@ -2297,7 +2554,7 @@ var sui_system_state_inner;
|
|
|
2297
2554
|
}
|
|
2298
2555
|
view.epochStartTimestampMs = epochStartTimestampMs;
|
|
2299
2556
|
async function genesisSystemStateVersion(client, args) {
|
|
2300
|
-
const tx = new transactions_1.
|
|
2557
|
+
const tx = new transactions_1.Transaction();
|
|
2301
2558
|
builder.genesisSystemStateVersion(tx, args);
|
|
2302
2559
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2303
2560
|
transactionBlock: tx,
|
|
@@ -2307,7 +2564,7 @@ var sui_system_state_inner;
|
|
|
2307
2564
|
}
|
|
2308
2565
|
view.genesisSystemStateVersion = genesisSystemStateVersion;
|
|
2309
2566
|
async function getReportersOf(client, args) {
|
|
2310
|
-
const tx = new transactions_1.
|
|
2567
|
+
const tx = new transactions_1.Transaction();
|
|
2311
2568
|
builder.getReportersOf(tx, args);
|
|
2312
2569
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2313
2570
|
transactionBlock: tx,
|
|
@@ -2317,7 +2574,7 @@ var sui_system_state_inner;
|
|
|
2317
2574
|
}
|
|
2318
2575
|
view.getReportersOf = getReportersOf;
|
|
2319
2576
|
async function getStorageFundObjectRebates(client, args) {
|
|
2320
|
-
const tx = new transactions_1.
|
|
2577
|
+
const tx = new transactions_1.Transaction();
|
|
2321
2578
|
builder.getStorageFundObjectRebates(tx, args);
|
|
2322
2579
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2323
2580
|
transactionBlock: tx,
|
|
@@ -2327,7 +2584,7 @@ var sui_system_state_inner;
|
|
|
2327
2584
|
}
|
|
2328
2585
|
view.getStorageFundObjectRebates = getStorageFundObjectRebates;
|
|
2329
2586
|
async function getStorageFundTotalBalance(client, args) {
|
|
2330
|
-
const tx = new transactions_1.
|
|
2587
|
+
const tx = new transactions_1.Transaction();
|
|
2331
2588
|
builder.getStorageFundTotalBalance(tx, args);
|
|
2332
2589
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2333
2590
|
transactionBlock: tx,
|
|
@@ -2337,7 +2594,7 @@ var sui_system_state_inner;
|
|
|
2337
2594
|
}
|
|
2338
2595
|
view.getStorageFundTotalBalance = getStorageFundTotalBalance;
|
|
2339
2596
|
async function poolExchangeRates(client, args) {
|
|
2340
|
-
const tx = new transactions_1.
|
|
2597
|
+
const tx = new transactions_1.Transaction();
|
|
2341
2598
|
builder.poolExchangeRates(tx, args);
|
|
2342
2599
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2343
2600
|
transactionBlock: tx,
|
|
@@ -2347,7 +2604,7 @@ var sui_system_state_inner;
|
|
|
2347
2604
|
}
|
|
2348
2605
|
view.poolExchangeRates = poolExchangeRates;
|
|
2349
2606
|
async function protocolVersion(client, args) {
|
|
2350
|
-
const tx = new transactions_1.
|
|
2607
|
+
const tx = new transactions_1.Transaction();
|
|
2351
2608
|
builder.protocolVersion(tx, args);
|
|
2352
2609
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2353
2610
|
transactionBlock: tx,
|
|
@@ -2356,8 +2613,18 @@ var sui_system_state_inner;
|
|
|
2356
2613
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2357
2614
|
}
|
|
2358
2615
|
view.protocolVersion = protocolVersion;
|
|
2616
|
+
async function redeemFungibleStakedSui(client, args) {
|
|
2617
|
+
const tx = new transactions_1.Transaction();
|
|
2618
|
+
builder.redeemFungibleStakedSui(tx, args);
|
|
2619
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2620
|
+
transactionBlock: tx,
|
|
2621
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2622
|
+
});
|
|
2623
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2624
|
+
}
|
|
2625
|
+
view.redeemFungibleStakedSui = redeemFungibleStakedSui;
|
|
2359
2626
|
async function reportValidator(client, args) {
|
|
2360
|
-
const tx = new transactions_1.
|
|
2627
|
+
const tx = new transactions_1.Transaction();
|
|
2361
2628
|
builder.reportValidator(tx, args);
|
|
2362
2629
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2363
2630
|
transactionBlock: tx,
|
|
@@ -2367,7 +2634,7 @@ var sui_system_state_inner;
|
|
|
2367
2634
|
}
|
|
2368
2635
|
view.reportValidator = reportValidator;
|
|
2369
2636
|
async function requestAddStake(client, args) {
|
|
2370
|
-
const tx = new transactions_1.
|
|
2637
|
+
const tx = new transactions_1.Transaction();
|
|
2371
2638
|
builder.requestAddStake(tx, args);
|
|
2372
2639
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2373
2640
|
transactionBlock: tx,
|
|
@@ -2377,7 +2644,7 @@ var sui_system_state_inner;
|
|
|
2377
2644
|
}
|
|
2378
2645
|
view.requestAddStake = requestAddStake;
|
|
2379
2646
|
async function requestAddStakeMulCoin(client, args) {
|
|
2380
|
-
const tx = new transactions_1.
|
|
2647
|
+
const tx = new transactions_1.Transaction();
|
|
2381
2648
|
builder.requestAddStakeMulCoin(tx, args);
|
|
2382
2649
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2383
2650
|
transactionBlock: tx,
|
|
@@ -2387,7 +2654,7 @@ var sui_system_state_inner;
|
|
|
2387
2654
|
}
|
|
2388
2655
|
view.requestAddStakeMulCoin = requestAddStakeMulCoin;
|
|
2389
2656
|
async function requestAddValidator(client, args) {
|
|
2390
|
-
const tx = new transactions_1.
|
|
2657
|
+
const tx = new transactions_1.Transaction();
|
|
2391
2658
|
builder.requestAddValidator(tx, args);
|
|
2392
2659
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2393
2660
|
transactionBlock: tx,
|
|
@@ -2397,7 +2664,7 @@ var sui_system_state_inner;
|
|
|
2397
2664
|
}
|
|
2398
2665
|
view.requestAddValidator = requestAddValidator;
|
|
2399
2666
|
async function requestAddValidatorCandidate(client, args) {
|
|
2400
|
-
const tx = new transactions_1.
|
|
2667
|
+
const tx = new transactions_1.Transaction();
|
|
2401
2668
|
builder.requestAddValidatorCandidate(tx, args);
|
|
2402
2669
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2403
2670
|
transactionBlock: tx,
|
|
@@ -2407,7 +2674,7 @@ var sui_system_state_inner;
|
|
|
2407
2674
|
}
|
|
2408
2675
|
view.requestAddValidatorCandidate = requestAddValidatorCandidate;
|
|
2409
2676
|
async function requestRemoveValidator(client, args) {
|
|
2410
|
-
const tx = new transactions_1.
|
|
2677
|
+
const tx = new transactions_1.Transaction();
|
|
2411
2678
|
builder.requestRemoveValidator(tx, args);
|
|
2412
2679
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2413
2680
|
transactionBlock: tx,
|
|
@@ -2417,7 +2684,7 @@ var sui_system_state_inner;
|
|
|
2417
2684
|
}
|
|
2418
2685
|
view.requestRemoveValidator = requestRemoveValidator;
|
|
2419
2686
|
async function requestRemoveValidatorCandidate(client, args) {
|
|
2420
|
-
const tx = new transactions_1.
|
|
2687
|
+
const tx = new transactions_1.Transaction();
|
|
2421
2688
|
builder.requestRemoveValidatorCandidate(tx, args);
|
|
2422
2689
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2423
2690
|
transactionBlock: tx,
|
|
@@ -2427,7 +2694,7 @@ var sui_system_state_inner;
|
|
|
2427
2694
|
}
|
|
2428
2695
|
view.requestRemoveValidatorCandidate = requestRemoveValidatorCandidate;
|
|
2429
2696
|
async function requestSetCommissionRate(client, args) {
|
|
2430
|
-
const tx = new transactions_1.
|
|
2697
|
+
const tx = new transactions_1.Transaction();
|
|
2431
2698
|
builder.requestSetCommissionRate(tx, args);
|
|
2432
2699
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2433
2700
|
transactionBlock: tx,
|
|
@@ -2437,7 +2704,7 @@ var sui_system_state_inner;
|
|
|
2437
2704
|
}
|
|
2438
2705
|
view.requestSetCommissionRate = requestSetCommissionRate;
|
|
2439
2706
|
async function requestSetGasPrice(client, args) {
|
|
2440
|
-
const tx = new transactions_1.
|
|
2707
|
+
const tx = new transactions_1.Transaction();
|
|
2441
2708
|
builder.requestSetGasPrice(tx, args);
|
|
2442
2709
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2443
2710
|
transactionBlock: tx,
|
|
@@ -2447,7 +2714,7 @@ var sui_system_state_inner;
|
|
|
2447
2714
|
}
|
|
2448
2715
|
view.requestSetGasPrice = requestSetGasPrice;
|
|
2449
2716
|
async function requestWithdrawStake(client, args) {
|
|
2450
|
-
const tx = new transactions_1.
|
|
2717
|
+
const tx = new transactions_1.Transaction();
|
|
2451
2718
|
builder.requestWithdrawStake(tx, args);
|
|
2452
2719
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2453
2720
|
transactionBlock: tx,
|
|
@@ -2457,7 +2724,7 @@ var sui_system_state_inner;
|
|
|
2457
2724
|
}
|
|
2458
2725
|
view.requestWithdrawStake = requestWithdrawStake;
|
|
2459
2726
|
async function rotateOperationCap(client, args) {
|
|
2460
|
-
const tx = new transactions_1.
|
|
2727
|
+
const tx = new transactions_1.Transaction();
|
|
2461
2728
|
builder.rotateOperationCap(tx, args);
|
|
2462
2729
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2463
2730
|
transactionBlock: tx,
|
|
@@ -2467,7 +2734,7 @@ var sui_system_state_inner;
|
|
|
2467
2734
|
}
|
|
2468
2735
|
view.rotateOperationCap = rotateOperationCap;
|
|
2469
2736
|
async function setCandidateValidatorCommissionRate(client, args) {
|
|
2470
|
-
const tx = new transactions_1.
|
|
2737
|
+
const tx = new transactions_1.Transaction();
|
|
2471
2738
|
builder.setCandidateValidatorCommissionRate(tx, args);
|
|
2472
2739
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2473
2740
|
transactionBlock: tx,
|
|
@@ -2477,7 +2744,7 @@ var sui_system_state_inner;
|
|
|
2477
2744
|
}
|
|
2478
2745
|
view.setCandidateValidatorCommissionRate = setCandidateValidatorCommissionRate;
|
|
2479
2746
|
async function setCandidateValidatorGasPrice(client, args) {
|
|
2480
|
-
const tx = new transactions_1.
|
|
2747
|
+
const tx = new transactions_1.Transaction();
|
|
2481
2748
|
builder.setCandidateValidatorGasPrice(tx, args);
|
|
2482
2749
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2483
2750
|
transactionBlock: tx,
|
|
@@ -2487,7 +2754,7 @@ var sui_system_state_inner;
|
|
|
2487
2754
|
}
|
|
2488
2755
|
view.setCandidateValidatorGasPrice = setCandidateValidatorGasPrice;
|
|
2489
2756
|
async function systemStateVersion(client, args) {
|
|
2490
|
-
const tx = new transactions_1.
|
|
2757
|
+
const tx = new transactions_1.Transaction();
|
|
2491
2758
|
builder.systemStateVersion(tx, args);
|
|
2492
2759
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2493
2760
|
transactionBlock: tx,
|
|
@@ -2497,7 +2764,7 @@ var sui_system_state_inner;
|
|
|
2497
2764
|
}
|
|
2498
2765
|
view.systemStateVersion = systemStateVersion;
|
|
2499
2766
|
async function undoReportValidator(client, args) {
|
|
2500
|
-
const tx = new transactions_1.
|
|
2767
|
+
const tx = new transactions_1.Transaction();
|
|
2501
2768
|
builder.undoReportValidator(tx, args);
|
|
2502
2769
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2503
2770
|
transactionBlock: tx,
|
|
@@ -2507,7 +2774,7 @@ var sui_system_state_inner;
|
|
|
2507
2774
|
}
|
|
2508
2775
|
view.undoReportValidator = undoReportValidator;
|
|
2509
2776
|
async function updateCandidateValidatorNetworkAddress(client, args) {
|
|
2510
|
-
const tx = new transactions_1.
|
|
2777
|
+
const tx = new transactions_1.Transaction();
|
|
2511
2778
|
builder.updateCandidateValidatorNetworkAddress(tx, args);
|
|
2512
2779
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2513
2780
|
transactionBlock: tx,
|
|
@@ -2517,7 +2784,7 @@ var sui_system_state_inner;
|
|
|
2517
2784
|
}
|
|
2518
2785
|
view.updateCandidateValidatorNetworkAddress = updateCandidateValidatorNetworkAddress;
|
|
2519
2786
|
async function updateCandidateValidatorNetworkPubkey(client, args) {
|
|
2520
|
-
const tx = new transactions_1.
|
|
2787
|
+
const tx = new transactions_1.Transaction();
|
|
2521
2788
|
builder.updateCandidateValidatorNetworkPubkey(tx, args);
|
|
2522
2789
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2523
2790
|
transactionBlock: tx,
|
|
@@ -2527,7 +2794,7 @@ var sui_system_state_inner;
|
|
|
2527
2794
|
}
|
|
2528
2795
|
view.updateCandidateValidatorNetworkPubkey = updateCandidateValidatorNetworkPubkey;
|
|
2529
2796
|
async function updateCandidateValidatorP2pAddress(client, args) {
|
|
2530
|
-
const tx = new transactions_1.
|
|
2797
|
+
const tx = new transactions_1.Transaction();
|
|
2531
2798
|
builder.updateCandidateValidatorP2pAddress(tx, args);
|
|
2532
2799
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2533
2800
|
transactionBlock: tx,
|
|
@@ -2537,7 +2804,7 @@ var sui_system_state_inner;
|
|
|
2537
2804
|
}
|
|
2538
2805
|
view.updateCandidateValidatorP2pAddress = updateCandidateValidatorP2pAddress;
|
|
2539
2806
|
async function updateCandidateValidatorPrimaryAddress(client, args) {
|
|
2540
|
-
const tx = new transactions_1.
|
|
2807
|
+
const tx = new transactions_1.Transaction();
|
|
2541
2808
|
builder.updateCandidateValidatorPrimaryAddress(tx, args);
|
|
2542
2809
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2543
2810
|
transactionBlock: tx,
|
|
@@ -2547,7 +2814,7 @@ var sui_system_state_inner;
|
|
|
2547
2814
|
}
|
|
2548
2815
|
view.updateCandidateValidatorPrimaryAddress = updateCandidateValidatorPrimaryAddress;
|
|
2549
2816
|
async function updateCandidateValidatorProtocolPubkey(client, args) {
|
|
2550
|
-
const tx = new transactions_1.
|
|
2817
|
+
const tx = new transactions_1.Transaction();
|
|
2551
2818
|
builder.updateCandidateValidatorProtocolPubkey(tx, args);
|
|
2552
2819
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2553
2820
|
transactionBlock: tx,
|
|
@@ -2557,7 +2824,7 @@ var sui_system_state_inner;
|
|
|
2557
2824
|
}
|
|
2558
2825
|
view.updateCandidateValidatorProtocolPubkey = updateCandidateValidatorProtocolPubkey;
|
|
2559
2826
|
async function updateCandidateValidatorWorkerAddress(client, args) {
|
|
2560
|
-
const tx = new transactions_1.
|
|
2827
|
+
const tx = new transactions_1.Transaction();
|
|
2561
2828
|
builder.updateCandidateValidatorWorkerAddress(tx, args);
|
|
2562
2829
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2563
2830
|
transactionBlock: tx,
|
|
@@ -2567,7 +2834,7 @@ var sui_system_state_inner;
|
|
|
2567
2834
|
}
|
|
2568
2835
|
view.updateCandidateValidatorWorkerAddress = updateCandidateValidatorWorkerAddress;
|
|
2569
2836
|
async function updateCandidateValidatorWorkerPubkey(client, args) {
|
|
2570
|
-
const tx = new transactions_1.
|
|
2837
|
+
const tx = new transactions_1.Transaction();
|
|
2571
2838
|
builder.updateCandidateValidatorWorkerPubkey(tx, args);
|
|
2572
2839
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2573
2840
|
transactionBlock: tx,
|
|
@@ -2577,7 +2844,7 @@ var sui_system_state_inner;
|
|
|
2577
2844
|
}
|
|
2578
2845
|
view.updateCandidateValidatorWorkerPubkey = updateCandidateValidatorWorkerPubkey;
|
|
2579
2846
|
async function updateValidatorDescription(client, args) {
|
|
2580
|
-
const tx = new transactions_1.
|
|
2847
|
+
const tx = new transactions_1.Transaction();
|
|
2581
2848
|
builder.updateValidatorDescription(tx, args);
|
|
2582
2849
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2583
2850
|
transactionBlock: tx,
|
|
@@ -2587,7 +2854,7 @@ var sui_system_state_inner;
|
|
|
2587
2854
|
}
|
|
2588
2855
|
view.updateValidatorDescription = updateValidatorDescription;
|
|
2589
2856
|
async function updateValidatorImageUrl(client, args) {
|
|
2590
|
-
const tx = new transactions_1.
|
|
2857
|
+
const tx = new transactions_1.Transaction();
|
|
2591
2858
|
builder.updateValidatorImageUrl(tx, args);
|
|
2592
2859
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2593
2860
|
transactionBlock: tx,
|
|
@@ -2597,7 +2864,7 @@ var sui_system_state_inner;
|
|
|
2597
2864
|
}
|
|
2598
2865
|
view.updateValidatorImageUrl = updateValidatorImageUrl;
|
|
2599
2866
|
async function updateValidatorName(client, args) {
|
|
2600
|
-
const tx = new transactions_1.
|
|
2867
|
+
const tx = new transactions_1.Transaction();
|
|
2601
2868
|
builder.updateValidatorName(tx, args);
|
|
2602
2869
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2603
2870
|
transactionBlock: tx,
|
|
@@ -2607,7 +2874,7 @@ var sui_system_state_inner;
|
|
|
2607
2874
|
}
|
|
2608
2875
|
view.updateValidatorName = updateValidatorName;
|
|
2609
2876
|
async function updateValidatorNextEpochNetworkAddress(client, args) {
|
|
2610
|
-
const tx = new transactions_1.
|
|
2877
|
+
const tx = new transactions_1.Transaction();
|
|
2611
2878
|
builder.updateValidatorNextEpochNetworkAddress(tx, args);
|
|
2612
2879
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2613
2880
|
transactionBlock: tx,
|
|
@@ -2617,7 +2884,7 @@ var sui_system_state_inner;
|
|
|
2617
2884
|
}
|
|
2618
2885
|
view.updateValidatorNextEpochNetworkAddress = updateValidatorNextEpochNetworkAddress;
|
|
2619
2886
|
async function updateValidatorNextEpochNetworkPubkey(client, args) {
|
|
2620
|
-
const tx = new transactions_1.
|
|
2887
|
+
const tx = new transactions_1.Transaction();
|
|
2621
2888
|
builder.updateValidatorNextEpochNetworkPubkey(tx, args);
|
|
2622
2889
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2623
2890
|
transactionBlock: tx,
|
|
@@ -2627,7 +2894,7 @@ var sui_system_state_inner;
|
|
|
2627
2894
|
}
|
|
2628
2895
|
view.updateValidatorNextEpochNetworkPubkey = updateValidatorNextEpochNetworkPubkey;
|
|
2629
2896
|
async function updateValidatorNextEpochP2pAddress(client, args) {
|
|
2630
|
-
const tx = new transactions_1.
|
|
2897
|
+
const tx = new transactions_1.Transaction();
|
|
2631
2898
|
builder.updateValidatorNextEpochP2pAddress(tx, args);
|
|
2632
2899
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2633
2900
|
transactionBlock: tx,
|
|
@@ -2637,7 +2904,7 @@ var sui_system_state_inner;
|
|
|
2637
2904
|
}
|
|
2638
2905
|
view.updateValidatorNextEpochP2pAddress = updateValidatorNextEpochP2pAddress;
|
|
2639
2906
|
async function updateValidatorNextEpochPrimaryAddress(client, args) {
|
|
2640
|
-
const tx = new transactions_1.
|
|
2907
|
+
const tx = new transactions_1.Transaction();
|
|
2641
2908
|
builder.updateValidatorNextEpochPrimaryAddress(tx, args);
|
|
2642
2909
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2643
2910
|
transactionBlock: tx,
|
|
@@ -2647,7 +2914,7 @@ var sui_system_state_inner;
|
|
|
2647
2914
|
}
|
|
2648
2915
|
view.updateValidatorNextEpochPrimaryAddress = updateValidatorNextEpochPrimaryAddress;
|
|
2649
2916
|
async function updateValidatorNextEpochProtocolPubkey(client, args) {
|
|
2650
|
-
const tx = new transactions_1.
|
|
2917
|
+
const tx = new transactions_1.Transaction();
|
|
2651
2918
|
builder.updateValidatorNextEpochProtocolPubkey(tx, args);
|
|
2652
2919
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2653
2920
|
transactionBlock: tx,
|
|
@@ -2657,7 +2924,7 @@ var sui_system_state_inner;
|
|
|
2657
2924
|
}
|
|
2658
2925
|
view.updateValidatorNextEpochProtocolPubkey = updateValidatorNextEpochProtocolPubkey;
|
|
2659
2926
|
async function updateValidatorNextEpochWorkerAddress(client, args) {
|
|
2660
|
-
const tx = new transactions_1.
|
|
2927
|
+
const tx = new transactions_1.Transaction();
|
|
2661
2928
|
builder.updateValidatorNextEpochWorkerAddress(tx, args);
|
|
2662
2929
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2663
2930
|
transactionBlock: tx,
|
|
@@ -2667,7 +2934,7 @@ var sui_system_state_inner;
|
|
|
2667
2934
|
}
|
|
2668
2935
|
view.updateValidatorNextEpochWorkerAddress = updateValidatorNextEpochWorkerAddress;
|
|
2669
2936
|
async function updateValidatorNextEpochWorkerPubkey(client, args) {
|
|
2670
|
-
const tx = new transactions_1.
|
|
2937
|
+
const tx = new transactions_1.Transaction();
|
|
2671
2938
|
builder.updateValidatorNextEpochWorkerPubkey(tx, args);
|
|
2672
2939
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2673
2940
|
transactionBlock: tx,
|
|
@@ -2677,7 +2944,7 @@ var sui_system_state_inner;
|
|
|
2677
2944
|
}
|
|
2678
2945
|
view.updateValidatorNextEpochWorkerPubkey = updateValidatorNextEpochWorkerPubkey;
|
|
2679
2946
|
async function updateValidatorProjectUrl(client, args) {
|
|
2680
|
-
const tx = new transactions_1.
|
|
2947
|
+
const tx = new transactions_1.Transaction();
|
|
2681
2948
|
builder.updateValidatorProjectUrl(tx, args);
|
|
2682
2949
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2683
2950
|
transactionBlock: tx,
|
|
@@ -2687,7 +2954,7 @@ var sui_system_state_inner;
|
|
|
2687
2954
|
}
|
|
2688
2955
|
view.updateValidatorProjectUrl = updateValidatorProjectUrl;
|
|
2689
2956
|
async function v1ToV2(client, args) {
|
|
2690
|
-
const tx = new transactions_1.
|
|
2957
|
+
const tx = new transactions_1.Transaction();
|
|
2691
2958
|
builder.v1ToV2(tx, args);
|
|
2692
2959
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2693
2960
|
transactionBlock: tx,
|
|
@@ -2696,8 +2963,18 @@ var sui_system_state_inner;
|
|
|
2696
2963
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2697
2964
|
}
|
|
2698
2965
|
view.v1ToV2 = v1ToV2;
|
|
2966
|
+
async function validatorAddressByPoolId(client, args) {
|
|
2967
|
+
const tx = new transactions_1.Transaction();
|
|
2968
|
+
builder.validatorAddressByPoolId(tx, args);
|
|
2969
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2970
|
+
transactionBlock: tx,
|
|
2971
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2972
|
+
});
|
|
2973
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2974
|
+
}
|
|
2975
|
+
view.validatorAddressByPoolId = validatorAddressByPoolId;
|
|
2699
2976
|
async function validatorStakeAmount(client, args) {
|
|
2700
|
-
const tx = new transactions_1.
|
|
2977
|
+
const tx = new transactions_1.Transaction();
|
|
2701
2978
|
builder.validatorStakeAmount(tx, args);
|
|
2702
2979
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2703
2980
|
transactionBlock: tx,
|
|
@@ -2707,7 +2984,7 @@ var sui_system_state_inner;
|
|
|
2707
2984
|
}
|
|
2708
2985
|
view.validatorStakeAmount = validatorStakeAmount;
|
|
2709
2986
|
async function validatorStakingPoolId(client, args) {
|
|
2710
|
-
const tx = new transactions_1.
|
|
2987
|
+
const tx = new transactions_1.Transaction();
|
|
2711
2988
|
builder.validatorStakingPoolId(tx, args);
|
|
2712
2989
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2713
2990
|
transactionBlock: tx,
|
|
@@ -2717,7 +2994,7 @@ var sui_system_state_inner;
|
|
|
2717
2994
|
}
|
|
2718
2995
|
view.validatorStakingPoolId = validatorStakingPoolId;
|
|
2719
2996
|
async function validatorStakingPoolMappings(client, args) {
|
|
2720
|
-
const tx = new transactions_1.
|
|
2997
|
+
const tx = new transactions_1.Transaction();
|
|
2721
2998
|
builder.validatorStakingPoolMappings(tx, args);
|
|
2722
2999
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2723
3000
|
transactionBlock: tx,
|
|
@@ -2730,6 +3007,24 @@ var sui_system_state_inner;
|
|
|
2730
3007
|
})(sui_system_state_inner || (exports.sui_system_state_inner = sui_system_state_inner = {}));
|
|
2731
3008
|
var validator;
|
|
2732
3009
|
(function (validator) {
|
|
3010
|
+
let ConvertingToFungibleStakedSuiEvent;
|
|
3011
|
+
(function (ConvertingToFungibleStakedSuiEvent) {
|
|
3012
|
+
ConvertingToFungibleStakedSuiEvent.TYPE_QNAME = "0x3::validator::ConvertingToFungibleStakedSuiEvent";
|
|
3013
|
+
const TYPE = new move_1.TypeDescriptor(ConvertingToFungibleStakedSuiEvent.TYPE_QNAME);
|
|
3014
|
+
function type() {
|
|
3015
|
+
return TYPE.apply();
|
|
3016
|
+
}
|
|
3017
|
+
ConvertingToFungibleStakedSuiEvent.type = type;
|
|
3018
|
+
})(ConvertingToFungibleStakedSuiEvent = validator.ConvertingToFungibleStakedSuiEvent || (validator.ConvertingToFungibleStakedSuiEvent = {}));
|
|
3019
|
+
let RedeemingFungibleStakedSuiEvent;
|
|
3020
|
+
(function (RedeemingFungibleStakedSuiEvent) {
|
|
3021
|
+
RedeemingFungibleStakedSuiEvent.TYPE_QNAME = "0x3::validator::RedeemingFungibleStakedSuiEvent";
|
|
3022
|
+
const TYPE = new move_1.TypeDescriptor(RedeemingFungibleStakedSuiEvent.TYPE_QNAME);
|
|
3023
|
+
function type() {
|
|
3024
|
+
return TYPE.apply();
|
|
3025
|
+
}
|
|
3026
|
+
RedeemingFungibleStakedSuiEvent.type = type;
|
|
3027
|
+
})(RedeemingFungibleStakedSuiEvent = validator.RedeemingFungibleStakedSuiEvent || (validator.RedeemingFungibleStakedSuiEvent = {}));
|
|
2733
3028
|
let StakingRequestEvent;
|
|
2734
3029
|
(function (StakingRequestEvent) {
|
|
2735
3030
|
StakingRequestEvent.TYPE_QNAME = "0x3::validator::StakingRequestEvent";
|
|
@@ -2799,6 +3094,17 @@ var validator;
|
|
|
2799
3094
|
});
|
|
2800
3095
|
}
|
|
2801
3096
|
builder.commissionRate = commissionRate;
|
|
3097
|
+
function convertToFungibleStakedSui(tx, args) {
|
|
3098
|
+
const _args = [];
|
|
3099
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3100
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3101
|
+
// @ts-ignore
|
|
3102
|
+
return tx.moveCall({
|
|
3103
|
+
target: "0x3::validator::convert_to_fungible_staked_sui",
|
|
3104
|
+
arguments: _args,
|
|
3105
|
+
});
|
|
3106
|
+
}
|
|
3107
|
+
builder.convertToFungibleStakedSui = convertToFungibleStakedSui;
|
|
2802
3108
|
function deactivate(tx, args) {
|
|
2803
3109
|
const _args = [];
|
|
2804
3110
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -3180,6 +3486,17 @@ var validator;
|
|
|
3180
3486
|
});
|
|
3181
3487
|
}
|
|
3182
3488
|
builder.protocolPubkeyBytes = protocolPubkeyBytes;
|
|
3489
|
+
function redeemFungibleStakedSui(tx, args) {
|
|
3490
|
+
const _args = [];
|
|
3491
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3492
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3493
|
+
// @ts-ignore
|
|
3494
|
+
return tx.moveCall({
|
|
3495
|
+
target: "0x3::validator::redeem_fungible_staked_sui",
|
|
3496
|
+
arguments: _args,
|
|
3497
|
+
});
|
|
3498
|
+
}
|
|
3499
|
+
builder.redeemFungibleStakedSui = redeemFungibleStakedSui;
|
|
3183
3500
|
function requestAddStake(tx, args) {
|
|
3184
3501
|
const _args = [];
|
|
3185
3502
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -3576,7 +3893,7 @@ var validator;
|
|
|
3576
3893
|
let view;
|
|
3577
3894
|
(function (view) {
|
|
3578
3895
|
async function activate(client, args) {
|
|
3579
|
-
const tx = new transactions_1.
|
|
3896
|
+
const tx = new transactions_1.Transaction();
|
|
3580
3897
|
builder.activate(tx, args);
|
|
3581
3898
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3582
3899
|
transactionBlock: tx,
|
|
@@ -3586,7 +3903,7 @@ var validator;
|
|
|
3586
3903
|
}
|
|
3587
3904
|
view.activate = activate;
|
|
3588
3905
|
async function adjustStakeAndGasPrice(client, args) {
|
|
3589
|
-
const tx = new transactions_1.
|
|
3906
|
+
const tx = new transactions_1.Transaction();
|
|
3590
3907
|
builder.adjustStakeAndGasPrice(tx, args);
|
|
3591
3908
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3592
3909
|
transactionBlock: tx,
|
|
@@ -3596,7 +3913,7 @@ var validator;
|
|
|
3596
3913
|
}
|
|
3597
3914
|
view.adjustStakeAndGasPrice = adjustStakeAndGasPrice;
|
|
3598
3915
|
async function commissionRate(client, args) {
|
|
3599
|
-
const tx = new transactions_1.
|
|
3916
|
+
const tx = new transactions_1.Transaction();
|
|
3600
3917
|
builder.commissionRate(tx, args);
|
|
3601
3918
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3602
3919
|
transactionBlock: tx,
|
|
@@ -3605,8 +3922,18 @@ var validator;
|
|
|
3605
3922
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3606
3923
|
}
|
|
3607
3924
|
view.commissionRate = commissionRate;
|
|
3925
|
+
async function convertToFungibleStakedSui(client, args) {
|
|
3926
|
+
const tx = new transactions_1.Transaction();
|
|
3927
|
+
builder.convertToFungibleStakedSui(tx, args);
|
|
3928
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3929
|
+
transactionBlock: tx,
|
|
3930
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3931
|
+
});
|
|
3932
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3933
|
+
}
|
|
3934
|
+
view.convertToFungibleStakedSui = convertToFungibleStakedSui;
|
|
3608
3935
|
async function deactivate(client, args) {
|
|
3609
|
-
const tx = new transactions_1.
|
|
3936
|
+
const tx = new transactions_1.Transaction();
|
|
3610
3937
|
builder.deactivate(tx, args);
|
|
3611
3938
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3612
3939
|
transactionBlock: tx,
|
|
@@ -3616,7 +3943,7 @@ var validator;
|
|
|
3616
3943
|
}
|
|
3617
3944
|
view.deactivate = deactivate;
|
|
3618
3945
|
async function depositStakeRewards(client, args) {
|
|
3619
|
-
const tx = new transactions_1.
|
|
3946
|
+
const tx = new transactions_1.Transaction();
|
|
3620
3947
|
builder.depositStakeRewards(tx, args);
|
|
3621
3948
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3622
3949
|
transactionBlock: tx,
|
|
@@ -3626,7 +3953,7 @@ var validator;
|
|
|
3626
3953
|
}
|
|
3627
3954
|
view.depositStakeRewards = depositStakeRewards;
|
|
3628
3955
|
async function description(client, args) {
|
|
3629
|
-
const tx = new transactions_1.
|
|
3956
|
+
const tx = new transactions_1.Transaction();
|
|
3630
3957
|
builder.description(tx, args);
|
|
3631
3958
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3632
3959
|
transactionBlock: tx,
|
|
@@ -3636,7 +3963,7 @@ var validator;
|
|
|
3636
3963
|
}
|
|
3637
3964
|
view.description = description;
|
|
3638
3965
|
async function effectuateStagedMetadata(client, args) {
|
|
3639
|
-
const tx = new transactions_1.
|
|
3966
|
+
const tx = new transactions_1.Transaction();
|
|
3640
3967
|
builder.effectuateStagedMetadata(tx, args);
|
|
3641
3968
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3642
3969
|
transactionBlock: tx,
|
|
@@ -3646,7 +3973,7 @@ var validator;
|
|
|
3646
3973
|
}
|
|
3647
3974
|
view.effectuateStagedMetadata = effectuateStagedMetadata;
|
|
3648
3975
|
async function gasPrice(client, args) {
|
|
3649
|
-
const tx = new transactions_1.
|
|
3976
|
+
const tx = new transactions_1.Transaction();
|
|
3650
3977
|
builder.gasPrice(tx, args);
|
|
3651
3978
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3652
3979
|
transactionBlock: tx,
|
|
@@ -3656,7 +3983,7 @@ var validator;
|
|
|
3656
3983
|
}
|
|
3657
3984
|
view.gasPrice = gasPrice;
|
|
3658
3985
|
async function getStakingPoolRef(client, args) {
|
|
3659
|
-
const tx = new transactions_1.
|
|
3986
|
+
const tx = new transactions_1.Transaction();
|
|
3660
3987
|
builder.getStakingPoolRef(tx, args);
|
|
3661
3988
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3662
3989
|
transactionBlock: tx,
|
|
@@ -3666,7 +3993,7 @@ var validator;
|
|
|
3666
3993
|
}
|
|
3667
3994
|
view.getStakingPoolRef = getStakingPoolRef;
|
|
3668
3995
|
async function imageUrl(client, args) {
|
|
3669
|
-
const tx = new transactions_1.
|
|
3996
|
+
const tx = new transactions_1.Transaction();
|
|
3670
3997
|
builder.imageUrl(tx, args);
|
|
3671
3998
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3672
3999
|
transactionBlock: tx,
|
|
@@ -3676,7 +4003,7 @@ var validator;
|
|
|
3676
4003
|
}
|
|
3677
4004
|
view.imageUrl = imageUrl;
|
|
3678
4005
|
async function isDuplicate(client, args) {
|
|
3679
|
-
const tx = new transactions_1.
|
|
4006
|
+
const tx = new transactions_1.Transaction();
|
|
3680
4007
|
builder.isDuplicate(tx, args);
|
|
3681
4008
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3682
4009
|
transactionBlock: tx,
|
|
@@ -3686,7 +4013,7 @@ var validator;
|
|
|
3686
4013
|
}
|
|
3687
4014
|
view.isDuplicate = isDuplicate;
|
|
3688
4015
|
async function isPreactive(client, args) {
|
|
3689
|
-
const tx = new transactions_1.
|
|
4016
|
+
const tx = new transactions_1.Transaction();
|
|
3690
4017
|
builder.isPreactive(tx, args);
|
|
3691
4018
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3692
4019
|
transactionBlock: tx,
|
|
@@ -3696,7 +4023,7 @@ var validator;
|
|
|
3696
4023
|
}
|
|
3697
4024
|
view.isPreactive = isPreactive;
|
|
3698
4025
|
async function metadata(client, args) {
|
|
3699
|
-
const tx = new transactions_1.
|
|
4026
|
+
const tx = new transactions_1.Transaction();
|
|
3700
4027
|
builder.metadata(tx, args);
|
|
3701
4028
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3702
4029
|
transactionBlock: tx,
|
|
@@ -3706,7 +4033,7 @@ var validator;
|
|
|
3706
4033
|
}
|
|
3707
4034
|
view.metadata = metadata;
|
|
3708
4035
|
async function name(client, args) {
|
|
3709
|
-
const tx = new transactions_1.
|
|
4036
|
+
const tx = new transactions_1.Transaction();
|
|
3710
4037
|
builder.name(tx, args);
|
|
3711
4038
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3712
4039
|
transactionBlock: tx,
|
|
@@ -3716,7 +4043,7 @@ var validator;
|
|
|
3716
4043
|
}
|
|
3717
4044
|
view.name = name;
|
|
3718
4045
|
async function networkAddress(client, args) {
|
|
3719
|
-
const tx = new transactions_1.
|
|
4046
|
+
const tx = new transactions_1.Transaction();
|
|
3720
4047
|
builder.networkAddress(tx, args);
|
|
3721
4048
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3722
4049
|
transactionBlock: tx,
|
|
@@ -3726,7 +4053,7 @@ var validator;
|
|
|
3726
4053
|
}
|
|
3727
4054
|
view.networkAddress = networkAddress;
|
|
3728
4055
|
async function networkPubkeyBytes(client, args) {
|
|
3729
|
-
const tx = new transactions_1.
|
|
4056
|
+
const tx = new transactions_1.Transaction();
|
|
3730
4057
|
builder.networkPubkeyBytes(tx, args);
|
|
3731
4058
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3732
4059
|
transactionBlock: tx,
|
|
@@ -3736,7 +4063,7 @@ var validator;
|
|
|
3736
4063
|
}
|
|
3737
4064
|
view.networkPubkeyBytes = networkPubkeyBytes;
|
|
3738
4065
|
async function new_(client, args) {
|
|
3739
|
-
const tx = new transactions_1.
|
|
4066
|
+
const tx = new transactions_1.Transaction();
|
|
3740
4067
|
builder.new_(tx, args);
|
|
3741
4068
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3742
4069
|
transactionBlock: tx,
|
|
@@ -3746,7 +4073,7 @@ var validator;
|
|
|
3746
4073
|
}
|
|
3747
4074
|
view.new_ = new_;
|
|
3748
4075
|
async function newMetadata(client, args) {
|
|
3749
|
-
const tx = new transactions_1.
|
|
4076
|
+
const tx = new transactions_1.Transaction();
|
|
3750
4077
|
builder.newMetadata(tx, args);
|
|
3751
4078
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3752
4079
|
transactionBlock: tx,
|
|
@@ -3756,7 +4083,7 @@ var validator;
|
|
|
3756
4083
|
}
|
|
3757
4084
|
view.newMetadata = newMetadata;
|
|
3758
4085
|
async function newUnverifiedValidatorOperationCapAndTransfer(client, args) {
|
|
3759
|
-
const tx = new transactions_1.
|
|
4086
|
+
const tx = new transactions_1.Transaction();
|
|
3760
4087
|
builder.newUnverifiedValidatorOperationCapAndTransfer(tx, args);
|
|
3761
4088
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3762
4089
|
transactionBlock: tx,
|
|
@@ -3766,7 +4093,7 @@ var validator;
|
|
|
3766
4093
|
}
|
|
3767
4094
|
view.newUnverifiedValidatorOperationCapAndTransfer = newUnverifiedValidatorOperationCapAndTransfer;
|
|
3768
4095
|
async function nextEpochGasPrice(client, args) {
|
|
3769
|
-
const tx = new transactions_1.
|
|
4096
|
+
const tx = new transactions_1.Transaction();
|
|
3770
4097
|
builder.nextEpochGasPrice(tx, args);
|
|
3771
4098
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3772
4099
|
transactionBlock: tx,
|
|
@@ -3776,7 +4103,7 @@ var validator;
|
|
|
3776
4103
|
}
|
|
3777
4104
|
view.nextEpochGasPrice = nextEpochGasPrice;
|
|
3778
4105
|
async function nextEpochNetworkAddress(client, args) {
|
|
3779
|
-
const tx = new transactions_1.
|
|
4106
|
+
const tx = new transactions_1.Transaction();
|
|
3780
4107
|
builder.nextEpochNetworkAddress(tx, args);
|
|
3781
4108
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3782
4109
|
transactionBlock: tx,
|
|
@@ -3786,7 +4113,7 @@ var validator;
|
|
|
3786
4113
|
}
|
|
3787
4114
|
view.nextEpochNetworkAddress = nextEpochNetworkAddress;
|
|
3788
4115
|
async function nextEpochNetworkPubkeyBytes(client, args) {
|
|
3789
|
-
const tx = new transactions_1.
|
|
4116
|
+
const tx = new transactions_1.Transaction();
|
|
3790
4117
|
builder.nextEpochNetworkPubkeyBytes(tx, args);
|
|
3791
4118
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3792
4119
|
transactionBlock: tx,
|
|
@@ -3796,7 +4123,7 @@ var validator;
|
|
|
3796
4123
|
}
|
|
3797
4124
|
view.nextEpochNetworkPubkeyBytes = nextEpochNetworkPubkeyBytes;
|
|
3798
4125
|
async function nextEpochP2pAddress(client, args) {
|
|
3799
|
-
const tx = new transactions_1.
|
|
4126
|
+
const tx = new transactions_1.Transaction();
|
|
3800
4127
|
builder.nextEpochP2pAddress(tx, args);
|
|
3801
4128
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3802
4129
|
transactionBlock: tx,
|
|
@@ -3806,7 +4133,7 @@ var validator;
|
|
|
3806
4133
|
}
|
|
3807
4134
|
view.nextEpochP2pAddress = nextEpochP2pAddress;
|
|
3808
4135
|
async function nextEpochPrimaryAddress(client, args) {
|
|
3809
|
-
const tx = new transactions_1.
|
|
4136
|
+
const tx = new transactions_1.Transaction();
|
|
3810
4137
|
builder.nextEpochPrimaryAddress(tx, args);
|
|
3811
4138
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3812
4139
|
transactionBlock: tx,
|
|
@@ -3816,7 +4143,7 @@ var validator;
|
|
|
3816
4143
|
}
|
|
3817
4144
|
view.nextEpochPrimaryAddress = nextEpochPrimaryAddress;
|
|
3818
4145
|
async function nextEpochProofOfPossession(client, args) {
|
|
3819
|
-
const tx = new transactions_1.
|
|
4146
|
+
const tx = new transactions_1.Transaction();
|
|
3820
4147
|
builder.nextEpochProofOfPossession(tx, args);
|
|
3821
4148
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3822
4149
|
transactionBlock: tx,
|
|
@@ -3826,7 +4153,7 @@ var validator;
|
|
|
3826
4153
|
}
|
|
3827
4154
|
view.nextEpochProofOfPossession = nextEpochProofOfPossession;
|
|
3828
4155
|
async function nextEpochProtocolPubkeyBytes(client, args) {
|
|
3829
|
-
const tx = new transactions_1.
|
|
4156
|
+
const tx = new transactions_1.Transaction();
|
|
3830
4157
|
builder.nextEpochProtocolPubkeyBytes(tx, args);
|
|
3831
4158
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3832
4159
|
transactionBlock: tx,
|
|
@@ -3836,7 +4163,7 @@ var validator;
|
|
|
3836
4163
|
}
|
|
3837
4164
|
view.nextEpochProtocolPubkeyBytes = nextEpochProtocolPubkeyBytes;
|
|
3838
4165
|
async function nextEpochWorkerAddress(client, args) {
|
|
3839
|
-
const tx = new transactions_1.
|
|
4166
|
+
const tx = new transactions_1.Transaction();
|
|
3840
4167
|
builder.nextEpochWorkerAddress(tx, args);
|
|
3841
4168
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3842
4169
|
transactionBlock: tx,
|
|
@@ -3846,7 +4173,7 @@ var validator;
|
|
|
3846
4173
|
}
|
|
3847
4174
|
view.nextEpochWorkerAddress = nextEpochWorkerAddress;
|
|
3848
4175
|
async function nextEpochWorkerPubkeyBytes(client, args) {
|
|
3849
|
-
const tx = new transactions_1.
|
|
4176
|
+
const tx = new transactions_1.Transaction();
|
|
3850
4177
|
builder.nextEpochWorkerPubkeyBytes(tx, args);
|
|
3851
4178
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3852
4179
|
transactionBlock: tx,
|
|
@@ -3856,7 +4183,7 @@ var validator;
|
|
|
3856
4183
|
}
|
|
3857
4184
|
view.nextEpochWorkerPubkeyBytes = nextEpochWorkerPubkeyBytes;
|
|
3858
4185
|
async function operationCapId(client, args) {
|
|
3859
|
-
const tx = new transactions_1.
|
|
4186
|
+
const tx = new transactions_1.Transaction();
|
|
3860
4187
|
builder.operationCapId(tx, args);
|
|
3861
4188
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3862
4189
|
transactionBlock: tx,
|
|
@@ -3866,7 +4193,7 @@ var validator;
|
|
|
3866
4193
|
}
|
|
3867
4194
|
view.operationCapId = operationCapId;
|
|
3868
4195
|
async function p2pAddress(client, args) {
|
|
3869
|
-
const tx = new transactions_1.
|
|
4196
|
+
const tx = new transactions_1.Transaction();
|
|
3870
4197
|
builder.p2pAddress(tx, args);
|
|
3871
4198
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3872
4199
|
transactionBlock: tx,
|
|
@@ -3876,7 +4203,7 @@ var validator;
|
|
|
3876
4203
|
}
|
|
3877
4204
|
view.p2pAddress = p2pAddress;
|
|
3878
4205
|
async function pendingStakeAmount(client, args) {
|
|
3879
|
-
const tx = new transactions_1.
|
|
4206
|
+
const tx = new transactions_1.Transaction();
|
|
3880
4207
|
builder.pendingStakeAmount(tx, args);
|
|
3881
4208
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3882
4209
|
transactionBlock: tx,
|
|
@@ -3886,7 +4213,7 @@ var validator;
|
|
|
3886
4213
|
}
|
|
3887
4214
|
view.pendingStakeAmount = pendingStakeAmount;
|
|
3888
4215
|
async function pendingStakeWithdrawAmount(client, args) {
|
|
3889
|
-
const tx = new transactions_1.
|
|
4216
|
+
const tx = new transactions_1.Transaction();
|
|
3890
4217
|
builder.pendingStakeWithdrawAmount(tx, args);
|
|
3891
4218
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3892
4219
|
transactionBlock: tx,
|
|
@@ -3896,7 +4223,7 @@ var validator;
|
|
|
3896
4223
|
}
|
|
3897
4224
|
view.pendingStakeWithdrawAmount = pendingStakeWithdrawAmount;
|
|
3898
4225
|
async function poolTokenExchangeRateAtEpoch(client, args) {
|
|
3899
|
-
const tx = new transactions_1.
|
|
4226
|
+
const tx = new transactions_1.Transaction();
|
|
3900
4227
|
builder.poolTokenExchangeRateAtEpoch(tx, args);
|
|
3901
4228
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3902
4229
|
transactionBlock: tx,
|
|
@@ -3906,7 +4233,7 @@ var validator;
|
|
|
3906
4233
|
}
|
|
3907
4234
|
view.poolTokenExchangeRateAtEpoch = poolTokenExchangeRateAtEpoch;
|
|
3908
4235
|
async function primaryAddress(client, args) {
|
|
3909
|
-
const tx = new transactions_1.
|
|
4236
|
+
const tx = new transactions_1.Transaction();
|
|
3910
4237
|
builder.primaryAddress(tx, args);
|
|
3911
4238
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3912
4239
|
transactionBlock: tx,
|
|
@@ -3916,7 +4243,7 @@ var validator;
|
|
|
3916
4243
|
}
|
|
3917
4244
|
view.primaryAddress = primaryAddress;
|
|
3918
4245
|
async function processPendingStakesAndWithdraws(client, args) {
|
|
3919
|
-
const tx = new transactions_1.
|
|
4246
|
+
const tx = new transactions_1.Transaction();
|
|
3920
4247
|
builder.processPendingStakesAndWithdraws(tx, args);
|
|
3921
4248
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3922
4249
|
transactionBlock: tx,
|
|
@@ -3926,7 +4253,7 @@ var validator;
|
|
|
3926
4253
|
}
|
|
3927
4254
|
view.processPendingStakesAndWithdraws = processPendingStakesAndWithdraws;
|
|
3928
4255
|
async function projectUrl(client, args) {
|
|
3929
|
-
const tx = new transactions_1.
|
|
4256
|
+
const tx = new transactions_1.Transaction();
|
|
3930
4257
|
builder.projectUrl(tx, args);
|
|
3931
4258
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3932
4259
|
transactionBlock: tx,
|
|
@@ -3936,7 +4263,7 @@ var validator;
|
|
|
3936
4263
|
}
|
|
3937
4264
|
view.projectUrl = projectUrl;
|
|
3938
4265
|
async function proofOfPossession(client, args) {
|
|
3939
|
-
const tx = new transactions_1.
|
|
4266
|
+
const tx = new transactions_1.Transaction();
|
|
3940
4267
|
builder.proofOfPossession(tx, args);
|
|
3941
4268
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3942
4269
|
transactionBlock: tx,
|
|
@@ -3946,7 +4273,7 @@ var validator;
|
|
|
3946
4273
|
}
|
|
3947
4274
|
view.proofOfPossession = proofOfPossession;
|
|
3948
4275
|
async function protocolPubkeyBytes(client, args) {
|
|
3949
|
-
const tx = new transactions_1.
|
|
4276
|
+
const tx = new transactions_1.Transaction();
|
|
3950
4277
|
builder.protocolPubkeyBytes(tx, args);
|
|
3951
4278
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3952
4279
|
transactionBlock: tx,
|
|
@@ -3955,8 +4282,18 @@ var validator;
|
|
|
3955
4282
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3956
4283
|
}
|
|
3957
4284
|
view.protocolPubkeyBytes = protocolPubkeyBytes;
|
|
4285
|
+
async function redeemFungibleStakedSui(client, args) {
|
|
4286
|
+
const tx = new transactions_1.Transaction();
|
|
4287
|
+
builder.redeemFungibleStakedSui(tx, args);
|
|
4288
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4289
|
+
transactionBlock: tx,
|
|
4290
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4291
|
+
});
|
|
4292
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4293
|
+
}
|
|
4294
|
+
view.redeemFungibleStakedSui = redeemFungibleStakedSui;
|
|
3958
4295
|
async function requestAddStake(client, args) {
|
|
3959
|
-
const tx = new transactions_1.
|
|
4296
|
+
const tx = new transactions_1.Transaction();
|
|
3960
4297
|
builder.requestAddStake(tx, args);
|
|
3961
4298
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3962
4299
|
transactionBlock: tx,
|
|
@@ -3966,7 +4303,7 @@ var validator;
|
|
|
3966
4303
|
}
|
|
3967
4304
|
view.requestAddStake = requestAddStake;
|
|
3968
4305
|
async function requestAddStakeAtGenesis(client, args) {
|
|
3969
|
-
const tx = new transactions_1.
|
|
4306
|
+
const tx = new transactions_1.Transaction();
|
|
3970
4307
|
builder.requestAddStakeAtGenesis(tx, args);
|
|
3971
4308
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3972
4309
|
transactionBlock: tx,
|
|
@@ -3976,7 +4313,7 @@ var validator;
|
|
|
3976
4313
|
}
|
|
3977
4314
|
view.requestAddStakeAtGenesis = requestAddStakeAtGenesis;
|
|
3978
4315
|
async function requestSetCommissionRate(client, args) {
|
|
3979
|
-
const tx = new transactions_1.
|
|
4316
|
+
const tx = new transactions_1.Transaction();
|
|
3980
4317
|
builder.requestSetCommissionRate(tx, args);
|
|
3981
4318
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3982
4319
|
transactionBlock: tx,
|
|
@@ -3986,7 +4323,7 @@ var validator;
|
|
|
3986
4323
|
}
|
|
3987
4324
|
view.requestSetCommissionRate = requestSetCommissionRate;
|
|
3988
4325
|
async function requestSetGasPrice(client, args) {
|
|
3989
|
-
const tx = new transactions_1.
|
|
4326
|
+
const tx = new transactions_1.Transaction();
|
|
3990
4327
|
builder.requestSetGasPrice(tx, args);
|
|
3991
4328
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
3992
4329
|
transactionBlock: tx,
|
|
@@ -3996,7 +4333,7 @@ var validator;
|
|
|
3996
4333
|
}
|
|
3997
4334
|
view.requestSetGasPrice = requestSetGasPrice;
|
|
3998
4335
|
async function requestWithdrawStake(client, args) {
|
|
3999
|
-
const tx = new transactions_1.
|
|
4336
|
+
const tx = new transactions_1.Transaction();
|
|
4000
4337
|
builder.requestWithdrawStake(tx, args);
|
|
4001
4338
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4002
4339
|
transactionBlock: tx,
|
|
@@ -4006,7 +4343,7 @@ var validator;
|
|
|
4006
4343
|
}
|
|
4007
4344
|
view.requestWithdrawStake = requestWithdrawStake;
|
|
4008
4345
|
async function setCandidateCommissionRate(client, args) {
|
|
4009
|
-
const tx = new transactions_1.
|
|
4346
|
+
const tx = new transactions_1.Transaction();
|
|
4010
4347
|
builder.setCandidateCommissionRate(tx, args);
|
|
4011
4348
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4012
4349
|
transactionBlock: tx,
|
|
@@ -4016,7 +4353,7 @@ var validator;
|
|
|
4016
4353
|
}
|
|
4017
4354
|
view.setCandidateCommissionRate = setCandidateCommissionRate;
|
|
4018
4355
|
async function setCandidateGasPrice(client, args) {
|
|
4019
|
-
const tx = new transactions_1.
|
|
4356
|
+
const tx = new transactions_1.Transaction();
|
|
4020
4357
|
builder.setCandidateGasPrice(tx, args);
|
|
4021
4358
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4022
4359
|
transactionBlock: tx,
|
|
@@ -4026,7 +4363,7 @@ var validator;
|
|
|
4026
4363
|
}
|
|
4027
4364
|
view.setCandidateGasPrice = setCandidateGasPrice;
|
|
4028
4365
|
async function setVotingPower(client, args) {
|
|
4029
|
-
const tx = new transactions_1.
|
|
4366
|
+
const tx = new transactions_1.Transaction();
|
|
4030
4367
|
builder.setVotingPower(tx, args);
|
|
4031
4368
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4032
4369
|
transactionBlock: tx,
|
|
@@ -4036,7 +4373,7 @@ var validator;
|
|
|
4036
4373
|
}
|
|
4037
4374
|
view.setVotingPower = setVotingPower;
|
|
4038
4375
|
async function stakeAmount(client, args) {
|
|
4039
|
-
const tx = new transactions_1.
|
|
4376
|
+
const tx = new transactions_1.Transaction();
|
|
4040
4377
|
builder.stakeAmount(tx, args);
|
|
4041
4378
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4042
4379
|
transactionBlock: tx,
|
|
@@ -4046,7 +4383,7 @@ var validator;
|
|
|
4046
4383
|
}
|
|
4047
4384
|
view.stakeAmount = stakeAmount;
|
|
4048
4385
|
async function stakingPoolId(client, args) {
|
|
4049
|
-
const tx = new transactions_1.
|
|
4386
|
+
const tx = new transactions_1.Transaction();
|
|
4050
4387
|
builder.stakingPoolId(tx, args);
|
|
4051
4388
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4052
4389
|
transactionBlock: tx,
|
|
@@ -4056,7 +4393,7 @@ var validator;
|
|
|
4056
4393
|
}
|
|
4057
4394
|
view.stakingPoolId = stakingPoolId;
|
|
4058
4395
|
async function suiAddress(client, args) {
|
|
4059
|
-
const tx = new transactions_1.
|
|
4396
|
+
const tx = new transactions_1.Transaction();
|
|
4060
4397
|
builder.suiAddress(tx, args);
|
|
4061
4398
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4062
4399
|
transactionBlock: tx,
|
|
@@ -4066,7 +4403,7 @@ var validator;
|
|
|
4066
4403
|
}
|
|
4067
4404
|
view.suiAddress = suiAddress;
|
|
4068
4405
|
async function totalStake(client, args) {
|
|
4069
|
-
const tx = new transactions_1.
|
|
4406
|
+
const tx = new transactions_1.Transaction();
|
|
4070
4407
|
builder.totalStake(tx, args);
|
|
4071
4408
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4072
4409
|
transactionBlock: tx,
|
|
@@ -4076,7 +4413,7 @@ var validator;
|
|
|
4076
4413
|
}
|
|
4077
4414
|
view.totalStake = totalStake;
|
|
4078
4415
|
async function totalStakeAmount(client, args) {
|
|
4079
|
-
const tx = new transactions_1.
|
|
4416
|
+
const tx = new transactions_1.Transaction();
|
|
4080
4417
|
builder.totalStakeAmount(tx, args);
|
|
4081
4418
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4082
4419
|
transactionBlock: tx,
|
|
@@ -4086,7 +4423,7 @@ var validator;
|
|
|
4086
4423
|
}
|
|
4087
4424
|
view.totalStakeAmount = totalStakeAmount;
|
|
4088
4425
|
async function updateCandidateNetworkAddress(client, args) {
|
|
4089
|
-
const tx = new transactions_1.
|
|
4426
|
+
const tx = new transactions_1.Transaction();
|
|
4090
4427
|
builder.updateCandidateNetworkAddress(tx, args);
|
|
4091
4428
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4092
4429
|
transactionBlock: tx,
|
|
@@ -4096,7 +4433,7 @@ var validator;
|
|
|
4096
4433
|
}
|
|
4097
4434
|
view.updateCandidateNetworkAddress = updateCandidateNetworkAddress;
|
|
4098
4435
|
async function updateCandidateNetworkPubkey(client, args) {
|
|
4099
|
-
const tx = new transactions_1.
|
|
4436
|
+
const tx = new transactions_1.Transaction();
|
|
4100
4437
|
builder.updateCandidateNetworkPubkey(tx, args);
|
|
4101
4438
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4102
4439
|
transactionBlock: tx,
|
|
@@ -4106,7 +4443,7 @@ var validator;
|
|
|
4106
4443
|
}
|
|
4107
4444
|
view.updateCandidateNetworkPubkey = updateCandidateNetworkPubkey;
|
|
4108
4445
|
async function updateCandidateP2pAddress(client, args) {
|
|
4109
|
-
const tx = new transactions_1.
|
|
4446
|
+
const tx = new transactions_1.Transaction();
|
|
4110
4447
|
builder.updateCandidateP2pAddress(tx, args);
|
|
4111
4448
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4112
4449
|
transactionBlock: tx,
|
|
@@ -4116,7 +4453,7 @@ var validator;
|
|
|
4116
4453
|
}
|
|
4117
4454
|
view.updateCandidateP2pAddress = updateCandidateP2pAddress;
|
|
4118
4455
|
async function updateCandidatePrimaryAddress(client, args) {
|
|
4119
|
-
const tx = new transactions_1.
|
|
4456
|
+
const tx = new transactions_1.Transaction();
|
|
4120
4457
|
builder.updateCandidatePrimaryAddress(tx, args);
|
|
4121
4458
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4122
4459
|
transactionBlock: tx,
|
|
@@ -4126,7 +4463,7 @@ var validator;
|
|
|
4126
4463
|
}
|
|
4127
4464
|
view.updateCandidatePrimaryAddress = updateCandidatePrimaryAddress;
|
|
4128
4465
|
async function updateCandidateProtocolPubkey(client, args) {
|
|
4129
|
-
const tx = new transactions_1.
|
|
4466
|
+
const tx = new transactions_1.Transaction();
|
|
4130
4467
|
builder.updateCandidateProtocolPubkey(tx, args);
|
|
4131
4468
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4132
4469
|
transactionBlock: tx,
|
|
@@ -4136,7 +4473,7 @@ var validator;
|
|
|
4136
4473
|
}
|
|
4137
4474
|
view.updateCandidateProtocolPubkey = updateCandidateProtocolPubkey;
|
|
4138
4475
|
async function updateCandidateWorkerAddress(client, args) {
|
|
4139
|
-
const tx = new transactions_1.
|
|
4476
|
+
const tx = new transactions_1.Transaction();
|
|
4140
4477
|
builder.updateCandidateWorkerAddress(tx, args);
|
|
4141
4478
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4142
4479
|
transactionBlock: tx,
|
|
@@ -4146,7 +4483,7 @@ var validator;
|
|
|
4146
4483
|
}
|
|
4147
4484
|
view.updateCandidateWorkerAddress = updateCandidateWorkerAddress;
|
|
4148
4485
|
async function updateCandidateWorkerPubkey(client, args) {
|
|
4149
|
-
const tx = new transactions_1.
|
|
4486
|
+
const tx = new transactions_1.Transaction();
|
|
4150
4487
|
builder.updateCandidateWorkerPubkey(tx, args);
|
|
4151
4488
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4152
4489
|
transactionBlock: tx,
|
|
@@ -4156,7 +4493,7 @@ var validator;
|
|
|
4156
4493
|
}
|
|
4157
4494
|
view.updateCandidateWorkerPubkey = updateCandidateWorkerPubkey;
|
|
4158
4495
|
async function updateDescription(client, args) {
|
|
4159
|
-
const tx = new transactions_1.
|
|
4496
|
+
const tx = new transactions_1.Transaction();
|
|
4160
4497
|
builder.updateDescription(tx, args);
|
|
4161
4498
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4162
4499
|
transactionBlock: tx,
|
|
@@ -4166,7 +4503,7 @@ var validator;
|
|
|
4166
4503
|
}
|
|
4167
4504
|
view.updateDescription = updateDescription;
|
|
4168
4505
|
async function updateImageUrl(client, args) {
|
|
4169
|
-
const tx = new transactions_1.
|
|
4506
|
+
const tx = new transactions_1.Transaction();
|
|
4170
4507
|
builder.updateImageUrl(tx, args);
|
|
4171
4508
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4172
4509
|
transactionBlock: tx,
|
|
@@ -4176,7 +4513,7 @@ var validator;
|
|
|
4176
4513
|
}
|
|
4177
4514
|
view.updateImageUrl = updateImageUrl;
|
|
4178
4515
|
async function updateName(client, args) {
|
|
4179
|
-
const tx = new transactions_1.
|
|
4516
|
+
const tx = new transactions_1.Transaction();
|
|
4180
4517
|
builder.updateName(tx, args);
|
|
4181
4518
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4182
4519
|
transactionBlock: tx,
|
|
@@ -4186,7 +4523,7 @@ var validator;
|
|
|
4186
4523
|
}
|
|
4187
4524
|
view.updateName = updateName;
|
|
4188
4525
|
async function updateNextEpochNetworkAddress(client, args) {
|
|
4189
|
-
const tx = new transactions_1.
|
|
4526
|
+
const tx = new transactions_1.Transaction();
|
|
4190
4527
|
builder.updateNextEpochNetworkAddress(tx, args);
|
|
4191
4528
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4192
4529
|
transactionBlock: tx,
|
|
@@ -4196,7 +4533,7 @@ var validator;
|
|
|
4196
4533
|
}
|
|
4197
4534
|
view.updateNextEpochNetworkAddress = updateNextEpochNetworkAddress;
|
|
4198
4535
|
async function updateNextEpochNetworkPubkey(client, args) {
|
|
4199
|
-
const tx = new transactions_1.
|
|
4536
|
+
const tx = new transactions_1.Transaction();
|
|
4200
4537
|
builder.updateNextEpochNetworkPubkey(tx, args);
|
|
4201
4538
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4202
4539
|
transactionBlock: tx,
|
|
@@ -4206,7 +4543,7 @@ var validator;
|
|
|
4206
4543
|
}
|
|
4207
4544
|
view.updateNextEpochNetworkPubkey = updateNextEpochNetworkPubkey;
|
|
4208
4545
|
async function updateNextEpochP2pAddress(client, args) {
|
|
4209
|
-
const tx = new transactions_1.
|
|
4546
|
+
const tx = new transactions_1.Transaction();
|
|
4210
4547
|
builder.updateNextEpochP2pAddress(tx, args);
|
|
4211
4548
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4212
4549
|
transactionBlock: tx,
|
|
@@ -4216,7 +4553,7 @@ var validator;
|
|
|
4216
4553
|
}
|
|
4217
4554
|
view.updateNextEpochP2pAddress = updateNextEpochP2pAddress;
|
|
4218
4555
|
async function updateNextEpochPrimaryAddress(client, args) {
|
|
4219
|
-
const tx = new transactions_1.
|
|
4556
|
+
const tx = new transactions_1.Transaction();
|
|
4220
4557
|
builder.updateNextEpochPrimaryAddress(tx, args);
|
|
4221
4558
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4222
4559
|
transactionBlock: tx,
|
|
@@ -4226,7 +4563,7 @@ var validator;
|
|
|
4226
4563
|
}
|
|
4227
4564
|
view.updateNextEpochPrimaryAddress = updateNextEpochPrimaryAddress;
|
|
4228
4565
|
async function updateNextEpochProtocolPubkey(client, args) {
|
|
4229
|
-
const tx = new transactions_1.
|
|
4566
|
+
const tx = new transactions_1.Transaction();
|
|
4230
4567
|
builder.updateNextEpochProtocolPubkey(tx, args);
|
|
4231
4568
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4232
4569
|
transactionBlock: tx,
|
|
@@ -4236,7 +4573,7 @@ var validator;
|
|
|
4236
4573
|
}
|
|
4237
4574
|
view.updateNextEpochProtocolPubkey = updateNextEpochProtocolPubkey;
|
|
4238
4575
|
async function updateNextEpochWorkerAddress(client, args) {
|
|
4239
|
-
const tx = new transactions_1.
|
|
4576
|
+
const tx = new transactions_1.Transaction();
|
|
4240
4577
|
builder.updateNextEpochWorkerAddress(tx, args);
|
|
4241
4578
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4242
4579
|
transactionBlock: tx,
|
|
@@ -4246,7 +4583,7 @@ var validator;
|
|
|
4246
4583
|
}
|
|
4247
4584
|
view.updateNextEpochWorkerAddress = updateNextEpochWorkerAddress;
|
|
4248
4585
|
async function updateNextEpochWorkerPubkey(client, args) {
|
|
4249
|
-
const tx = new transactions_1.
|
|
4586
|
+
const tx = new transactions_1.Transaction();
|
|
4250
4587
|
builder.updateNextEpochWorkerPubkey(tx, args);
|
|
4251
4588
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4252
4589
|
transactionBlock: tx,
|
|
@@ -4256,7 +4593,7 @@ var validator;
|
|
|
4256
4593
|
}
|
|
4257
4594
|
view.updateNextEpochWorkerPubkey = updateNextEpochWorkerPubkey;
|
|
4258
4595
|
async function updateProjectUrl(client, args) {
|
|
4259
|
-
const tx = new transactions_1.
|
|
4596
|
+
const tx = new transactions_1.Transaction();
|
|
4260
4597
|
builder.updateProjectUrl(tx, args);
|
|
4261
4598
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4262
4599
|
transactionBlock: tx,
|
|
@@ -4266,7 +4603,7 @@ var validator;
|
|
|
4266
4603
|
}
|
|
4267
4604
|
view.updateProjectUrl = updateProjectUrl;
|
|
4268
4605
|
async function validateMetadata(client, args) {
|
|
4269
|
-
const tx = new transactions_1.
|
|
4606
|
+
const tx = new transactions_1.Transaction();
|
|
4270
4607
|
builder.validateMetadata(tx, args);
|
|
4271
4608
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4272
4609
|
transactionBlock: tx,
|
|
@@ -4276,7 +4613,7 @@ var validator;
|
|
|
4276
4613
|
}
|
|
4277
4614
|
view.validateMetadata = validateMetadata;
|
|
4278
4615
|
async function validateMetadataBcs(client, args) {
|
|
4279
|
-
const tx = new transactions_1.
|
|
4616
|
+
const tx = new transactions_1.Transaction();
|
|
4280
4617
|
builder.validateMetadataBcs(tx, args);
|
|
4281
4618
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4282
4619
|
transactionBlock: tx,
|
|
@@ -4286,7 +4623,7 @@ var validator;
|
|
|
4286
4623
|
}
|
|
4287
4624
|
view.validateMetadataBcs = validateMetadataBcs;
|
|
4288
4625
|
async function votingPower(client, args) {
|
|
4289
|
-
const tx = new transactions_1.
|
|
4626
|
+
const tx = new transactions_1.Transaction();
|
|
4290
4627
|
builder.votingPower(tx, args);
|
|
4291
4628
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4292
4629
|
transactionBlock: tx,
|
|
@@ -4296,7 +4633,7 @@ var validator;
|
|
|
4296
4633
|
}
|
|
4297
4634
|
view.votingPower = votingPower;
|
|
4298
4635
|
async function workerAddress(client, args) {
|
|
4299
|
-
const tx = new transactions_1.
|
|
4636
|
+
const tx = new transactions_1.Transaction();
|
|
4300
4637
|
builder.workerAddress(tx, args);
|
|
4301
4638
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4302
4639
|
transactionBlock: tx,
|
|
@@ -4306,7 +4643,7 @@ var validator;
|
|
|
4306
4643
|
}
|
|
4307
4644
|
view.workerAddress = workerAddress;
|
|
4308
4645
|
async function workerPubkeyBytes(client, args) {
|
|
4309
|
-
const tx = new transactions_1.
|
|
4646
|
+
const tx = new transactions_1.Transaction();
|
|
4310
4647
|
builder.workerPubkeyBytes(tx, args);
|
|
4311
4648
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4312
4649
|
transactionBlock: tx,
|
|
@@ -4383,7 +4720,7 @@ var validator_cap;
|
|
|
4383
4720
|
let view;
|
|
4384
4721
|
(function (view) {
|
|
4385
4722
|
async function newFromUnverified(client, args) {
|
|
4386
|
-
const tx = new transactions_1.
|
|
4723
|
+
const tx = new transactions_1.Transaction();
|
|
4387
4724
|
builder.newFromUnverified(tx, args);
|
|
4388
4725
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4389
4726
|
transactionBlock: tx,
|
|
@@ -4393,7 +4730,7 @@ var validator_cap;
|
|
|
4393
4730
|
}
|
|
4394
4731
|
view.newFromUnverified = newFromUnverified;
|
|
4395
4732
|
async function newUnverifiedValidatorOperationCapAndTransfer(client, args) {
|
|
4396
|
-
const tx = new transactions_1.
|
|
4733
|
+
const tx = new transactions_1.Transaction();
|
|
4397
4734
|
builder.newUnverifiedValidatorOperationCapAndTransfer(tx, args);
|
|
4398
4735
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4399
4736
|
transactionBlock: tx,
|
|
@@ -4403,7 +4740,7 @@ var validator_cap;
|
|
|
4403
4740
|
}
|
|
4404
4741
|
view.newUnverifiedValidatorOperationCapAndTransfer = newUnverifiedValidatorOperationCapAndTransfer;
|
|
4405
4742
|
async function unverifiedOperationCapAddress(client, args) {
|
|
4406
|
-
const tx = new transactions_1.
|
|
4743
|
+
const tx = new transactions_1.Transaction();
|
|
4407
4744
|
builder.unverifiedOperationCapAddress(tx, args);
|
|
4408
4745
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4409
4746
|
transactionBlock: tx,
|
|
@@ -4413,7 +4750,7 @@ var validator_cap;
|
|
|
4413
4750
|
}
|
|
4414
4751
|
view.unverifiedOperationCapAddress = unverifiedOperationCapAddress;
|
|
4415
4752
|
async function verifiedOperationCapAddress(client, args) {
|
|
4416
|
-
const tx = new transactions_1.
|
|
4753
|
+
const tx = new transactions_1.Transaction();
|
|
4417
4754
|
builder.verifiedOperationCapAddress(tx, args);
|
|
4418
4755
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4419
4756
|
transactionBlock: tx,
|
|
@@ -4521,6 +4858,17 @@ var validator_set;
|
|
|
4521
4858
|
});
|
|
4522
4859
|
}
|
|
4523
4860
|
builder.assertNoPendingOrActiveDuplicates = assertNoPendingOrActiveDuplicates;
|
|
4861
|
+
function convertToFungibleStakedSui(tx, args) {
|
|
4862
|
+
const _args = [];
|
|
4863
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4864
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
4865
|
+
// @ts-ignore
|
|
4866
|
+
return tx.moveCall({
|
|
4867
|
+
target: "0x3::validator_set::convert_to_fungible_staked_sui",
|
|
4868
|
+
arguments: _args,
|
|
4869
|
+
});
|
|
4870
|
+
}
|
|
4871
|
+
builder.convertToFungibleStakedSui = convertToFungibleStakedSui;
|
|
4524
4872
|
function deriveReferenceGasPrice(tx, args) {
|
|
4525
4873
|
const _args = [];
|
|
4526
4874
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -4683,6 +5031,17 @@ var validator_set;
|
|
|
4683
5031
|
});
|
|
4684
5032
|
}
|
|
4685
5033
|
builder.poolExchangeRates = poolExchangeRates;
|
|
5034
|
+
function redeemFungibleStakedSui(tx, args) {
|
|
5035
|
+
const _args = [];
|
|
5036
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
5037
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
5038
|
+
// @ts-ignore
|
|
5039
|
+
return tx.moveCall({
|
|
5040
|
+
target: "0x3::validator_set::redeem_fungible_staked_sui",
|
|
5041
|
+
arguments: _args,
|
|
5042
|
+
});
|
|
5043
|
+
}
|
|
5044
|
+
builder.redeemFungibleStakedSui = redeemFungibleStakedSui;
|
|
4686
5045
|
function requestAddStake(tx, args) {
|
|
4687
5046
|
const _args = [];
|
|
4688
5047
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -4790,6 +5149,17 @@ var validator_set;
|
|
|
4790
5149
|
});
|
|
4791
5150
|
}
|
|
4792
5151
|
builder.totalStake = totalStake;
|
|
5152
|
+
function validatorAddressByPoolId(tx, args) {
|
|
5153
|
+
const _args = [];
|
|
5154
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
5155
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
5156
|
+
// @ts-ignore
|
|
5157
|
+
return tx.moveCall({
|
|
5158
|
+
target: "0x3::validator_set::validator_address_by_pool_id",
|
|
5159
|
+
arguments: _args,
|
|
5160
|
+
});
|
|
5161
|
+
}
|
|
5162
|
+
builder.validatorAddressByPoolId = validatorAddressByPoolId;
|
|
4793
5163
|
function validatorStakeAmount(tx, args) {
|
|
4794
5164
|
const _args = [];
|
|
4795
5165
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -4850,7 +5220,7 @@ var validator_set;
|
|
|
4850
5220
|
let view;
|
|
4851
5221
|
(function (view) {
|
|
4852
5222
|
async function activeValidatorAddresses(client, args) {
|
|
4853
|
-
const tx = new transactions_1.
|
|
5223
|
+
const tx = new transactions_1.Transaction();
|
|
4854
5224
|
builder.activeValidatorAddresses(tx, args);
|
|
4855
5225
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4856
5226
|
transactionBlock: tx,
|
|
@@ -4860,7 +5230,7 @@ var validator_set;
|
|
|
4860
5230
|
}
|
|
4861
5231
|
view.activeValidatorAddresses = activeValidatorAddresses;
|
|
4862
5232
|
async function activeValidators(client, args) {
|
|
4863
|
-
const tx = new transactions_1.
|
|
5233
|
+
const tx = new transactions_1.Transaction();
|
|
4864
5234
|
builder.activeValidators(tx, args);
|
|
4865
5235
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4866
5236
|
transactionBlock: tx,
|
|
@@ -4870,7 +5240,7 @@ var validator_set;
|
|
|
4870
5240
|
}
|
|
4871
5241
|
view.activeValidators = activeValidators;
|
|
4872
5242
|
async function advanceEpoch(client, args) {
|
|
4873
|
-
const tx = new transactions_1.
|
|
5243
|
+
const tx = new transactions_1.Transaction();
|
|
4874
5244
|
builder.advanceEpoch(tx, args);
|
|
4875
5245
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4876
5246
|
transactionBlock: tx,
|
|
@@ -4880,7 +5250,7 @@ var validator_set;
|
|
|
4880
5250
|
}
|
|
4881
5251
|
view.advanceEpoch = advanceEpoch;
|
|
4882
5252
|
async function assertNoPendingOrActiveDuplicates(client, args) {
|
|
4883
|
-
const tx = new transactions_1.
|
|
5253
|
+
const tx = new transactions_1.Transaction();
|
|
4884
5254
|
builder.assertNoPendingOrActiveDuplicates(tx, args);
|
|
4885
5255
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4886
5256
|
transactionBlock: tx,
|
|
@@ -4889,8 +5259,18 @@ var validator_set;
|
|
|
4889
5259
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4890
5260
|
}
|
|
4891
5261
|
view.assertNoPendingOrActiveDuplicates = assertNoPendingOrActiveDuplicates;
|
|
5262
|
+
async function convertToFungibleStakedSui(client, args) {
|
|
5263
|
+
const tx = new transactions_1.Transaction();
|
|
5264
|
+
builder.convertToFungibleStakedSui(tx, args);
|
|
5265
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5266
|
+
transactionBlock: tx,
|
|
5267
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5268
|
+
});
|
|
5269
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5270
|
+
}
|
|
5271
|
+
view.convertToFungibleStakedSui = convertToFungibleStakedSui;
|
|
4892
5272
|
async function deriveReferenceGasPrice(client, args) {
|
|
4893
|
-
const tx = new transactions_1.
|
|
5273
|
+
const tx = new transactions_1.Transaction();
|
|
4894
5274
|
builder.deriveReferenceGasPrice(tx, args);
|
|
4895
5275
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4896
5276
|
transactionBlock: tx,
|
|
@@ -4900,7 +5280,7 @@ var validator_set;
|
|
|
4900
5280
|
}
|
|
4901
5281
|
view.deriveReferenceGasPrice = deriveReferenceGasPrice;
|
|
4902
5282
|
async function getActiveOrPendingOrCandidateValidatorRef(client, args) {
|
|
4903
|
-
const tx = new transactions_1.
|
|
5283
|
+
const tx = new transactions_1.Transaction();
|
|
4904
5284
|
builder.getActiveOrPendingOrCandidateValidatorRef(tx, args);
|
|
4905
5285
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4906
5286
|
transactionBlock: tx,
|
|
@@ -4910,7 +5290,7 @@ var validator_set;
|
|
|
4910
5290
|
}
|
|
4911
5291
|
view.getActiveOrPendingOrCandidateValidatorRef = getActiveOrPendingOrCandidateValidatorRef;
|
|
4912
5292
|
async function getActiveValidatorRef(client, args) {
|
|
4913
|
-
const tx = new transactions_1.
|
|
5293
|
+
const tx = new transactions_1.Transaction();
|
|
4914
5294
|
builder.getActiveValidatorRef(tx, args);
|
|
4915
5295
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4916
5296
|
transactionBlock: tx,
|
|
@@ -4920,7 +5300,7 @@ var validator_set;
|
|
|
4920
5300
|
}
|
|
4921
5301
|
view.getActiveValidatorRef = getActiveValidatorRef;
|
|
4922
5302
|
async function getPendingValidatorRef(client, args) {
|
|
4923
|
-
const tx = new transactions_1.
|
|
5303
|
+
const tx = new transactions_1.Transaction();
|
|
4924
5304
|
builder.getPendingValidatorRef(tx, args);
|
|
4925
5305
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4926
5306
|
transactionBlock: tx,
|
|
@@ -4930,7 +5310,7 @@ var validator_set;
|
|
|
4930
5310
|
}
|
|
4931
5311
|
view.getPendingValidatorRef = getPendingValidatorRef;
|
|
4932
5312
|
async function getValidatorMut(client, args) {
|
|
4933
|
-
const tx = new transactions_1.
|
|
5313
|
+
const tx = new transactions_1.Transaction();
|
|
4934
5314
|
builder.getValidatorMut(tx, args);
|
|
4935
5315
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4936
5316
|
transactionBlock: tx,
|
|
@@ -4940,7 +5320,7 @@ var validator_set;
|
|
|
4940
5320
|
}
|
|
4941
5321
|
view.getValidatorMut = getValidatorMut;
|
|
4942
5322
|
async function getValidatorMutWithCtx(client, args) {
|
|
4943
|
-
const tx = new transactions_1.
|
|
5323
|
+
const tx = new transactions_1.Transaction();
|
|
4944
5324
|
builder.getValidatorMutWithCtx(tx, args);
|
|
4945
5325
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4946
5326
|
transactionBlock: tx,
|
|
@@ -4950,7 +5330,7 @@ var validator_set;
|
|
|
4950
5330
|
}
|
|
4951
5331
|
view.getValidatorMutWithCtx = getValidatorMutWithCtx;
|
|
4952
5332
|
async function getValidatorMutWithCtxIncludingCandidates(client, args) {
|
|
4953
|
-
const tx = new transactions_1.
|
|
5333
|
+
const tx = new transactions_1.Transaction();
|
|
4954
5334
|
builder.getValidatorMutWithCtxIncludingCandidates(tx, args);
|
|
4955
5335
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4956
5336
|
transactionBlock: tx,
|
|
@@ -4960,7 +5340,7 @@ var validator_set;
|
|
|
4960
5340
|
}
|
|
4961
5341
|
view.getValidatorMutWithCtxIncludingCandidates = getValidatorMutWithCtxIncludingCandidates;
|
|
4962
5342
|
async function getValidatorMutWithVerifiedCap(client, args) {
|
|
4963
|
-
const tx = new transactions_1.
|
|
5343
|
+
const tx = new transactions_1.Transaction();
|
|
4964
5344
|
builder.getValidatorMutWithVerifiedCap(tx, args);
|
|
4965
5345
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4966
5346
|
transactionBlock: tx,
|
|
@@ -4970,7 +5350,7 @@ var validator_set;
|
|
|
4970
5350
|
}
|
|
4971
5351
|
view.getValidatorMutWithVerifiedCap = getValidatorMutWithVerifiedCap;
|
|
4972
5352
|
async function isActiveValidatorBySuiAddress(client, args) {
|
|
4973
|
-
const tx = new transactions_1.
|
|
5353
|
+
const tx = new transactions_1.Transaction();
|
|
4974
5354
|
builder.isActiveValidatorBySuiAddress(tx, args);
|
|
4975
5355
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4976
5356
|
transactionBlock: tx,
|
|
@@ -4980,7 +5360,7 @@ var validator_set;
|
|
|
4980
5360
|
}
|
|
4981
5361
|
view.isActiveValidatorBySuiAddress = isActiveValidatorBySuiAddress;
|
|
4982
5362
|
async function isDuplicateValidator(client, args) {
|
|
4983
|
-
const tx = new transactions_1.
|
|
5363
|
+
const tx = new transactions_1.Transaction();
|
|
4984
5364
|
builder.isDuplicateValidator(tx, args);
|
|
4985
5365
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4986
5366
|
transactionBlock: tx,
|
|
@@ -4990,7 +5370,7 @@ var validator_set;
|
|
|
4990
5370
|
}
|
|
4991
5371
|
view.isDuplicateValidator = isDuplicateValidator;
|
|
4992
5372
|
async function isInactiveValidator(client, args) {
|
|
4993
|
-
const tx = new transactions_1.
|
|
5373
|
+
const tx = new transactions_1.Transaction();
|
|
4994
5374
|
builder.isInactiveValidator(tx, args);
|
|
4995
5375
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
4996
5376
|
transactionBlock: tx,
|
|
@@ -5000,7 +5380,7 @@ var validator_set;
|
|
|
5000
5380
|
}
|
|
5001
5381
|
view.isInactiveValidator = isInactiveValidator;
|
|
5002
5382
|
async function isValidatorCandidate(client, args) {
|
|
5003
|
-
const tx = new transactions_1.
|
|
5383
|
+
const tx = new transactions_1.Transaction();
|
|
5004
5384
|
builder.isValidatorCandidate(tx, args);
|
|
5005
5385
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5006
5386
|
transactionBlock: tx,
|
|
@@ -5010,7 +5390,7 @@ var validator_set;
|
|
|
5010
5390
|
}
|
|
5011
5391
|
view.isValidatorCandidate = isValidatorCandidate;
|
|
5012
5392
|
async function new_(client, args) {
|
|
5013
|
-
const tx = new transactions_1.
|
|
5393
|
+
const tx = new transactions_1.Transaction();
|
|
5014
5394
|
builder.new_(tx, args);
|
|
5015
5395
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5016
5396
|
transactionBlock: tx,
|
|
@@ -5020,7 +5400,7 @@ var validator_set;
|
|
|
5020
5400
|
}
|
|
5021
5401
|
view.new_ = new_;
|
|
5022
5402
|
async function nextEpochValidatorCount(client, args) {
|
|
5023
|
-
const tx = new transactions_1.
|
|
5403
|
+
const tx = new transactions_1.Transaction();
|
|
5024
5404
|
builder.nextEpochValidatorCount(tx, args);
|
|
5025
5405
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5026
5406
|
transactionBlock: tx,
|
|
@@ -5030,7 +5410,7 @@ var validator_set;
|
|
|
5030
5410
|
}
|
|
5031
5411
|
view.nextEpochValidatorCount = nextEpochValidatorCount;
|
|
5032
5412
|
async function poolExchangeRates(client, args) {
|
|
5033
|
-
const tx = new transactions_1.
|
|
5413
|
+
const tx = new transactions_1.Transaction();
|
|
5034
5414
|
builder.poolExchangeRates(tx, args);
|
|
5035
5415
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5036
5416
|
transactionBlock: tx,
|
|
@@ -5039,8 +5419,18 @@ var validator_set;
|
|
|
5039
5419
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5040
5420
|
}
|
|
5041
5421
|
view.poolExchangeRates = poolExchangeRates;
|
|
5422
|
+
async function redeemFungibleStakedSui(client, args) {
|
|
5423
|
+
const tx = new transactions_1.Transaction();
|
|
5424
|
+
builder.redeemFungibleStakedSui(tx, args);
|
|
5425
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5426
|
+
transactionBlock: tx,
|
|
5427
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5428
|
+
});
|
|
5429
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5430
|
+
}
|
|
5431
|
+
view.redeemFungibleStakedSui = redeemFungibleStakedSui;
|
|
5042
5432
|
async function requestAddStake(client, args) {
|
|
5043
|
-
const tx = new transactions_1.
|
|
5433
|
+
const tx = new transactions_1.Transaction();
|
|
5044
5434
|
builder.requestAddStake(tx, args);
|
|
5045
5435
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5046
5436
|
transactionBlock: tx,
|
|
@@ -5050,7 +5440,7 @@ var validator_set;
|
|
|
5050
5440
|
}
|
|
5051
5441
|
view.requestAddStake = requestAddStake;
|
|
5052
5442
|
async function requestAddValidator(client, args) {
|
|
5053
|
-
const tx = new transactions_1.
|
|
5443
|
+
const tx = new transactions_1.Transaction();
|
|
5054
5444
|
builder.requestAddValidator(tx, args);
|
|
5055
5445
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5056
5446
|
transactionBlock: tx,
|
|
@@ -5060,7 +5450,7 @@ var validator_set;
|
|
|
5060
5450
|
}
|
|
5061
5451
|
view.requestAddValidator = requestAddValidator;
|
|
5062
5452
|
async function requestAddValidatorCandidate(client, args) {
|
|
5063
|
-
const tx = new transactions_1.
|
|
5453
|
+
const tx = new transactions_1.Transaction();
|
|
5064
5454
|
builder.requestAddValidatorCandidate(tx, args);
|
|
5065
5455
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5066
5456
|
transactionBlock: tx,
|
|
@@ -5070,7 +5460,7 @@ var validator_set;
|
|
|
5070
5460
|
}
|
|
5071
5461
|
view.requestAddValidatorCandidate = requestAddValidatorCandidate;
|
|
5072
5462
|
async function requestRemoveValidator(client, args) {
|
|
5073
|
-
const tx = new transactions_1.
|
|
5463
|
+
const tx = new transactions_1.Transaction();
|
|
5074
5464
|
builder.requestRemoveValidator(tx, args);
|
|
5075
5465
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5076
5466
|
transactionBlock: tx,
|
|
@@ -5080,7 +5470,7 @@ var validator_set;
|
|
|
5080
5470
|
}
|
|
5081
5471
|
view.requestRemoveValidator = requestRemoveValidator;
|
|
5082
5472
|
async function requestRemoveValidatorCandidate(client, args) {
|
|
5083
|
-
const tx = new transactions_1.
|
|
5473
|
+
const tx = new transactions_1.Transaction();
|
|
5084
5474
|
builder.requestRemoveValidatorCandidate(tx, args);
|
|
5085
5475
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5086
5476
|
transactionBlock: tx,
|
|
@@ -5090,7 +5480,7 @@ var validator_set;
|
|
|
5090
5480
|
}
|
|
5091
5481
|
view.requestRemoveValidatorCandidate = requestRemoveValidatorCandidate;
|
|
5092
5482
|
async function requestSetCommissionRate(client, args) {
|
|
5093
|
-
const tx = new transactions_1.
|
|
5483
|
+
const tx = new transactions_1.Transaction();
|
|
5094
5484
|
builder.requestSetCommissionRate(tx, args);
|
|
5095
5485
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5096
5486
|
transactionBlock: tx,
|
|
@@ -5100,7 +5490,7 @@ var validator_set;
|
|
|
5100
5490
|
}
|
|
5101
5491
|
view.requestSetCommissionRate = requestSetCommissionRate;
|
|
5102
5492
|
async function requestWithdrawStake(client, args) {
|
|
5103
|
-
const tx = new transactions_1.
|
|
5493
|
+
const tx = new transactions_1.Transaction();
|
|
5104
5494
|
builder.requestWithdrawStake(tx, args);
|
|
5105
5495
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5106
5496
|
transactionBlock: tx,
|
|
@@ -5110,7 +5500,7 @@ var validator_set;
|
|
|
5110
5500
|
}
|
|
5111
5501
|
view.requestWithdrawStake = requestWithdrawStake;
|
|
5112
5502
|
async function stakingPoolMappings(client, args) {
|
|
5113
|
-
const tx = new transactions_1.
|
|
5503
|
+
const tx = new transactions_1.Transaction();
|
|
5114
5504
|
builder.stakingPoolMappings(tx, args);
|
|
5115
5505
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5116
5506
|
transactionBlock: tx,
|
|
@@ -5120,7 +5510,7 @@ var validator_set;
|
|
|
5120
5510
|
}
|
|
5121
5511
|
view.stakingPoolMappings = stakingPoolMappings;
|
|
5122
5512
|
async function sumVotingPowerByAddresses(client, args) {
|
|
5123
|
-
const tx = new transactions_1.
|
|
5513
|
+
const tx = new transactions_1.Transaction();
|
|
5124
5514
|
builder.sumVotingPowerByAddresses(tx, args);
|
|
5125
5515
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5126
5516
|
transactionBlock: tx,
|
|
@@ -5130,7 +5520,7 @@ var validator_set;
|
|
|
5130
5520
|
}
|
|
5131
5521
|
view.sumVotingPowerByAddresses = sumVotingPowerByAddresses;
|
|
5132
5522
|
async function totalStake(client, args) {
|
|
5133
|
-
const tx = new transactions_1.
|
|
5523
|
+
const tx = new transactions_1.Transaction();
|
|
5134
5524
|
builder.totalStake(tx, args);
|
|
5135
5525
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5136
5526
|
transactionBlock: tx,
|
|
@@ -5139,8 +5529,18 @@ var validator_set;
|
|
|
5139
5529
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5140
5530
|
}
|
|
5141
5531
|
view.totalStake = totalStake;
|
|
5532
|
+
async function validatorAddressByPoolId(client, args) {
|
|
5533
|
+
const tx = new transactions_1.Transaction();
|
|
5534
|
+
builder.validatorAddressByPoolId(tx, args);
|
|
5535
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5536
|
+
transactionBlock: tx,
|
|
5537
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5538
|
+
});
|
|
5539
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5540
|
+
}
|
|
5541
|
+
view.validatorAddressByPoolId = validatorAddressByPoolId;
|
|
5142
5542
|
async function validatorStakeAmount(client, args) {
|
|
5143
|
-
const tx = new transactions_1.
|
|
5543
|
+
const tx = new transactions_1.Transaction();
|
|
5144
5544
|
builder.validatorStakeAmount(tx, args);
|
|
5145
5545
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5146
5546
|
transactionBlock: tx,
|
|
@@ -5150,7 +5550,7 @@ var validator_set;
|
|
|
5150
5550
|
}
|
|
5151
5551
|
view.validatorStakeAmount = validatorStakeAmount;
|
|
5152
5552
|
async function validatorStakingPoolId(client, args) {
|
|
5153
|
-
const tx = new transactions_1.
|
|
5553
|
+
const tx = new transactions_1.Transaction();
|
|
5154
5554
|
builder.validatorStakingPoolId(tx, args);
|
|
5155
5555
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5156
5556
|
transactionBlock: tx,
|
|
@@ -5160,7 +5560,7 @@ var validator_set;
|
|
|
5160
5560
|
}
|
|
5161
5561
|
view.validatorStakingPoolId = validatorStakingPoolId;
|
|
5162
5562
|
async function validatorTotalStakeAmount(client, args) {
|
|
5163
|
-
const tx = new transactions_1.
|
|
5563
|
+
const tx = new transactions_1.Transaction();
|
|
5164
5564
|
builder.validatorTotalStakeAmount(tx, args);
|
|
5165
5565
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5166
5566
|
transactionBlock: tx,
|
|
@@ -5170,7 +5570,7 @@ var validator_set;
|
|
|
5170
5570
|
}
|
|
5171
5571
|
view.validatorTotalStakeAmount = validatorTotalStakeAmount;
|
|
5172
5572
|
async function validatorVotingPower(client, args) {
|
|
5173
|
-
const tx = new transactions_1.
|
|
5573
|
+
const tx = new transactions_1.Transaction();
|
|
5174
5574
|
builder.validatorVotingPower(tx, args);
|
|
5175
5575
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5176
5576
|
transactionBlock: tx,
|
|
@@ -5180,7 +5580,7 @@ var validator_set;
|
|
|
5180
5580
|
}
|
|
5181
5581
|
view.validatorVotingPower = validatorVotingPower;
|
|
5182
5582
|
async function verifyCap(client, args) {
|
|
5183
|
-
const tx = new transactions_1.
|
|
5583
|
+
const tx = new transactions_1.Transaction();
|
|
5184
5584
|
builder.verifyCap(tx, args);
|
|
5185
5585
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5186
5586
|
transactionBlock: tx,
|
|
@@ -5238,7 +5638,7 @@ var validator_wrapper;
|
|
|
5238
5638
|
let view;
|
|
5239
5639
|
(function (view) {
|
|
5240
5640
|
async function createV1(client, args) {
|
|
5241
|
-
const tx = new transactions_1.
|
|
5641
|
+
const tx = new transactions_1.Transaction();
|
|
5242
5642
|
builder.createV1(tx, args);
|
|
5243
5643
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5244
5644
|
transactionBlock: tx,
|
|
@@ -5248,7 +5648,7 @@ var validator_wrapper;
|
|
|
5248
5648
|
}
|
|
5249
5649
|
view.createV1 = createV1;
|
|
5250
5650
|
async function destroy(client, args) {
|
|
5251
|
-
const tx = new transactions_1.
|
|
5651
|
+
const tx = new transactions_1.Transaction();
|
|
5252
5652
|
builder.destroy(tx, args);
|
|
5253
5653
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5254
5654
|
transactionBlock: tx,
|
|
@@ -5258,7 +5658,7 @@ var validator_wrapper;
|
|
|
5258
5658
|
}
|
|
5259
5659
|
view.destroy = destroy;
|
|
5260
5660
|
async function loadValidatorMaybeUpgrade(client, args) {
|
|
5261
|
-
const tx = new transactions_1.
|
|
5661
|
+
const tx = new transactions_1.Transaction();
|
|
5262
5662
|
builder.loadValidatorMaybeUpgrade(tx, args);
|
|
5263
5663
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5264
5664
|
transactionBlock: tx,
|
|
@@ -5323,7 +5723,7 @@ var voting_power;
|
|
|
5323
5723
|
let view;
|
|
5324
5724
|
(function (view) {
|
|
5325
5725
|
async function quorumThreshold(client, args) {
|
|
5326
|
-
const tx = new transactions_1.
|
|
5726
|
+
const tx = new transactions_1.Transaction();
|
|
5327
5727
|
builder.quorumThreshold(tx, args);
|
|
5328
5728
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5329
5729
|
transactionBlock: tx,
|
|
@@ -5333,7 +5733,7 @@ var voting_power;
|
|
|
5333
5733
|
}
|
|
5334
5734
|
view.quorumThreshold = quorumThreshold;
|
|
5335
5735
|
async function setVotingPower(client, args) {
|
|
5336
|
-
const tx = new transactions_1.
|
|
5736
|
+
const tx = new transactions_1.Transaction();
|
|
5337
5737
|
builder.setVotingPower(tx, args);
|
|
5338
5738
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5339
5739
|
transactionBlock: tx,
|
|
@@ -5343,7 +5743,7 @@ var voting_power;
|
|
|
5343
5743
|
}
|
|
5344
5744
|
view.setVotingPower = setVotingPower;
|
|
5345
5745
|
async function totalVotingPower(client, args) {
|
|
5346
|
-
const tx = new transactions_1.
|
|
5746
|
+
const tx = new transactions_1.Transaction();
|
|
5347
5747
|
builder.totalVotingPower(tx, args);
|
|
5348
5748
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
5349
5749
|
transactionBlock: tx,
|
|
@@ -5354,7 +5754,7 @@ var voting_power;
|
|
|
5354
5754
|
view.totalVotingPower = totalVotingPower;
|
|
5355
5755
|
})(view = voting_power.view || (voting_power.view = {}));
|
|
5356
5756
|
})(voting_power || (exports.voting_power = voting_power = {}));
|
|
5357
|
-
const MODULES = JSON.parse('{"genesis":{"fileFormatVersion":6,"address":"0x3","name":"genesis","friends":[],"structs":{"GenesisChainParameters":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"protocol_version","type":"U64"},{"name":"chain_start_timestamp_ms","type":"U64"},{"name":"epoch_duration_ms","type":"U64"},{"name":"stake_subsidy_start_epoch","type":"U64"},{"name":"stake_subsidy_initial_distribution_amount","type":"U64"},{"name":"stake_subsidy_period_length","type":"U64"},{"name":"stake_subsidy_decrease_rate","type":"U16"},{"name":"max_validator_count","type":"U64"},{"name":"min_validator_joining_stake","type":"U64"},{"name":"validator_low_stake_threshold","type":"U64"},{"name":"validator_very_low_stake_threshold","type":"U64"},{"name":"validator_low_stake_grace_period","type":"U64"}]},"GenesisValidatorMetadata":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"name","type":{"Vector":"U8"}},{"name":"description","type":{"Vector":"U8"}},{"name":"image_url","type":{"Vector":"U8"}},{"name":"project_url","type":{"Vector":"U8"}},{"name":"sui_address","type":"Address"},{"name":"gas_price","type":"U64"},{"name":"commission_rate","type":"U64"},{"name":"protocol_public_key","type":{"Vector":"U8"}},{"name":"proof_of_possession","type":{"Vector":"U8"}},{"name":"network_public_key","type":{"Vector":"U8"}},{"name":"worker_public_key","type":{"Vector":"U8"}},{"name":"network_address","type":{"Vector":"U8"}},{"name":"p2p_address","type":{"Vector":"U8"}},{"name":"primary_address","type":{"Vector":"U8"}},{"name":"worker_address","type":{"Vector":"U8"}}]},"TokenAllocation":{"abilities":{"abilities":[]},"typeParameters":[],"fields":[{"name":"recipient_address","type":"Address"},{"name":"amount_mist","type":"U64"},{"name":"staked_with_validator","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["Address"]}}}]},"TokenDistributionSchedule":{"abilities":{"abilities":[]},"typeParameters":[],"fields":[{"name":"stake_subsidy_fund_mist","type":"U64"},{"name":"allocations","type":{"Vector":{"Struct":{"address":"0x3","module":"genesis","name":"TokenAllocation","typeArguments":[]}}}}]}},"exposedFunctions":{}},"stake_subsidy":{"fileFormatVersion":6,"address":"0x3","name":"stake_subsidy","friends":[{"address":"0x3","name":"genesis"},{"address":"0x3","name":"sui_system_state_inner"}],"structs":{"StakeSubsidy":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"balance","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}},{"name":"distribution_counter","type":"U64"},{"name":"current_distribution_amount","type":"U64"},{"name":"stake_subsidy_period_length","type":"U64"},{"name":"stake_subsidy_decrease_rate","type":"U16"},{"name":"extra_fields","type":{"Struct":{"address":"0x2","module":"bag","name":"Bag","typeArguments":[]}}}]}},"exposedFunctions":{"advance_epoch":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"stake_subsidy","name":"StakeSubsidy","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}]},"create":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},"U64","U64","U16",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x3","module":"stake_subsidy","name":"StakeSubsidy","typeArguments":[]}}]},"current_epoch_subsidy_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"stake_subsidy","name":"StakeSubsidy","typeArguments":[]}}}],"return":["U64"]}}},"staking_pool":{"fileFormatVersion":6,"address":"0x3","name":"staking_pool","friends":[{"address":"0x3","name":"validator"},{"address":"0x3","name":"validator_set"}],"structs":{"PoolTokenExchangeRate":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"sui_amount","type":"U64"},{"name":"pool_token_amount","type":"U64"}]},"StakedSui":{"abilities":{"abilities":["Store","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":[]},"exchange_rates":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["U64",{"Struct":{"address":"0x3","module":"staking_pool","name":"PoolTokenExchangeRate","typeArguments":[]}}]}}}]},"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_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"PoolTokenExchangeRate","typeArguments":[]}}}],"return":["U64"]},"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":[]}}},{"Reference":{"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":[]}}]}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}]},"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":[]}},{"Reference":{"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":[]}}]}}]},"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_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"PoolTokenExchangeRate","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":[{"Reference":{"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":{"active_validator_addresses":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}}],"return":[{"Vector":"Address"}]},"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":[]},"pool_exchange_rates":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["U64",{"Struct":{"address":"0x3","module":"staking_pool","name":"PoolTokenExchangeRate","typeArguments":[]}}]}}}]},"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_stake_non_entry":{"visibility":"Public","isEntry":false,"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":[{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}]},"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":[]},"request_withdraw_stake_non_entry":{"visibility":"Public","isEntry":false,"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":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}]},"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":{"active_validator_addresses":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","typeArguments":[]}}}],"return":[{"Vector":"Address"}]},"active_validator_voting_powers":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"vec_map","name":"VecMap","typeArguments":["Address","U64"]}}]},"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"]},"pool_exchange_rates":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["U64",{"Struct":{"address":"0x3","module":"staking_pool","name":"PoolTokenExchangeRate","typeArguments":[]}}]}}}]},"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":[{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}]},"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":[{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}]},"request_add_validator":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","typeArguments":[]}}},{"Reference":{"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":[]}}},{"Reference":{"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",{"Reference":{"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":[]}},{"Reference":{"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":[]}}]}}]},"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",{"Reference":{"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":"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"]},"get_staking_pool_ref":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}}]},"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":[]}}},{"Reference":{"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":[{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}]},"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":[]}},{"Reference":{"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":[]}}]}}]},"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_validator_addresses":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}}],"return":[{"Vector":"Address"}]},"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"]},"pool_exchange_rates":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["U64",{"Struct":{"address":"0x3","module":"staking_pool","name":"PoolTokenExchangeRate","typeArguments":[]}}]}}}]},"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":[{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}]},"request_add_validator":{"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_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":[]}}},{"Reference":{"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":[]}},{"Reference":{"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":[]}}]}}]},"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"]},"validator_voting_power":{"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"]}}}}');
|
|
5757
|
+
const MODULES = JSON.parse('{"genesis":{"fileFormatVersion":6,"address":"0x3","name":"genesis","friends":[],"structs":{"GenesisChainParameters":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"protocol_version","type":"U64"},{"name":"chain_start_timestamp_ms","type":"U64"},{"name":"epoch_duration_ms","type":"U64"},{"name":"stake_subsidy_start_epoch","type":"U64"},{"name":"stake_subsidy_initial_distribution_amount","type":"U64"},{"name":"stake_subsidy_period_length","type":"U64"},{"name":"stake_subsidy_decrease_rate","type":"U16"},{"name":"max_validator_count","type":"U64"},{"name":"min_validator_joining_stake","type":"U64"},{"name":"validator_low_stake_threshold","type":"U64"},{"name":"validator_very_low_stake_threshold","type":"U64"},{"name":"validator_low_stake_grace_period","type":"U64"}]},"GenesisValidatorMetadata":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"name","type":{"Vector":"U8"}},{"name":"description","type":{"Vector":"U8"}},{"name":"image_url","type":{"Vector":"U8"}},{"name":"project_url","type":{"Vector":"U8"}},{"name":"sui_address","type":"Address"},{"name":"gas_price","type":"U64"},{"name":"commission_rate","type":"U64"},{"name":"protocol_public_key","type":{"Vector":"U8"}},{"name":"proof_of_possession","type":{"Vector":"U8"}},{"name":"network_public_key","type":{"Vector":"U8"}},{"name":"worker_public_key","type":{"Vector":"U8"}},{"name":"network_address","type":{"Vector":"U8"}},{"name":"p2p_address","type":{"Vector":"U8"}},{"name":"primary_address","type":{"Vector":"U8"}},{"name":"worker_address","type":{"Vector":"U8"}}]},"TokenAllocation":{"abilities":{"abilities":[]},"typeParameters":[],"fields":[{"name":"recipient_address","type":"Address"},{"name":"amount_mist","type":"U64"},{"name":"staked_with_validator","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["Address"]}}}]},"TokenDistributionSchedule":{"abilities":{"abilities":[]},"typeParameters":[],"fields":[{"name":"stake_subsidy_fund_mist","type":"U64"},{"name":"allocations","type":{"Vector":{"Struct":{"address":"0x3","module":"genesis","name":"TokenAllocation","typeArguments":[]}}}}]}},"exposedFunctions":{}},"stake_subsidy":{"fileFormatVersion":6,"address":"0x3","name":"stake_subsidy","friends":[{"address":"0x3","name":"genesis"},{"address":"0x3","name":"sui_system_state_inner"}],"structs":{"StakeSubsidy":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"balance","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}},{"name":"distribution_counter","type":"U64"},{"name":"current_distribution_amount","type":"U64"},{"name":"stake_subsidy_period_length","type":"U64"},{"name":"stake_subsidy_decrease_rate","type":"U16"},{"name":"extra_fields","type":{"Struct":{"address":"0x2","module":"bag","name":"Bag","typeArguments":[]}}}]}},"exposedFunctions":{"advance_epoch":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"stake_subsidy","name":"StakeSubsidy","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}]},"create":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}},"U64","U64","U16",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x3","module":"stake_subsidy","name":"StakeSubsidy","typeArguments":[]}}]},"current_epoch_subsidy_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"stake_subsidy","name":"StakeSubsidy","typeArguments":[]}}}],"return":["U64"]}}},"staking_pool":{"fileFormatVersion":6,"address":"0x3","name":"staking_pool","friends":[{"address":"0x3","name":"validator"},{"address":"0x3","name":"validator_set"}],"structs":{"FungibleStakedSui":{"abilities":{"abilities":["Store","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":"value","type":"U64"}]},"FungibleStakedSuiData":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"total_supply","type":"U64"},{"name":"principal","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}}]},"FungibleStakedSuiDataKey":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"dummy_field","type":"Bool"}]},"PoolTokenExchangeRate":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"sui_amount","type":"U64"},{"name":"pool_token_amount","type":"U64"}]},"StakedSui":{"abilities":{"abilities":["Store","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":[]},"convert_to_fungible_staked_sui":{"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":[{"Struct":{"address":"0x3","module":"staking_pool","name":"FungibleStakedSui","typeArguments":[]}}]},"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":[]},"exchange_rates":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["U64",{"Struct":{"address":"0x3","module":"staking_pool","name":"PoolTokenExchangeRate","typeArguments":[]}}]}}}]},"fungible_staked_sui_pool_id":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"FungibleStakedSui","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}]},"fungible_staked_sui_value":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"FungibleStakedSui","typeArguments":[]}}}],"return":["U64"]},"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_fungible_staked_sui":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"staking_pool","name":"FungibleStakedSui","typeArguments":[]}}},{"Struct":{"address":"0x3","module":"staking_pool","name":"FungibleStakedSui","typeArguments":[]}}],"return":[]},"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_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"PoolTokenExchangeRate","typeArguments":[]}}}],"return":["U64"]},"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":[]}}},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"redeem_fungible_staked_sui":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}},{"Struct":{"address":"0x3","module":"staking_pool","name":"FungibleStakedSui","typeArguments":[]}},{"Reference":{"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":[]}}]}}]},"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":[]}}]}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}]},"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":[]}},{"Reference":{"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":[]}}]}}]},"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_fungible_staked_sui":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"staking_pool","name":"FungibleStakedSui","typeArguments":[]}}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x3","module":"staking_pool","name":"FungibleStakedSui","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_amount":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"PoolTokenExchangeRate","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":[{"Reference":{"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":{"active_validator_addresses":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}}],"return":[{"Vector":"Address"}]},"convert_to_fungible_staked_sui":{"visibility":"Public","isEntry":false,"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":[{"Struct":{"address":"0x3","module":"staking_pool","name":"FungibleStakedSui","typeArguments":[]}}]},"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":[]},"pool_exchange_rates":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["U64",{"Struct":{"address":"0x3","module":"staking_pool","name":"PoolTokenExchangeRate","typeArguments":[]}}]}}}]},"redeem_fungible_staked_sui":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Struct":{"address":"0x3","module":"staking_pool","name":"FungibleStakedSui","typeArguments":[]}},{"Reference":{"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":[]}}]}}]},"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_stake_non_entry":{"visibility":"Public","isEntry":false,"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":[{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}]},"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":[]},"request_withdraw_stake_non_entry":{"visibility":"Public","isEntry":false,"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":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"Struct":{"address":"0x2","module":"sui","name":"SUI","typeArguments":[]}}]}}]},"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":[]},"validator_address_by_pool_id":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system","name":"SuiSystemState","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}}],"return":["Address"]}}},"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":{"active_validator_addresses":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","typeArguments":[]}}}],"return":[{"Vector":"Address"}]},"active_validator_voting_powers":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"vec_map","name":"VecMap","typeArguments":["Address","U64"]}}]},"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":[]}}]}}]},"convert_to_fungible_staked_sui":{"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":[{"Struct":{"address":"0x3","module":"staking_pool","name":"FungibleStakedSui","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"]},"pool_exchange_rates":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["U64",{"Struct":{"address":"0x3","module":"staking_pool","name":"PoolTokenExchangeRate","typeArguments":[]}}]}}}]},"protocol_version":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","typeArguments":[]}}}],"return":["U64"]},"redeem_fungible_staked_sui":{"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":"FungibleStakedSui","typeArguments":[]}},{"Reference":{"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":[]}}]}}]},"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":[{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}]},"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":[{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}]},"request_add_validator":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","typeArguments":[]}}},{"Reference":{"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":[]}}},{"Reference":{"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",{"Reference":{"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":[]}},{"Reference":{"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":[]}}]}}]},"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",{"Reference":{"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_address_by_pool_id":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"sui_system_state_inner","name":"SuiSystemStateInnerV2","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}}],"return":["Address"]},"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":"voting_power"}],"structs":{"ConvertingToFungibleStakedSuiEvent":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"stake_activation_epoch","type":"U64"},{"name":"staked_sui_principal_amount","type":"U64"},{"name":"fungible_staked_sui_amount","type":"U64"}]},"RedeemingFungibleStakedSuiEvent":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"pool_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"fungible_staked_sui_amount","type":"U64"},{"name":"sui_amount","type":"U64"}]},"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"]},"convert_to_fungible_staked_sui":{"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":[{"Struct":{"address":"0x3","module":"staking_pool","name":"FungibleStakedSui","typeArguments":[]}}]},"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"]},"get_staking_pool_ref":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x3","module":"staking_pool","name":"StakingPool","typeArguments":[]}}}]},"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":[]}}},{"Reference":{"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"}}]},"redeem_fungible_staked_sui":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator","name":"Validator","typeArguments":[]}}},{"Struct":{"address":"0x3","module":"staking_pool","name":"FungibleStakedSui","typeArguments":[]}},{"Reference":{"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":[]}}]}}]},"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":[{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}]},"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":[]}},{"Reference":{"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":[]}}]}}]},"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_validator_addresses":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}}],"return":[{"Vector":"Address"}]},"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":[]},"convert_to_fungible_staked_sui":{"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":[{"Struct":{"address":"0x3","module":"staking_pool","name":"FungibleStakedSui","typeArguments":[]}}]},"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"]},"pool_exchange_rates":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":["U64",{"Struct":{"address":"0x3","module":"staking_pool","name":"PoolTokenExchangeRate","typeArguments":[]}}]}}}]},"redeem_fungible_staked_sui":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},{"Struct":{"address":"0x3","module":"staking_pool","name":"FungibleStakedSui","typeArguments":[]}},{"Reference":{"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":[]}}]}}]},"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":[{"Struct":{"address":"0x3","module":"staking_pool","name":"StakedSui","typeArguments":[]}}]},"request_add_validator":{"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_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":[]}}},{"Reference":{"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":[]}},{"Reference":{"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":[]}}]}}]},"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_address_by_pool_id":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x3","module":"validator_set","name":"ValidatorSet","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}}],"return":["Address"]},"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"]},"validator_voting_power":{"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"]}}}}');
|
|
5358
5758
|
function loadAllTypes(coder) {
|
|
5359
5759
|
_0x1.loadAllTypes(coder);
|
|
5360
5760
|
_0x2.loadAllTypes(coder);
|