@typemove/sui 1.5.6 → 1.5.7-rc.2
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/0x2.d.ts +261 -2
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +897 -72
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +1288 -127
- package/dist/cjs/builtin/0x3.d.ts.map +1 -1
- package/dist/cjs/builtin/0x3.js +3045 -268
- package/dist/cjs/builtin/0x3.js.map +1 -1
- package/dist/cjs/codegen/codegen.js +2 -2
- package/dist/cjs/codegen/codegen.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +261 -2
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +897 -72
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +1288 -127
- package/dist/esm/builtin/0x3.d.ts.map +1 -1
- package/dist/esm/builtin/0x3.js +3045 -268
- package/dist/esm/builtin/0x3.js.map +1 -1
- package/dist/esm/codegen/codegen.js +2 -2
- package/dist/esm/codegen/codegen.js.map +1 -1
- package/package.json +4 -4
- package/src/builtin/0x2.ts +1972 -699
- package/src/builtin/0x3.ts +5427 -777
- package/src/codegen/codegen.ts +2 -2
- package/src/tests/types/testnet/0xdee9.ts +1890 -173
package/dist/cjs/builtin/0x3.js
CHANGED
|
@@ -65,6 +65,29 @@ var stake_subsidy;
|
|
|
65
65
|
})(StakeSubsidy = stake_subsidy.StakeSubsidy || (stake_subsidy.StakeSubsidy = {}));
|
|
66
66
|
let builder;
|
|
67
67
|
(function (builder) {
|
|
68
|
+
function advanceEpoch(tx, args) {
|
|
69
|
+
const _args = [];
|
|
70
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
71
|
+
// @ts-ignore
|
|
72
|
+
return tx.moveCall({
|
|
73
|
+
target: "0x3::stake_subsidy::advance_epoch",
|
|
74
|
+
arguments: _args,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
builder.advanceEpoch = advanceEpoch;
|
|
78
|
+
function create(tx, args) {
|
|
79
|
+
const _args = [];
|
|
80
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
81
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
82
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
83
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[3], tx));
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
return tx.moveCall({
|
|
86
|
+
target: "0x3::stake_subsidy::create",
|
|
87
|
+
arguments: _args,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
builder.create = create;
|
|
68
91
|
function currentEpochSubsidyAmount(tx, args) {
|
|
69
92
|
const _args = [];
|
|
70
93
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -78,6 +101,26 @@ var stake_subsidy;
|
|
|
78
101
|
})(builder = stake_subsidy.builder || (stake_subsidy.builder = {}));
|
|
79
102
|
let view;
|
|
80
103
|
(function (view) {
|
|
104
|
+
async function advanceEpoch(client, args) {
|
|
105
|
+
const tx = new transactions_1.TransactionBlock();
|
|
106
|
+
builder.advanceEpoch(tx, args);
|
|
107
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
108
|
+
transactionBlock: tx,
|
|
109
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
110
|
+
});
|
|
111
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
112
|
+
}
|
|
113
|
+
view.advanceEpoch = advanceEpoch;
|
|
114
|
+
async function create(client, args) {
|
|
115
|
+
const tx = new transactions_1.TransactionBlock();
|
|
116
|
+
builder.create(tx, args);
|
|
117
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
118
|
+
transactionBlock: tx,
|
|
119
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
120
|
+
});
|
|
121
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
122
|
+
}
|
|
123
|
+
view.create = create;
|
|
81
124
|
async function currentEpochSubsidyAmount(client, args) {
|
|
82
125
|
const tx = new transactions_1.TransactionBlock();
|
|
83
126
|
builder.currentEpochSubsidyAmount(tx, args);
|
|
@@ -121,6 +164,49 @@ var staking_pool;
|
|
|
121
164
|
})(StakingPool = staking_pool.StakingPool || (staking_pool.StakingPool = {}));
|
|
122
165
|
let builder;
|
|
123
166
|
(function (builder) {
|
|
167
|
+
function activateStakingPool(tx, args) {
|
|
168
|
+
const _args = [];
|
|
169
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
170
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
171
|
+
// @ts-ignore
|
|
172
|
+
return tx.moveCall({
|
|
173
|
+
target: "0x3::staking_pool::activate_staking_pool",
|
|
174
|
+
arguments: _args,
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
builder.activateStakingPool = activateStakingPool;
|
|
178
|
+
function deactivateStakingPool(tx, args) {
|
|
179
|
+
const _args = [];
|
|
180
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
181
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
182
|
+
// @ts-ignore
|
|
183
|
+
return tx.moveCall({
|
|
184
|
+
target: "0x3::staking_pool::deactivate_staking_pool",
|
|
185
|
+
arguments: _args,
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
builder.deactivateStakingPool = deactivateStakingPool;
|
|
189
|
+
function depositRewards(tx, args) {
|
|
190
|
+
const _args = [];
|
|
191
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
192
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
193
|
+
// @ts-ignore
|
|
194
|
+
return tx.moveCall({
|
|
195
|
+
target: "0x3::staking_pool::deposit_rewards",
|
|
196
|
+
arguments: _args,
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
builder.depositRewards = depositRewards;
|
|
200
|
+
function exchangeRates(tx, args) {
|
|
201
|
+
const _args = [];
|
|
202
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
203
|
+
// @ts-ignore
|
|
204
|
+
return tx.moveCall({
|
|
205
|
+
target: "0x3::staking_pool::exchange_rates",
|
|
206
|
+
arguments: _args,
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
builder.exchangeRates = exchangeRates;
|
|
124
210
|
function isEqualStakingMetadata(tx, args) {
|
|
125
211
|
const _args = [];
|
|
126
212
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -163,6 +249,15 @@ var staking_pool;
|
|
|
163
249
|
});
|
|
164
250
|
}
|
|
165
251
|
builder.joinStakedSui = joinStakedSui;
|
|
252
|
+
function new_(tx, args) {
|
|
253
|
+
const _args = [];
|
|
254
|
+
// @ts-ignore
|
|
255
|
+
return tx.moveCall({
|
|
256
|
+
target: "0x3::staking_pool::new",
|
|
257
|
+
arguments: _args,
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
builder.new_ = new_;
|
|
166
261
|
function pendingStakeAmount(tx, args) {
|
|
167
262
|
const _args = [];
|
|
168
263
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -214,6 +309,49 @@ var staking_pool;
|
|
|
214
309
|
});
|
|
215
310
|
}
|
|
216
311
|
builder.poolTokenExchangeRateAtEpoch = poolTokenExchangeRateAtEpoch;
|
|
312
|
+
function processPendingStake(tx, args) {
|
|
313
|
+
const _args = [];
|
|
314
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
315
|
+
// @ts-ignore
|
|
316
|
+
return tx.moveCall({
|
|
317
|
+
target: "0x3::staking_pool::process_pending_stake",
|
|
318
|
+
arguments: _args,
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
builder.processPendingStake = processPendingStake;
|
|
322
|
+
function processPendingStakesAndWithdraws(tx, args) {
|
|
323
|
+
const _args = [];
|
|
324
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
325
|
+
// @ts-ignore
|
|
326
|
+
return tx.moveCall({
|
|
327
|
+
target: "0x3::staking_pool::process_pending_stakes_and_withdraws",
|
|
328
|
+
arguments: _args,
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
builder.processPendingStakesAndWithdraws = processPendingStakesAndWithdraws;
|
|
332
|
+
function requestAddStake(tx, args) {
|
|
333
|
+
const _args = [];
|
|
334
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
335
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
336
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
337
|
+
// @ts-ignore
|
|
338
|
+
return tx.moveCall({
|
|
339
|
+
target: "0x3::staking_pool::request_add_stake",
|
|
340
|
+
arguments: _args,
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
builder.requestAddStake = requestAddStake;
|
|
344
|
+
function requestWithdrawStake(tx, args) {
|
|
345
|
+
const _args = [];
|
|
346
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
347
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
348
|
+
// @ts-ignore
|
|
349
|
+
return tx.moveCall({
|
|
350
|
+
target: "0x3::staking_pool::request_withdraw_stake",
|
|
351
|
+
arguments: _args,
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
builder.requestWithdrawStake = requestWithdrawStake;
|
|
217
355
|
function split(tx, args) {
|
|
218
356
|
const _args = [];
|
|
219
357
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -276,9 +414,60 @@ var staking_pool;
|
|
|
276
414
|
});
|
|
277
415
|
}
|
|
278
416
|
builder.suiBalance = suiBalance;
|
|
417
|
+
function withdrawFromPrincipal(tx, args) {
|
|
418
|
+
const _args = [];
|
|
419
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
420
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
421
|
+
// @ts-ignore
|
|
422
|
+
return tx.moveCall({
|
|
423
|
+
target: "0x3::staking_pool::withdraw_from_principal",
|
|
424
|
+
arguments: _args,
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
builder.withdrawFromPrincipal = withdrawFromPrincipal;
|
|
279
428
|
})(builder = staking_pool.builder || (staking_pool.builder = {}));
|
|
280
429
|
let view;
|
|
281
430
|
(function (view) {
|
|
431
|
+
async function activateStakingPool(client, args) {
|
|
432
|
+
const tx = new transactions_1.TransactionBlock();
|
|
433
|
+
builder.activateStakingPool(tx, args);
|
|
434
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
435
|
+
transactionBlock: tx,
|
|
436
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
437
|
+
});
|
|
438
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
439
|
+
}
|
|
440
|
+
view.activateStakingPool = activateStakingPool;
|
|
441
|
+
async function deactivateStakingPool(client, args) {
|
|
442
|
+
const tx = new transactions_1.TransactionBlock();
|
|
443
|
+
builder.deactivateStakingPool(tx, args);
|
|
444
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
445
|
+
transactionBlock: tx,
|
|
446
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
447
|
+
});
|
|
448
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
449
|
+
}
|
|
450
|
+
view.deactivateStakingPool = deactivateStakingPool;
|
|
451
|
+
async function depositRewards(client, args) {
|
|
452
|
+
const tx = new transactions_1.TransactionBlock();
|
|
453
|
+
builder.depositRewards(tx, args);
|
|
454
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
455
|
+
transactionBlock: tx,
|
|
456
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
457
|
+
});
|
|
458
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
459
|
+
}
|
|
460
|
+
view.depositRewards = depositRewards;
|
|
461
|
+
async function exchangeRates(client, args) {
|
|
462
|
+
const tx = new transactions_1.TransactionBlock();
|
|
463
|
+
builder.exchangeRates(tx, args);
|
|
464
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
465
|
+
transactionBlock: tx,
|
|
466
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
467
|
+
});
|
|
468
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
469
|
+
}
|
|
470
|
+
view.exchangeRates = exchangeRates;
|
|
282
471
|
async function isEqualStakingMetadata(client, args) {
|
|
283
472
|
const tx = new transactions_1.TransactionBlock();
|
|
284
473
|
builder.isEqualStakingMetadata(tx, args);
|
|
@@ -319,6 +508,16 @@ var staking_pool;
|
|
|
319
508
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
320
509
|
}
|
|
321
510
|
view.joinStakedSui = joinStakedSui;
|
|
511
|
+
async function new_(client, args) {
|
|
512
|
+
const tx = new transactions_1.TransactionBlock();
|
|
513
|
+
builder.new_(tx, args);
|
|
514
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
515
|
+
transactionBlock: tx,
|
|
516
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
517
|
+
});
|
|
518
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
519
|
+
}
|
|
520
|
+
view.new_ = new_;
|
|
322
521
|
async function pendingStakeAmount(client, args) {
|
|
323
522
|
const tx = new transactions_1.TransactionBlock();
|
|
324
523
|
builder.pendingStakeAmount(tx, args);
|
|
@@ -369,6 +568,46 @@ var staking_pool;
|
|
|
369
568
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
370
569
|
}
|
|
371
570
|
view.poolTokenExchangeRateAtEpoch = poolTokenExchangeRateAtEpoch;
|
|
571
|
+
async function processPendingStake(client, args) {
|
|
572
|
+
const tx = new transactions_1.TransactionBlock();
|
|
573
|
+
builder.processPendingStake(tx, args);
|
|
574
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
575
|
+
transactionBlock: tx,
|
|
576
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
577
|
+
});
|
|
578
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
579
|
+
}
|
|
580
|
+
view.processPendingStake = processPendingStake;
|
|
581
|
+
async function processPendingStakesAndWithdraws(client, args) {
|
|
582
|
+
const tx = new transactions_1.TransactionBlock();
|
|
583
|
+
builder.processPendingStakesAndWithdraws(tx, args);
|
|
584
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
585
|
+
transactionBlock: tx,
|
|
586
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
587
|
+
});
|
|
588
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
589
|
+
}
|
|
590
|
+
view.processPendingStakesAndWithdraws = processPendingStakesAndWithdraws;
|
|
591
|
+
async function requestAddStake(client, args) {
|
|
592
|
+
const tx = new transactions_1.TransactionBlock();
|
|
593
|
+
builder.requestAddStake(tx, args);
|
|
594
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
595
|
+
transactionBlock: tx,
|
|
596
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
597
|
+
});
|
|
598
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
599
|
+
}
|
|
600
|
+
view.requestAddStake = requestAddStake;
|
|
601
|
+
async function requestWithdrawStake(client, args) {
|
|
602
|
+
const tx = new transactions_1.TransactionBlock();
|
|
603
|
+
builder.requestWithdrawStake(tx, args);
|
|
604
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
605
|
+
transactionBlock: tx,
|
|
606
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
607
|
+
});
|
|
608
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
609
|
+
}
|
|
610
|
+
view.requestWithdrawStake = requestWithdrawStake;
|
|
372
611
|
async function split(client, args) {
|
|
373
612
|
const tx = new transactions_1.TransactionBlock();
|
|
374
613
|
builder.split(tx, args);
|
|
@@ -429,6 +668,16 @@ var staking_pool;
|
|
|
429
668
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
430
669
|
}
|
|
431
670
|
view.suiBalance = suiBalance;
|
|
671
|
+
async function withdrawFromPrincipal(client, args) {
|
|
672
|
+
const tx = new transactions_1.TransactionBlock();
|
|
673
|
+
builder.withdrawFromPrincipal(tx, args);
|
|
674
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
675
|
+
transactionBlock: tx,
|
|
676
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
677
|
+
});
|
|
678
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
679
|
+
}
|
|
680
|
+
view.withdrawFromPrincipal = withdrawFromPrincipal;
|
|
432
681
|
})(view = staking_pool.view || (staking_pool.view = {}));
|
|
433
682
|
})(staking_pool || (exports.staking_pool = staking_pool = {}));
|
|
434
683
|
var storage_fund;
|
|
@@ -444,6 +693,31 @@ var storage_fund;
|
|
|
444
693
|
})(StorageFund = storage_fund.StorageFund || (storage_fund.StorageFund = {}));
|
|
445
694
|
let builder;
|
|
446
695
|
(function (builder) {
|
|
696
|
+
function advanceEpoch(tx, args) {
|
|
697
|
+
const _args = [];
|
|
698
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
699
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
700
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
701
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[3], tx));
|
|
702
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[4], tx));
|
|
703
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[5], tx));
|
|
704
|
+
// @ts-ignore
|
|
705
|
+
return tx.moveCall({
|
|
706
|
+
target: "0x3::storage_fund::advance_epoch",
|
|
707
|
+
arguments: _args,
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
builder.advanceEpoch = advanceEpoch;
|
|
711
|
+
function new_(tx, args) {
|
|
712
|
+
const _args = [];
|
|
713
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
714
|
+
// @ts-ignore
|
|
715
|
+
return tx.moveCall({
|
|
716
|
+
target: "0x3::storage_fund::new",
|
|
717
|
+
arguments: _args,
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
builder.new_ = new_;
|
|
447
721
|
function totalBalance(tx, args) {
|
|
448
722
|
const _args = [];
|
|
449
723
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -467,6 +741,26 @@ var storage_fund;
|
|
|
467
741
|
})(builder = storage_fund.builder || (storage_fund.builder = {}));
|
|
468
742
|
let view;
|
|
469
743
|
(function (view) {
|
|
744
|
+
async function advanceEpoch(client, args) {
|
|
745
|
+
const tx = new transactions_1.TransactionBlock();
|
|
746
|
+
builder.advanceEpoch(tx, args);
|
|
747
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
748
|
+
transactionBlock: tx,
|
|
749
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
750
|
+
});
|
|
751
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
752
|
+
}
|
|
753
|
+
view.advanceEpoch = advanceEpoch;
|
|
754
|
+
async function new_(client, args) {
|
|
755
|
+
const tx = new transactions_1.TransactionBlock();
|
|
756
|
+
builder.new_(tx, args);
|
|
757
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
758
|
+
transactionBlock: tx,
|
|
759
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
760
|
+
});
|
|
761
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
762
|
+
}
|
|
763
|
+
view.new_ = new_;
|
|
470
764
|
async function totalBalance(client, args) {
|
|
471
765
|
const tx = new transactions_1.TransactionBlock();
|
|
472
766
|
builder.totalBalance(tx, args);
|
|
@@ -512,6 +806,22 @@ var sui_system;
|
|
|
512
806
|
});
|
|
513
807
|
}
|
|
514
808
|
builder.activeValidatorAddresses = activeValidatorAddresses;
|
|
809
|
+
function create(tx, args) {
|
|
810
|
+
const _args = [];
|
|
811
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
812
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
813
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
814
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[3], tx));
|
|
815
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[4], tx));
|
|
816
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[5], tx));
|
|
817
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[6], tx));
|
|
818
|
+
// @ts-ignore
|
|
819
|
+
return tx.moveCall({
|
|
820
|
+
target: "0x3::sui_system::create",
|
|
821
|
+
arguments: _args,
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
builder.create = create;
|
|
515
825
|
function poolExchangeRates(tx, args) {
|
|
516
826
|
const _args = [];
|
|
517
827
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -929,6 +1239,16 @@ var sui_system;
|
|
|
929
1239
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
930
1240
|
}
|
|
931
1241
|
view.activeValidatorAddresses = activeValidatorAddresses;
|
|
1242
|
+
async function create(client, args) {
|
|
1243
|
+
const tx = new transactions_1.TransactionBlock();
|
|
1244
|
+
builder.create(tx, args);
|
|
1245
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1246
|
+
transactionBlock: tx,
|
|
1247
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
1248
|
+
});
|
|
1249
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1250
|
+
}
|
|
1251
|
+
view.create = create;
|
|
932
1252
|
async function poolExchangeRates(client, args) {
|
|
933
1253
|
const tx = new transactions_1.TransactionBlock();
|
|
934
1254
|
builder.poolExchangeRates(tx, args);
|
|
@@ -1328,753 +1648,2414 @@ var sui_system_state_inner;
|
|
|
1328
1648
|
}
|
|
1329
1649
|
SystemParametersV2.type = type;
|
|
1330
1650
|
})(SystemParametersV2 = sui_system_state_inner.SystemParametersV2 || (sui_system_state_inner.SystemParametersV2 = {}));
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1651
|
+
let builder;
|
|
1652
|
+
(function (builder) {
|
|
1653
|
+
function activeValidatorAddresses(tx, args) {
|
|
1654
|
+
const _args = [];
|
|
1655
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1656
|
+
// @ts-ignore
|
|
1657
|
+
return tx.moveCall({
|
|
1658
|
+
target: "0x3::sui_system_state_inner::active_validator_addresses",
|
|
1659
|
+
arguments: _args,
|
|
1660
|
+
});
|
|
1340
1661
|
}
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
let UnstakingRequestEvent;
|
|
1344
|
-
(function (UnstakingRequestEvent) {
|
|
1345
|
-
UnstakingRequestEvent.TYPE_QNAME = "0x3::validator::UnstakingRequestEvent";
|
|
1346
|
-
const TYPE = new move_1.TypeDescriptor(UnstakingRequestEvent.TYPE_QNAME);
|
|
1347
|
-
function type() {
|
|
1348
|
-
return TYPE.apply();
|
|
1349
|
-
}
|
|
1350
|
-
UnstakingRequestEvent.type = type;
|
|
1351
|
-
})(UnstakingRequestEvent = validator.UnstakingRequestEvent || (validator.UnstakingRequestEvent = {}));
|
|
1352
|
-
let Validator;
|
|
1353
|
-
(function (Validator) {
|
|
1354
|
-
Validator.TYPE_QNAME = "0x3::validator::Validator";
|
|
1355
|
-
const TYPE = new move_1.TypeDescriptor(Validator.TYPE_QNAME);
|
|
1356
|
-
function type() {
|
|
1357
|
-
return TYPE.apply();
|
|
1358
|
-
}
|
|
1359
|
-
Validator.type = type;
|
|
1360
|
-
})(Validator = validator.Validator || (validator.Validator = {}));
|
|
1361
|
-
let ValidatorMetadata;
|
|
1362
|
-
(function (ValidatorMetadata) {
|
|
1363
|
-
ValidatorMetadata.TYPE_QNAME = "0x3::validator::ValidatorMetadata";
|
|
1364
|
-
const TYPE = new move_1.TypeDescriptor(ValidatorMetadata.TYPE_QNAME);
|
|
1365
|
-
function type() {
|
|
1366
|
-
return TYPE.apply();
|
|
1367
|
-
}
|
|
1368
|
-
ValidatorMetadata.type = type;
|
|
1369
|
-
})(ValidatorMetadata = validator.ValidatorMetadata || (validator.ValidatorMetadata = {}));
|
|
1370
|
-
let builder;
|
|
1371
|
-
(function (builder) {
|
|
1372
|
-
function commissionRate(tx, args) {
|
|
1662
|
+
builder.activeValidatorAddresses = activeValidatorAddresses;
|
|
1663
|
+
function advanceEpoch(tx, args) {
|
|
1373
1664
|
const _args = [];
|
|
1374
1665
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1666
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1667
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
1668
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[3], tx));
|
|
1669
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[4], tx));
|
|
1670
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[5], tx));
|
|
1671
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[6], tx));
|
|
1672
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[7], tx));
|
|
1673
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[8], tx));
|
|
1674
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[9], tx));
|
|
1375
1675
|
// @ts-ignore
|
|
1376
1676
|
return tx.moveCall({
|
|
1377
|
-
target: "0x3::
|
|
1677
|
+
target: "0x3::sui_system_state_inner::advance_epoch",
|
|
1378
1678
|
arguments: _args,
|
|
1379
1679
|
});
|
|
1380
1680
|
}
|
|
1381
|
-
builder.
|
|
1382
|
-
function
|
|
1681
|
+
builder.advanceEpoch = advanceEpoch;
|
|
1682
|
+
function create(tx, args) {
|
|
1383
1683
|
const _args = [];
|
|
1384
|
-
_args.push((0, sui_3.
|
|
1684
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
|
|
1685
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1686
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
1687
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[3], tx));
|
|
1688
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[4], tx));
|
|
1689
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[5], tx));
|
|
1385
1690
|
// @ts-ignore
|
|
1386
1691
|
return tx.moveCall({
|
|
1387
|
-
target: "0x3::
|
|
1692
|
+
target: "0x3::sui_system_state_inner::create",
|
|
1388
1693
|
arguments: _args,
|
|
1389
1694
|
});
|
|
1390
1695
|
}
|
|
1391
|
-
builder.
|
|
1392
|
-
function
|
|
1696
|
+
builder.create = create;
|
|
1697
|
+
function createSystemParameters(tx, args) {
|
|
1393
1698
|
const _args = [];
|
|
1394
|
-
_args.push((0, sui_3.
|
|
1699
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
1700
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1701
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
1702
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[3], tx));
|
|
1703
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[4], tx));
|
|
1704
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[5], tx));
|
|
1705
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[6], tx));
|
|
1395
1706
|
// @ts-ignore
|
|
1396
1707
|
return tx.moveCall({
|
|
1397
|
-
target: "0x3::
|
|
1708
|
+
target: "0x3::sui_system_state_inner::create_system_parameters",
|
|
1398
1709
|
arguments: _args,
|
|
1399
1710
|
});
|
|
1400
1711
|
}
|
|
1401
|
-
builder.
|
|
1402
|
-
function
|
|
1712
|
+
builder.createSystemParameters = createSystemParameters;
|
|
1713
|
+
function epoch(tx, args) {
|
|
1403
1714
|
const _args = [];
|
|
1404
1715
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1405
1716
|
// @ts-ignore
|
|
1406
1717
|
return tx.moveCall({
|
|
1407
|
-
target: "0x3::
|
|
1718
|
+
target: "0x3::sui_system_state_inner::epoch",
|
|
1408
1719
|
arguments: _args,
|
|
1409
1720
|
});
|
|
1410
1721
|
}
|
|
1411
|
-
builder.
|
|
1412
|
-
function
|
|
1722
|
+
builder.epoch = epoch;
|
|
1723
|
+
function epochStartTimestampMs(tx, args) {
|
|
1413
1724
|
const _args = [];
|
|
1414
1725
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1415
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
1416
1726
|
// @ts-ignore
|
|
1417
1727
|
return tx.moveCall({
|
|
1418
|
-
target: "0x3::
|
|
1728
|
+
target: "0x3::sui_system_state_inner::epoch_start_timestamp_ms",
|
|
1419
1729
|
arguments: _args,
|
|
1420
1730
|
});
|
|
1421
1731
|
}
|
|
1422
|
-
builder.
|
|
1423
|
-
function
|
|
1732
|
+
builder.epochStartTimestampMs = epochStartTimestampMs;
|
|
1733
|
+
function genesisSystemStateVersion(tx, args) {
|
|
1424
1734
|
const _args = [];
|
|
1425
|
-
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1426
1735
|
// @ts-ignore
|
|
1427
1736
|
return tx.moveCall({
|
|
1428
|
-
target: "0x3::
|
|
1737
|
+
target: "0x3::sui_system_state_inner::genesis_system_state_version",
|
|
1429
1738
|
arguments: _args,
|
|
1430
1739
|
});
|
|
1431
1740
|
}
|
|
1432
|
-
builder.
|
|
1433
|
-
function
|
|
1741
|
+
builder.genesisSystemStateVersion = genesisSystemStateVersion;
|
|
1742
|
+
function getReportersOf(tx, args) {
|
|
1434
1743
|
const _args = [];
|
|
1435
1744
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1745
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1436
1746
|
// @ts-ignore
|
|
1437
1747
|
return tx.moveCall({
|
|
1438
|
-
target: "0x3::
|
|
1748
|
+
target: "0x3::sui_system_state_inner::get_reporters_of",
|
|
1439
1749
|
arguments: _args,
|
|
1440
1750
|
});
|
|
1441
1751
|
}
|
|
1442
|
-
builder.
|
|
1443
|
-
function
|
|
1752
|
+
builder.getReportersOf = getReportersOf;
|
|
1753
|
+
function getStorageFundObjectRebates(tx, args) {
|
|
1444
1754
|
const _args = [];
|
|
1445
1755
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1446
1756
|
// @ts-ignore
|
|
1447
1757
|
return tx.moveCall({
|
|
1448
|
-
target: "0x3::
|
|
1758
|
+
target: "0x3::sui_system_state_inner::get_storage_fund_object_rebates",
|
|
1449
1759
|
arguments: _args,
|
|
1450
1760
|
});
|
|
1451
1761
|
}
|
|
1452
|
-
builder.
|
|
1453
|
-
function
|
|
1762
|
+
builder.getStorageFundObjectRebates = getStorageFundObjectRebates;
|
|
1763
|
+
function getStorageFundTotalBalance(tx, args) {
|
|
1454
1764
|
const _args = [];
|
|
1455
1765
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1456
1766
|
// @ts-ignore
|
|
1457
1767
|
return tx.moveCall({
|
|
1458
|
-
target: "0x3::
|
|
1768
|
+
target: "0x3::sui_system_state_inner::get_storage_fund_total_balance",
|
|
1459
1769
|
arguments: _args,
|
|
1460
1770
|
});
|
|
1461
1771
|
}
|
|
1462
|
-
builder.
|
|
1463
|
-
function
|
|
1772
|
+
builder.getStorageFundTotalBalance = getStorageFundTotalBalance;
|
|
1773
|
+
function poolExchangeRates(tx, args) {
|
|
1464
1774
|
const _args = [];
|
|
1465
1775
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1776
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
1466
1777
|
// @ts-ignore
|
|
1467
1778
|
return tx.moveCall({
|
|
1468
|
-
target: "0x3::
|
|
1779
|
+
target: "0x3::sui_system_state_inner::pool_exchange_rates",
|
|
1469
1780
|
arguments: _args,
|
|
1470
1781
|
});
|
|
1471
1782
|
}
|
|
1472
|
-
builder.
|
|
1473
|
-
function
|
|
1783
|
+
builder.poolExchangeRates = poolExchangeRates;
|
|
1784
|
+
function protocolVersion(tx, args) {
|
|
1474
1785
|
const _args = [];
|
|
1475
1786
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1476
1787
|
// @ts-ignore
|
|
1477
1788
|
return tx.moveCall({
|
|
1478
|
-
target: "0x3::
|
|
1789
|
+
target: "0x3::sui_system_state_inner::protocol_version",
|
|
1479
1790
|
arguments: _args,
|
|
1480
1791
|
});
|
|
1481
1792
|
}
|
|
1482
|
-
builder.
|
|
1483
|
-
function
|
|
1793
|
+
builder.protocolVersion = protocolVersion;
|
|
1794
|
+
function reportValidator(tx, args) {
|
|
1484
1795
|
const _args = [];
|
|
1485
1796
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1797
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
1798
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
1486
1799
|
// @ts-ignore
|
|
1487
1800
|
return tx.moveCall({
|
|
1488
|
-
target: "0x3::
|
|
1801
|
+
target: "0x3::sui_system_state_inner::report_validator",
|
|
1489
1802
|
arguments: _args,
|
|
1490
1803
|
});
|
|
1491
1804
|
}
|
|
1492
|
-
builder.
|
|
1493
|
-
function
|
|
1805
|
+
builder.reportValidator = reportValidator;
|
|
1806
|
+
function requestAddStake(tx, args) {
|
|
1494
1807
|
const _args = [];
|
|
1495
1808
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1809
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1810
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
1496
1811
|
// @ts-ignore
|
|
1497
1812
|
return tx.moveCall({
|
|
1498
|
-
target: "0x3::
|
|
1813
|
+
target: "0x3::sui_system_state_inner::request_add_stake",
|
|
1499
1814
|
arguments: _args,
|
|
1500
1815
|
});
|
|
1501
1816
|
}
|
|
1502
|
-
builder.
|
|
1503
|
-
function
|
|
1817
|
+
builder.requestAddStake = requestAddStake;
|
|
1818
|
+
function requestAddStakeMulCoin(tx, args) {
|
|
1504
1819
|
const _args = [];
|
|
1505
1820
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1821
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
1822
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
1823
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[3], tx));
|
|
1506
1824
|
// @ts-ignore
|
|
1507
1825
|
return tx.moveCall({
|
|
1508
|
-
target: "0x3::
|
|
1826
|
+
target: "0x3::sui_system_state_inner::request_add_stake_mul_coin",
|
|
1509
1827
|
arguments: _args,
|
|
1510
1828
|
});
|
|
1511
1829
|
}
|
|
1512
|
-
builder.
|
|
1513
|
-
function
|
|
1830
|
+
builder.requestAddStakeMulCoin = requestAddStakeMulCoin;
|
|
1831
|
+
function requestAddValidator(tx, args) {
|
|
1514
1832
|
const _args = [];
|
|
1515
1833
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1516
1834
|
// @ts-ignore
|
|
1517
1835
|
return tx.moveCall({
|
|
1518
|
-
target: "0x3::
|
|
1836
|
+
target: "0x3::sui_system_state_inner::request_add_validator",
|
|
1519
1837
|
arguments: _args,
|
|
1520
1838
|
});
|
|
1521
1839
|
}
|
|
1522
|
-
builder.
|
|
1523
|
-
function
|
|
1840
|
+
builder.requestAddValidator = requestAddValidator;
|
|
1841
|
+
function requestAddValidatorCandidate(tx, args) {
|
|
1524
1842
|
const _args = [];
|
|
1525
1843
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1844
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
1845
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[2], tx));
|
|
1846
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[3], tx));
|
|
1847
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[4], tx));
|
|
1848
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[5], tx));
|
|
1849
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[6], tx));
|
|
1850
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[7], tx));
|
|
1851
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[8], tx));
|
|
1852
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[9], tx));
|
|
1853
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[10], tx));
|
|
1854
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[11], tx));
|
|
1855
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[12], tx));
|
|
1856
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[13], tx));
|
|
1857
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[14], tx));
|
|
1526
1858
|
// @ts-ignore
|
|
1527
1859
|
return tx.moveCall({
|
|
1528
|
-
target: "0x3::
|
|
1860
|
+
target: "0x3::sui_system_state_inner::request_add_validator_candidate",
|
|
1529
1861
|
arguments: _args,
|
|
1530
1862
|
});
|
|
1531
1863
|
}
|
|
1532
|
-
builder.
|
|
1533
|
-
function
|
|
1864
|
+
builder.requestAddValidatorCandidate = requestAddValidatorCandidate;
|
|
1865
|
+
function requestRemoveValidator(tx, args) {
|
|
1534
1866
|
const _args = [];
|
|
1535
1867
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1536
1868
|
// @ts-ignore
|
|
1537
1869
|
return tx.moveCall({
|
|
1538
|
-
target: "0x3::
|
|
1870
|
+
target: "0x3::sui_system_state_inner::request_remove_validator",
|
|
1539
1871
|
arguments: _args,
|
|
1540
1872
|
});
|
|
1541
1873
|
}
|
|
1542
|
-
builder.
|
|
1543
|
-
function
|
|
1874
|
+
builder.requestRemoveValidator = requestRemoveValidator;
|
|
1875
|
+
function requestRemoveValidatorCandidate(tx, args) {
|
|
1544
1876
|
const _args = [];
|
|
1545
1877
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1546
1878
|
// @ts-ignore
|
|
1547
1879
|
return tx.moveCall({
|
|
1548
|
-
target: "0x3::
|
|
1880
|
+
target: "0x3::sui_system_state_inner::request_remove_validator_candidate",
|
|
1549
1881
|
arguments: _args,
|
|
1550
1882
|
});
|
|
1551
1883
|
}
|
|
1552
|
-
builder.
|
|
1553
|
-
function
|
|
1884
|
+
builder.requestRemoveValidatorCandidate = requestRemoveValidatorCandidate;
|
|
1885
|
+
function requestSetCommissionRate(tx, args) {
|
|
1554
1886
|
const _args = [];
|
|
1555
1887
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1888
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1556
1889
|
// @ts-ignore
|
|
1557
1890
|
return tx.moveCall({
|
|
1558
|
-
target: "0x3::
|
|
1891
|
+
target: "0x3::sui_system_state_inner::request_set_commission_rate",
|
|
1559
1892
|
arguments: _args,
|
|
1560
1893
|
});
|
|
1561
1894
|
}
|
|
1562
|
-
builder.
|
|
1563
|
-
function
|
|
1895
|
+
builder.requestSetCommissionRate = requestSetCommissionRate;
|
|
1896
|
+
function requestSetGasPrice(tx, args) {
|
|
1564
1897
|
const _args = [];
|
|
1565
1898
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1899
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
1900
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
1566
1901
|
// @ts-ignore
|
|
1567
1902
|
return tx.moveCall({
|
|
1568
|
-
target: "0x3::
|
|
1903
|
+
target: "0x3::sui_system_state_inner::request_set_gas_price",
|
|
1569
1904
|
arguments: _args,
|
|
1570
1905
|
});
|
|
1571
1906
|
}
|
|
1572
|
-
builder.
|
|
1573
|
-
function
|
|
1907
|
+
builder.requestSetGasPrice = requestSetGasPrice;
|
|
1908
|
+
function requestWithdrawStake(tx, args) {
|
|
1574
1909
|
const _args = [];
|
|
1575
1910
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1911
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1576
1912
|
// @ts-ignore
|
|
1577
1913
|
return tx.moveCall({
|
|
1578
|
-
target: "0x3::
|
|
1914
|
+
target: "0x3::sui_system_state_inner::request_withdraw_stake",
|
|
1579
1915
|
arguments: _args,
|
|
1580
1916
|
});
|
|
1581
1917
|
}
|
|
1582
|
-
builder.
|
|
1583
|
-
function
|
|
1918
|
+
builder.requestWithdrawStake = requestWithdrawStake;
|
|
1919
|
+
function rotateOperationCap(tx, args) {
|
|
1584
1920
|
const _args = [];
|
|
1585
1921
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1586
1922
|
// @ts-ignore
|
|
1587
1923
|
return tx.moveCall({
|
|
1588
|
-
target: "0x3::
|
|
1924
|
+
target: "0x3::sui_system_state_inner::rotate_operation_cap",
|
|
1589
1925
|
arguments: _args,
|
|
1590
1926
|
});
|
|
1591
1927
|
}
|
|
1592
|
-
builder.
|
|
1593
|
-
function
|
|
1928
|
+
builder.rotateOperationCap = rotateOperationCap;
|
|
1929
|
+
function setCandidateValidatorCommissionRate(tx, args) {
|
|
1594
1930
|
const _args = [];
|
|
1595
1931
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1932
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
1596
1933
|
// @ts-ignore
|
|
1597
1934
|
return tx.moveCall({
|
|
1598
|
-
target: "0x3::
|
|
1935
|
+
target: "0x3::sui_system_state_inner::set_candidate_validator_commission_rate",
|
|
1599
1936
|
arguments: _args,
|
|
1600
1937
|
});
|
|
1601
1938
|
}
|
|
1602
|
-
builder.
|
|
1603
|
-
function
|
|
1939
|
+
builder.setCandidateValidatorCommissionRate = setCandidateValidatorCommissionRate;
|
|
1940
|
+
function setCandidateValidatorGasPrice(tx, args) {
|
|
1604
1941
|
const _args = [];
|
|
1605
1942
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1606
|
-
_args.push((0, sui_3.
|
|
1943
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
1944
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
1607
1945
|
// @ts-ignore
|
|
1608
1946
|
return tx.moveCall({
|
|
1609
|
-
target: "0x3::
|
|
1947
|
+
target: "0x3::sui_system_state_inner::set_candidate_validator_gas_price",
|
|
1610
1948
|
arguments: _args,
|
|
1611
1949
|
});
|
|
1612
1950
|
}
|
|
1613
|
-
builder.
|
|
1614
|
-
function
|
|
1951
|
+
builder.setCandidateValidatorGasPrice = setCandidateValidatorGasPrice;
|
|
1952
|
+
function systemStateVersion(tx, args) {
|
|
1615
1953
|
const _args = [];
|
|
1616
1954
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1617
1955
|
// @ts-ignore
|
|
1618
1956
|
return tx.moveCall({
|
|
1619
|
-
target: "0x3::
|
|
1957
|
+
target: "0x3::sui_system_state_inner::system_state_version",
|
|
1620
1958
|
arguments: _args,
|
|
1621
1959
|
});
|
|
1622
1960
|
}
|
|
1623
|
-
builder.
|
|
1624
|
-
function
|
|
1961
|
+
builder.systemStateVersion = systemStateVersion;
|
|
1962
|
+
function undoReportValidator(tx, args) {
|
|
1625
1963
|
const _args = [];
|
|
1626
1964
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1965
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
1966
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
1627
1967
|
// @ts-ignore
|
|
1628
1968
|
return tx.moveCall({
|
|
1629
|
-
target: "0x3::
|
|
1969
|
+
target: "0x3::sui_system_state_inner::undo_report_validator",
|
|
1630
1970
|
arguments: _args,
|
|
1631
1971
|
});
|
|
1632
1972
|
}
|
|
1633
|
-
builder.
|
|
1634
|
-
function
|
|
1973
|
+
builder.undoReportValidator = undoReportValidator;
|
|
1974
|
+
function updateCandidateValidatorNetworkAddress(tx, args) {
|
|
1635
1975
|
const _args = [];
|
|
1636
1976
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1977
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
1637
1978
|
// @ts-ignore
|
|
1638
1979
|
return tx.moveCall({
|
|
1639
|
-
target: "0x3::
|
|
1980
|
+
target: "0x3::sui_system_state_inner::update_candidate_validator_network_address",
|
|
1640
1981
|
arguments: _args,
|
|
1641
1982
|
});
|
|
1642
1983
|
}
|
|
1643
|
-
builder.
|
|
1644
|
-
function
|
|
1984
|
+
builder.updateCandidateValidatorNetworkAddress = updateCandidateValidatorNetworkAddress;
|
|
1985
|
+
function updateCandidateValidatorNetworkPubkey(tx, args) {
|
|
1645
1986
|
const _args = [];
|
|
1646
1987
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1988
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
1647
1989
|
// @ts-ignore
|
|
1648
1990
|
return tx.moveCall({
|
|
1649
|
-
target: "0x3::
|
|
1991
|
+
target: "0x3::sui_system_state_inner::update_candidate_validator_network_pubkey",
|
|
1650
1992
|
arguments: _args,
|
|
1651
1993
|
});
|
|
1652
1994
|
}
|
|
1653
|
-
builder.
|
|
1654
|
-
function
|
|
1995
|
+
builder.updateCandidateValidatorNetworkPubkey = updateCandidateValidatorNetworkPubkey;
|
|
1996
|
+
function updateCandidateValidatorP2pAddress(tx, args) {
|
|
1655
1997
|
const _args = [];
|
|
1656
1998
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
1999
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
1657
2000
|
// @ts-ignore
|
|
1658
2001
|
return tx.moveCall({
|
|
1659
|
-
target: "0x3::
|
|
2002
|
+
target: "0x3::sui_system_state_inner::update_candidate_validator_p2p_address",
|
|
1660
2003
|
arguments: _args,
|
|
1661
2004
|
});
|
|
1662
2005
|
}
|
|
1663
|
-
builder.
|
|
1664
|
-
function
|
|
2006
|
+
builder.updateCandidateValidatorP2pAddress = updateCandidateValidatorP2pAddress;
|
|
2007
|
+
function updateCandidateValidatorPrimaryAddress(tx, args) {
|
|
1665
2008
|
const _args = [];
|
|
1666
2009
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2010
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
1667
2011
|
// @ts-ignore
|
|
1668
2012
|
return tx.moveCall({
|
|
1669
|
-
target: "0x3::
|
|
2013
|
+
target: "0x3::sui_system_state_inner::update_candidate_validator_primary_address",
|
|
1670
2014
|
arguments: _args,
|
|
1671
2015
|
});
|
|
1672
2016
|
}
|
|
1673
|
-
builder.
|
|
1674
|
-
function
|
|
2017
|
+
builder.updateCandidateValidatorPrimaryAddress = updateCandidateValidatorPrimaryAddress;
|
|
2018
|
+
function updateCandidateValidatorProtocolPubkey(tx, args) {
|
|
1675
2019
|
const _args = [];
|
|
1676
2020
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2021
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
2022
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[2], tx));
|
|
1677
2023
|
// @ts-ignore
|
|
1678
2024
|
return tx.moveCall({
|
|
1679
|
-
target: "0x3::
|
|
2025
|
+
target: "0x3::sui_system_state_inner::update_candidate_validator_protocol_pubkey",
|
|
1680
2026
|
arguments: _args,
|
|
1681
2027
|
});
|
|
1682
2028
|
}
|
|
1683
|
-
builder.
|
|
1684
|
-
function
|
|
2029
|
+
builder.updateCandidateValidatorProtocolPubkey = updateCandidateValidatorProtocolPubkey;
|
|
2030
|
+
function updateCandidateValidatorWorkerAddress(tx, args) {
|
|
1685
2031
|
const _args = [];
|
|
1686
2032
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2033
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
1687
2034
|
// @ts-ignore
|
|
1688
2035
|
return tx.moveCall({
|
|
1689
|
-
target: "0x3::
|
|
2036
|
+
target: "0x3::sui_system_state_inner::update_candidate_validator_worker_address",
|
|
1690
2037
|
arguments: _args,
|
|
1691
2038
|
});
|
|
1692
2039
|
}
|
|
1693
|
-
builder.
|
|
1694
|
-
function
|
|
2040
|
+
builder.updateCandidateValidatorWorkerAddress = updateCandidateValidatorWorkerAddress;
|
|
2041
|
+
function updateCandidateValidatorWorkerPubkey(tx, args) {
|
|
1695
2042
|
const _args = [];
|
|
1696
2043
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2044
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
1697
2045
|
// @ts-ignore
|
|
1698
2046
|
return tx.moveCall({
|
|
1699
|
-
target: "0x3::
|
|
2047
|
+
target: "0x3::sui_system_state_inner::update_candidate_validator_worker_pubkey",
|
|
1700
2048
|
arguments: _args,
|
|
1701
2049
|
});
|
|
1702
2050
|
}
|
|
1703
|
-
builder.
|
|
1704
|
-
function
|
|
2051
|
+
builder.updateCandidateValidatorWorkerPubkey = updateCandidateValidatorWorkerPubkey;
|
|
2052
|
+
function updateValidatorDescription(tx, args) {
|
|
1705
2053
|
const _args = [];
|
|
1706
2054
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2055
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
1707
2056
|
// @ts-ignore
|
|
1708
2057
|
return tx.moveCall({
|
|
1709
|
-
target: "0x3::
|
|
2058
|
+
target: "0x3::sui_system_state_inner::update_validator_description",
|
|
1710
2059
|
arguments: _args,
|
|
1711
2060
|
});
|
|
1712
2061
|
}
|
|
1713
|
-
builder.
|
|
1714
|
-
function
|
|
2062
|
+
builder.updateValidatorDescription = updateValidatorDescription;
|
|
2063
|
+
function updateValidatorImageUrl(tx, args) {
|
|
1715
2064
|
const _args = [];
|
|
1716
|
-
_args.push((0, sui_3.
|
|
2065
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2066
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
1717
2067
|
// @ts-ignore
|
|
1718
2068
|
return tx.moveCall({
|
|
1719
|
-
target: "0x3::
|
|
2069
|
+
target: "0x3::sui_system_state_inner::update_validator_image_url",
|
|
1720
2070
|
arguments: _args,
|
|
1721
2071
|
});
|
|
1722
2072
|
}
|
|
1723
|
-
builder.
|
|
1724
|
-
function
|
|
2073
|
+
builder.updateValidatorImageUrl = updateValidatorImageUrl;
|
|
2074
|
+
function updateValidatorName(tx, args) {
|
|
1725
2075
|
const _args = [];
|
|
1726
2076
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2077
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
1727
2078
|
// @ts-ignore
|
|
1728
2079
|
return tx.moveCall({
|
|
1729
|
-
target: "0x3::
|
|
2080
|
+
target: "0x3::sui_system_state_inner::update_validator_name",
|
|
1730
2081
|
arguments: _args,
|
|
1731
2082
|
});
|
|
1732
2083
|
}
|
|
1733
|
-
builder.
|
|
1734
|
-
function
|
|
2084
|
+
builder.updateValidatorName = updateValidatorName;
|
|
2085
|
+
function updateValidatorNextEpochNetworkAddress(tx, args) {
|
|
1735
2086
|
const _args = [];
|
|
1736
2087
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2088
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
1737
2089
|
// @ts-ignore
|
|
1738
2090
|
return tx.moveCall({
|
|
1739
|
-
target: "0x3::
|
|
2091
|
+
target: "0x3::sui_system_state_inner::update_validator_next_epoch_network_address",
|
|
1740
2092
|
arguments: _args,
|
|
1741
2093
|
});
|
|
1742
2094
|
}
|
|
1743
|
-
builder.
|
|
1744
|
-
function
|
|
2095
|
+
builder.updateValidatorNextEpochNetworkAddress = updateValidatorNextEpochNetworkAddress;
|
|
2096
|
+
function updateValidatorNextEpochNetworkPubkey(tx, args) {
|
|
1745
2097
|
const _args = [];
|
|
1746
2098
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2099
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
1747
2100
|
// @ts-ignore
|
|
1748
2101
|
return tx.moveCall({
|
|
1749
|
-
target: "0x3::
|
|
2102
|
+
target: "0x3::sui_system_state_inner::update_validator_next_epoch_network_pubkey",
|
|
1750
2103
|
arguments: _args,
|
|
1751
2104
|
});
|
|
1752
2105
|
}
|
|
1753
|
-
builder.
|
|
1754
|
-
|
|
2106
|
+
builder.updateValidatorNextEpochNetworkPubkey = updateValidatorNextEpochNetworkPubkey;
|
|
2107
|
+
function updateValidatorNextEpochP2pAddress(tx, args) {
|
|
2108
|
+
const _args = [];
|
|
2109
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2110
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
2111
|
+
// @ts-ignore
|
|
2112
|
+
return tx.moveCall({
|
|
2113
|
+
target: "0x3::sui_system_state_inner::update_validator_next_epoch_p2p_address",
|
|
2114
|
+
arguments: _args,
|
|
2115
|
+
});
|
|
2116
|
+
}
|
|
2117
|
+
builder.updateValidatorNextEpochP2pAddress = updateValidatorNextEpochP2pAddress;
|
|
2118
|
+
function updateValidatorNextEpochPrimaryAddress(tx, args) {
|
|
2119
|
+
const _args = [];
|
|
2120
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2121
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
2122
|
+
// @ts-ignore
|
|
2123
|
+
return tx.moveCall({
|
|
2124
|
+
target: "0x3::sui_system_state_inner::update_validator_next_epoch_primary_address",
|
|
2125
|
+
arguments: _args,
|
|
2126
|
+
});
|
|
2127
|
+
}
|
|
2128
|
+
builder.updateValidatorNextEpochPrimaryAddress = updateValidatorNextEpochPrimaryAddress;
|
|
2129
|
+
function updateValidatorNextEpochProtocolPubkey(tx, args) {
|
|
2130
|
+
const _args = [];
|
|
2131
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2132
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
2133
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[2], tx));
|
|
2134
|
+
// @ts-ignore
|
|
2135
|
+
return tx.moveCall({
|
|
2136
|
+
target: "0x3::sui_system_state_inner::update_validator_next_epoch_protocol_pubkey",
|
|
2137
|
+
arguments: _args,
|
|
2138
|
+
});
|
|
2139
|
+
}
|
|
2140
|
+
builder.updateValidatorNextEpochProtocolPubkey = updateValidatorNextEpochProtocolPubkey;
|
|
2141
|
+
function updateValidatorNextEpochWorkerAddress(tx, args) {
|
|
2142
|
+
const _args = [];
|
|
2143
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2144
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
2145
|
+
// @ts-ignore
|
|
2146
|
+
return tx.moveCall({
|
|
2147
|
+
target: "0x3::sui_system_state_inner::update_validator_next_epoch_worker_address",
|
|
2148
|
+
arguments: _args,
|
|
2149
|
+
});
|
|
2150
|
+
}
|
|
2151
|
+
builder.updateValidatorNextEpochWorkerAddress = updateValidatorNextEpochWorkerAddress;
|
|
2152
|
+
function updateValidatorNextEpochWorkerPubkey(tx, args) {
|
|
2153
|
+
const _args = [];
|
|
2154
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2155
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
2156
|
+
// @ts-ignore
|
|
2157
|
+
return tx.moveCall({
|
|
2158
|
+
target: "0x3::sui_system_state_inner::update_validator_next_epoch_worker_pubkey",
|
|
2159
|
+
arguments: _args,
|
|
2160
|
+
});
|
|
2161
|
+
}
|
|
2162
|
+
builder.updateValidatorNextEpochWorkerPubkey = updateValidatorNextEpochWorkerPubkey;
|
|
2163
|
+
function updateValidatorProjectUrl(tx, args) {
|
|
2164
|
+
const _args = [];
|
|
2165
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2166
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
2167
|
+
// @ts-ignore
|
|
2168
|
+
return tx.moveCall({
|
|
2169
|
+
target: "0x3::sui_system_state_inner::update_validator_project_url",
|
|
2170
|
+
arguments: _args,
|
|
2171
|
+
});
|
|
2172
|
+
}
|
|
2173
|
+
builder.updateValidatorProjectUrl = updateValidatorProjectUrl;
|
|
2174
|
+
function v1ToV2(tx, args) {
|
|
2175
|
+
const _args = [];
|
|
2176
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
2177
|
+
// @ts-ignore
|
|
2178
|
+
return tx.moveCall({
|
|
2179
|
+
target: "0x3::sui_system_state_inner::v1_to_v2",
|
|
2180
|
+
arguments: _args,
|
|
2181
|
+
});
|
|
2182
|
+
}
|
|
2183
|
+
builder.v1ToV2 = v1ToV2;
|
|
2184
|
+
function validatorStakeAmount(tx, args) {
|
|
2185
|
+
const _args = [];
|
|
2186
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2187
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
2188
|
+
// @ts-ignore
|
|
2189
|
+
return tx.moveCall({
|
|
2190
|
+
target: "0x3::sui_system_state_inner::validator_stake_amount",
|
|
2191
|
+
arguments: _args,
|
|
2192
|
+
});
|
|
2193
|
+
}
|
|
2194
|
+
builder.validatorStakeAmount = validatorStakeAmount;
|
|
2195
|
+
function validatorStakingPoolId(tx, args) {
|
|
2196
|
+
const _args = [];
|
|
2197
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2198
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
2199
|
+
// @ts-ignore
|
|
2200
|
+
return tx.moveCall({
|
|
2201
|
+
target: "0x3::sui_system_state_inner::validator_staking_pool_id",
|
|
2202
|
+
arguments: _args,
|
|
2203
|
+
});
|
|
2204
|
+
}
|
|
2205
|
+
builder.validatorStakingPoolId = validatorStakingPoolId;
|
|
2206
|
+
function validatorStakingPoolMappings(tx, args) {
|
|
2207
|
+
const _args = [];
|
|
2208
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2209
|
+
// @ts-ignore
|
|
2210
|
+
return tx.moveCall({
|
|
2211
|
+
target: "0x3::sui_system_state_inner::validator_staking_pool_mappings",
|
|
2212
|
+
arguments: _args,
|
|
2213
|
+
});
|
|
2214
|
+
}
|
|
2215
|
+
builder.validatorStakingPoolMappings = validatorStakingPoolMappings;
|
|
2216
|
+
})(builder = sui_system_state_inner.builder || (sui_system_state_inner.builder = {}));
|
|
1755
2217
|
let view;
|
|
1756
2218
|
(function (view) {
|
|
1757
|
-
async function
|
|
2219
|
+
async function activeValidatorAddresses(client, args) {
|
|
1758
2220
|
const tx = new transactions_1.TransactionBlock();
|
|
1759
|
-
builder.
|
|
2221
|
+
builder.activeValidatorAddresses(tx, args);
|
|
1760
2222
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1761
2223
|
transactionBlock: tx,
|
|
1762
2224
|
sender: sui_2.ZERO_ADDRESS,
|
|
1763
2225
|
});
|
|
1764
2226
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1765
2227
|
}
|
|
1766
|
-
view.
|
|
1767
|
-
async function
|
|
2228
|
+
view.activeValidatorAddresses = activeValidatorAddresses;
|
|
2229
|
+
async function advanceEpoch(client, args) {
|
|
1768
2230
|
const tx = new transactions_1.TransactionBlock();
|
|
1769
|
-
builder.
|
|
2231
|
+
builder.advanceEpoch(tx, args);
|
|
1770
2232
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1771
2233
|
transactionBlock: tx,
|
|
1772
2234
|
sender: sui_2.ZERO_ADDRESS,
|
|
1773
2235
|
});
|
|
1774
2236
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1775
2237
|
}
|
|
1776
|
-
view.
|
|
1777
|
-
async function
|
|
2238
|
+
view.advanceEpoch = advanceEpoch;
|
|
2239
|
+
async function create(client, args) {
|
|
1778
2240
|
const tx = new transactions_1.TransactionBlock();
|
|
1779
|
-
builder.
|
|
2241
|
+
builder.create(tx, args);
|
|
1780
2242
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1781
2243
|
transactionBlock: tx,
|
|
1782
2244
|
sender: sui_2.ZERO_ADDRESS,
|
|
1783
2245
|
});
|
|
1784
2246
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1785
2247
|
}
|
|
1786
|
-
view.
|
|
1787
|
-
async function
|
|
2248
|
+
view.create = create;
|
|
2249
|
+
async function createSystemParameters(client, args) {
|
|
1788
2250
|
const tx = new transactions_1.TransactionBlock();
|
|
1789
|
-
builder.
|
|
2251
|
+
builder.createSystemParameters(tx, args);
|
|
1790
2252
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1791
2253
|
transactionBlock: tx,
|
|
1792
2254
|
sender: sui_2.ZERO_ADDRESS,
|
|
1793
2255
|
});
|
|
1794
2256
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1795
2257
|
}
|
|
1796
|
-
view.
|
|
1797
|
-
async function
|
|
2258
|
+
view.createSystemParameters = createSystemParameters;
|
|
2259
|
+
async function epoch(client, args) {
|
|
1798
2260
|
const tx = new transactions_1.TransactionBlock();
|
|
1799
|
-
builder.
|
|
2261
|
+
builder.epoch(tx, args);
|
|
1800
2262
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1801
2263
|
transactionBlock: tx,
|
|
1802
2264
|
sender: sui_2.ZERO_ADDRESS,
|
|
1803
2265
|
});
|
|
1804
2266
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1805
2267
|
}
|
|
1806
|
-
view.
|
|
1807
|
-
async function
|
|
2268
|
+
view.epoch = epoch;
|
|
2269
|
+
async function epochStartTimestampMs(client, args) {
|
|
1808
2270
|
const tx = new transactions_1.TransactionBlock();
|
|
1809
|
-
builder.
|
|
2271
|
+
builder.epochStartTimestampMs(tx, args);
|
|
1810
2272
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1811
2273
|
transactionBlock: tx,
|
|
1812
2274
|
sender: sui_2.ZERO_ADDRESS,
|
|
1813
2275
|
});
|
|
1814
2276
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1815
2277
|
}
|
|
1816
|
-
view.
|
|
1817
|
-
async function
|
|
2278
|
+
view.epochStartTimestampMs = epochStartTimestampMs;
|
|
2279
|
+
async function genesisSystemStateVersion(client, args) {
|
|
1818
2280
|
const tx = new transactions_1.TransactionBlock();
|
|
1819
|
-
builder.
|
|
2281
|
+
builder.genesisSystemStateVersion(tx, args);
|
|
1820
2282
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1821
2283
|
transactionBlock: tx,
|
|
1822
2284
|
sender: sui_2.ZERO_ADDRESS,
|
|
1823
2285
|
});
|
|
1824
2286
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1825
2287
|
}
|
|
1826
|
-
view.
|
|
1827
|
-
async function
|
|
2288
|
+
view.genesisSystemStateVersion = genesisSystemStateVersion;
|
|
2289
|
+
async function getReportersOf(client, args) {
|
|
1828
2290
|
const tx = new transactions_1.TransactionBlock();
|
|
1829
|
-
builder.
|
|
2291
|
+
builder.getReportersOf(tx, args);
|
|
1830
2292
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1831
2293
|
transactionBlock: tx,
|
|
1832
2294
|
sender: sui_2.ZERO_ADDRESS,
|
|
1833
2295
|
});
|
|
1834
2296
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1835
2297
|
}
|
|
1836
|
-
view.
|
|
1837
|
-
async function
|
|
2298
|
+
view.getReportersOf = getReportersOf;
|
|
2299
|
+
async function getStorageFundObjectRebates(client, args) {
|
|
1838
2300
|
const tx = new transactions_1.TransactionBlock();
|
|
1839
|
-
builder.
|
|
2301
|
+
builder.getStorageFundObjectRebates(tx, args);
|
|
1840
2302
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1841
2303
|
transactionBlock: tx,
|
|
1842
2304
|
sender: sui_2.ZERO_ADDRESS,
|
|
1843
2305
|
});
|
|
1844
2306
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1845
2307
|
}
|
|
1846
|
-
view.
|
|
1847
|
-
async function
|
|
2308
|
+
view.getStorageFundObjectRebates = getStorageFundObjectRebates;
|
|
2309
|
+
async function getStorageFundTotalBalance(client, args) {
|
|
1848
2310
|
const tx = new transactions_1.TransactionBlock();
|
|
1849
|
-
builder.
|
|
2311
|
+
builder.getStorageFundTotalBalance(tx, args);
|
|
1850
2312
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1851
2313
|
transactionBlock: tx,
|
|
1852
2314
|
sender: sui_2.ZERO_ADDRESS,
|
|
1853
2315
|
});
|
|
1854
2316
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1855
2317
|
}
|
|
1856
|
-
view.
|
|
1857
|
-
async function
|
|
2318
|
+
view.getStorageFundTotalBalance = getStorageFundTotalBalance;
|
|
2319
|
+
async function poolExchangeRates(client, args) {
|
|
1858
2320
|
const tx = new transactions_1.TransactionBlock();
|
|
1859
|
-
builder.
|
|
2321
|
+
builder.poolExchangeRates(tx, args);
|
|
1860
2322
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1861
2323
|
transactionBlock: tx,
|
|
1862
2324
|
sender: sui_2.ZERO_ADDRESS,
|
|
1863
2325
|
});
|
|
1864
2326
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1865
2327
|
}
|
|
1866
|
-
view.
|
|
1867
|
-
async function
|
|
2328
|
+
view.poolExchangeRates = poolExchangeRates;
|
|
2329
|
+
async function protocolVersion(client, args) {
|
|
1868
2330
|
const tx = new transactions_1.TransactionBlock();
|
|
1869
|
-
builder.
|
|
2331
|
+
builder.protocolVersion(tx, args);
|
|
1870
2332
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1871
2333
|
transactionBlock: tx,
|
|
1872
2334
|
sender: sui_2.ZERO_ADDRESS,
|
|
1873
2335
|
});
|
|
1874
2336
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1875
2337
|
}
|
|
1876
|
-
view.
|
|
1877
|
-
async function
|
|
2338
|
+
view.protocolVersion = protocolVersion;
|
|
2339
|
+
async function reportValidator(client, args) {
|
|
1878
2340
|
const tx = new transactions_1.TransactionBlock();
|
|
1879
|
-
builder.
|
|
2341
|
+
builder.reportValidator(tx, args);
|
|
1880
2342
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1881
2343
|
transactionBlock: tx,
|
|
1882
2344
|
sender: sui_2.ZERO_ADDRESS,
|
|
1883
2345
|
});
|
|
1884
2346
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1885
2347
|
}
|
|
1886
|
-
view.
|
|
1887
|
-
async function
|
|
2348
|
+
view.reportValidator = reportValidator;
|
|
2349
|
+
async function requestAddStake(client, args) {
|
|
1888
2350
|
const tx = new transactions_1.TransactionBlock();
|
|
1889
|
-
builder.
|
|
2351
|
+
builder.requestAddStake(tx, args);
|
|
1890
2352
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1891
2353
|
transactionBlock: tx,
|
|
1892
2354
|
sender: sui_2.ZERO_ADDRESS,
|
|
1893
2355
|
});
|
|
1894
2356
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1895
2357
|
}
|
|
1896
|
-
view.
|
|
1897
|
-
async function
|
|
2358
|
+
view.requestAddStake = requestAddStake;
|
|
2359
|
+
async function requestAddStakeMulCoin(client, args) {
|
|
1898
2360
|
const tx = new transactions_1.TransactionBlock();
|
|
1899
|
-
builder.
|
|
2361
|
+
builder.requestAddStakeMulCoin(tx, args);
|
|
1900
2362
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1901
2363
|
transactionBlock: tx,
|
|
1902
2364
|
sender: sui_2.ZERO_ADDRESS,
|
|
1903
2365
|
});
|
|
1904
2366
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1905
2367
|
}
|
|
1906
|
-
view.
|
|
1907
|
-
async function
|
|
2368
|
+
view.requestAddStakeMulCoin = requestAddStakeMulCoin;
|
|
2369
|
+
async function requestAddValidator(client, args) {
|
|
1908
2370
|
const tx = new transactions_1.TransactionBlock();
|
|
1909
|
-
builder.
|
|
2371
|
+
builder.requestAddValidator(tx, args);
|
|
1910
2372
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1911
2373
|
transactionBlock: tx,
|
|
1912
2374
|
sender: sui_2.ZERO_ADDRESS,
|
|
1913
2375
|
});
|
|
1914
2376
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1915
2377
|
}
|
|
1916
|
-
view.
|
|
1917
|
-
async function
|
|
2378
|
+
view.requestAddValidator = requestAddValidator;
|
|
2379
|
+
async function requestAddValidatorCandidate(client, args) {
|
|
1918
2380
|
const tx = new transactions_1.TransactionBlock();
|
|
1919
|
-
builder.
|
|
2381
|
+
builder.requestAddValidatorCandidate(tx, args);
|
|
1920
2382
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1921
2383
|
transactionBlock: tx,
|
|
1922
2384
|
sender: sui_2.ZERO_ADDRESS,
|
|
1923
2385
|
});
|
|
1924
2386
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1925
2387
|
}
|
|
1926
|
-
view.
|
|
1927
|
-
async function
|
|
2388
|
+
view.requestAddValidatorCandidate = requestAddValidatorCandidate;
|
|
2389
|
+
async function requestRemoveValidator(client, args) {
|
|
1928
2390
|
const tx = new transactions_1.TransactionBlock();
|
|
1929
|
-
builder.
|
|
2391
|
+
builder.requestRemoveValidator(tx, args);
|
|
1930
2392
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1931
2393
|
transactionBlock: tx,
|
|
1932
2394
|
sender: sui_2.ZERO_ADDRESS,
|
|
1933
2395
|
});
|
|
1934
2396
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1935
2397
|
}
|
|
1936
|
-
view.
|
|
1937
|
-
async function
|
|
2398
|
+
view.requestRemoveValidator = requestRemoveValidator;
|
|
2399
|
+
async function requestRemoveValidatorCandidate(client, args) {
|
|
1938
2400
|
const tx = new transactions_1.TransactionBlock();
|
|
1939
|
-
builder.
|
|
2401
|
+
builder.requestRemoveValidatorCandidate(tx, args);
|
|
1940
2402
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1941
2403
|
transactionBlock: tx,
|
|
1942
2404
|
sender: sui_2.ZERO_ADDRESS,
|
|
1943
2405
|
});
|
|
1944
2406
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1945
2407
|
}
|
|
1946
|
-
view.
|
|
1947
|
-
async function
|
|
2408
|
+
view.requestRemoveValidatorCandidate = requestRemoveValidatorCandidate;
|
|
2409
|
+
async function requestSetCommissionRate(client, args) {
|
|
1948
2410
|
const tx = new transactions_1.TransactionBlock();
|
|
1949
|
-
builder.
|
|
2411
|
+
builder.requestSetCommissionRate(tx, args);
|
|
1950
2412
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1951
2413
|
transactionBlock: tx,
|
|
1952
2414
|
sender: sui_2.ZERO_ADDRESS,
|
|
1953
2415
|
});
|
|
1954
2416
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1955
2417
|
}
|
|
1956
|
-
view.
|
|
1957
|
-
async function
|
|
2418
|
+
view.requestSetCommissionRate = requestSetCommissionRate;
|
|
2419
|
+
async function requestSetGasPrice(client, args) {
|
|
1958
2420
|
const tx = new transactions_1.TransactionBlock();
|
|
1959
|
-
builder.
|
|
2421
|
+
builder.requestSetGasPrice(tx, args);
|
|
1960
2422
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1961
2423
|
transactionBlock: tx,
|
|
1962
2424
|
sender: sui_2.ZERO_ADDRESS,
|
|
1963
2425
|
});
|
|
1964
2426
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1965
2427
|
}
|
|
1966
|
-
view.
|
|
1967
|
-
async function
|
|
2428
|
+
view.requestSetGasPrice = requestSetGasPrice;
|
|
2429
|
+
async function requestWithdrawStake(client, args) {
|
|
1968
2430
|
const tx = new transactions_1.TransactionBlock();
|
|
1969
|
-
builder.
|
|
2431
|
+
builder.requestWithdrawStake(tx, args);
|
|
1970
2432
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1971
2433
|
transactionBlock: tx,
|
|
1972
2434
|
sender: sui_2.ZERO_ADDRESS,
|
|
1973
2435
|
});
|
|
1974
2436
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1975
2437
|
}
|
|
1976
|
-
view.
|
|
1977
|
-
async function
|
|
2438
|
+
view.requestWithdrawStake = requestWithdrawStake;
|
|
2439
|
+
async function rotateOperationCap(client, args) {
|
|
1978
2440
|
const tx = new transactions_1.TransactionBlock();
|
|
1979
|
-
builder.
|
|
2441
|
+
builder.rotateOperationCap(tx, args);
|
|
1980
2442
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1981
2443
|
transactionBlock: tx,
|
|
1982
2444
|
sender: sui_2.ZERO_ADDRESS,
|
|
1983
2445
|
});
|
|
1984
2446
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1985
2447
|
}
|
|
1986
|
-
view.
|
|
1987
|
-
async function
|
|
2448
|
+
view.rotateOperationCap = rotateOperationCap;
|
|
2449
|
+
async function setCandidateValidatorCommissionRate(client, args) {
|
|
1988
2450
|
const tx = new transactions_1.TransactionBlock();
|
|
1989
|
-
builder.
|
|
2451
|
+
builder.setCandidateValidatorCommissionRate(tx, args);
|
|
1990
2452
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
1991
2453
|
transactionBlock: tx,
|
|
1992
2454
|
sender: sui_2.ZERO_ADDRESS,
|
|
1993
2455
|
});
|
|
1994
2456
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1995
2457
|
}
|
|
1996
|
-
view.
|
|
1997
|
-
async function
|
|
2458
|
+
view.setCandidateValidatorCommissionRate = setCandidateValidatorCommissionRate;
|
|
2459
|
+
async function setCandidateValidatorGasPrice(client, args) {
|
|
1998
2460
|
const tx = new transactions_1.TransactionBlock();
|
|
1999
|
-
builder.
|
|
2461
|
+
builder.setCandidateValidatorGasPrice(tx, args);
|
|
2000
2462
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2001
2463
|
transactionBlock: tx,
|
|
2002
2464
|
sender: sui_2.ZERO_ADDRESS,
|
|
2003
2465
|
});
|
|
2004
2466
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2005
2467
|
}
|
|
2006
|
-
view.
|
|
2007
|
-
async function
|
|
2468
|
+
view.setCandidateValidatorGasPrice = setCandidateValidatorGasPrice;
|
|
2469
|
+
async function systemStateVersion(client, args) {
|
|
2008
2470
|
const tx = new transactions_1.TransactionBlock();
|
|
2009
|
-
builder.
|
|
2471
|
+
builder.systemStateVersion(tx, args);
|
|
2010
2472
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2011
2473
|
transactionBlock: tx,
|
|
2012
2474
|
sender: sui_2.ZERO_ADDRESS,
|
|
2013
2475
|
});
|
|
2014
2476
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2015
2477
|
}
|
|
2016
|
-
view.
|
|
2017
|
-
async function
|
|
2478
|
+
view.systemStateVersion = systemStateVersion;
|
|
2479
|
+
async function undoReportValidator(client, args) {
|
|
2018
2480
|
const tx = new transactions_1.TransactionBlock();
|
|
2019
|
-
builder.
|
|
2481
|
+
builder.undoReportValidator(tx, args);
|
|
2020
2482
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2021
2483
|
transactionBlock: tx,
|
|
2022
2484
|
sender: sui_2.ZERO_ADDRESS,
|
|
2023
2485
|
});
|
|
2024
2486
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2025
2487
|
}
|
|
2026
|
-
view.
|
|
2027
|
-
async function
|
|
2488
|
+
view.undoReportValidator = undoReportValidator;
|
|
2489
|
+
async function updateCandidateValidatorNetworkAddress(client, args) {
|
|
2028
2490
|
const tx = new transactions_1.TransactionBlock();
|
|
2029
|
-
builder.
|
|
2491
|
+
builder.updateCandidateValidatorNetworkAddress(tx, args);
|
|
2030
2492
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2031
2493
|
transactionBlock: tx,
|
|
2032
2494
|
sender: sui_2.ZERO_ADDRESS,
|
|
2033
2495
|
});
|
|
2034
2496
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2035
2497
|
}
|
|
2036
|
-
view.
|
|
2037
|
-
async function
|
|
2498
|
+
view.updateCandidateValidatorNetworkAddress = updateCandidateValidatorNetworkAddress;
|
|
2499
|
+
async function updateCandidateValidatorNetworkPubkey(client, args) {
|
|
2038
2500
|
const tx = new transactions_1.TransactionBlock();
|
|
2039
|
-
builder.
|
|
2501
|
+
builder.updateCandidateValidatorNetworkPubkey(tx, args);
|
|
2040
2502
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2041
2503
|
transactionBlock: tx,
|
|
2042
2504
|
sender: sui_2.ZERO_ADDRESS,
|
|
2043
2505
|
});
|
|
2044
2506
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2045
2507
|
}
|
|
2046
|
-
view.
|
|
2047
|
-
async function
|
|
2508
|
+
view.updateCandidateValidatorNetworkPubkey = updateCandidateValidatorNetworkPubkey;
|
|
2509
|
+
async function updateCandidateValidatorP2pAddress(client, args) {
|
|
2048
2510
|
const tx = new transactions_1.TransactionBlock();
|
|
2049
|
-
builder.
|
|
2511
|
+
builder.updateCandidateValidatorP2pAddress(tx, args);
|
|
2050
2512
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2051
2513
|
transactionBlock: tx,
|
|
2052
2514
|
sender: sui_2.ZERO_ADDRESS,
|
|
2053
2515
|
});
|
|
2054
2516
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2055
2517
|
}
|
|
2056
|
-
view.
|
|
2057
|
-
async function
|
|
2518
|
+
view.updateCandidateValidatorP2pAddress = updateCandidateValidatorP2pAddress;
|
|
2519
|
+
async function updateCandidateValidatorPrimaryAddress(client, args) {
|
|
2058
2520
|
const tx = new transactions_1.TransactionBlock();
|
|
2059
|
-
builder.
|
|
2521
|
+
builder.updateCandidateValidatorPrimaryAddress(tx, args);
|
|
2060
2522
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2061
2523
|
transactionBlock: tx,
|
|
2062
2524
|
sender: sui_2.ZERO_ADDRESS,
|
|
2063
2525
|
});
|
|
2064
2526
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2065
2527
|
}
|
|
2066
|
-
view.
|
|
2067
|
-
async function
|
|
2528
|
+
view.updateCandidateValidatorPrimaryAddress = updateCandidateValidatorPrimaryAddress;
|
|
2529
|
+
async function updateCandidateValidatorProtocolPubkey(client, args) {
|
|
2068
2530
|
const tx = new transactions_1.TransactionBlock();
|
|
2069
|
-
builder.
|
|
2531
|
+
builder.updateCandidateValidatorProtocolPubkey(tx, args);
|
|
2070
2532
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
2071
2533
|
transactionBlock: tx,
|
|
2072
2534
|
sender: sui_2.ZERO_ADDRESS,
|
|
2073
2535
|
});
|
|
2074
2536
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2075
2537
|
}
|
|
2076
|
-
view.
|
|
2077
|
-
async function
|
|
2538
|
+
view.updateCandidateValidatorProtocolPubkey = updateCandidateValidatorProtocolPubkey;
|
|
2539
|
+
async function updateCandidateValidatorWorkerAddress(client, args) {
|
|
2540
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2541
|
+
builder.updateCandidateValidatorWorkerAddress(tx, args);
|
|
2542
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2543
|
+
transactionBlock: tx,
|
|
2544
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2545
|
+
});
|
|
2546
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2547
|
+
}
|
|
2548
|
+
view.updateCandidateValidatorWorkerAddress = updateCandidateValidatorWorkerAddress;
|
|
2549
|
+
async function updateCandidateValidatorWorkerPubkey(client, args) {
|
|
2550
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2551
|
+
builder.updateCandidateValidatorWorkerPubkey(tx, args);
|
|
2552
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2553
|
+
transactionBlock: tx,
|
|
2554
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2555
|
+
});
|
|
2556
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2557
|
+
}
|
|
2558
|
+
view.updateCandidateValidatorWorkerPubkey = updateCandidateValidatorWorkerPubkey;
|
|
2559
|
+
async function updateValidatorDescription(client, args) {
|
|
2560
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2561
|
+
builder.updateValidatorDescription(tx, args);
|
|
2562
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2563
|
+
transactionBlock: tx,
|
|
2564
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2565
|
+
});
|
|
2566
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2567
|
+
}
|
|
2568
|
+
view.updateValidatorDescription = updateValidatorDescription;
|
|
2569
|
+
async function updateValidatorImageUrl(client, args) {
|
|
2570
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2571
|
+
builder.updateValidatorImageUrl(tx, args);
|
|
2572
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2573
|
+
transactionBlock: tx,
|
|
2574
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2575
|
+
});
|
|
2576
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2577
|
+
}
|
|
2578
|
+
view.updateValidatorImageUrl = updateValidatorImageUrl;
|
|
2579
|
+
async function updateValidatorName(client, args) {
|
|
2580
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2581
|
+
builder.updateValidatorName(tx, args);
|
|
2582
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2583
|
+
transactionBlock: tx,
|
|
2584
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2585
|
+
});
|
|
2586
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2587
|
+
}
|
|
2588
|
+
view.updateValidatorName = updateValidatorName;
|
|
2589
|
+
async function updateValidatorNextEpochNetworkAddress(client, args) {
|
|
2590
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2591
|
+
builder.updateValidatorNextEpochNetworkAddress(tx, args);
|
|
2592
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2593
|
+
transactionBlock: tx,
|
|
2594
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2595
|
+
});
|
|
2596
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2597
|
+
}
|
|
2598
|
+
view.updateValidatorNextEpochNetworkAddress = updateValidatorNextEpochNetworkAddress;
|
|
2599
|
+
async function updateValidatorNextEpochNetworkPubkey(client, args) {
|
|
2600
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2601
|
+
builder.updateValidatorNextEpochNetworkPubkey(tx, args);
|
|
2602
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2603
|
+
transactionBlock: tx,
|
|
2604
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2605
|
+
});
|
|
2606
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2607
|
+
}
|
|
2608
|
+
view.updateValidatorNextEpochNetworkPubkey = updateValidatorNextEpochNetworkPubkey;
|
|
2609
|
+
async function updateValidatorNextEpochP2pAddress(client, args) {
|
|
2610
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2611
|
+
builder.updateValidatorNextEpochP2pAddress(tx, args);
|
|
2612
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2613
|
+
transactionBlock: tx,
|
|
2614
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2615
|
+
});
|
|
2616
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2617
|
+
}
|
|
2618
|
+
view.updateValidatorNextEpochP2pAddress = updateValidatorNextEpochP2pAddress;
|
|
2619
|
+
async function updateValidatorNextEpochPrimaryAddress(client, args) {
|
|
2620
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2621
|
+
builder.updateValidatorNextEpochPrimaryAddress(tx, args);
|
|
2622
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2623
|
+
transactionBlock: tx,
|
|
2624
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2625
|
+
});
|
|
2626
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2627
|
+
}
|
|
2628
|
+
view.updateValidatorNextEpochPrimaryAddress = updateValidatorNextEpochPrimaryAddress;
|
|
2629
|
+
async function updateValidatorNextEpochProtocolPubkey(client, args) {
|
|
2630
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2631
|
+
builder.updateValidatorNextEpochProtocolPubkey(tx, args);
|
|
2632
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2633
|
+
transactionBlock: tx,
|
|
2634
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2635
|
+
});
|
|
2636
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2637
|
+
}
|
|
2638
|
+
view.updateValidatorNextEpochProtocolPubkey = updateValidatorNextEpochProtocolPubkey;
|
|
2639
|
+
async function updateValidatorNextEpochWorkerAddress(client, args) {
|
|
2640
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2641
|
+
builder.updateValidatorNextEpochWorkerAddress(tx, args);
|
|
2642
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2643
|
+
transactionBlock: tx,
|
|
2644
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2645
|
+
});
|
|
2646
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2647
|
+
}
|
|
2648
|
+
view.updateValidatorNextEpochWorkerAddress = updateValidatorNextEpochWorkerAddress;
|
|
2649
|
+
async function updateValidatorNextEpochWorkerPubkey(client, args) {
|
|
2650
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2651
|
+
builder.updateValidatorNextEpochWorkerPubkey(tx, args);
|
|
2652
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2653
|
+
transactionBlock: tx,
|
|
2654
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2655
|
+
});
|
|
2656
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2657
|
+
}
|
|
2658
|
+
view.updateValidatorNextEpochWorkerPubkey = updateValidatorNextEpochWorkerPubkey;
|
|
2659
|
+
async function updateValidatorProjectUrl(client, args) {
|
|
2660
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2661
|
+
builder.updateValidatorProjectUrl(tx, args);
|
|
2662
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2663
|
+
transactionBlock: tx,
|
|
2664
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2665
|
+
});
|
|
2666
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2667
|
+
}
|
|
2668
|
+
view.updateValidatorProjectUrl = updateValidatorProjectUrl;
|
|
2669
|
+
async function v1ToV2(client, args) {
|
|
2670
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2671
|
+
builder.v1ToV2(tx, args);
|
|
2672
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2673
|
+
transactionBlock: tx,
|
|
2674
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2675
|
+
});
|
|
2676
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2677
|
+
}
|
|
2678
|
+
view.v1ToV2 = v1ToV2;
|
|
2679
|
+
async function validatorStakeAmount(client, args) {
|
|
2680
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2681
|
+
builder.validatorStakeAmount(tx, args);
|
|
2682
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2683
|
+
transactionBlock: tx,
|
|
2684
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2685
|
+
});
|
|
2686
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2687
|
+
}
|
|
2688
|
+
view.validatorStakeAmount = validatorStakeAmount;
|
|
2689
|
+
async function validatorStakingPoolId(client, args) {
|
|
2690
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2691
|
+
builder.validatorStakingPoolId(tx, args);
|
|
2692
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2693
|
+
transactionBlock: tx,
|
|
2694
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2695
|
+
});
|
|
2696
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2697
|
+
}
|
|
2698
|
+
view.validatorStakingPoolId = validatorStakingPoolId;
|
|
2699
|
+
async function validatorStakingPoolMappings(client, args) {
|
|
2700
|
+
const tx = new transactions_1.TransactionBlock();
|
|
2701
|
+
builder.validatorStakingPoolMappings(tx, args);
|
|
2702
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2703
|
+
transactionBlock: tx,
|
|
2704
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
2705
|
+
});
|
|
2706
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2707
|
+
}
|
|
2708
|
+
view.validatorStakingPoolMappings = validatorStakingPoolMappings;
|
|
2709
|
+
})(view = sui_system_state_inner.view || (sui_system_state_inner.view = {}));
|
|
2710
|
+
})(sui_system_state_inner || (exports.sui_system_state_inner = sui_system_state_inner = {}));
|
|
2711
|
+
var validator;
|
|
2712
|
+
(function (validator) {
|
|
2713
|
+
let StakingRequestEvent;
|
|
2714
|
+
(function (StakingRequestEvent) {
|
|
2715
|
+
StakingRequestEvent.TYPE_QNAME = "0x3::validator::StakingRequestEvent";
|
|
2716
|
+
const TYPE = new move_1.TypeDescriptor(StakingRequestEvent.TYPE_QNAME);
|
|
2717
|
+
function type() {
|
|
2718
|
+
return TYPE.apply();
|
|
2719
|
+
}
|
|
2720
|
+
StakingRequestEvent.type = type;
|
|
2721
|
+
})(StakingRequestEvent = validator.StakingRequestEvent || (validator.StakingRequestEvent = {}));
|
|
2722
|
+
let UnstakingRequestEvent;
|
|
2723
|
+
(function (UnstakingRequestEvent) {
|
|
2724
|
+
UnstakingRequestEvent.TYPE_QNAME = "0x3::validator::UnstakingRequestEvent";
|
|
2725
|
+
const TYPE = new move_1.TypeDescriptor(UnstakingRequestEvent.TYPE_QNAME);
|
|
2726
|
+
function type() {
|
|
2727
|
+
return TYPE.apply();
|
|
2728
|
+
}
|
|
2729
|
+
UnstakingRequestEvent.type = type;
|
|
2730
|
+
})(UnstakingRequestEvent = validator.UnstakingRequestEvent || (validator.UnstakingRequestEvent = {}));
|
|
2731
|
+
let Validator;
|
|
2732
|
+
(function (Validator) {
|
|
2733
|
+
Validator.TYPE_QNAME = "0x3::validator::Validator";
|
|
2734
|
+
const TYPE = new move_1.TypeDescriptor(Validator.TYPE_QNAME);
|
|
2735
|
+
function type() {
|
|
2736
|
+
return TYPE.apply();
|
|
2737
|
+
}
|
|
2738
|
+
Validator.type = type;
|
|
2739
|
+
})(Validator = validator.Validator || (validator.Validator = {}));
|
|
2740
|
+
let ValidatorMetadata;
|
|
2741
|
+
(function (ValidatorMetadata) {
|
|
2742
|
+
ValidatorMetadata.TYPE_QNAME = "0x3::validator::ValidatorMetadata";
|
|
2743
|
+
const TYPE = new move_1.TypeDescriptor(ValidatorMetadata.TYPE_QNAME);
|
|
2744
|
+
function type() {
|
|
2745
|
+
return TYPE.apply();
|
|
2746
|
+
}
|
|
2747
|
+
ValidatorMetadata.type = type;
|
|
2748
|
+
})(ValidatorMetadata = validator.ValidatorMetadata || (validator.ValidatorMetadata = {}));
|
|
2749
|
+
let builder;
|
|
2750
|
+
(function (builder) {
|
|
2751
|
+
function activate(tx, args) {
|
|
2752
|
+
const _args = [];
|
|
2753
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2754
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
2755
|
+
// @ts-ignore
|
|
2756
|
+
return tx.moveCall({
|
|
2757
|
+
target: "0x3::validator::activate",
|
|
2758
|
+
arguments: _args,
|
|
2759
|
+
});
|
|
2760
|
+
}
|
|
2761
|
+
builder.activate = activate;
|
|
2762
|
+
function adjustStakeAndGasPrice(tx, args) {
|
|
2763
|
+
const _args = [];
|
|
2764
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2765
|
+
// @ts-ignore
|
|
2766
|
+
return tx.moveCall({
|
|
2767
|
+
target: "0x3::validator::adjust_stake_and_gas_price",
|
|
2768
|
+
arguments: _args,
|
|
2769
|
+
});
|
|
2770
|
+
}
|
|
2771
|
+
builder.adjustStakeAndGasPrice = adjustStakeAndGasPrice;
|
|
2772
|
+
function commissionRate(tx, args) {
|
|
2773
|
+
const _args = [];
|
|
2774
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2775
|
+
// @ts-ignore
|
|
2776
|
+
return tx.moveCall({
|
|
2777
|
+
target: "0x3::validator::commission_rate",
|
|
2778
|
+
arguments: _args,
|
|
2779
|
+
});
|
|
2780
|
+
}
|
|
2781
|
+
builder.commissionRate = commissionRate;
|
|
2782
|
+
function deactivate(tx, args) {
|
|
2783
|
+
const _args = [];
|
|
2784
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2785
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
2786
|
+
// @ts-ignore
|
|
2787
|
+
return tx.moveCall({
|
|
2788
|
+
target: "0x3::validator::deactivate",
|
|
2789
|
+
arguments: _args,
|
|
2790
|
+
});
|
|
2791
|
+
}
|
|
2792
|
+
builder.deactivate = deactivate;
|
|
2793
|
+
function depositStakeRewards(tx, args) {
|
|
2794
|
+
const _args = [];
|
|
2795
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2796
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
2797
|
+
// @ts-ignore
|
|
2798
|
+
return tx.moveCall({
|
|
2799
|
+
target: "0x3::validator::deposit_stake_rewards",
|
|
2800
|
+
arguments: _args,
|
|
2801
|
+
});
|
|
2802
|
+
}
|
|
2803
|
+
builder.depositStakeRewards = depositStakeRewards;
|
|
2804
|
+
function description(tx, args) {
|
|
2805
|
+
const _args = [];
|
|
2806
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2807
|
+
// @ts-ignore
|
|
2808
|
+
return tx.moveCall({
|
|
2809
|
+
target: "0x3::validator::description",
|
|
2810
|
+
arguments: _args,
|
|
2811
|
+
});
|
|
2812
|
+
}
|
|
2813
|
+
builder.description = description;
|
|
2814
|
+
function effectuateStagedMetadata(tx, args) {
|
|
2815
|
+
const _args = [];
|
|
2816
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2817
|
+
// @ts-ignore
|
|
2818
|
+
return tx.moveCall({
|
|
2819
|
+
target: "0x3::validator::effectuate_staged_metadata",
|
|
2820
|
+
arguments: _args,
|
|
2821
|
+
});
|
|
2822
|
+
}
|
|
2823
|
+
builder.effectuateStagedMetadata = effectuateStagedMetadata;
|
|
2824
|
+
function gasPrice(tx, args) {
|
|
2825
|
+
const _args = [];
|
|
2826
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2827
|
+
// @ts-ignore
|
|
2828
|
+
return tx.moveCall({
|
|
2829
|
+
target: "0x3::validator::gas_price",
|
|
2830
|
+
arguments: _args,
|
|
2831
|
+
});
|
|
2832
|
+
}
|
|
2833
|
+
builder.gasPrice = gasPrice;
|
|
2834
|
+
function getStakingPoolRef(tx, args) {
|
|
2835
|
+
const _args = [];
|
|
2836
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2837
|
+
// @ts-ignore
|
|
2838
|
+
return tx.moveCall({
|
|
2839
|
+
target: "0x3::validator::get_staking_pool_ref",
|
|
2840
|
+
arguments: _args,
|
|
2841
|
+
});
|
|
2842
|
+
}
|
|
2843
|
+
builder.getStakingPoolRef = getStakingPoolRef;
|
|
2844
|
+
function imageUrl(tx, args) {
|
|
2845
|
+
const _args = [];
|
|
2846
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2847
|
+
// @ts-ignore
|
|
2848
|
+
return tx.moveCall({
|
|
2849
|
+
target: "0x3::validator::image_url",
|
|
2850
|
+
arguments: _args,
|
|
2851
|
+
});
|
|
2852
|
+
}
|
|
2853
|
+
builder.imageUrl = imageUrl;
|
|
2854
|
+
function isDuplicate(tx, args) {
|
|
2855
|
+
const _args = [];
|
|
2856
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2857
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
2858
|
+
// @ts-ignore
|
|
2859
|
+
return tx.moveCall({
|
|
2860
|
+
target: "0x3::validator::is_duplicate",
|
|
2861
|
+
arguments: _args,
|
|
2862
|
+
});
|
|
2863
|
+
}
|
|
2864
|
+
builder.isDuplicate = isDuplicate;
|
|
2865
|
+
function isPreactive(tx, args) {
|
|
2866
|
+
const _args = [];
|
|
2867
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2868
|
+
// @ts-ignore
|
|
2869
|
+
return tx.moveCall({
|
|
2870
|
+
target: "0x3::validator::is_preactive",
|
|
2871
|
+
arguments: _args,
|
|
2872
|
+
});
|
|
2873
|
+
}
|
|
2874
|
+
builder.isPreactive = isPreactive;
|
|
2875
|
+
function metadata(tx, args) {
|
|
2876
|
+
const _args = [];
|
|
2877
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2878
|
+
// @ts-ignore
|
|
2879
|
+
return tx.moveCall({
|
|
2880
|
+
target: "0x3::validator::metadata",
|
|
2881
|
+
arguments: _args,
|
|
2882
|
+
});
|
|
2883
|
+
}
|
|
2884
|
+
builder.metadata = metadata;
|
|
2885
|
+
function name(tx, args) {
|
|
2886
|
+
const _args = [];
|
|
2887
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2888
|
+
// @ts-ignore
|
|
2889
|
+
return tx.moveCall({
|
|
2890
|
+
target: "0x3::validator::name",
|
|
2891
|
+
arguments: _args,
|
|
2892
|
+
});
|
|
2893
|
+
}
|
|
2894
|
+
builder.name = name;
|
|
2895
|
+
function networkAddress(tx, args) {
|
|
2896
|
+
const _args = [];
|
|
2897
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2898
|
+
// @ts-ignore
|
|
2899
|
+
return tx.moveCall({
|
|
2900
|
+
target: "0x3::validator::network_address",
|
|
2901
|
+
arguments: _args,
|
|
2902
|
+
});
|
|
2903
|
+
}
|
|
2904
|
+
builder.networkAddress = networkAddress;
|
|
2905
|
+
function networkPubkeyBytes(tx, args) {
|
|
2906
|
+
const _args = [];
|
|
2907
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2908
|
+
// @ts-ignore
|
|
2909
|
+
return tx.moveCall({
|
|
2910
|
+
target: "0x3::validator::network_pubkey_bytes",
|
|
2911
|
+
arguments: _args,
|
|
2912
|
+
});
|
|
2913
|
+
}
|
|
2914
|
+
builder.networkPubkeyBytes = networkPubkeyBytes;
|
|
2915
|
+
function new_(tx, args) {
|
|
2916
|
+
const _args = [];
|
|
2917
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
2918
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
2919
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[2], tx));
|
|
2920
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[3], tx));
|
|
2921
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[4], tx));
|
|
2922
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[5], tx));
|
|
2923
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[6], tx));
|
|
2924
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[7], tx));
|
|
2925
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[8], tx));
|
|
2926
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[9], tx));
|
|
2927
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[10], tx));
|
|
2928
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[11], tx));
|
|
2929
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[12], tx));
|
|
2930
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[13], tx));
|
|
2931
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[14], tx));
|
|
2932
|
+
// @ts-ignore
|
|
2933
|
+
return tx.moveCall({
|
|
2934
|
+
target: "0x3::validator::new",
|
|
2935
|
+
arguments: _args,
|
|
2936
|
+
});
|
|
2937
|
+
}
|
|
2938
|
+
builder.new_ = new_;
|
|
2939
|
+
function newMetadata(tx, args) {
|
|
2940
|
+
const _args = [];
|
|
2941
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
2942
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
2943
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[2], tx));
|
|
2944
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[3], tx));
|
|
2945
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[4], tx));
|
|
2946
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[5], tx));
|
|
2947
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[6], tx));
|
|
2948
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[7], tx));
|
|
2949
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[8], tx));
|
|
2950
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[9], tx));
|
|
2951
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[10], tx));
|
|
2952
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[11], tx));
|
|
2953
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[12], tx));
|
|
2954
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[13], tx));
|
|
2955
|
+
// @ts-ignore
|
|
2956
|
+
return tx.moveCall({
|
|
2957
|
+
target: "0x3::validator::new_metadata",
|
|
2958
|
+
arguments: _args,
|
|
2959
|
+
});
|
|
2960
|
+
}
|
|
2961
|
+
builder.newMetadata = newMetadata;
|
|
2962
|
+
function newUnverifiedValidatorOperationCapAndTransfer(tx, args) {
|
|
2963
|
+
const _args = [];
|
|
2964
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2965
|
+
// @ts-ignore
|
|
2966
|
+
return tx.moveCall({
|
|
2967
|
+
target: "0x3::validator::new_unverified_validator_operation_cap_and_transfer",
|
|
2968
|
+
arguments: _args,
|
|
2969
|
+
});
|
|
2970
|
+
}
|
|
2971
|
+
builder.newUnverifiedValidatorOperationCapAndTransfer = newUnverifiedValidatorOperationCapAndTransfer;
|
|
2972
|
+
function nextEpochGasPrice(tx, args) {
|
|
2973
|
+
const _args = [];
|
|
2974
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2975
|
+
// @ts-ignore
|
|
2976
|
+
return tx.moveCall({
|
|
2977
|
+
target: "0x3::validator::next_epoch_gas_price",
|
|
2978
|
+
arguments: _args,
|
|
2979
|
+
});
|
|
2980
|
+
}
|
|
2981
|
+
builder.nextEpochGasPrice = nextEpochGasPrice;
|
|
2982
|
+
function nextEpochNetworkAddress(tx, args) {
|
|
2983
|
+
const _args = [];
|
|
2984
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2985
|
+
// @ts-ignore
|
|
2986
|
+
return tx.moveCall({
|
|
2987
|
+
target: "0x3::validator::next_epoch_network_address",
|
|
2988
|
+
arguments: _args,
|
|
2989
|
+
});
|
|
2990
|
+
}
|
|
2991
|
+
builder.nextEpochNetworkAddress = nextEpochNetworkAddress;
|
|
2992
|
+
function nextEpochNetworkPubkeyBytes(tx, args) {
|
|
2993
|
+
const _args = [];
|
|
2994
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2995
|
+
// @ts-ignore
|
|
2996
|
+
return tx.moveCall({
|
|
2997
|
+
target: "0x3::validator::next_epoch_network_pubkey_bytes",
|
|
2998
|
+
arguments: _args,
|
|
2999
|
+
});
|
|
3000
|
+
}
|
|
3001
|
+
builder.nextEpochNetworkPubkeyBytes = nextEpochNetworkPubkeyBytes;
|
|
3002
|
+
function nextEpochP2pAddress(tx, args) {
|
|
3003
|
+
const _args = [];
|
|
3004
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3005
|
+
// @ts-ignore
|
|
3006
|
+
return tx.moveCall({
|
|
3007
|
+
target: "0x3::validator::next_epoch_p2p_address",
|
|
3008
|
+
arguments: _args,
|
|
3009
|
+
});
|
|
3010
|
+
}
|
|
3011
|
+
builder.nextEpochP2pAddress = nextEpochP2pAddress;
|
|
3012
|
+
function nextEpochPrimaryAddress(tx, args) {
|
|
3013
|
+
const _args = [];
|
|
3014
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3015
|
+
// @ts-ignore
|
|
3016
|
+
return tx.moveCall({
|
|
3017
|
+
target: "0x3::validator::next_epoch_primary_address",
|
|
3018
|
+
arguments: _args,
|
|
3019
|
+
});
|
|
3020
|
+
}
|
|
3021
|
+
builder.nextEpochPrimaryAddress = nextEpochPrimaryAddress;
|
|
3022
|
+
function nextEpochProofOfPossession(tx, args) {
|
|
3023
|
+
const _args = [];
|
|
3024
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3025
|
+
// @ts-ignore
|
|
3026
|
+
return tx.moveCall({
|
|
3027
|
+
target: "0x3::validator::next_epoch_proof_of_possession",
|
|
3028
|
+
arguments: _args,
|
|
3029
|
+
});
|
|
3030
|
+
}
|
|
3031
|
+
builder.nextEpochProofOfPossession = nextEpochProofOfPossession;
|
|
3032
|
+
function nextEpochProtocolPubkeyBytes(tx, args) {
|
|
3033
|
+
const _args = [];
|
|
3034
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3035
|
+
// @ts-ignore
|
|
3036
|
+
return tx.moveCall({
|
|
3037
|
+
target: "0x3::validator::next_epoch_protocol_pubkey_bytes",
|
|
3038
|
+
arguments: _args,
|
|
3039
|
+
});
|
|
3040
|
+
}
|
|
3041
|
+
builder.nextEpochProtocolPubkeyBytes = nextEpochProtocolPubkeyBytes;
|
|
3042
|
+
function nextEpochWorkerAddress(tx, args) {
|
|
3043
|
+
const _args = [];
|
|
3044
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3045
|
+
// @ts-ignore
|
|
3046
|
+
return tx.moveCall({
|
|
3047
|
+
target: "0x3::validator::next_epoch_worker_address",
|
|
3048
|
+
arguments: _args,
|
|
3049
|
+
});
|
|
3050
|
+
}
|
|
3051
|
+
builder.nextEpochWorkerAddress = nextEpochWorkerAddress;
|
|
3052
|
+
function nextEpochWorkerPubkeyBytes(tx, args) {
|
|
3053
|
+
const _args = [];
|
|
3054
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3055
|
+
// @ts-ignore
|
|
3056
|
+
return tx.moveCall({
|
|
3057
|
+
target: "0x3::validator::next_epoch_worker_pubkey_bytes",
|
|
3058
|
+
arguments: _args,
|
|
3059
|
+
});
|
|
3060
|
+
}
|
|
3061
|
+
builder.nextEpochWorkerPubkeyBytes = nextEpochWorkerPubkeyBytes;
|
|
3062
|
+
function operationCapId(tx, args) {
|
|
3063
|
+
const _args = [];
|
|
3064
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3065
|
+
// @ts-ignore
|
|
3066
|
+
return tx.moveCall({
|
|
3067
|
+
target: "0x3::validator::operation_cap_id",
|
|
3068
|
+
arguments: _args,
|
|
3069
|
+
});
|
|
3070
|
+
}
|
|
3071
|
+
builder.operationCapId = operationCapId;
|
|
3072
|
+
function p2pAddress(tx, args) {
|
|
3073
|
+
const _args = [];
|
|
3074
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3075
|
+
// @ts-ignore
|
|
3076
|
+
return tx.moveCall({
|
|
3077
|
+
target: "0x3::validator::p2p_address",
|
|
3078
|
+
arguments: _args,
|
|
3079
|
+
});
|
|
3080
|
+
}
|
|
3081
|
+
builder.p2pAddress = p2pAddress;
|
|
3082
|
+
function pendingStakeAmount(tx, args) {
|
|
3083
|
+
const _args = [];
|
|
3084
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3085
|
+
// @ts-ignore
|
|
3086
|
+
return tx.moveCall({
|
|
3087
|
+
target: "0x3::validator::pending_stake_amount",
|
|
3088
|
+
arguments: _args,
|
|
3089
|
+
});
|
|
3090
|
+
}
|
|
3091
|
+
builder.pendingStakeAmount = pendingStakeAmount;
|
|
3092
|
+
function pendingStakeWithdrawAmount(tx, args) {
|
|
3093
|
+
const _args = [];
|
|
3094
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3095
|
+
// @ts-ignore
|
|
3096
|
+
return tx.moveCall({
|
|
3097
|
+
target: "0x3::validator::pending_stake_withdraw_amount",
|
|
3098
|
+
arguments: _args,
|
|
3099
|
+
});
|
|
3100
|
+
}
|
|
3101
|
+
builder.pendingStakeWithdrawAmount = pendingStakeWithdrawAmount;
|
|
3102
|
+
function poolTokenExchangeRateAtEpoch(tx, args) {
|
|
3103
|
+
const _args = [];
|
|
3104
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3105
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3106
|
+
// @ts-ignore
|
|
3107
|
+
return tx.moveCall({
|
|
3108
|
+
target: "0x3::validator::pool_token_exchange_rate_at_epoch",
|
|
3109
|
+
arguments: _args,
|
|
3110
|
+
});
|
|
3111
|
+
}
|
|
3112
|
+
builder.poolTokenExchangeRateAtEpoch = poolTokenExchangeRateAtEpoch;
|
|
3113
|
+
function primaryAddress(tx, args) {
|
|
3114
|
+
const _args = [];
|
|
3115
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3116
|
+
// @ts-ignore
|
|
3117
|
+
return tx.moveCall({
|
|
3118
|
+
target: "0x3::validator::primary_address",
|
|
3119
|
+
arguments: _args,
|
|
3120
|
+
});
|
|
3121
|
+
}
|
|
3122
|
+
builder.primaryAddress = primaryAddress;
|
|
3123
|
+
function processPendingStakesAndWithdraws(tx, args) {
|
|
3124
|
+
const _args = [];
|
|
3125
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3126
|
+
// @ts-ignore
|
|
3127
|
+
return tx.moveCall({
|
|
3128
|
+
target: "0x3::validator::process_pending_stakes_and_withdraws",
|
|
3129
|
+
arguments: _args,
|
|
3130
|
+
});
|
|
3131
|
+
}
|
|
3132
|
+
builder.processPendingStakesAndWithdraws = processPendingStakesAndWithdraws;
|
|
3133
|
+
function projectUrl(tx, args) {
|
|
3134
|
+
const _args = [];
|
|
3135
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3136
|
+
// @ts-ignore
|
|
3137
|
+
return tx.moveCall({
|
|
3138
|
+
target: "0x3::validator::project_url",
|
|
3139
|
+
arguments: _args,
|
|
3140
|
+
});
|
|
3141
|
+
}
|
|
3142
|
+
builder.projectUrl = projectUrl;
|
|
3143
|
+
function proofOfPossession(tx, args) {
|
|
3144
|
+
const _args = [];
|
|
3145
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3146
|
+
// @ts-ignore
|
|
3147
|
+
return tx.moveCall({
|
|
3148
|
+
target: "0x3::validator::proof_of_possession",
|
|
3149
|
+
arguments: _args,
|
|
3150
|
+
});
|
|
3151
|
+
}
|
|
3152
|
+
builder.proofOfPossession = proofOfPossession;
|
|
3153
|
+
function protocolPubkeyBytes(tx, args) {
|
|
3154
|
+
const _args = [];
|
|
3155
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3156
|
+
// @ts-ignore
|
|
3157
|
+
return tx.moveCall({
|
|
3158
|
+
target: "0x3::validator::protocol_pubkey_bytes",
|
|
3159
|
+
arguments: _args,
|
|
3160
|
+
});
|
|
3161
|
+
}
|
|
3162
|
+
builder.protocolPubkeyBytes = protocolPubkeyBytes;
|
|
3163
|
+
function requestAddStake(tx, args) {
|
|
3164
|
+
const _args = [];
|
|
3165
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3166
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3167
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
3168
|
+
// @ts-ignore
|
|
3169
|
+
return tx.moveCall({
|
|
3170
|
+
target: "0x3::validator::request_add_stake",
|
|
3171
|
+
arguments: _args,
|
|
3172
|
+
});
|
|
3173
|
+
}
|
|
3174
|
+
builder.requestAddStake = requestAddStake;
|
|
3175
|
+
function requestAddStakeAtGenesis(tx, args) {
|
|
3176
|
+
const _args = [];
|
|
3177
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3178
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3179
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
3180
|
+
// @ts-ignore
|
|
3181
|
+
return tx.moveCall({
|
|
3182
|
+
target: "0x3::validator::request_add_stake_at_genesis",
|
|
3183
|
+
arguments: _args,
|
|
3184
|
+
});
|
|
3185
|
+
}
|
|
3186
|
+
builder.requestAddStakeAtGenesis = requestAddStakeAtGenesis;
|
|
3187
|
+
function requestSetCommissionRate(tx, args) {
|
|
3188
|
+
const _args = [];
|
|
3189
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3190
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3191
|
+
// @ts-ignore
|
|
3192
|
+
return tx.moveCall({
|
|
3193
|
+
target: "0x3::validator::request_set_commission_rate",
|
|
3194
|
+
arguments: _args,
|
|
3195
|
+
});
|
|
3196
|
+
}
|
|
3197
|
+
builder.requestSetCommissionRate = requestSetCommissionRate;
|
|
3198
|
+
function requestSetGasPrice(tx, args) {
|
|
3199
|
+
const _args = [];
|
|
3200
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3201
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3202
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
3203
|
+
// @ts-ignore
|
|
3204
|
+
return tx.moveCall({
|
|
3205
|
+
target: "0x3::validator::request_set_gas_price",
|
|
3206
|
+
arguments: _args,
|
|
3207
|
+
});
|
|
3208
|
+
}
|
|
3209
|
+
builder.requestSetGasPrice = requestSetGasPrice;
|
|
3210
|
+
function requestWithdrawStake(tx, args) {
|
|
3211
|
+
const _args = [];
|
|
3212
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3213
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3214
|
+
// @ts-ignore
|
|
3215
|
+
return tx.moveCall({
|
|
3216
|
+
target: "0x3::validator::request_withdraw_stake",
|
|
3217
|
+
arguments: _args,
|
|
3218
|
+
});
|
|
3219
|
+
}
|
|
3220
|
+
builder.requestWithdrawStake = requestWithdrawStake;
|
|
3221
|
+
function setCandidateCommissionRate(tx, args) {
|
|
3222
|
+
const _args = [];
|
|
3223
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3224
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3225
|
+
// @ts-ignore
|
|
3226
|
+
return tx.moveCall({
|
|
3227
|
+
target: "0x3::validator::set_candidate_commission_rate",
|
|
3228
|
+
arguments: _args,
|
|
3229
|
+
});
|
|
3230
|
+
}
|
|
3231
|
+
builder.setCandidateCommissionRate = setCandidateCommissionRate;
|
|
3232
|
+
function setCandidateGasPrice(tx, args) {
|
|
3233
|
+
const _args = [];
|
|
3234
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3235
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3236
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
3237
|
+
// @ts-ignore
|
|
3238
|
+
return tx.moveCall({
|
|
3239
|
+
target: "0x3::validator::set_candidate_gas_price",
|
|
3240
|
+
arguments: _args,
|
|
3241
|
+
});
|
|
3242
|
+
}
|
|
3243
|
+
builder.setCandidateGasPrice = setCandidateGasPrice;
|
|
3244
|
+
function setVotingPower(tx, args) {
|
|
3245
|
+
const _args = [];
|
|
3246
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3247
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
3248
|
+
// @ts-ignore
|
|
3249
|
+
return tx.moveCall({
|
|
3250
|
+
target: "0x3::validator::set_voting_power",
|
|
3251
|
+
arguments: _args,
|
|
3252
|
+
});
|
|
3253
|
+
}
|
|
3254
|
+
builder.setVotingPower = setVotingPower;
|
|
3255
|
+
function stakeAmount(tx, args) {
|
|
3256
|
+
const _args = [];
|
|
3257
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3258
|
+
// @ts-ignore
|
|
3259
|
+
return tx.moveCall({
|
|
3260
|
+
target: "0x3::validator::stake_amount",
|
|
3261
|
+
arguments: _args,
|
|
3262
|
+
});
|
|
3263
|
+
}
|
|
3264
|
+
builder.stakeAmount = stakeAmount;
|
|
3265
|
+
function stakingPoolId(tx, args) {
|
|
3266
|
+
const _args = [];
|
|
3267
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3268
|
+
// @ts-ignore
|
|
3269
|
+
return tx.moveCall({
|
|
3270
|
+
target: "0x3::validator::staking_pool_id",
|
|
3271
|
+
arguments: _args,
|
|
3272
|
+
});
|
|
3273
|
+
}
|
|
3274
|
+
builder.stakingPoolId = stakingPoolId;
|
|
3275
|
+
function suiAddress(tx, args) {
|
|
3276
|
+
const _args = [];
|
|
3277
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3278
|
+
// @ts-ignore
|
|
3279
|
+
return tx.moveCall({
|
|
3280
|
+
target: "0x3::validator::sui_address",
|
|
3281
|
+
arguments: _args,
|
|
3282
|
+
});
|
|
3283
|
+
}
|
|
3284
|
+
builder.suiAddress = suiAddress;
|
|
3285
|
+
function totalStake(tx, args) {
|
|
3286
|
+
const _args = [];
|
|
3287
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3288
|
+
// @ts-ignore
|
|
3289
|
+
return tx.moveCall({
|
|
3290
|
+
target: "0x3::validator::total_stake",
|
|
3291
|
+
arguments: _args,
|
|
3292
|
+
});
|
|
3293
|
+
}
|
|
3294
|
+
builder.totalStake = totalStake;
|
|
3295
|
+
function totalStakeAmount(tx, args) {
|
|
3296
|
+
const _args = [];
|
|
3297
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3298
|
+
// @ts-ignore
|
|
3299
|
+
return tx.moveCall({
|
|
3300
|
+
target: "0x3::validator::total_stake_amount",
|
|
3301
|
+
arguments: _args,
|
|
3302
|
+
});
|
|
3303
|
+
}
|
|
3304
|
+
builder.totalStakeAmount = totalStakeAmount;
|
|
3305
|
+
function updateCandidateNetworkAddress(tx, args) {
|
|
3306
|
+
const _args = [];
|
|
3307
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3308
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3309
|
+
// @ts-ignore
|
|
3310
|
+
return tx.moveCall({
|
|
3311
|
+
target: "0x3::validator::update_candidate_network_address",
|
|
3312
|
+
arguments: _args,
|
|
3313
|
+
});
|
|
3314
|
+
}
|
|
3315
|
+
builder.updateCandidateNetworkAddress = updateCandidateNetworkAddress;
|
|
3316
|
+
function updateCandidateNetworkPubkey(tx, args) {
|
|
3317
|
+
const _args = [];
|
|
3318
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3319
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3320
|
+
// @ts-ignore
|
|
3321
|
+
return tx.moveCall({
|
|
3322
|
+
target: "0x3::validator::update_candidate_network_pubkey",
|
|
3323
|
+
arguments: _args,
|
|
3324
|
+
});
|
|
3325
|
+
}
|
|
3326
|
+
builder.updateCandidateNetworkPubkey = updateCandidateNetworkPubkey;
|
|
3327
|
+
function updateCandidateP2pAddress(tx, args) {
|
|
3328
|
+
const _args = [];
|
|
3329
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3330
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3331
|
+
// @ts-ignore
|
|
3332
|
+
return tx.moveCall({
|
|
3333
|
+
target: "0x3::validator::update_candidate_p2p_address",
|
|
3334
|
+
arguments: _args,
|
|
3335
|
+
});
|
|
3336
|
+
}
|
|
3337
|
+
builder.updateCandidateP2pAddress = updateCandidateP2pAddress;
|
|
3338
|
+
function updateCandidatePrimaryAddress(tx, args) {
|
|
3339
|
+
const _args = [];
|
|
3340
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3341
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3342
|
+
// @ts-ignore
|
|
3343
|
+
return tx.moveCall({
|
|
3344
|
+
target: "0x3::validator::update_candidate_primary_address",
|
|
3345
|
+
arguments: _args,
|
|
3346
|
+
});
|
|
3347
|
+
}
|
|
3348
|
+
builder.updateCandidatePrimaryAddress = updateCandidatePrimaryAddress;
|
|
3349
|
+
function updateCandidateProtocolPubkey(tx, args) {
|
|
3350
|
+
const _args = [];
|
|
3351
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3352
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3353
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[2], tx));
|
|
3354
|
+
// @ts-ignore
|
|
3355
|
+
return tx.moveCall({
|
|
3356
|
+
target: "0x3::validator::update_candidate_protocol_pubkey",
|
|
3357
|
+
arguments: _args,
|
|
3358
|
+
});
|
|
3359
|
+
}
|
|
3360
|
+
builder.updateCandidateProtocolPubkey = updateCandidateProtocolPubkey;
|
|
3361
|
+
function updateCandidateWorkerAddress(tx, args) {
|
|
3362
|
+
const _args = [];
|
|
3363
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3364
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3365
|
+
// @ts-ignore
|
|
3366
|
+
return tx.moveCall({
|
|
3367
|
+
target: "0x3::validator::update_candidate_worker_address",
|
|
3368
|
+
arguments: _args,
|
|
3369
|
+
});
|
|
3370
|
+
}
|
|
3371
|
+
builder.updateCandidateWorkerAddress = updateCandidateWorkerAddress;
|
|
3372
|
+
function updateCandidateWorkerPubkey(tx, args) {
|
|
3373
|
+
const _args = [];
|
|
3374
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3375
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3376
|
+
// @ts-ignore
|
|
3377
|
+
return tx.moveCall({
|
|
3378
|
+
target: "0x3::validator::update_candidate_worker_pubkey",
|
|
3379
|
+
arguments: _args,
|
|
3380
|
+
});
|
|
3381
|
+
}
|
|
3382
|
+
builder.updateCandidateWorkerPubkey = updateCandidateWorkerPubkey;
|
|
3383
|
+
function updateDescription(tx, args) {
|
|
3384
|
+
const _args = [];
|
|
3385
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3386
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3387
|
+
// @ts-ignore
|
|
3388
|
+
return tx.moveCall({
|
|
3389
|
+
target: "0x3::validator::update_description",
|
|
3390
|
+
arguments: _args,
|
|
3391
|
+
});
|
|
3392
|
+
}
|
|
3393
|
+
builder.updateDescription = updateDescription;
|
|
3394
|
+
function updateImageUrl(tx, args) {
|
|
3395
|
+
const _args = [];
|
|
3396
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3397
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3398
|
+
// @ts-ignore
|
|
3399
|
+
return tx.moveCall({
|
|
3400
|
+
target: "0x3::validator::update_image_url",
|
|
3401
|
+
arguments: _args,
|
|
3402
|
+
});
|
|
3403
|
+
}
|
|
3404
|
+
builder.updateImageUrl = updateImageUrl;
|
|
3405
|
+
function updateName(tx, args) {
|
|
3406
|
+
const _args = [];
|
|
3407
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3408
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3409
|
+
// @ts-ignore
|
|
3410
|
+
return tx.moveCall({
|
|
3411
|
+
target: "0x3::validator::update_name",
|
|
3412
|
+
arguments: _args,
|
|
3413
|
+
});
|
|
3414
|
+
}
|
|
3415
|
+
builder.updateName = updateName;
|
|
3416
|
+
function updateNextEpochNetworkAddress(tx, args) {
|
|
3417
|
+
const _args = [];
|
|
3418
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3419
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3420
|
+
// @ts-ignore
|
|
3421
|
+
return tx.moveCall({
|
|
3422
|
+
target: "0x3::validator::update_next_epoch_network_address",
|
|
3423
|
+
arguments: _args,
|
|
3424
|
+
});
|
|
3425
|
+
}
|
|
3426
|
+
builder.updateNextEpochNetworkAddress = updateNextEpochNetworkAddress;
|
|
3427
|
+
function updateNextEpochNetworkPubkey(tx, args) {
|
|
3428
|
+
const _args = [];
|
|
3429
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3430
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3431
|
+
// @ts-ignore
|
|
3432
|
+
return tx.moveCall({
|
|
3433
|
+
target: "0x3::validator::update_next_epoch_network_pubkey",
|
|
3434
|
+
arguments: _args,
|
|
3435
|
+
});
|
|
3436
|
+
}
|
|
3437
|
+
builder.updateNextEpochNetworkPubkey = updateNextEpochNetworkPubkey;
|
|
3438
|
+
function updateNextEpochP2pAddress(tx, args) {
|
|
3439
|
+
const _args = [];
|
|
3440
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3441
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3442
|
+
// @ts-ignore
|
|
3443
|
+
return tx.moveCall({
|
|
3444
|
+
target: "0x3::validator::update_next_epoch_p2p_address",
|
|
3445
|
+
arguments: _args,
|
|
3446
|
+
});
|
|
3447
|
+
}
|
|
3448
|
+
builder.updateNextEpochP2pAddress = updateNextEpochP2pAddress;
|
|
3449
|
+
function updateNextEpochPrimaryAddress(tx, args) {
|
|
3450
|
+
const _args = [];
|
|
3451
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3452
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3453
|
+
// @ts-ignore
|
|
3454
|
+
return tx.moveCall({
|
|
3455
|
+
target: "0x3::validator::update_next_epoch_primary_address",
|
|
3456
|
+
arguments: _args,
|
|
3457
|
+
});
|
|
3458
|
+
}
|
|
3459
|
+
builder.updateNextEpochPrimaryAddress = updateNextEpochPrimaryAddress;
|
|
3460
|
+
function updateNextEpochProtocolPubkey(tx, args) {
|
|
3461
|
+
const _args = [];
|
|
3462
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3463
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3464
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[2], tx));
|
|
3465
|
+
// @ts-ignore
|
|
3466
|
+
return tx.moveCall({
|
|
3467
|
+
target: "0x3::validator::update_next_epoch_protocol_pubkey",
|
|
3468
|
+
arguments: _args,
|
|
3469
|
+
});
|
|
3470
|
+
}
|
|
3471
|
+
builder.updateNextEpochProtocolPubkey = updateNextEpochProtocolPubkey;
|
|
3472
|
+
function updateNextEpochWorkerAddress(tx, args) {
|
|
3473
|
+
const _args = [];
|
|
3474
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3475
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3476
|
+
// @ts-ignore
|
|
3477
|
+
return tx.moveCall({
|
|
3478
|
+
target: "0x3::validator::update_next_epoch_worker_address",
|
|
3479
|
+
arguments: _args,
|
|
3480
|
+
});
|
|
3481
|
+
}
|
|
3482
|
+
builder.updateNextEpochWorkerAddress = updateNextEpochWorkerAddress;
|
|
3483
|
+
function updateNextEpochWorkerPubkey(tx, args) {
|
|
3484
|
+
const _args = [];
|
|
3485
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3486
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3487
|
+
// @ts-ignore
|
|
3488
|
+
return tx.moveCall({
|
|
3489
|
+
target: "0x3::validator::update_next_epoch_worker_pubkey",
|
|
3490
|
+
arguments: _args,
|
|
3491
|
+
});
|
|
3492
|
+
}
|
|
3493
|
+
builder.updateNextEpochWorkerPubkey = updateNextEpochWorkerPubkey;
|
|
3494
|
+
function updateProjectUrl(tx, args) {
|
|
3495
|
+
const _args = [];
|
|
3496
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3497
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[1], tx));
|
|
3498
|
+
// @ts-ignore
|
|
3499
|
+
return tx.moveCall({
|
|
3500
|
+
target: "0x3::validator::update_project_url",
|
|
3501
|
+
arguments: _args,
|
|
3502
|
+
});
|
|
3503
|
+
}
|
|
3504
|
+
builder.updateProjectUrl = updateProjectUrl;
|
|
3505
|
+
function validateMetadata(tx, args) {
|
|
3506
|
+
const _args = [];
|
|
3507
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3508
|
+
// @ts-ignore
|
|
3509
|
+
return tx.moveCall({
|
|
3510
|
+
target: "0x3::validator::validate_metadata",
|
|
3511
|
+
arguments: _args,
|
|
3512
|
+
});
|
|
3513
|
+
}
|
|
3514
|
+
builder.validateMetadata = validateMetadata;
|
|
3515
|
+
function validateMetadataBcs(tx, args) {
|
|
3516
|
+
const _args = [];
|
|
3517
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
|
|
3518
|
+
// @ts-ignore
|
|
3519
|
+
return tx.moveCall({
|
|
3520
|
+
target: "0x3::validator::validate_metadata_bcs",
|
|
3521
|
+
arguments: _args,
|
|
3522
|
+
});
|
|
3523
|
+
}
|
|
3524
|
+
builder.validateMetadataBcs = validateMetadataBcs;
|
|
3525
|
+
function votingPower(tx, args) {
|
|
3526
|
+
const _args = [];
|
|
3527
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3528
|
+
// @ts-ignore
|
|
3529
|
+
return tx.moveCall({
|
|
3530
|
+
target: "0x3::validator::voting_power",
|
|
3531
|
+
arguments: _args,
|
|
3532
|
+
});
|
|
3533
|
+
}
|
|
3534
|
+
builder.votingPower = votingPower;
|
|
3535
|
+
function workerAddress(tx, args) {
|
|
3536
|
+
const _args = [];
|
|
3537
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3538
|
+
// @ts-ignore
|
|
3539
|
+
return tx.moveCall({
|
|
3540
|
+
target: "0x3::validator::worker_address",
|
|
3541
|
+
arguments: _args,
|
|
3542
|
+
});
|
|
3543
|
+
}
|
|
3544
|
+
builder.workerAddress = workerAddress;
|
|
3545
|
+
function workerPubkeyBytes(tx, args) {
|
|
3546
|
+
const _args = [];
|
|
3547
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
3548
|
+
// @ts-ignore
|
|
3549
|
+
return tx.moveCall({
|
|
3550
|
+
target: "0x3::validator::worker_pubkey_bytes",
|
|
3551
|
+
arguments: _args,
|
|
3552
|
+
});
|
|
3553
|
+
}
|
|
3554
|
+
builder.workerPubkeyBytes = workerPubkeyBytes;
|
|
3555
|
+
})(builder = validator.builder || (validator.builder = {}));
|
|
3556
|
+
let view;
|
|
3557
|
+
(function (view) {
|
|
3558
|
+
async function activate(client, args) {
|
|
3559
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3560
|
+
builder.activate(tx, args);
|
|
3561
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3562
|
+
transactionBlock: tx,
|
|
3563
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3564
|
+
});
|
|
3565
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3566
|
+
}
|
|
3567
|
+
view.activate = activate;
|
|
3568
|
+
async function adjustStakeAndGasPrice(client, args) {
|
|
3569
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3570
|
+
builder.adjustStakeAndGasPrice(tx, args);
|
|
3571
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3572
|
+
transactionBlock: tx,
|
|
3573
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3574
|
+
});
|
|
3575
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3576
|
+
}
|
|
3577
|
+
view.adjustStakeAndGasPrice = adjustStakeAndGasPrice;
|
|
3578
|
+
async function commissionRate(client, args) {
|
|
3579
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3580
|
+
builder.commissionRate(tx, args);
|
|
3581
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3582
|
+
transactionBlock: tx,
|
|
3583
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3584
|
+
});
|
|
3585
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3586
|
+
}
|
|
3587
|
+
view.commissionRate = commissionRate;
|
|
3588
|
+
async function deactivate(client, args) {
|
|
3589
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3590
|
+
builder.deactivate(tx, args);
|
|
3591
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3592
|
+
transactionBlock: tx,
|
|
3593
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3594
|
+
});
|
|
3595
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3596
|
+
}
|
|
3597
|
+
view.deactivate = deactivate;
|
|
3598
|
+
async function depositStakeRewards(client, args) {
|
|
3599
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3600
|
+
builder.depositStakeRewards(tx, args);
|
|
3601
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3602
|
+
transactionBlock: tx,
|
|
3603
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3604
|
+
});
|
|
3605
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3606
|
+
}
|
|
3607
|
+
view.depositStakeRewards = depositStakeRewards;
|
|
3608
|
+
async function description(client, args) {
|
|
3609
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3610
|
+
builder.description(tx, args);
|
|
3611
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3612
|
+
transactionBlock: tx,
|
|
3613
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3614
|
+
});
|
|
3615
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3616
|
+
}
|
|
3617
|
+
view.description = description;
|
|
3618
|
+
async function effectuateStagedMetadata(client, args) {
|
|
3619
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3620
|
+
builder.effectuateStagedMetadata(tx, args);
|
|
3621
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3622
|
+
transactionBlock: tx,
|
|
3623
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3624
|
+
});
|
|
3625
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3626
|
+
}
|
|
3627
|
+
view.effectuateStagedMetadata = effectuateStagedMetadata;
|
|
3628
|
+
async function gasPrice(client, args) {
|
|
3629
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3630
|
+
builder.gasPrice(tx, args);
|
|
3631
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3632
|
+
transactionBlock: tx,
|
|
3633
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3634
|
+
});
|
|
3635
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3636
|
+
}
|
|
3637
|
+
view.gasPrice = gasPrice;
|
|
3638
|
+
async function getStakingPoolRef(client, args) {
|
|
3639
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3640
|
+
builder.getStakingPoolRef(tx, args);
|
|
3641
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3642
|
+
transactionBlock: tx,
|
|
3643
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3644
|
+
});
|
|
3645
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3646
|
+
}
|
|
3647
|
+
view.getStakingPoolRef = getStakingPoolRef;
|
|
3648
|
+
async function imageUrl(client, args) {
|
|
3649
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3650
|
+
builder.imageUrl(tx, args);
|
|
3651
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3652
|
+
transactionBlock: tx,
|
|
3653
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3654
|
+
});
|
|
3655
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3656
|
+
}
|
|
3657
|
+
view.imageUrl = imageUrl;
|
|
3658
|
+
async function isDuplicate(client, args) {
|
|
3659
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3660
|
+
builder.isDuplicate(tx, args);
|
|
3661
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3662
|
+
transactionBlock: tx,
|
|
3663
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3664
|
+
});
|
|
3665
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3666
|
+
}
|
|
3667
|
+
view.isDuplicate = isDuplicate;
|
|
3668
|
+
async function isPreactive(client, args) {
|
|
3669
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3670
|
+
builder.isPreactive(tx, args);
|
|
3671
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3672
|
+
transactionBlock: tx,
|
|
3673
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3674
|
+
});
|
|
3675
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3676
|
+
}
|
|
3677
|
+
view.isPreactive = isPreactive;
|
|
3678
|
+
async function metadata(client, args) {
|
|
3679
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3680
|
+
builder.metadata(tx, args);
|
|
3681
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3682
|
+
transactionBlock: tx,
|
|
3683
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3684
|
+
});
|
|
3685
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3686
|
+
}
|
|
3687
|
+
view.metadata = metadata;
|
|
3688
|
+
async function name(client, args) {
|
|
3689
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3690
|
+
builder.name(tx, args);
|
|
3691
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3692
|
+
transactionBlock: tx,
|
|
3693
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3694
|
+
});
|
|
3695
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3696
|
+
}
|
|
3697
|
+
view.name = name;
|
|
3698
|
+
async function networkAddress(client, args) {
|
|
3699
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3700
|
+
builder.networkAddress(tx, args);
|
|
3701
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3702
|
+
transactionBlock: tx,
|
|
3703
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3704
|
+
});
|
|
3705
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3706
|
+
}
|
|
3707
|
+
view.networkAddress = networkAddress;
|
|
3708
|
+
async function networkPubkeyBytes(client, args) {
|
|
3709
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3710
|
+
builder.networkPubkeyBytes(tx, args);
|
|
3711
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3712
|
+
transactionBlock: tx,
|
|
3713
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3714
|
+
});
|
|
3715
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3716
|
+
}
|
|
3717
|
+
view.networkPubkeyBytes = networkPubkeyBytes;
|
|
3718
|
+
async function new_(client, args) {
|
|
3719
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3720
|
+
builder.new_(tx, args);
|
|
3721
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3722
|
+
transactionBlock: tx,
|
|
3723
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3724
|
+
});
|
|
3725
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3726
|
+
}
|
|
3727
|
+
view.new_ = new_;
|
|
3728
|
+
async function newMetadata(client, args) {
|
|
3729
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3730
|
+
builder.newMetadata(tx, args);
|
|
3731
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3732
|
+
transactionBlock: tx,
|
|
3733
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3734
|
+
});
|
|
3735
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3736
|
+
}
|
|
3737
|
+
view.newMetadata = newMetadata;
|
|
3738
|
+
async function newUnverifiedValidatorOperationCapAndTransfer(client, args) {
|
|
3739
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3740
|
+
builder.newUnverifiedValidatorOperationCapAndTransfer(tx, args);
|
|
3741
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3742
|
+
transactionBlock: tx,
|
|
3743
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3744
|
+
});
|
|
3745
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3746
|
+
}
|
|
3747
|
+
view.newUnverifiedValidatorOperationCapAndTransfer = newUnverifiedValidatorOperationCapAndTransfer;
|
|
3748
|
+
async function nextEpochGasPrice(client, args) {
|
|
3749
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3750
|
+
builder.nextEpochGasPrice(tx, args);
|
|
3751
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3752
|
+
transactionBlock: tx,
|
|
3753
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3754
|
+
});
|
|
3755
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3756
|
+
}
|
|
3757
|
+
view.nextEpochGasPrice = nextEpochGasPrice;
|
|
3758
|
+
async function nextEpochNetworkAddress(client, args) {
|
|
3759
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3760
|
+
builder.nextEpochNetworkAddress(tx, args);
|
|
3761
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3762
|
+
transactionBlock: tx,
|
|
3763
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3764
|
+
});
|
|
3765
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3766
|
+
}
|
|
3767
|
+
view.nextEpochNetworkAddress = nextEpochNetworkAddress;
|
|
3768
|
+
async function nextEpochNetworkPubkeyBytes(client, args) {
|
|
3769
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3770
|
+
builder.nextEpochNetworkPubkeyBytes(tx, args);
|
|
3771
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3772
|
+
transactionBlock: tx,
|
|
3773
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3774
|
+
});
|
|
3775
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3776
|
+
}
|
|
3777
|
+
view.nextEpochNetworkPubkeyBytes = nextEpochNetworkPubkeyBytes;
|
|
3778
|
+
async function nextEpochP2pAddress(client, args) {
|
|
3779
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3780
|
+
builder.nextEpochP2pAddress(tx, args);
|
|
3781
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3782
|
+
transactionBlock: tx,
|
|
3783
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3784
|
+
});
|
|
3785
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3786
|
+
}
|
|
3787
|
+
view.nextEpochP2pAddress = nextEpochP2pAddress;
|
|
3788
|
+
async function nextEpochPrimaryAddress(client, args) {
|
|
3789
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3790
|
+
builder.nextEpochPrimaryAddress(tx, args);
|
|
3791
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3792
|
+
transactionBlock: tx,
|
|
3793
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3794
|
+
});
|
|
3795
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3796
|
+
}
|
|
3797
|
+
view.nextEpochPrimaryAddress = nextEpochPrimaryAddress;
|
|
3798
|
+
async function nextEpochProofOfPossession(client, args) {
|
|
3799
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3800
|
+
builder.nextEpochProofOfPossession(tx, args);
|
|
3801
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3802
|
+
transactionBlock: tx,
|
|
3803
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3804
|
+
});
|
|
3805
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3806
|
+
}
|
|
3807
|
+
view.nextEpochProofOfPossession = nextEpochProofOfPossession;
|
|
3808
|
+
async function nextEpochProtocolPubkeyBytes(client, args) {
|
|
3809
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3810
|
+
builder.nextEpochProtocolPubkeyBytes(tx, args);
|
|
3811
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3812
|
+
transactionBlock: tx,
|
|
3813
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3814
|
+
});
|
|
3815
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3816
|
+
}
|
|
3817
|
+
view.nextEpochProtocolPubkeyBytes = nextEpochProtocolPubkeyBytes;
|
|
3818
|
+
async function nextEpochWorkerAddress(client, args) {
|
|
3819
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3820
|
+
builder.nextEpochWorkerAddress(tx, args);
|
|
3821
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3822
|
+
transactionBlock: tx,
|
|
3823
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3824
|
+
});
|
|
3825
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3826
|
+
}
|
|
3827
|
+
view.nextEpochWorkerAddress = nextEpochWorkerAddress;
|
|
3828
|
+
async function nextEpochWorkerPubkeyBytes(client, args) {
|
|
3829
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3830
|
+
builder.nextEpochWorkerPubkeyBytes(tx, args);
|
|
3831
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3832
|
+
transactionBlock: tx,
|
|
3833
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3834
|
+
});
|
|
3835
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3836
|
+
}
|
|
3837
|
+
view.nextEpochWorkerPubkeyBytes = nextEpochWorkerPubkeyBytes;
|
|
3838
|
+
async function operationCapId(client, args) {
|
|
3839
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3840
|
+
builder.operationCapId(tx, args);
|
|
3841
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3842
|
+
transactionBlock: tx,
|
|
3843
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3844
|
+
});
|
|
3845
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3846
|
+
}
|
|
3847
|
+
view.operationCapId = operationCapId;
|
|
3848
|
+
async function p2pAddress(client, args) {
|
|
3849
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3850
|
+
builder.p2pAddress(tx, args);
|
|
3851
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3852
|
+
transactionBlock: tx,
|
|
3853
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3854
|
+
});
|
|
3855
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3856
|
+
}
|
|
3857
|
+
view.p2pAddress = p2pAddress;
|
|
3858
|
+
async function pendingStakeAmount(client, args) {
|
|
3859
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3860
|
+
builder.pendingStakeAmount(tx, args);
|
|
3861
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3862
|
+
transactionBlock: tx,
|
|
3863
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3864
|
+
});
|
|
3865
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3866
|
+
}
|
|
3867
|
+
view.pendingStakeAmount = pendingStakeAmount;
|
|
3868
|
+
async function pendingStakeWithdrawAmount(client, args) {
|
|
3869
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3870
|
+
builder.pendingStakeWithdrawAmount(tx, args);
|
|
3871
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3872
|
+
transactionBlock: tx,
|
|
3873
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3874
|
+
});
|
|
3875
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3876
|
+
}
|
|
3877
|
+
view.pendingStakeWithdrawAmount = pendingStakeWithdrawAmount;
|
|
3878
|
+
async function poolTokenExchangeRateAtEpoch(client, args) {
|
|
3879
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3880
|
+
builder.poolTokenExchangeRateAtEpoch(tx, args);
|
|
3881
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3882
|
+
transactionBlock: tx,
|
|
3883
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3884
|
+
});
|
|
3885
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3886
|
+
}
|
|
3887
|
+
view.poolTokenExchangeRateAtEpoch = poolTokenExchangeRateAtEpoch;
|
|
3888
|
+
async function primaryAddress(client, args) {
|
|
3889
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3890
|
+
builder.primaryAddress(tx, args);
|
|
3891
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3892
|
+
transactionBlock: tx,
|
|
3893
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3894
|
+
});
|
|
3895
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3896
|
+
}
|
|
3897
|
+
view.primaryAddress = primaryAddress;
|
|
3898
|
+
async function processPendingStakesAndWithdraws(client, args) {
|
|
3899
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3900
|
+
builder.processPendingStakesAndWithdraws(tx, args);
|
|
3901
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3902
|
+
transactionBlock: tx,
|
|
3903
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3904
|
+
});
|
|
3905
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3906
|
+
}
|
|
3907
|
+
view.processPendingStakesAndWithdraws = processPendingStakesAndWithdraws;
|
|
3908
|
+
async function projectUrl(client, args) {
|
|
3909
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3910
|
+
builder.projectUrl(tx, args);
|
|
3911
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3912
|
+
transactionBlock: tx,
|
|
3913
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3914
|
+
});
|
|
3915
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3916
|
+
}
|
|
3917
|
+
view.projectUrl = projectUrl;
|
|
3918
|
+
async function proofOfPossession(client, args) {
|
|
3919
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3920
|
+
builder.proofOfPossession(tx, args);
|
|
3921
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3922
|
+
transactionBlock: tx,
|
|
3923
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3924
|
+
});
|
|
3925
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3926
|
+
}
|
|
3927
|
+
view.proofOfPossession = proofOfPossession;
|
|
3928
|
+
async function protocolPubkeyBytes(client, args) {
|
|
3929
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3930
|
+
builder.protocolPubkeyBytes(tx, args);
|
|
3931
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3932
|
+
transactionBlock: tx,
|
|
3933
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3934
|
+
});
|
|
3935
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3936
|
+
}
|
|
3937
|
+
view.protocolPubkeyBytes = protocolPubkeyBytes;
|
|
3938
|
+
async function requestAddStake(client, args) {
|
|
3939
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3940
|
+
builder.requestAddStake(tx, args);
|
|
3941
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3942
|
+
transactionBlock: tx,
|
|
3943
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3944
|
+
});
|
|
3945
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3946
|
+
}
|
|
3947
|
+
view.requestAddStake = requestAddStake;
|
|
3948
|
+
async function requestAddStakeAtGenesis(client, args) {
|
|
3949
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3950
|
+
builder.requestAddStakeAtGenesis(tx, args);
|
|
3951
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3952
|
+
transactionBlock: tx,
|
|
3953
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3954
|
+
});
|
|
3955
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3956
|
+
}
|
|
3957
|
+
view.requestAddStakeAtGenesis = requestAddStakeAtGenesis;
|
|
3958
|
+
async function requestSetCommissionRate(client, args) {
|
|
3959
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3960
|
+
builder.requestSetCommissionRate(tx, args);
|
|
3961
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3962
|
+
transactionBlock: tx,
|
|
3963
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3964
|
+
});
|
|
3965
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3966
|
+
}
|
|
3967
|
+
view.requestSetCommissionRate = requestSetCommissionRate;
|
|
3968
|
+
async function requestSetGasPrice(client, args) {
|
|
3969
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3970
|
+
builder.requestSetGasPrice(tx, args);
|
|
3971
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3972
|
+
transactionBlock: tx,
|
|
3973
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3974
|
+
});
|
|
3975
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3976
|
+
}
|
|
3977
|
+
view.requestSetGasPrice = requestSetGasPrice;
|
|
3978
|
+
async function requestWithdrawStake(client, args) {
|
|
3979
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3980
|
+
builder.requestWithdrawStake(tx, args);
|
|
3981
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3982
|
+
transactionBlock: tx,
|
|
3983
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3984
|
+
});
|
|
3985
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3986
|
+
}
|
|
3987
|
+
view.requestWithdrawStake = requestWithdrawStake;
|
|
3988
|
+
async function setCandidateCommissionRate(client, args) {
|
|
3989
|
+
const tx = new transactions_1.TransactionBlock();
|
|
3990
|
+
builder.setCandidateCommissionRate(tx, args);
|
|
3991
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3992
|
+
transactionBlock: tx,
|
|
3993
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
3994
|
+
});
|
|
3995
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
3996
|
+
}
|
|
3997
|
+
view.setCandidateCommissionRate = setCandidateCommissionRate;
|
|
3998
|
+
async function setCandidateGasPrice(client, args) {
|
|
3999
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4000
|
+
builder.setCandidateGasPrice(tx, args);
|
|
4001
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4002
|
+
transactionBlock: tx,
|
|
4003
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4004
|
+
});
|
|
4005
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4006
|
+
}
|
|
4007
|
+
view.setCandidateGasPrice = setCandidateGasPrice;
|
|
4008
|
+
async function setVotingPower(client, args) {
|
|
4009
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4010
|
+
builder.setVotingPower(tx, args);
|
|
4011
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4012
|
+
transactionBlock: tx,
|
|
4013
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4014
|
+
});
|
|
4015
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4016
|
+
}
|
|
4017
|
+
view.setVotingPower = setVotingPower;
|
|
4018
|
+
async function stakeAmount(client, args) {
|
|
4019
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4020
|
+
builder.stakeAmount(tx, args);
|
|
4021
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4022
|
+
transactionBlock: tx,
|
|
4023
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4024
|
+
});
|
|
4025
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4026
|
+
}
|
|
4027
|
+
view.stakeAmount = stakeAmount;
|
|
4028
|
+
async function stakingPoolId(client, args) {
|
|
4029
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4030
|
+
builder.stakingPoolId(tx, args);
|
|
4031
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4032
|
+
transactionBlock: tx,
|
|
4033
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4034
|
+
});
|
|
4035
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4036
|
+
}
|
|
4037
|
+
view.stakingPoolId = stakingPoolId;
|
|
4038
|
+
async function suiAddress(client, args) {
|
|
4039
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4040
|
+
builder.suiAddress(tx, args);
|
|
4041
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4042
|
+
transactionBlock: tx,
|
|
4043
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4044
|
+
});
|
|
4045
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4046
|
+
}
|
|
4047
|
+
view.suiAddress = suiAddress;
|
|
4048
|
+
async function totalStake(client, args) {
|
|
4049
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4050
|
+
builder.totalStake(tx, args);
|
|
4051
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4052
|
+
transactionBlock: tx,
|
|
4053
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4054
|
+
});
|
|
4055
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4056
|
+
}
|
|
4057
|
+
view.totalStake = totalStake;
|
|
4058
|
+
async function totalStakeAmount(client, args) {
|
|
2078
4059
|
const tx = new transactions_1.TransactionBlock();
|
|
2079
4060
|
builder.totalStakeAmount(tx, args);
|
|
2080
4061
|
const inspectRes = await client.devInspectTransactionBlock({
|
|
@@ -2083,7 +4064,187 @@ var validator;
|
|
|
2083
4064
|
});
|
|
2084
4065
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2085
4066
|
}
|
|
2086
|
-
view.totalStakeAmount = totalStakeAmount;
|
|
4067
|
+
view.totalStakeAmount = totalStakeAmount;
|
|
4068
|
+
async function updateCandidateNetworkAddress(client, args) {
|
|
4069
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4070
|
+
builder.updateCandidateNetworkAddress(tx, args);
|
|
4071
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4072
|
+
transactionBlock: tx,
|
|
4073
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4074
|
+
});
|
|
4075
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4076
|
+
}
|
|
4077
|
+
view.updateCandidateNetworkAddress = updateCandidateNetworkAddress;
|
|
4078
|
+
async function updateCandidateNetworkPubkey(client, args) {
|
|
4079
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4080
|
+
builder.updateCandidateNetworkPubkey(tx, args);
|
|
4081
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4082
|
+
transactionBlock: tx,
|
|
4083
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4084
|
+
});
|
|
4085
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4086
|
+
}
|
|
4087
|
+
view.updateCandidateNetworkPubkey = updateCandidateNetworkPubkey;
|
|
4088
|
+
async function updateCandidateP2pAddress(client, args) {
|
|
4089
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4090
|
+
builder.updateCandidateP2pAddress(tx, args);
|
|
4091
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4092
|
+
transactionBlock: tx,
|
|
4093
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4094
|
+
});
|
|
4095
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4096
|
+
}
|
|
4097
|
+
view.updateCandidateP2pAddress = updateCandidateP2pAddress;
|
|
4098
|
+
async function updateCandidatePrimaryAddress(client, args) {
|
|
4099
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4100
|
+
builder.updateCandidatePrimaryAddress(tx, args);
|
|
4101
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4102
|
+
transactionBlock: tx,
|
|
4103
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4104
|
+
});
|
|
4105
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4106
|
+
}
|
|
4107
|
+
view.updateCandidatePrimaryAddress = updateCandidatePrimaryAddress;
|
|
4108
|
+
async function updateCandidateProtocolPubkey(client, args) {
|
|
4109
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4110
|
+
builder.updateCandidateProtocolPubkey(tx, args);
|
|
4111
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4112
|
+
transactionBlock: tx,
|
|
4113
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4114
|
+
});
|
|
4115
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4116
|
+
}
|
|
4117
|
+
view.updateCandidateProtocolPubkey = updateCandidateProtocolPubkey;
|
|
4118
|
+
async function updateCandidateWorkerAddress(client, args) {
|
|
4119
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4120
|
+
builder.updateCandidateWorkerAddress(tx, args);
|
|
4121
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4122
|
+
transactionBlock: tx,
|
|
4123
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4124
|
+
});
|
|
4125
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4126
|
+
}
|
|
4127
|
+
view.updateCandidateWorkerAddress = updateCandidateWorkerAddress;
|
|
4128
|
+
async function updateCandidateWorkerPubkey(client, args) {
|
|
4129
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4130
|
+
builder.updateCandidateWorkerPubkey(tx, args);
|
|
4131
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4132
|
+
transactionBlock: tx,
|
|
4133
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4134
|
+
});
|
|
4135
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4136
|
+
}
|
|
4137
|
+
view.updateCandidateWorkerPubkey = updateCandidateWorkerPubkey;
|
|
4138
|
+
async function updateDescription(client, args) {
|
|
4139
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4140
|
+
builder.updateDescription(tx, args);
|
|
4141
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4142
|
+
transactionBlock: tx,
|
|
4143
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4144
|
+
});
|
|
4145
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4146
|
+
}
|
|
4147
|
+
view.updateDescription = updateDescription;
|
|
4148
|
+
async function updateImageUrl(client, args) {
|
|
4149
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4150
|
+
builder.updateImageUrl(tx, args);
|
|
4151
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4152
|
+
transactionBlock: tx,
|
|
4153
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4154
|
+
});
|
|
4155
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4156
|
+
}
|
|
4157
|
+
view.updateImageUrl = updateImageUrl;
|
|
4158
|
+
async function updateName(client, args) {
|
|
4159
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4160
|
+
builder.updateName(tx, args);
|
|
4161
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4162
|
+
transactionBlock: tx,
|
|
4163
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4164
|
+
});
|
|
4165
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4166
|
+
}
|
|
4167
|
+
view.updateName = updateName;
|
|
4168
|
+
async function updateNextEpochNetworkAddress(client, args) {
|
|
4169
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4170
|
+
builder.updateNextEpochNetworkAddress(tx, args);
|
|
4171
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4172
|
+
transactionBlock: tx,
|
|
4173
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4174
|
+
});
|
|
4175
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4176
|
+
}
|
|
4177
|
+
view.updateNextEpochNetworkAddress = updateNextEpochNetworkAddress;
|
|
4178
|
+
async function updateNextEpochNetworkPubkey(client, args) {
|
|
4179
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4180
|
+
builder.updateNextEpochNetworkPubkey(tx, args);
|
|
4181
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4182
|
+
transactionBlock: tx,
|
|
4183
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4184
|
+
});
|
|
4185
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4186
|
+
}
|
|
4187
|
+
view.updateNextEpochNetworkPubkey = updateNextEpochNetworkPubkey;
|
|
4188
|
+
async function updateNextEpochP2pAddress(client, args) {
|
|
4189
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4190
|
+
builder.updateNextEpochP2pAddress(tx, args);
|
|
4191
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4192
|
+
transactionBlock: tx,
|
|
4193
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4194
|
+
});
|
|
4195
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4196
|
+
}
|
|
4197
|
+
view.updateNextEpochP2pAddress = updateNextEpochP2pAddress;
|
|
4198
|
+
async function updateNextEpochPrimaryAddress(client, args) {
|
|
4199
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4200
|
+
builder.updateNextEpochPrimaryAddress(tx, args);
|
|
4201
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4202
|
+
transactionBlock: tx,
|
|
4203
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4204
|
+
});
|
|
4205
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4206
|
+
}
|
|
4207
|
+
view.updateNextEpochPrimaryAddress = updateNextEpochPrimaryAddress;
|
|
4208
|
+
async function updateNextEpochProtocolPubkey(client, args) {
|
|
4209
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4210
|
+
builder.updateNextEpochProtocolPubkey(tx, args);
|
|
4211
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4212
|
+
transactionBlock: tx,
|
|
4213
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4214
|
+
});
|
|
4215
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4216
|
+
}
|
|
4217
|
+
view.updateNextEpochProtocolPubkey = updateNextEpochProtocolPubkey;
|
|
4218
|
+
async function updateNextEpochWorkerAddress(client, args) {
|
|
4219
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4220
|
+
builder.updateNextEpochWorkerAddress(tx, args);
|
|
4221
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4222
|
+
transactionBlock: tx,
|
|
4223
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4224
|
+
});
|
|
4225
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4226
|
+
}
|
|
4227
|
+
view.updateNextEpochWorkerAddress = updateNextEpochWorkerAddress;
|
|
4228
|
+
async function updateNextEpochWorkerPubkey(client, args) {
|
|
4229
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4230
|
+
builder.updateNextEpochWorkerPubkey(tx, args);
|
|
4231
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4232
|
+
transactionBlock: tx,
|
|
4233
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4234
|
+
});
|
|
4235
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4236
|
+
}
|
|
4237
|
+
view.updateNextEpochWorkerPubkey = updateNextEpochWorkerPubkey;
|
|
4238
|
+
async function updateProjectUrl(client, args) {
|
|
4239
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4240
|
+
builder.updateProjectUrl(tx, args);
|
|
4241
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4242
|
+
transactionBlock: tx,
|
|
4243
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4244
|
+
});
|
|
4245
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4246
|
+
}
|
|
4247
|
+
view.updateProjectUrl = updateProjectUrl;
|
|
2087
4248
|
async function validateMetadata(client, args) {
|
|
2088
4249
|
const tx = new transactions_1.TransactionBlock();
|
|
2089
4250
|
builder.validateMetadata(tx, args);
|
|
@@ -2156,6 +4317,92 @@ var validator_cap;
|
|
|
2156
4317
|
}
|
|
2157
4318
|
ValidatorOperationCap.type = type;
|
|
2158
4319
|
})(ValidatorOperationCap = validator_cap.ValidatorOperationCap || (validator_cap.ValidatorOperationCap = {}));
|
|
4320
|
+
let builder;
|
|
4321
|
+
(function (builder) {
|
|
4322
|
+
function newFromUnverified(tx, args) {
|
|
4323
|
+
const _args = [];
|
|
4324
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4325
|
+
// @ts-ignore
|
|
4326
|
+
return tx.moveCall({
|
|
4327
|
+
target: "0x3::validator_cap::new_from_unverified",
|
|
4328
|
+
arguments: _args,
|
|
4329
|
+
});
|
|
4330
|
+
}
|
|
4331
|
+
builder.newFromUnverified = newFromUnverified;
|
|
4332
|
+
function newUnverifiedValidatorOperationCapAndTransfer(tx, args) {
|
|
4333
|
+
const _args = [];
|
|
4334
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
4335
|
+
// @ts-ignore
|
|
4336
|
+
return tx.moveCall({
|
|
4337
|
+
target: "0x3::validator_cap::new_unverified_validator_operation_cap_and_transfer",
|
|
4338
|
+
arguments: _args,
|
|
4339
|
+
});
|
|
4340
|
+
}
|
|
4341
|
+
builder.newUnverifiedValidatorOperationCapAndTransfer = newUnverifiedValidatorOperationCapAndTransfer;
|
|
4342
|
+
function unverifiedOperationCapAddress(tx, args) {
|
|
4343
|
+
const _args = [];
|
|
4344
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4345
|
+
// @ts-ignore
|
|
4346
|
+
return tx.moveCall({
|
|
4347
|
+
target: "0x3::validator_cap::unverified_operation_cap_address",
|
|
4348
|
+
arguments: _args,
|
|
4349
|
+
});
|
|
4350
|
+
}
|
|
4351
|
+
builder.unverifiedOperationCapAddress = unverifiedOperationCapAddress;
|
|
4352
|
+
function verifiedOperationCapAddress(tx, args) {
|
|
4353
|
+
const _args = [];
|
|
4354
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4355
|
+
// @ts-ignore
|
|
4356
|
+
return tx.moveCall({
|
|
4357
|
+
target: "0x3::validator_cap::verified_operation_cap_address",
|
|
4358
|
+
arguments: _args,
|
|
4359
|
+
});
|
|
4360
|
+
}
|
|
4361
|
+
builder.verifiedOperationCapAddress = verifiedOperationCapAddress;
|
|
4362
|
+
})(builder = validator_cap.builder || (validator_cap.builder = {}));
|
|
4363
|
+
let view;
|
|
4364
|
+
(function (view) {
|
|
4365
|
+
async function newFromUnverified(client, args) {
|
|
4366
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4367
|
+
builder.newFromUnverified(tx, args);
|
|
4368
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4369
|
+
transactionBlock: tx,
|
|
4370
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4371
|
+
});
|
|
4372
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4373
|
+
}
|
|
4374
|
+
view.newFromUnverified = newFromUnverified;
|
|
4375
|
+
async function newUnverifiedValidatorOperationCapAndTransfer(client, args) {
|
|
4376
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4377
|
+
builder.newUnverifiedValidatorOperationCapAndTransfer(tx, args);
|
|
4378
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4379
|
+
transactionBlock: tx,
|
|
4380
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4381
|
+
});
|
|
4382
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4383
|
+
}
|
|
4384
|
+
view.newUnverifiedValidatorOperationCapAndTransfer = newUnverifiedValidatorOperationCapAndTransfer;
|
|
4385
|
+
async function unverifiedOperationCapAddress(client, args) {
|
|
4386
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4387
|
+
builder.unverifiedOperationCapAddress(tx, args);
|
|
4388
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4389
|
+
transactionBlock: tx,
|
|
4390
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4391
|
+
});
|
|
4392
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4393
|
+
}
|
|
4394
|
+
view.unverifiedOperationCapAddress = unverifiedOperationCapAddress;
|
|
4395
|
+
async function verifiedOperationCapAddress(client, args) {
|
|
4396
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4397
|
+
builder.verifiedOperationCapAddress(tx, args);
|
|
4398
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4399
|
+
transactionBlock: tx,
|
|
4400
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4401
|
+
});
|
|
4402
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4403
|
+
}
|
|
4404
|
+
view.verifiedOperationCapAddress = verifiedOperationCapAddress;
|
|
4405
|
+
})(view = validator_cap.view || (validator_cap.view = {}));
|
|
2159
4406
|
})(validator_cap || (exports.validator_cap = validator_cap = {}));
|
|
2160
4407
|
var validator_set;
|
|
2161
4408
|
(function (validator_set) {
|
|
@@ -2206,6 +4453,16 @@ var validator_set;
|
|
|
2206
4453
|
})(ValidatorSet = validator_set.ValidatorSet || (validator_set.ValidatorSet = {}));
|
|
2207
4454
|
let builder;
|
|
2208
4455
|
(function (builder) {
|
|
4456
|
+
function activeValidatorAddresses(tx, args) {
|
|
4457
|
+
const _args = [];
|
|
4458
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4459
|
+
// @ts-ignore
|
|
4460
|
+
return tx.moveCall({
|
|
4461
|
+
target: "0x3::validator_set::active_validator_addresses",
|
|
4462
|
+
arguments: _args,
|
|
4463
|
+
});
|
|
4464
|
+
}
|
|
4465
|
+
builder.activeValidatorAddresses = activeValidatorAddresses;
|
|
2209
4466
|
function activeValidators(tx, args) {
|
|
2210
4467
|
const _args = [];
|
|
2211
4468
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -2216,6 +4473,34 @@ var validator_set;
|
|
|
2216
4473
|
});
|
|
2217
4474
|
}
|
|
2218
4475
|
builder.activeValidators = activeValidators;
|
|
4476
|
+
function advanceEpoch(tx, args) {
|
|
4477
|
+
const _args = [];
|
|
4478
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4479
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
4480
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[2], tx));
|
|
4481
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[3], tx));
|
|
4482
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[4], tx));
|
|
4483
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[5], tx));
|
|
4484
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[6], tx));
|
|
4485
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[7], tx));
|
|
4486
|
+
// @ts-ignore
|
|
4487
|
+
return tx.moveCall({
|
|
4488
|
+
target: "0x3::validator_set::advance_epoch",
|
|
4489
|
+
arguments: _args,
|
|
4490
|
+
});
|
|
4491
|
+
}
|
|
4492
|
+
builder.advanceEpoch = advanceEpoch;
|
|
4493
|
+
function assertNoPendingOrActiveDuplicates(tx, args) {
|
|
4494
|
+
const _args = [];
|
|
4495
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4496
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
4497
|
+
// @ts-ignore
|
|
4498
|
+
return tx.moveCall({
|
|
4499
|
+
target: "0x3::validator_set::assert_no_pending_or_active_duplicates",
|
|
4500
|
+
arguments: _args,
|
|
4501
|
+
});
|
|
4502
|
+
}
|
|
4503
|
+
builder.assertNoPendingOrActiveDuplicates = assertNoPendingOrActiveDuplicates;
|
|
2219
4504
|
function deriveReferenceGasPrice(tx, args) {
|
|
2220
4505
|
const _args = [];
|
|
2221
4506
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -2226,6 +4511,18 @@ var validator_set;
|
|
|
2226
4511
|
});
|
|
2227
4512
|
}
|
|
2228
4513
|
builder.deriveReferenceGasPrice = deriveReferenceGasPrice;
|
|
4514
|
+
function getActiveOrPendingOrCandidateValidatorRef(tx, args) {
|
|
4515
|
+
const _args = [];
|
|
4516
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4517
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
4518
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
4519
|
+
// @ts-ignore
|
|
4520
|
+
return tx.moveCall({
|
|
4521
|
+
target: "0x3::validator_set::get_active_or_pending_or_candidate_validator_ref",
|
|
4522
|
+
arguments: _args,
|
|
4523
|
+
});
|
|
4524
|
+
}
|
|
4525
|
+
builder.getActiveOrPendingOrCandidateValidatorRef = getActiveOrPendingOrCandidateValidatorRef;
|
|
2229
4526
|
function getActiveValidatorRef(tx, args) {
|
|
2230
4527
|
const _args = [];
|
|
2231
4528
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -2240,36 +4537,208 @@ var validator_set;
|
|
|
2240
4537
|
function getPendingValidatorRef(tx, args) {
|
|
2241
4538
|
const _args = [];
|
|
2242
4539
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2243
|
-
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
4540
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
4541
|
+
// @ts-ignore
|
|
4542
|
+
return tx.moveCall({
|
|
4543
|
+
target: "0x3::validator_set::get_pending_validator_ref",
|
|
4544
|
+
arguments: _args,
|
|
4545
|
+
});
|
|
4546
|
+
}
|
|
4547
|
+
builder.getPendingValidatorRef = getPendingValidatorRef;
|
|
4548
|
+
function getValidatorMut(tx, args) {
|
|
4549
|
+
const _args = [];
|
|
4550
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4551
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
4552
|
+
// @ts-ignore
|
|
4553
|
+
return tx.moveCall({
|
|
4554
|
+
target: "0x3::validator_set::get_validator_mut",
|
|
4555
|
+
arguments: _args,
|
|
4556
|
+
});
|
|
4557
|
+
}
|
|
4558
|
+
builder.getValidatorMut = getValidatorMut;
|
|
4559
|
+
function getValidatorMutWithCtx(tx, args) {
|
|
4560
|
+
const _args = [];
|
|
4561
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4562
|
+
// @ts-ignore
|
|
4563
|
+
return tx.moveCall({
|
|
4564
|
+
target: "0x3::validator_set::get_validator_mut_with_ctx",
|
|
4565
|
+
arguments: _args,
|
|
4566
|
+
});
|
|
4567
|
+
}
|
|
4568
|
+
builder.getValidatorMutWithCtx = getValidatorMutWithCtx;
|
|
4569
|
+
function getValidatorMutWithCtxIncludingCandidates(tx, args) {
|
|
4570
|
+
const _args = [];
|
|
4571
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4572
|
+
// @ts-ignore
|
|
4573
|
+
return tx.moveCall({
|
|
4574
|
+
target: "0x3::validator_set::get_validator_mut_with_ctx_including_candidates",
|
|
4575
|
+
arguments: _args,
|
|
4576
|
+
});
|
|
4577
|
+
}
|
|
4578
|
+
builder.getValidatorMutWithCtxIncludingCandidates = getValidatorMutWithCtxIncludingCandidates;
|
|
4579
|
+
function getValidatorMutWithVerifiedCap(tx, args) {
|
|
4580
|
+
const _args = [];
|
|
4581
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4582
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
4583
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
4584
|
+
// @ts-ignore
|
|
4585
|
+
return tx.moveCall({
|
|
4586
|
+
target: "0x3::validator_set::get_validator_mut_with_verified_cap",
|
|
4587
|
+
arguments: _args,
|
|
4588
|
+
});
|
|
4589
|
+
}
|
|
4590
|
+
builder.getValidatorMutWithVerifiedCap = getValidatorMutWithVerifiedCap;
|
|
4591
|
+
function isActiveValidatorBySuiAddress(tx, args) {
|
|
4592
|
+
const _args = [];
|
|
4593
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4594
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
4595
|
+
// @ts-ignore
|
|
4596
|
+
return tx.moveCall({
|
|
4597
|
+
target: "0x3::validator_set::is_active_validator_by_sui_address",
|
|
4598
|
+
arguments: _args,
|
|
4599
|
+
});
|
|
4600
|
+
}
|
|
4601
|
+
builder.isActiveValidatorBySuiAddress = isActiveValidatorBySuiAddress;
|
|
4602
|
+
function isDuplicateValidator(tx, args) {
|
|
4603
|
+
const _args = [];
|
|
4604
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4605
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
4606
|
+
// @ts-ignore
|
|
4607
|
+
return tx.moveCall({
|
|
4608
|
+
target: "0x3::validator_set::is_duplicate_validator",
|
|
4609
|
+
arguments: _args,
|
|
4610
|
+
});
|
|
4611
|
+
}
|
|
4612
|
+
builder.isDuplicateValidator = isDuplicateValidator;
|
|
4613
|
+
function isInactiveValidator(tx, args) {
|
|
4614
|
+
const _args = [];
|
|
4615
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4616
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
4617
|
+
// @ts-ignore
|
|
4618
|
+
return tx.moveCall({
|
|
4619
|
+
target: "0x3::validator_set::is_inactive_validator",
|
|
4620
|
+
arguments: _args,
|
|
4621
|
+
});
|
|
4622
|
+
}
|
|
4623
|
+
builder.isInactiveValidator = isInactiveValidator;
|
|
4624
|
+
function isValidatorCandidate(tx, args) {
|
|
4625
|
+
const _args = [];
|
|
4626
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4627
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
4628
|
+
// @ts-ignore
|
|
4629
|
+
return tx.moveCall({
|
|
4630
|
+
target: "0x3::validator_set::is_validator_candidate",
|
|
4631
|
+
arguments: _args,
|
|
4632
|
+
});
|
|
4633
|
+
}
|
|
4634
|
+
builder.isValidatorCandidate = isValidatorCandidate;
|
|
4635
|
+
function new_(tx, args) {
|
|
4636
|
+
const _args = [];
|
|
4637
|
+
_args.push((0, sui_3.transactionArgumentOrVec)(args[0], tx));
|
|
4638
|
+
// @ts-ignore
|
|
4639
|
+
return tx.moveCall({
|
|
4640
|
+
target: "0x3::validator_set::new",
|
|
4641
|
+
arguments: _args,
|
|
4642
|
+
});
|
|
4643
|
+
}
|
|
4644
|
+
builder.new_ = new_;
|
|
4645
|
+
function nextEpochValidatorCount(tx, args) {
|
|
4646
|
+
const _args = [];
|
|
4647
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4648
|
+
// @ts-ignore
|
|
4649
|
+
return tx.moveCall({
|
|
4650
|
+
target: "0x3::validator_set::next_epoch_validator_count",
|
|
4651
|
+
arguments: _args,
|
|
4652
|
+
});
|
|
4653
|
+
}
|
|
4654
|
+
builder.nextEpochValidatorCount = nextEpochValidatorCount;
|
|
4655
|
+
function poolExchangeRates(tx, args) {
|
|
4656
|
+
const _args = [];
|
|
4657
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4658
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
4659
|
+
// @ts-ignore
|
|
4660
|
+
return tx.moveCall({
|
|
4661
|
+
target: "0x3::validator_set::pool_exchange_rates",
|
|
4662
|
+
arguments: _args,
|
|
4663
|
+
});
|
|
4664
|
+
}
|
|
4665
|
+
builder.poolExchangeRates = poolExchangeRates;
|
|
4666
|
+
function requestAddStake(tx, args) {
|
|
4667
|
+
const _args = [];
|
|
4668
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4669
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
4670
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
4671
|
+
// @ts-ignore
|
|
4672
|
+
return tx.moveCall({
|
|
4673
|
+
target: "0x3::validator_set::request_add_stake",
|
|
4674
|
+
arguments: _args,
|
|
4675
|
+
});
|
|
4676
|
+
}
|
|
4677
|
+
builder.requestAddStake = requestAddStake;
|
|
4678
|
+
function requestAddValidator(tx, args) {
|
|
4679
|
+
const _args = [];
|
|
4680
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4681
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
4682
|
+
// @ts-ignore
|
|
4683
|
+
return tx.moveCall({
|
|
4684
|
+
target: "0x3::validator_set::request_add_validator",
|
|
4685
|
+
arguments: _args,
|
|
4686
|
+
});
|
|
4687
|
+
}
|
|
4688
|
+
builder.requestAddValidator = requestAddValidator;
|
|
4689
|
+
function requestAddValidatorCandidate(tx, args) {
|
|
4690
|
+
const _args = [];
|
|
4691
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4692
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
4693
|
+
// @ts-ignore
|
|
4694
|
+
return tx.moveCall({
|
|
4695
|
+
target: "0x3::validator_set::request_add_validator_candidate",
|
|
4696
|
+
arguments: _args,
|
|
4697
|
+
});
|
|
4698
|
+
}
|
|
4699
|
+
builder.requestAddValidatorCandidate = requestAddValidatorCandidate;
|
|
4700
|
+
function requestRemoveValidator(tx, args) {
|
|
4701
|
+
const _args = [];
|
|
4702
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4703
|
+
// @ts-ignore
|
|
4704
|
+
return tx.moveCall({
|
|
4705
|
+
target: "0x3::validator_set::request_remove_validator",
|
|
4706
|
+
arguments: _args,
|
|
4707
|
+
});
|
|
4708
|
+
}
|
|
4709
|
+
builder.requestRemoveValidator = requestRemoveValidator;
|
|
4710
|
+
function requestRemoveValidatorCandidate(tx, args) {
|
|
4711
|
+
const _args = [];
|
|
4712
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2244
4713
|
// @ts-ignore
|
|
2245
4714
|
return tx.moveCall({
|
|
2246
|
-
target: "0x3::validator_set::
|
|
4715
|
+
target: "0x3::validator_set::request_remove_validator_candidate",
|
|
2247
4716
|
arguments: _args,
|
|
2248
4717
|
});
|
|
2249
4718
|
}
|
|
2250
|
-
builder.
|
|
2251
|
-
function
|
|
4719
|
+
builder.requestRemoveValidatorCandidate = requestRemoveValidatorCandidate;
|
|
4720
|
+
function requestSetCommissionRate(tx, args) {
|
|
2252
4721
|
const _args = [];
|
|
2253
4722
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2254
4723
|
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
2255
4724
|
// @ts-ignore
|
|
2256
4725
|
return tx.moveCall({
|
|
2257
|
-
target: "0x3::validator_set::
|
|
4726
|
+
target: "0x3::validator_set::request_set_commission_rate",
|
|
2258
4727
|
arguments: _args,
|
|
2259
4728
|
});
|
|
2260
4729
|
}
|
|
2261
|
-
builder.
|
|
2262
|
-
function
|
|
4730
|
+
builder.requestSetCommissionRate = requestSetCommissionRate;
|
|
4731
|
+
function requestWithdrawStake(tx, args) {
|
|
2263
4732
|
const _args = [];
|
|
2264
4733
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
2265
4734
|
_args.push((0, sui_3.transactionArgumentOrPure)(args[1], tx));
|
|
2266
4735
|
// @ts-ignore
|
|
2267
4736
|
return tx.moveCall({
|
|
2268
|
-
target: "0x3::validator_set::
|
|
4737
|
+
target: "0x3::validator_set::request_withdraw_stake",
|
|
2269
4738
|
arguments: _args,
|
|
2270
4739
|
});
|
|
2271
4740
|
}
|
|
2272
|
-
builder.
|
|
4741
|
+
builder.requestWithdrawStake = requestWithdrawStake;
|
|
2273
4742
|
function stakingPoolMappings(tx, args) {
|
|
2274
4743
|
const _args = [];
|
|
2275
4744
|
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
@@ -2334,9 +4803,31 @@ var validator_set;
|
|
|
2334
4803
|
});
|
|
2335
4804
|
}
|
|
2336
4805
|
builder.validatorTotalStakeAmount = validatorTotalStakeAmount;
|
|
4806
|
+
function verifyCap(tx, args) {
|
|
4807
|
+
const _args = [];
|
|
4808
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
4809
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[1], tx));
|
|
4810
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[2], tx));
|
|
4811
|
+
// @ts-ignore
|
|
4812
|
+
return tx.moveCall({
|
|
4813
|
+
target: "0x3::validator_set::verify_cap",
|
|
4814
|
+
arguments: _args,
|
|
4815
|
+
});
|
|
4816
|
+
}
|
|
4817
|
+
builder.verifyCap = verifyCap;
|
|
2337
4818
|
})(builder = validator_set.builder || (validator_set.builder = {}));
|
|
2338
4819
|
let view;
|
|
2339
4820
|
(function (view) {
|
|
4821
|
+
async function activeValidatorAddresses(client, args) {
|
|
4822
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4823
|
+
builder.activeValidatorAddresses(tx, args);
|
|
4824
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4825
|
+
transactionBlock: tx,
|
|
4826
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4827
|
+
});
|
|
4828
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4829
|
+
}
|
|
4830
|
+
view.activeValidatorAddresses = activeValidatorAddresses;
|
|
2340
4831
|
async function activeValidators(client, args) {
|
|
2341
4832
|
const tx = new transactions_1.TransactionBlock();
|
|
2342
4833
|
builder.activeValidators(tx, args);
|
|
@@ -2347,6 +4838,26 @@ var validator_set;
|
|
|
2347
4838
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2348
4839
|
}
|
|
2349
4840
|
view.activeValidators = activeValidators;
|
|
4841
|
+
async function advanceEpoch(client, args) {
|
|
4842
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4843
|
+
builder.advanceEpoch(tx, args);
|
|
4844
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4845
|
+
transactionBlock: tx,
|
|
4846
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4847
|
+
});
|
|
4848
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4849
|
+
}
|
|
4850
|
+
view.advanceEpoch = advanceEpoch;
|
|
4851
|
+
async function assertNoPendingOrActiveDuplicates(client, args) {
|
|
4852
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4853
|
+
builder.assertNoPendingOrActiveDuplicates(tx, args);
|
|
4854
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4855
|
+
transactionBlock: tx,
|
|
4856
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4857
|
+
});
|
|
4858
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4859
|
+
}
|
|
4860
|
+
view.assertNoPendingOrActiveDuplicates = assertNoPendingOrActiveDuplicates;
|
|
2350
4861
|
async function deriveReferenceGasPrice(client, args) {
|
|
2351
4862
|
const tx = new transactions_1.TransactionBlock();
|
|
2352
4863
|
builder.deriveReferenceGasPrice(tx, args);
|
|
@@ -2357,6 +4868,16 @@ var validator_set;
|
|
|
2357
4868
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2358
4869
|
}
|
|
2359
4870
|
view.deriveReferenceGasPrice = deriveReferenceGasPrice;
|
|
4871
|
+
async function getActiveOrPendingOrCandidateValidatorRef(client, args) {
|
|
4872
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4873
|
+
builder.getActiveOrPendingOrCandidateValidatorRef(tx, args);
|
|
4874
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4875
|
+
transactionBlock: tx,
|
|
4876
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4877
|
+
});
|
|
4878
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4879
|
+
}
|
|
4880
|
+
view.getActiveOrPendingOrCandidateValidatorRef = getActiveOrPendingOrCandidateValidatorRef;
|
|
2360
4881
|
async function getActiveValidatorRef(client, args) {
|
|
2361
4882
|
const tx = new transactions_1.TransactionBlock();
|
|
2362
4883
|
builder.getActiveValidatorRef(tx, args);
|
|
@@ -2377,6 +4898,66 @@ var validator_set;
|
|
|
2377
4898
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2378
4899
|
}
|
|
2379
4900
|
view.getPendingValidatorRef = getPendingValidatorRef;
|
|
4901
|
+
async function getValidatorMut(client, args) {
|
|
4902
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4903
|
+
builder.getValidatorMut(tx, args);
|
|
4904
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4905
|
+
transactionBlock: tx,
|
|
4906
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4907
|
+
});
|
|
4908
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4909
|
+
}
|
|
4910
|
+
view.getValidatorMut = getValidatorMut;
|
|
4911
|
+
async function getValidatorMutWithCtx(client, args) {
|
|
4912
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4913
|
+
builder.getValidatorMutWithCtx(tx, args);
|
|
4914
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4915
|
+
transactionBlock: tx,
|
|
4916
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4917
|
+
});
|
|
4918
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4919
|
+
}
|
|
4920
|
+
view.getValidatorMutWithCtx = getValidatorMutWithCtx;
|
|
4921
|
+
async function getValidatorMutWithCtxIncludingCandidates(client, args) {
|
|
4922
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4923
|
+
builder.getValidatorMutWithCtxIncludingCandidates(tx, args);
|
|
4924
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4925
|
+
transactionBlock: tx,
|
|
4926
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4927
|
+
});
|
|
4928
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4929
|
+
}
|
|
4930
|
+
view.getValidatorMutWithCtxIncludingCandidates = getValidatorMutWithCtxIncludingCandidates;
|
|
4931
|
+
async function getValidatorMutWithVerifiedCap(client, args) {
|
|
4932
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4933
|
+
builder.getValidatorMutWithVerifiedCap(tx, args);
|
|
4934
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4935
|
+
transactionBlock: tx,
|
|
4936
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4937
|
+
});
|
|
4938
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4939
|
+
}
|
|
4940
|
+
view.getValidatorMutWithVerifiedCap = getValidatorMutWithVerifiedCap;
|
|
4941
|
+
async function isActiveValidatorBySuiAddress(client, args) {
|
|
4942
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4943
|
+
builder.isActiveValidatorBySuiAddress(tx, args);
|
|
4944
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4945
|
+
transactionBlock: tx,
|
|
4946
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4947
|
+
});
|
|
4948
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4949
|
+
}
|
|
4950
|
+
view.isActiveValidatorBySuiAddress = isActiveValidatorBySuiAddress;
|
|
4951
|
+
async function isDuplicateValidator(client, args) {
|
|
4952
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4953
|
+
builder.isDuplicateValidator(tx, args);
|
|
4954
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4955
|
+
transactionBlock: tx,
|
|
4956
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4957
|
+
});
|
|
4958
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4959
|
+
}
|
|
4960
|
+
view.isDuplicateValidator = isDuplicateValidator;
|
|
2380
4961
|
async function isInactiveValidator(client, args) {
|
|
2381
4962
|
const tx = new transactions_1.TransactionBlock();
|
|
2382
4963
|
builder.isInactiveValidator(tx, args);
|
|
@@ -2397,6 +4978,106 @@ var validator_set;
|
|
|
2397
4978
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2398
4979
|
}
|
|
2399
4980
|
view.isValidatorCandidate = isValidatorCandidate;
|
|
4981
|
+
async function new_(client, args) {
|
|
4982
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4983
|
+
builder.new_(tx, args);
|
|
4984
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4985
|
+
transactionBlock: tx,
|
|
4986
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4987
|
+
});
|
|
4988
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4989
|
+
}
|
|
4990
|
+
view.new_ = new_;
|
|
4991
|
+
async function nextEpochValidatorCount(client, args) {
|
|
4992
|
+
const tx = new transactions_1.TransactionBlock();
|
|
4993
|
+
builder.nextEpochValidatorCount(tx, args);
|
|
4994
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4995
|
+
transactionBlock: tx,
|
|
4996
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
4997
|
+
});
|
|
4998
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
4999
|
+
}
|
|
5000
|
+
view.nextEpochValidatorCount = nextEpochValidatorCount;
|
|
5001
|
+
async function poolExchangeRates(client, args) {
|
|
5002
|
+
const tx = new transactions_1.TransactionBlock();
|
|
5003
|
+
builder.poolExchangeRates(tx, args);
|
|
5004
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5005
|
+
transactionBlock: tx,
|
|
5006
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5007
|
+
});
|
|
5008
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5009
|
+
}
|
|
5010
|
+
view.poolExchangeRates = poolExchangeRates;
|
|
5011
|
+
async function requestAddStake(client, args) {
|
|
5012
|
+
const tx = new transactions_1.TransactionBlock();
|
|
5013
|
+
builder.requestAddStake(tx, args);
|
|
5014
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5015
|
+
transactionBlock: tx,
|
|
5016
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5017
|
+
});
|
|
5018
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5019
|
+
}
|
|
5020
|
+
view.requestAddStake = requestAddStake;
|
|
5021
|
+
async function requestAddValidator(client, args) {
|
|
5022
|
+
const tx = new transactions_1.TransactionBlock();
|
|
5023
|
+
builder.requestAddValidator(tx, args);
|
|
5024
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5025
|
+
transactionBlock: tx,
|
|
5026
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5027
|
+
});
|
|
5028
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5029
|
+
}
|
|
5030
|
+
view.requestAddValidator = requestAddValidator;
|
|
5031
|
+
async function requestAddValidatorCandidate(client, args) {
|
|
5032
|
+
const tx = new transactions_1.TransactionBlock();
|
|
5033
|
+
builder.requestAddValidatorCandidate(tx, args);
|
|
5034
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5035
|
+
transactionBlock: tx,
|
|
5036
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5037
|
+
});
|
|
5038
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5039
|
+
}
|
|
5040
|
+
view.requestAddValidatorCandidate = requestAddValidatorCandidate;
|
|
5041
|
+
async function requestRemoveValidator(client, args) {
|
|
5042
|
+
const tx = new transactions_1.TransactionBlock();
|
|
5043
|
+
builder.requestRemoveValidator(tx, args);
|
|
5044
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5045
|
+
transactionBlock: tx,
|
|
5046
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5047
|
+
});
|
|
5048
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5049
|
+
}
|
|
5050
|
+
view.requestRemoveValidator = requestRemoveValidator;
|
|
5051
|
+
async function requestRemoveValidatorCandidate(client, args) {
|
|
5052
|
+
const tx = new transactions_1.TransactionBlock();
|
|
5053
|
+
builder.requestRemoveValidatorCandidate(tx, args);
|
|
5054
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5055
|
+
transactionBlock: tx,
|
|
5056
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5057
|
+
});
|
|
5058
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5059
|
+
}
|
|
5060
|
+
view.requestRemoveValidatorCandidate = requestRemoveValidatorCandidate;
|
|
5061
|
+
async function requestSetCommissionRate(client, args) {
|
|
5062
|
+
const tx = new transactions_1.TransactionBlock();
|
|
5063
|
+
builder.requestSetCommissionRate(tx, args);
|
|
5064
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5065
|
+
transactionBlock: tx,
|
|
5066
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5067
|
+
});
|
|
5068
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5069
|
+
}
|
|
5070
|
+
view.requestSetCommissionRate = requestSetCommissionRate;
|
|
5071
|
+
async function requestWithdrawStake(client, args) {
|
|
5072
|
+
const tx = new transactions_1.TransactionBlock();
|
|
5073
|
+
builder.requestWithdrawStake(tx, args);
|
|
5074
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5075
|
+
transactionBlock: tx,
|
|
5076
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5077
|
+
});
|
|
5078
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5079
|
+
}
|
|
5080
|
+
view.requestWithdrawStake = requestWithdrawStake;
|
|
2400
5081
|
async function stakingPoolMappings(client, args) {
|
|
2401
5082
|
const tx = new transactions_1.TransactionBlock();
|
|
2402
5083
|
builder.stakingPoolMappings(tx, args);
|
|
@@ -2457,6 +5138,16 @@ var validator_set;
|
|
|
2457
5138
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2458
5139
|
}
|
|
2459
5140
|
view.validatorTotalStakeAmount = validatorTotalStakeAmount;
|
|
5141
|
+
async function verifyCap(client, args) {
|
|
5142
|
+
const tx = new transactions_1.TransactionBlock();
|
|
5143
|
+
builder.verifyCap(tx, args);
|
|
5144
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5145
|
+
transactionBlock: tx,
|
|
5146
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5147
|
+
});
|
|
5148
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5149
|
+
}
|
|
5150
|
+
view.verifyCap = verifyCap;
|
|
2460
5151
|
})(view = validator_set.view || (validator_set.view = {}));
|
|
2461
5152
|
})(validator_set || (exports.validator_set = validator_set = {}));
|
|
2462
5153
|
var validator_wrapper;
|
|
@@ -2470,6 +5161,72 @@ var validator_wrapper;
|
|
|
2470
5161
|
}
|
|
2471
5162
|
ValidatorWrapper.type = type;
|
|
2472
5163
|
})(ValidatorWrapper = validator_wrapper.ValidatorWrapper || (validator_wrapper.ValidatorWrapper = {}));
|
|
5164
|
+
let builder;
|
|
5165
|
+
(function (builder) {
|
|
5166
|
+
function createV1(tx, args) {
|
|
5167
|
+
const _args = [];
|
|
5168
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
5169
|
+
// @ts-ignore
|
|
5170
|
+
return tx.moveCall({
|
|
5171
|
+
target: "0x3::validator_wrapper::create_v1",
|
|
5172
|
+
arguments: _args,
|
|
5173
|
+
});
|
|
5174
|
+
}
|
|
5175
|
+
builder.createV1 = createV1;
|
|
5176
|
+
function destroy(tx, args) {
|
|
5177
|
+
const _args = [];
|
|
5178
|
+
_args.push((0, sui_3.transactionArgumentOrPure)(args[0], tx));
|
|
5179
|
+
// @ts-ignore
|
|
5180
|
+
return tx.moveCall({
|
|
5181
|
+
target: "0x3::validator_wrapper::destroy",
|
|
5182
|
+
arguments: _args,
|
|
5183
|
+
});
|
|
5184
|
+
}
|
|
5185
|
+
builder.destroy = destroy;
|
|
5186
|
+
function loadValidatorMaybeUpgrade(tx, args) {
|
|
5187
|
+
const _args = [];
|
|
5188
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
5189
|
+
// @ts-ignore
|
|
5190
|
+
return tx.moveCall({
|
|
5191
|
+
target: "0x3::validator_wrapper::load_validator_maybe_upgrade",
|
|
5192
|
+
arguments: _args,
|
|
5193
|
+
});
|
|
5194
|
+
}
|
|
5195
|
+
builder.loadValidatorMaybeUpgrade = loadValidatorMaybeUpgrade;
|
|
5196
|
+
})(builder = validator_wrapper.builder || (validator_wrapper.builder = {}));
|
|
5197
|
+
let view;
|
|
5198
|
+
(function (view) {
|
|
5199
|
+
async function createV1(client, args) {
|
|
5200
|
+
const tx = new transactions_1.TransactionBlock();
|
|
5201
|
+
builder.createV1(tx, args);
|
|
5202
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5203
|
+
transactionBlock: tx,
|
|
5204
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5205
|
+
});
|
|
5206
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5207
|
+
}
|
|
5208
|
+
view.createV1 = createV1;
|
|
5209
|
+
async function destroy(client, args) {
|
|
5210
|
+
const tx = new transactions_1.TransactionBlock();
|
|
5211
|
+
builder.destroy(tx, args);
|
|
5212
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5213
|
+
transactionBlock: tx,
|
|
5214
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5215
|
+
});
|
|
5216
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5217
|
+
}
|
|
5218
|
+
view.destroy = destroy;
|
|
5219
|
+
async function loadValidatorMaybeUpgrade(client, args) {
|
|
5220
|
+
const tx = new transactions_1.TransactionBlock();
|
|
5221
|
+
builder.loadValidatorMaybeUpgrade(tx, args);
|
|
5222
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5223
|
+
transactionBlock: tx,
|
|
5224
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5225
|
+
});
|
|
5226
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5227
|
+
}
|
|
5228
|
+
view.loadValidatorMaybeUpgrade = loadValidatorMaybeUpgrade;
|
|
5229
|
+
})(view = validator_wrapper.view || (validator_wrapper.view = {}));
|
|
2473
5230
|
})(validator_wrapper || (exports.validator_wrapper = validator_wrapper = {}));
|
|
2474
5231
|
var voting_power;
|
|
2475
5232
|
(function (voting_power) {
|
|
@@ -2502,6 +5259,16 @@ var voting_power;
|
|
|
2502
5259
|
});
|
|
2503
5260
|
}
|
|
2504
5261
|
builder.quorumThreshold = quorumThreshold;
|
|
5262
|
+
function setVotingPower(tx, args) {
|
|
5263
|
+
const _args = [];
|
|
5264
|
+
_args.push((0, sui_3.transactionArgumentOrObject)(args[0], tx));
|
|
5265
|
+
// @ts-ignore
|
|
5266
|
+
return tx.moveCall({
|
|
5267
|
+
target: "0x3::voting_power::set_voting_power",
|
|
5268
|
+
arguments: _args,
|
|
5269
|
+
});
|
|
5270
|
+
}
|
|
5271
|
+
builder.setVotingPower = setVotingPower;
|
|
2505
5272
|
function totalVotingPower(tx, args) {
|
|
2506
5273
|
const _args = [];
|
|
2507
5274
|
// @ts-ignore
|
|
@@ -2524,6 +5291,16 @@ var voting_power;
|
|
|
2524
5291
|
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2525
5292
|
}
|
|
2526
5293
|
view.quorumThreshold = quorumThreshold;
|
|
5294
|
+
async function setVotingPower(client, args) {
|
|
5295
|
+
const tx = new transactions_1.TransactionBlock();
|
|
5296
|
+
builder.setVotingPower(tx, args);
|
|
5297
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
5298
|
+
transactionBlock: tx,
|
|
5299
|
+
sender: sui_2.ZERO_ADDRESS,
|
|
5300
|
+
});
|
|
5301
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
5302
|
+
}
|
|
5303
|
+
view.setVotingPower = setVotingPower;
|
|
2527
5304
|
async function totalVotingPower(client, args) {
|
|
2528
5305
|
const tx = new transactions_1.TransactionBlock();
|
|
2529
5306
|
builder.totalVotingPower(tx, args);
|