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