@typemove/sui 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/builtin/0x1.d.ts +2 -2
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +113 -158
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x2.d.ts +2 -2
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +594 -724
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +2 -2
- package/dist/cjs/builtin/0x3.d.ts.map +1 -1
- package/dist/cjs/builtin/0x3.js +194 -364
- package/dist/cjs/builtin/0x3.js.map +1 -1
- package/dist/cjs/codegen/codegen.d.ts.map +1 -1
- package/dist/cjs/codegen/codegen.js +6 -8
- package/dist/cjs/codegen/codegen.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/transaction.d.ts +6 -0
- package/dist/cjs/transaction.d.ts.map +1 -0
- package/dist/cjs/transaction.js +35 -0
- package/dist/cjs/transaction.js.map +1 -0
- package/dist/esm/builtin/0x1.d.ts +2 -2
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +114 -159
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +2 -2
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +595 -725
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +2 -2
- package/dist/esm/builtin/0x3.d.ts.map +1 -1
- package/dist/esm/builtin/0x3.js +195 -365
- package/dist/esm/builtin/0x3.js.map +1 -1
- package/dist/esm/codegen/codegen.d.ts.map +1 -1
- package/dist/esm/codegen/codegen.js +6 -8
- package/dist/esm/codegen/codegen.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/transaction.d.ts +6 -0
- package/dist/esm/transaction.d.ts.map +1 -0
- package/dist/esm/transaction.js +28 -0
- package/dist/esm/transaction.js.map +1 -0
- package/package.json +3 -3
- package/src/builtin/0x1.ts +122 -285
- package/src/builtin/0x2.ts +603 -1479
- package/src/builtin/0x3.ts +203 -705
- package/src/codegen/codegen.ts +6 -8
- package/src/index.ts +1 -0
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +22 -28
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +166 -386
- package/src/tests/types/testnet/0xdee9.ts +175 -383
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +527 -1350
- package/src/transaction.ts +31 -0
package/dist/esm/builtin/0x3.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import { TypeDescriptor } from "@typemove/move";
|
|
6
6
|
import { defaultMoveCoder } from "@typemove/sui";
|
|
7
7
|
import { ZERO_ADDRESS, getMoveCoder, } from "@typemove/sui";
|
|
8
|
-
import { TransactionBlock } from "@mysten/sui.js/transactions";
|
|
9
|
-
import {
|
|
8
|
+
import { TransactionBlock, } from "@mysten/sui.js/transactions";
|
|
9
|
+
import { transactionArgumentOrObject, transactionArgumentOrPure, transactionArgumentOrVec, } from "@typemove/sui";
|
|
10
10
|
import * as _0x1 from "./0x1.js";
|
|
11
11
|
import * as _0x2 from "./0x2.js";
|
|
12
12
|
export var genesis;
|
|
@@ -63,7 +63,7 @@ export var stake_subsidy;
|
|
|
63
63
|
(function (builder) {
|
|
64
64
|
function currentEpochSubsidyAmount(tx, args) {
|
|
65
65
|
const _args = [];
|
|
66
|
-
_args.push(
|
|
66
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
67
67
|
// @ts-ignore
|
|
68
68
|
return tx.moveCall({
|
|
69
69
|
target: "0x3::stake_subsidy::current_epoch_subsidy_amount",
|
|
@@ -119,8 +119,8 @@ export var staking_pool;
|
|
|
119
119
|
(function (builder) {
|
|
120
120
|
function isEqualStakingMetadata(tx, args) {
|
|
121
121
|
const _args = [];
|
|
122
|
-
_args.push(
|
|
123
|
-
_args.push(
|
|
122
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
123
|
+
_args.push(transactionArgumentOrObject(args[1], tx));
|
|
124
124
|
// @ts-ignore
|
|
125
125
|
return tx.moveCall({
|
|
126
126
|
target: "0x3::staking_pool::is_equal_staking_metadata",
|
|
@@ -130,7 +130,7 @@ export var staking_pool;
|
|
|
130
130
|
builder.isEqualStakingMetadata = isEqualStakingMetadata;
|
|
131
131
|
function isInactive(tx, args) {
|
|
132
132
|
const _args = [];
|
|
133
|
-
_args.push(
|
|
133
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
134
134
|
// @ts-ignore
|
|
135
135
|
return tx.moveCall({
|
|
136
136
|
target: "0x3::staking_pool::is_inactive",
|
|
@@ -140,7 +140,7 @@ export var staking_pool;
|
|
|
140
140
|
builder.isInactive = isInactive;
|
|
141
141
|
function isPreactive(tx, args) {
|
|
142
142
|
const _args = [];
|
|
143
|
-
_args.push(
|
|
143
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
144
144
|
// @ts-ignore
|
|
145
145
|
return tx.moveCall({
|
|
146
146
|
target: "0x3::staking_pool::is_preactive",
|
|
@@ -150,8 +150,8 @@ export var staking_pool;
|
|
|
150
150
|
builder.isPreactive = isPreactive;
|
|
151
151
|
function joinStakedSui(tx, args) {
|
|
152
152
|
const _args = [];
|
|
153
|
-
_args.push(
|
|
154
|
-
_args.push(
|
|
153
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
154
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
155
155
|
// @ts-ignore
|
|
156
156
|
return tx.moveCall({
|
|
157
157
|
target: "0x3::staking_pool::join_staked_sui",
|
|
@@ -161,7 +161,7 @@ export var staking_pool;
|
|
|
161
161
|
builder.joinStakedSui = joinStakedSui;
|
|
162
162
|
function pendingStakeAmount(tx, args) {
|
|
163
163
|
const _args = [];
|
|
164
|
-
_args.push(
|
|
164
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
165
165
|
// @ts-ignore
|
|
166
166
|
return tx.moveCall({
|
|
167
167
|
target: "0x3::staking_pool::pending_stake_amount",
|
|
@@ -171,7 +171,7 @@ export var staking_pool;
|
|
|
171
171
|
builder.pendingStakeAmount = pendingStakeAmount;
|
|
172
172
|
function pendingStakeWithdrawAmount(tx, args) {
|
|
173
173
|
const _args = [];
|
|
174
|
-
_args.push(
|
|
174
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
175
175
|
// @ts-ignore
|
|
176
176
|
return tx.moveCall({
|
|
177
177
|
target: "0x3::staking_pool::pending_stake_withdraw_amount",
|
|
@@ -181,7 +181,7 @@ export var staking_pool;
|
|
|
181
181
|
builder.pendingStakeWithdrawAmount = pendingStakeWithdrawAmount;
|
|
182
182
|
function poolId(tx, args) {
|
|
183
183
|
const _args = [];
|
|
184
|
-
_args.push(
|
|
184
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
185
185
|
// @ts-ignore
|
|
186
186
|
return tx.moveCall({
|
|
187
187
|
target: "0x3::staking_pool::pool_id",
|
|
@@ -191,8 +191,8 @@ export var staking_pool;
|
|
|
191
191
|
builder.poolId = poolId;
|
|
192
192
|
function poolTokenExchangeRateAtEpoch(tx, args) {
|
|
193
193
|
const _args = [];
|
|
194
|
-
_args.push(
|
|
195
|
-
_args.push(
|
|
194
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
195
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
196
196
|
// @ts-ignore
|
|
197
197
|
return tx.moveCall({
|
|
198
198
|
target: "0x3::staking_pool::pool_token_exchange_rate_at_epoch",
|
|
@@ -202,9 +202,9 @@ export var staking_pool;
|
|
|
202
202
|
builder.poolTokenExchangeRateAtEpoch = poolTokenExchangeRateAtEpoch;
|
|
203
203
|
function split(tx, args) {
|
|
204
204
|
const _args = [];
|
|
205
|
-
_args.push(
|
|
206
|
-
_args.push(
|
|
207
|
-
_args.push(
|
|
205
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
206
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
207
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
208
208
|
// @ts-ignore
|
|
209
209
|
return tx.moveCall({
|
|
210
210
|
target: "0x3::staking_pool::split",
|
|
@@ -214,9 +214,9 @@ export var staking_pool;
|
|
|
214
214
|
builder.split = split;
|
|
215
215
|
function splitStakedSui(tx, args) {
|
|
216
216
|
const _args = [];
|
|
217
|
-
_args.push(
|
|
218
|
-
_args.push(
|
|
219
|
-
_args.push(
|
|
217
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
218
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
219
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
220
220
|
// @ts-ignore
|
|
221
221
|
return tx.moveCall({
|
|
222
222
|
target: "0x3::staking_pool::split_staked_sui",
|
|
@@ -226,7 +226,7 @@ export var staking_pool;
|
|
|
226
226
|
builder.splitStakedSui = splitStakedSui;
|
|
227
227
|
function stakeActivationEpoch(tx, args) {
|
|
228
228
|
const _args = [];
|
|
229
|
-
_args.push(
|
|
229
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
230
230
|
// @ts-ignore
|
|
231
231
|
return tx.moveCall({
|
|
232
232
|
target: "0x3::staking_pool::stake_activation_epoch",
|
|
@@ -236,7 +236,7 @@ export var staking_pool;
|
|
|
236
236
|
builder.stakeActivationEpoch = stakeActivationEpoch;
|
|
237
237
|
function stakedSuiAmount(tx, args) {
|
|
238
238
|
const _args = [];
|
|
239
|
-
_args.push(
|
|
239
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
240
240
|
// @ts-ignore
|
|
241
241
|
return tx.moveCall({
|
|
242
242
|
target: "0x3::staking_pool::staked_sui_amount",
|
|
@@ -246,7 +246,7 @@ export var staking_pool;
|
|
|
246
246
|
builder.stakedSuiAmount = stakedSuiAmount;
|
|
247
247
|
function suiBalance(tx, args) {
|
|
248
248
|
const _args = [];
|
|
249
|
-
_args.push(
|
|
249
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
250
250
|
// @ts-ignore
|
|
251
251
|
return tx.moveCall({
|
|
252
252
|
target: "0x3::staking_pool::sui_balance",
|
|
@@ -404,7 +404,7 @@ export var storage_fund;
|
|
|
404
404
|
(function (builder) {
|
|
405
405
|
function totalBalance(tx, args) {
|
|
406
406
|
const _args = [];
|
|
407
|
-
_args.push(
|
|
407
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
408
408
|
// @ts-ignore
|
|
409
409
|
return tx.moveCall({
|
|
410
410
|
target: "0x3::storage_fund::total_balance",
|
|
@@ -414,7 +414,7 @@ export var storage_fund;
|
|
|
414
414
|
builder.totalBalance = totalBalance;
|
|
415
415
|
function totalObjectStorageRebates(tx, args) {
|
|
416
416
|
const _args = [];
|
|
417
|
-
_args.push(
|
|
417
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
418
418
|
// @ts-ignore
|
|
419
419
|
return tx.moveCall({
|
|
420
420
|
target: "0x3::storage_fund::total_object_storage_rebates",
|
|
@@ -462,9 +462,9 @@ export var sui_system;
|
|
|
462
462
|
(function (builder) {
|
|
463
463
|
function reportValidator(tx, args) {
|
|
464
464
|
const _args = [];
|
|
465
|
-
_args.push(
|
|
466
|
-
_args.push(
|
|
467
|
-
_args.push(
|
|
465
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
466
|
+
_args.push(transactionArgumentOrObject(args[1], tx));
|
|
467
|
+
_args.push(transactionArgumentOrPure(args[2], tx));
|
|
468
468
|
// @ts-ignore
|
|
469
469
|
return tx.moveCall({
|
|
470
470
|
target: "0x3::sui_system::report_validator",
|
|
@@ -474,10 +474,10 @@ export var sui_system;
|
|
|
474
474
|
builder.reportValidator = reportValidator;
|
|
475
475
|
function requestAddStake(tx, args) {
|
|
476
476
|
const _args = [];
|
|
477
|
-
_args.push(
|
|
478
|
-
_args.push(
|
|
479
|
-
_args.push(
|
|
480
|
-
_args.push(
|
|
477
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
478
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
479
|
+
_args.push(transactionArgumentOrPure(args[2], tx));
|
|
480
|
+
_args.push(transactionArgumentOrObject(args[3], tx));
|
|
481
481
|
// @ts-ignore
|
|
482
482
|
return tx.moveCall({
|
|
483
483
|
target: "0x3::sui_system::request_add_stake",
|
|
@@ -487,16 +487,11 @@ export var sui_system;
|
|
|
487
487
|
builder.requestAddStake = requestAddStake;
|
|
488
488
|
function requestAddStakeMulCoin(tx, args) {
|
|
489
489
|
const _args = [];
|
|
490
|
-
_args.push(
|
|
491
|
-
_args.push(
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
// type: TODO
|
|
496
|
-
}));
|
|
497
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.pure(args[2]));
|
|
498
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.pure(args[3]));
|
|
499
|
-
_args.push(TransactionArgument.is(args[4]) ? args[4] : tx.object(args[4]));
|
|
490
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
491
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
492
|
+
_args.push(transactionArgumentOrPure(args[2], tx));
|
|
493
|
+
_args.push(transactionArgumentOrPure(args[3], tx));
|
|
494
|
+
_args.push(transactionArgumentOrObject(args[4], tx));
|
|
500
495
|
// @ts-ignore
|
|
501
496
|
return tx.moveCall({
|
|
502
497
|
target: "0x3::sui_system::request_add_stake_mul_coin",
|
|
@@ -506,8 +501,8 @@ export var sui_system;
|
|
|
506
501
|
builder.requestAddStakeMulCoin = requestAddStakeMulCoin;
|
|
507
502
|
function requestAddValidator(tx, args) {
|
|
508
503
|
const _args = [];
|
|
509
|
-
_args.push(
|
|
510
|
-
_args.push(
|
|
504
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
505
|
+
_args.push(transactionArgumentOrObject(args[1], tx));
|
|
511
506
|
// @ts-ignore
|
|
512
507
|
return tx.moveCall({
|
|
513
508
|
target: "0x3::sui_system::request_add_validator",
|
|
@@ -517,82 +512,22 @@ export var sui_system;
|
|
|
517
512
|
builder.requestAddValidator = requestAddValidator;
|
|
518
513
|
function requestAddValidatorCandidate(tx, args) {
|
|
519
514
|
const _args = [];
|
|
520
|
-
_args.push(
|
|
521
|
-
_args.push(
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
_args.push(
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
_args.push(
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
objects: args[3].map((a) => tx.object(a)),
|
|
537
|
-
// type: TODO
|
|
538
|
-
}));
|
|
539
|
-
_args.push(TransactionArgument.is(args[4])
|
|
540
|
-
? args[4]
|
|
541
|
-
: tx.makeMoveVec({
|
|
542
|
-
objects: args[4].map((a) => tx.object(a)),
|
|
543
|
-
// type: TODO
|
|
544
|
-
}));
|
|
545
|
-
_args.push(TransactionArgument.is(args[5])
|
|
546
|
-
? args[5]
|
|
547
|
-
: tx.makeMoveVec({
|
|
548
|
-
objects: args[5].map((a) => tx.object(a)),
|
|
549
|
-
// type: TODO
|
|
550
|
-
}));
|
|
551
|
-
_args.push(TransactionArgument.is(args[6])
|
|
552
|
-
? args[6]
|
|
553
|
-
: tx.makeMoveVec({
|
|
554
|
-
objects: args[6].map((a) => tx.object(a)),
|
|
555
|
-
// type: TODO
|
|
556
|
-
}));
|
|
557
|
-
_args.push(TransactionArgument.is(args[7])
|
|
558
|
-
? args[7]
|
|
559
|
-
: tx.makeMoveVec({
|
|
560
|
-
objects: args[7].map((a) => tx.object(a)),
|
|
561
|
-
// type: TODO
|
|
562
|
-
}));
|
|
563
|
-
_args.push(TransactionArgument.is(args[8])
|
|
564
|
-
? args[8]
|
|
565
|
-
: tx.makeMoveVec({
|
|
566
|
-
objects: args[8].map((a) => tx.object(a)),
|
|
567
|
-
// type: TODO
|
|
568
|
-
}));
|
|
569
|
-
_args.push(TransactionArgument.is(args[9])
|
|
570
|
-
? args[9]
|
|
571
|
-
: tx.makeMoveVec({
|
|
572
|
-
objects: args[9].map((a) => tx.object(a)),
|
|
573
|
-
// type: TODO
|
|
574
|
-
}));
|
|
575
|
-
_args.push(TransactionArgument.is(args[10])
|
|
576
|
-
? args[10]
|
|
577
|
-
: tx.makeMoveVec({
|
|
578
|
-
objects: args[10].map((a) => tx.object(a)),
|
|
579
|
-
// type: TODO
|
|
580
|
-
}));
|
|
581
|
-
_args.push(TransactionArgument.is(args[11])
|
|
582
|
-
? args[11]
|
|
583
|
-
: tx.makeMoveVec({
|
|
584
|
-
objects: args[11].map((a) => tx.object(a)),
|
|
585
|
-
// type: TODO
|
|
586
|
-
}));
|
|
587
|
-
_args.push(TransactionArgument.is(args[12])
|
|
588
|
-
? args[12]
|
|
589
|
-
: tx.makeMoveVec({
|
|
590
|
-
objects: args[12].map((a) => tx.object(a)),
|
|
591
|
-
// type: TODO
|
|
592
|
-
}));
|
|
593
|
-
_args.push(TransactionArgument.is(args[13]) ? args[13] : tx.pure(args[13]));
|
|
594
|
-
_args.push(TransactionArgument.is(args[14]) ? args[14] : tx.pure(args[14]));
|
|
595
|
-
_args.push(TransactionArgument.is(args[15]) ? args[15] : tx.object(args[15]));
|
|
515
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
516
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
517
|
+
_args.push(transactionArgumentOrVec(args[2], tx));
|
|
518
|
+
_args.push(transactionArgumentOrVec(args[3], tx));
|
|
519
|
+
_args.push(transactionArgumentOrVec(args[4], tx));
|
|
520
|
+
_args.push(transactionArgumentOrVec(args[5], tx));
|
|
521
|
+
_args.push(transactionArgumentOrVec(args[6], tx));
|
|
522
|
+
_args.push(transactionArgumentOrVec(args[7], tx));
|
|
523
|
+
_args.push(transactionArgumentOrVec(args[8], tx));
|
|
524
|
+
_args.push(transactionArgumentOrVec(args[9], tx));
|
|
525
|
+
_args.push(transactionArgumentOrVec(args[10], tx));
|
|
526
|
+
_args.push(transactionArgumentOrVec(args[11], tx));
|
|
527
|
+
_args.push(transactionArgumentOrVec(args[12], tx));
|
|
528
|
+
_args.push(transactionArgumentOrPure(args[13], tx));
|
|
529
|
+
_args.push(transactionArgumentOrPure(args[14], tx));
|
|
530
|
+
_args.push(transactionArgumentOrObject(args[15], tx));
|
|
596
531
|
// @ts-ignore
|
|
597
532
|
return tx.moveCall({
|
|
598
533
|
target: "0x3::sui_system::request_add_validator_candidate",
|
|
@@ -602,8 +537,8 @@ export var sui_system;
|
|
|
602
537
|
builder.requestAddValidatorCandidate = requestAddValidatorCandidate;
|
|
603
538
|
function requestRemoveValidator(tx, args) {
|
|
604
539
|
const _args = [];
|
|
605
|
-
_args.push(
|
|
606
|
-
_args.push(
|
|
540
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
541
|
+
_args.push(transactionArgumentOrObject(args[1], tx));
|
|
607
542
|
// @ts-ignore
|
|
608
543
|
return tx.moveCall({
|
|
609
544
|
target: "0x3::sui_system::request_remove_validator",
|
|
@@ -613,8 +548,8 @@ export var sui_system;
|
|
|
613
548
|
builder.requestRemoveValidator = requestRemoveValidator;
|
|
614
549
|
function requestRemoveValidatorCandidate(tx, args) {
|
|
615
550
|
const _args = [];
|
|
616
|
-
_args.push(
|
|
617
|
-
_args.push(
|
|
551
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
552
|
+
_args.push(transactionArgumentOrObject(args[1], tx));
|
|
618
553
|
// @ts-ignore
|
|
619
554
|
return tx.moveCall({
|
|
620
555
|
target: "0x3::sui_system::request_remove_validator_candidate",
|
|
@@ -624,9 +559,9 @@ export var sui_system;
|
|
|
624
559
|
builder.requestRemoveValidatorCandidate = requestRemoveValidatorCandidate;
|
|
625
560
|
function requestSetCommissionRate(tx, args) {
|
|
626
561
|
const _args = [];
|
|
627
|
-
_args.push(
|
|
628
|
-
_args.push(
|
|
629
|
-
_args.push(
|
|
562
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
563
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
564
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
630
565
|
// @ts-ignore
|
|
631
566
|
return tx.moveCall({
|
|
632
567
|
target: "0x3::sui_system::request_set_commission_rate",
|
|
@@ -636,9 +571,9 @@ export var sui_system;
|
|
|
636
571
|
builder.requestSetCommissionRate = requestSetCommissionRate;
|
|
637
572
|
function requestSetGasPrice(tx, args) {
|
|
638
573
|
const _args = [];
|
|
639
|
-
_args.push(
|
|
640
|
-
_args.push(
|
|
641
|
-
_args.push(
|
|
574
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
575
|
+
_args.push(transactionArgumentOrObject(args[1], tx));
|
|
576
|
+
_args.push(transactionArgumentOrPure(args[2], tx));
|
|
642
577
|
// @ts-ignore
|
|
643
578
|
return tx.moveCall({
|
|
644
579
|
target: "0x3::sui_system::request_set_gas_price",
|
|
@@ -648,9 +583,9 @@ export var sui_system;
|
|
|
648
583
|
builder.requestSetGasPrice = requestSetGasPrice;
|
|
649
584
|
function requestWithdrawStake(tx, args) {
|
|
650
585
|
const _args = [];
|
|
651
|
-
_args.push(
|
|
652
|
-
_args.push(
|
|
653
|
-
_args.push(
|
|
586
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
587
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
588
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
654
589
|
// @ts-ignore
|
|
655
590
|
return tx.moveCall({
|
|
656
591
|
target: "0x3::sui_system::request_withdraw_stake",
|
|
@@ -660,8 +595,8 @@ export var sui_system;
|
|
|
660
595
|
builder.requestWithdrawStake = requestWithdrawStake;
|
|
661
596
|
function rotateOperationCap(tx, args) {
|
|
662
597
|
const _args = [];
|
|
663
|
-
_args.push(
|
|
664
|
-
_args.push(
|
|
598
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
599
|
+
_args.push(transactionArgumentOrObject(args[1], tx));
|
|
665
600
|
// @ts-ignore
|
|
666
601
|
return tx.moveCall({
|
|
667
602
|
target: "0x3::sui_system::rotate_operation_cap",
|
|
@@ -671,9 +606,9 @@ export var sui_system;
|
|
|
671
606
|
builder.rotateOperationCap = rotateOperationCap;
|
|
672
607
|
function setCandidateValidatorCommissionRate(tx, args) {
|
|
673
608
|
const _args = [];
|
|
674
|
-
_args.push(
|
|
675
|
-
_args.push(
|
|
676
|
-
_args.push(
|
|
609
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
610
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
611
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
677
612
|
// @ts-ignore
|
|
678
613
|
return tx.moveCall({
|
|
679
614
|
target: "0x3::sui_system::set_candidate_validator_commission_rate",
|
|
@@ -683,9 +618,9 @@ export var sui_system;
|
|
|
683
618
|
builder.setCandidateValidatorCommissionRate = setCandidateValidatorCommissionRate;
|
|
684
619
|
function setCandidateValidatorGasPrice(tx, args) {
|
|
685
620
|
const _args = [];
|
|
686
|
-
_args.push(
|
|
687
|
-
_args.push(
|
|
688
|
-
_args.push(
|
|
621
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
622
|
+
_args.push(transactionArgumentOrObject(args[1], tx));
|
|
623
|
+
_args.push(transactionArgumentOrPure(args[2], tx));
|
|
689
624
|
// @ts-ignore
|
|
690
625
|
return tx.moveCall({
|
|
691
626
|
target: "0x3::sui_system::set_candidate_validator_gas_price",
|
|
@@ -695,9 +630,9 @@ export var sui_system;
|
|
|
695
630
|
builder.setCandidateValidatorGasPrice = setCandidateValidatorGasPrice;
|
|
696
631
|
function undoReportValidator(tx, args) {
|
|
697
632
|
const _args = [];
|
|
698
|
-
_args.push(
|
|
699
|
-
_args.push(
|
|
700
|
-
_args.push(
|
|
633
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
634
|
+
_args.push(transactionArgumentOrObject(args[1], tx));
|
|
635
|
+
_args.push(transactionArgumentOrPure(args[2], tx));
|
|
701
636
|
// @ts-ignore
|
|
702
637
|
return tx.moveCall({
|
|
703
638
|
target: "0x3::sui_system::undo_report_validator",
|
|
@@ -707,14 +642,9 @@ export var sui_system;
|
|
|
707
642
|
builder.undoReportValidator = undoReportValidator;
|
|
708
643
|
function updateCandidateValidatorNetworkAddress(tx, args) {
|
|
709
644
|
const _args = [];
|
|
710
|
-
_args.push(
|
|
711
|
-
_args.push(
|
|
712
|
-
|
|
713
|
-
: tx.makeMoveVec({
|
|
714
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
715
|
-
// type: TODO
|
|
716
|
-
}));
|
|
717
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
645
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
646
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
647
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
718
648
|
// @ts-ignore
|
|
719
649
|
return tx.moveCall({
|
|
720
650
|
target: "0x3::sui_system::update_candidate_validator_network_address",
|
|
@@ -724,14 +654,9 @@ export var sui_system;
|
|
|
724
654
|
builder.updateCandidateValidatorNetworkAddress = updateCandidateValidatorNetworkAddress;
|
|
725
655
|
function updateCandidateValidatorNetworkPubkey(tx, args) {
|
|
726
656
|
const _args = [];
|
|
727
|
-
_args.push(
|
|
728
|
-
_args.push(
|
|
729
|
-
|
|
730
|
-
: tx.makeMoveVec({
|
|
731
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
732
|
-
// type: TODO
|
|
733
|
-
}));
|
|
734
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
657
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
658
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
659
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
735
660
|
// @ts-ignore
|
|
736
661
|
return tx.moveCall({
|
|
737
662
|
target: "0x3::sui_system::update_candidate_validator_network_pubkey",
|
|
@@ -741,14 +666,9 @@ export var sui_system;
|
|
|
741
666
|
builder.updateCandidateValidatorNetworkPubkey = updateCandidateValidatorNetworkPubkey;
|
|
742
667
|
function updateCandidateValidatorP2pAddress(tx, args) {
|
|
743
668
|
const _args = [];
|
|
744
|
-
_args.push(
|
|
745
|
-
_args.push(
|
|
746
|
-
|
|
747
|
-
: tx.makeMoveVec({
|
|
748
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
749
|
-
// type: TODO
|
|
750
|
-
}));
|
|
751
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
669
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
670
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
671
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
752
672
|
// @ts-ignore
|
|
753
673
|
return tx.moveCall({
|
|
754
674
|
target: "0x3::sui_system::update_candidate_validator_p2p_address",
|
|
@@ -758,14 +678,9 @@ export var sui_system;
|
|
|
758
678
|
builder.updateCandidateValidatorP2pAddress = updateCandidateValidatorP2pAddress;
|
|
759
679
|
function updateCandidateValidatorPrimaryAddress(tx, args) {
|
|
760
680
|
const _args = [];
|
|
761
|
-
_args.push(
|
|
762
|
-
_args.push(
|
|
763
|
-
|
|
764
|
-
: tx.makeMoveVec({
|
|
765
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
766
|
-
// type: TODO
|
|
767
|
-
}));
|
|
768
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
681
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
682
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
683
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
769
684
|
// @ts-ignore
|
|
770
685
|
return tx.moveCall({
|
|
771
686
|
target: "0x3::sui_system::update_candidate_validator_primary_address",
|
|
@@ -775,20 +690,10 @@ export var sui_system;
|
|
|
775
690
|
builder.updateCandidateValidatorPrimaryAddress = updateCandidateValidatorPrimaryAddress;
|
|
776
691
|
function updateCandidateValidatorProtocolPubkey(tx, args) {
|
|
777
692
|
const _args = [];
|
|
778
|
-
_args.push(
|
|
779
|
-
_args.push(
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
783
|
-
// type: TODO
|
|
784
|
-
}));
|
|
785
|
-
_args.push(TransactionArgument.is(args[2])
|
|
786
|
-
? args[2]
|
|
787
|
-
: tx.makeMoveVec({
|
|
788
|
-
objects: args[2].map((a) => tx.object(a)),
|
|
789
|
-
// type: TODO
|
|
790
|
-
}));
|
|
791
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]));
|
|
693
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
694
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
695
|
+
_args.push(transactionArgumentOrVec(args[2], tx));
|
|
696
|
+
_args.push(transactionArgumentOrObject(args[3], tx));
|
|
792
697
|
// @ts-ignore
|
|
793
698
|
return tx.moveCall({
|
|
794
699
|
target: "0x3::sui_system::update_candidate_validator_protocol_pubkey",
|
|
@@ -798,14 +703,9 @@ export var sui_system;
|
|
|
798
703
|
builder.updateCandidateValidatorProtocolPubkey = updateCandidateValidatorProtocolPubkey;
|
|
799
704
|
function updateCandidateValidatorWorkerAddress(tx, args) {
|
|
800
705
|
const _args = [];
|
|
801
|
-
_args.push(
|
|
802
|
-
_args.push(
|
|
803
|
-
|
|
804
|
-
: tx.makeMoveVec({
|
|
805
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
806
|
-
// type: TODO
|
|
807
|
-
}));
|
|
808
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
706
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
707
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
708
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
809
709
|
// @ts-ignore
|
|
810
710
|
return tx.moveCall({
|
|
811
711
|
target: "0x3::sui_system::update_candidate_validator_worker_address",
|
|
@@ -815,14 +715,9 @@ export var sui_system;
|
|
|
815
715
|
builder.updateCandidateValidatorWorkerAddress = updateCandidateValidatorWorkerAddress;
|
|
816
716
|
function updateCandidateValidatorWorkerPubkey(tx, args) {
|
|
817
717
|
const _args = [];
|
|
818
|
-
_args.push(
|
|
819
|
-
_args.push(
|
|
820
|
-
|
|
821
|
-
: tx.makeMoveVec({
|
|
822
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
823
|
-
// type: TODO
|
|
824
|
-
}));
|
|
825
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
718
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
719
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
720
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
826
721
|
// @ts-ignore
|
|
827
722
|
return tx.moveCall({
|
|
828
723
|
target: "0x3::sui_system::update_candidate_validator_worker_pubkey",
|
|
@@ -832,14 +727,9 @@ export var sui_system;
|
|
|
832
727
|
builder.updateCandidateValidatorWorkerPubkey = updateCandidateValidatorWorkerPubkey;
|
|
833
728
|
function updateValidatorDescription(tx, args) {
|
|
834
729
|
const _args = [];
|
|
835
|
-
_args.push(
|
|
836
|
-
_args.push(
|
|
837
|
-
|
|
838
|
-
: tx.makeMoveVec({
|
|
839
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
840
|
-
// type: TODO
|
|
841
|
-
}));
|
|
842
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
730
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
731
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
732
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
843
733
|
// @ts-ignore
|
|
844
734
|
return tx.moveCall({
|
|
845
735
|
target: "0x3::sui_system::update_validator_description",
|
|
@@ -849,14 +739,9 @@ export var sui_system;
|
|
|
849
739
|
builder.updateValidatorDescription = updateValidatorDescription;
|
|
850
740
|
function updateValidatorImageUrl(tx, args) {
|
|
851
741
|
const _args = [];
|
|
852
|
-
_args.push(
|
|
853
|
-
_args.push(
|
|
854
|
-
|
|
855
|
-
: tx.makeMoveVec({
|
|
856
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
857
|
-
// type: TODO
|
|
858
|
-
}));
|
|
859
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
742
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
743
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
744
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
860
745
|
// @ts-ignore
|
|
861
746
|
return tx.moveCall({
|
|
862
747
|
target: "0x3::sui_system::update_validator_image_url",
|
|
@@ -866,14 +751,9 @@ export var sui_system;
|
|
|
866
751
|
builder.updateValidatorImageUrl = updateValidatorImageUrl;
|
|
867
752
|
function updateValidatorName(tx, args) {
|
|
868
753
|
const _args = [];
|
|
869
|
-
_args.push(
|
|
870
|
-
_args.push(
|
|
871
|
-
|
|
872
|
-
: tx.makeMoveVec({
|
|
873
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
874
|
-
// type: TODO
|
|
875
|
-
}));
|
|
876
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
754
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
755
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
756
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
877
757
|
// @ts-ignore
|
|
878
758
|
return tx.moveCall({
|
|
879
759
|
target: "0x3::sui_system::update_validator_name",
|
|
@@ -883,14 +763,9 @@ export var sui_system;
|
|
|
883
763
|
builder.updateValidatorName = updateValidatorName;
|
|
884
764
|
function updateValidatorNextEpochNetworkAddress(tx, args) {
|
|
885
765
|
const _args = [];
|
|
886
|
-
_args.push(
|
|
887
|
-
_args.push(
|
|
888
|
-
|
|
889
|
-
: tx.makeMoveVec({
|
|
890
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
891
|
-
// type: TODO
|
|
892
|
-
}));
|
|
893
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
766
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
767
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
768
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
894
769
|
// @ts-ignore
|
|
895
770
|
return tx.moveCall({
|
|
896
771
|
target: "0x3::sui_system::update_validator_next_epoch_network_address",
|
|
@@ -900,14 +775,9 @@ export var sui_system;
|
|
|
900
775
|
builder.updateValidatorNextEpochNetworkAddress = updateValidatorNextEpochNetworkAddress;
|
|
901
776
|
function updateValidatorNextEpochNetworkPubkey(tx, args) {
|
|
902
777
|
const _args = [];
|
|
903
|
-
_args.push(
|
|
904
|
-
_args.push(
|
|
905
|
-
|
|
906
|
-
: tx.makeMoveVec({
|
|
907
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
908
|
-
// type: TODO
|
|
909
|
-
}));
|
|
910
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
778
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
779
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
780
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
911
781
|
// @ts-ignore
|
|
912
782
|
return tx.moveCall({
|
|
913
783
|
target: "0x3::sui_system::update_validator_next_epoch_network_pubkey",
|
|
@@ -917,14 +787,9 @@ export var sui_system;
|
|
|
917
787
|
builder.updateValidatorNextEpochNetworkPubkey = updateValidatorNextEpochNetworkPubkey;
|
|
918
788
|
function updateValidatorNextEpochP2pAddress(tx, args) {
|
|
919
789
|
const _args = [];
|
|
920
|
-
_args.push(
|
|
921
|
-
_args.push(
|
|
922
|
-
|
|
923
|
-
: tx.makeMoveVec({
|
|
924
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
925
|
-
// type: TODO
|
|
926
|
-
}));
|
|
927
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
790
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
791
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
792
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
928
793
|
// @ts-ignore
|
|
929
794
|
return tx.moveCall({
|
|
930
795
|
target: "0x3::sui_system::update_validator_next_epoch_p2p_address",
|
|
@@ -934,14 +799,9 @@ export var sui_system;
|
|
|
934
799
|
builder.updateValidatorNextEpochP2pAddress = updateValidatorNextEpochP2pAddress;
|
|
935
800
|
function updateValidatorNextEpochPrimaryAddress(tx, args) {
|
|
936
801
|
const _args = [];
|
|
937
|
-
_args.push(
|
|
938
|
-
_args.push(
|
|
939
|
-
|
|
940
|
-
: tx.makeMoveVec({
|
|
941
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
942
|
-
// type: TODO
|
|
943
|
-
}));
|
|
944
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
802
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
803
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
804
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
945
805
|
// @ts-ignore
|
|
946
806
|
return tx.moveCall({
|
|
947
807
|
target: "0x3::sui_system::update_validator_next_epoch_primary_address",
|
|
@@ -951,20 +811,10 @@ export var sui_system;
|
|
|
951
811
|
builder.updateValidatorNextEpochPrimaryAddress = updateValidatorNextEpochPrimaryAddress;
|
|
952
812
|
function updateValidatorNextEpochProtocolPubkey(tx, args) {
|
|
953
813
|
const _args = [];
|
|
954
|
-
_args.push(
|
|
955
|
-
_args.push(
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
959
|
-
// type: TODO
|
|
960
|
-
}));
|
|
961
|
-
_args.push(TransactionArgument.is(args[2])
|
|
962
|
-
? args[2]
|
|
963
|
-
: tx.makeMoveVec({
|
|
964
|
-
objects: args[2].map((a) => tx.object(a)),
|
|
965
|
-
// type: TODO
|
|
966
|
-
}));
|
|
967
|
-
_args.push(TransactionArgument.is(args[3]) ? args[3] : tx.object(args[3]));
|
|
814
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
815
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
816
|
+
_args.push(transactionArgumentOrVec(args[2], tx));
|
|
817
|
+
_args.push(transactionArgumentOrObject(args[3], tx));
|
|
968
818
|
// @ts-ignore
|
|
969
819
|
return tx.moveCall({
|
|
970
820
|
target: "0x3::sui_system::update_validator_next_epoch_protocol_pubkey",
|
|
@@ -974,14 +824,9 @@ export var sui_system;
|
|
|
974
824
|
builder.updateValidatorNextEpochProtocolPubkey = updateValidatorNextEpochProtocolPubkey;
|
|
975
825
|
function updateValidatorNextEpochWorkerAddress(tx, args) {
|
|
976
826
|
const _args = [];
|
|
977
|
-
_args.push(
|
|
978
|
-
_args.push(
|
|
979
|
-
|
|
980
|
-
: tx.makeMoveVec({
|
|
981
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
982
|
-
// type: TODO
|
|
983
|
-
}));
|
|
984
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
827
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
828
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
829
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
985
830
|
// @ts-ignore
|
|
986
831
|
return tx.moveCall({
|
|
987
832
|
target: "0x3::sui_system::update_validator_next_epoch_worker_address",
|
|
@@ -991,14 +836,9 @@ export var sui_system;
|
|
|
991
836
|
builder.updateValidatorNextEpochWorkerAddress = updateValidatorNextEpochWorkerAddress;
|
|
992
837
|
function updateValidatorNextEpochWorkerPubkey(tx, args) {
|
|
993
838
|
const _args = [];
|
|
994
|
-
_args.push(
|
|
995
|
-
_args.push(
|
|
996
|
-
|
|
997
|
-
: tx.makeMoveVec({
|
|
998
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
999
|
-
// type: TODO
|
|
1000
|
-
}));
|
|
1001
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
839
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
840
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
841
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
1002
842
|
// @ts-ignore
|
|
1003
843
|
return tx.moveCall({
|
|
1004
844
|
target: "0x3::sui_system::update_validator_next_epoch_worker_pubkey",
|
|
@@ -1008,14 +848,9 @@ export var sui_system;
|
|
|
1008
848
|
builder.updateValidatorNextEpochWorkerPubkey = updateValidatorNextEpochWorkerPubkey;
|
|
1009
849
|
function updateValidatorProjectUrl(tx, args) {
|
|
1010
850
|
const _args = [];
|
|
1011
|
-
_args.push(
|
|
1012
|
-
_args.push(
|
|
1013
|
-
|
|
1014
|
-
: tx.makeMoveVec({
|
|
1015
|
-
objects: args[1].map((a) => tx.object(a)),
|
|
1016
|
-
// type: TODO
|
|
1017
|
-
}));
|
|
1018
|
-
_args.push(TransactionArgument.is(args[2]) ? args[2] : tx.object(args[2]));
|
|
851
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
852
|
+
_args.push(transactionArgumentOrVec(args[1], tx));
|
|
853
|
+
_args.push(transactionArgumentOrObject(args[2], tx));
|
|
1019
854
|
// @ts-ignore
|
|
1020
855
|
return tx.moveCall({
|
|
1021
856
|
target: "0x3::sui_system::update_validator_project_url",
|
|
@@ -1438,7 +1273,7 @@ export var validator;
|
|
|
1438
1273
|
(function (builder) {
|
|
1439
1274
|
function commissionRate(tx, args) {
|
|
1440
1275
|
const _args = [];
|
|
1441
|
-
_args.push(
|
|
1276
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1442
1277
|
// @ts-ignore
|
|
1443
1278
|
return tx.moveCall({
|
|
1444
1279
|
target: "0x3::validator::commission_rate",
|
|
@@ -1448,7 +1283,7 @@ export var validator;
|
|
|
1448
1283
|
builder.commissionRate = commissionRate;
|
|
1449
1284
|
function description(tx, args) {
|
|
1450
1285
|
const _args = [];
|
|
1451
|
-
_args.push(
|
|
1286
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1452
1287
|
// @ts-ignore
|
|
1453
1288
|
return tx.moveCall({
|
|
1454
1289
|
target: "0x3::validator::description",
|
|
@@ -1458,7 +1293,7 @@ export var validator;
|
|
|
1458
1293
|
builder.description = description;
|
|
1459
1294
|
function gasPrice(tx, args) {
|
|
1460
1295
|
const _args = [];
|
|
1461
|
-
_args.push(
|
|
1296
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1462
1297
|
// @ts-ignore
|
|
1463
1298
|
return tx.moveCall({
|
|
1464
1299
|
target: "0x3::validator::gas_price",
|
|
@@ -1468,7 +1303,7 @@ export var validator;
|
|
|
1468
1303
|
builder.gasPrice = gasPrice;
|
|
1469
1304
|
function imageUrl(tx, args) {
|
|
1470
1305
|
const _args = [];
|
|
1471
|
-
_args.push(
|
|
1306
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1472
1307
|
// @ts-ignore
|
|
1473
1308
|
return tx.moveCall({
|
|
1474
1309
|
target: "0x3::validator::image_url",
|
|
@@ -1478,8 +1313,8 @@ export var validator;
|
|
|
1478
1313
|
builder.imageUrl = imageUrl;
|
|
1479
1314
|
function isDuplicate(tx, args) {
|
|
1480
1315
|
const _args = [];
|
|
1481
|
-
_args.push(
|
|
1482
|
-
_args.push(
|
|
1316
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1317
|
+
_args.push(transactionArgumentOrObject(args[1], tx));
|
|
1483
1318
|
// @ts-ignore
|
|
1484
1319
|
return tx.moveCall({
|
|
1485
1320
|
target: "0x3::validator::is_duplicate",
|
|
@@ -1489,7 +1324,7 @@ export var validator;
|
|
|
1489
1324
|
builder.isDuplicate = isDuplicate;
|
|
1490
1325
|
function isPreactive(tx, args) {
|
|
1491
1326
|
const _args = [];
|
|
1492
|
-
_args.push(
|
|
1327
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1493
1328
|
// @ts-ignore
|
|
1494
1329
|
return tx.moveCall({
|
|
1495
1330
|
target: "0x3::validator::is_preactive",
|
|
@@ -1499,7 +1334,7 @@ export var validator;
|
|
|
1499
1334
|
builder.isPreactive = isPreactive;
|
|
1500
1335
|
function metadata(tx, args) {
|
|
1501
1336
|
const _args = [];
|
|
1502
|
-
_args.push(
|
|
1337
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1503
1338
|
// @ts-ignore
|
|
1504
1339
|
return tx.moveCall({
|
|
1505
1340
|
target: "0x3::validator::metadata",
|
|
@@ -1509,7 +1344,7 @@ export var validator;
|
|
|
1509
1344
|
builder.metadata = metadata;
|
|
1510
1345
|
function name(tx, args) {
|
|
1511
1346
|
const _args = [];
|
|
1512
|
-
_args.push(
|
|
1347
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1513
1348
|
// @ts-ignore
|
|
1514
1349
|
return tx.moveCall({
|
|
1515
1350
|
target: "0x3::validator::name",
|
|
@@ -1519,7 +1354,7 @@ export var validator;
|
|
|
1519
1354
|
builder.name = name;
|
|
1520
1355
|
function networkAddress(tx, args) {
|
|
1521
1356
|
const _args = [];
|
|
1522
|
-
_args.push(
|
|
1357
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1523
1358
|
// @ts-ignore
|
|
1524
1359
|
return tx.moveCall({
|
|
1525
1360
|
target: "0x3::validator::network_address",
|
|
@@ -1529,7 +1364,7 @@ export var validator;
|
|
|
1529
1364
|
builder.networkAddress = networkAddress;
|
|
1530
1365
|
function networkPubkeyBytes(tx, args) {
|
|
1531
1366
|
const _args = [];
|
|
1532
|
-
_args.push(
|
|
1367
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1533
1368
|
// @ts-ignore
|
|
1534
1369
|
return tx.moveCall({
|
|
1535
1370
|
target: "0x3::validator::network_pubkey_bytes",
|
|
@@ -1539,7 +1374,7 @@ export var validator;
|
|
|
1539
1374
|
builder.networkPubkeyBytes = networkPubkeyBytes;
|
|
1540
1375
|
function nextEpochGasPrice(tx, args) {
|
|
1541
1376
|
const _args = [];
|
|
1542
|
-
_args.push(
|
|
1377
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1543
1378
|
// @ts-ignore
|
|
1544
1379
|
return tx.moveCall({
|
|
1545
1380
|
target: "0x3::validator::next_epoch_gas_price",
|
|
@@ -1549,7 +1384,7 @@ export var validator;
|
|
|
1549
1384
|
builder.nextEpochGasPrice = nextEpochGasPrice;
|
|
1550
1385
|
function nextEpochNetworkAddress(tx, args) {
|
|
1551
1386
|
const _args = [];
|
|
1552
|
-
_args.push(
|
|
1387
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1553
1388
|
// @ts-ignore
|
|
1554
1389
|
return tx.moveCall({
|
|
1555
1390
|
target: "0x3::validator::next_epoch_network_address",
|
|
@@ -1559,7 +1394,7 @@ export var validator;
|
|
|
1559
1394
|
builder.nextEpochNetworkAddress = nextEpochNetworkAddress;
|
|
1560
1395
|
function nextEpochNetworkPubkeyBytes(tx, args) {
|
|
1561
1396
|
const _args = [];
|
|
1562
|
-
_args.push(
|
|
1397
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1563
1398
|
// @ts-ignore
|
|
1564
1399
|
return tx.moveCall({
|
|
1565
1400
|
target: "0x3::validator::next_epoch_network_pubkey_bytes",
|
|
@@ -1569,7 +1404,7 @@ export var validator;
|
|
|
1569
1404
|
builder.nextEpochNetworkPubkeyBytes = nextEpochNetworkPubkeyBytes;
|
|
1570
1405
|
function nextEpochP2pAddress(tx, args) {
|
|
1571
1406
|
const _args = [];
|
|
1572
|
-
_args.push(
|
|
1407
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1573
1408
|
// @ts-ignore
|
|
1574
1409
|
return tx.moveCall({
|
|
1575
1410
|
target: "0x3::validator::next_epoch_p2p_address",
|
|
@@ -1579,7 +1414,7 @@ export var validator;
|
|
|
1579
1414
|
builder.nextEpochP2pAddress = nextEpochP2pAddress;
|
|
1580
1415
|
function nextEpochPrimaryAddress(tx, args) {
|
|
1581
1416
|
const _args = [];
|
|
1582
|
-
_args.push(
|
|
1417
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1583
1418
|
// @ts-ignore
|
|
1584
1419
|
return tx.moveCall({
|
|
1585
1420
|
target: "0x3::validator::next_epoch_primary_address",
|
|
@@ -1589,7 +1424,7 @@ export var validator;
|
|
|
1589
1424
|
builder.nextEpochPrimaryAddress = nextEpochPrimaryAddress;
|
|
1590
1425
|
function nextEpochProofOfPossession(tx, args) {
|
|
1591
1426
|
const _args = [];
|
|
1592
|
-
_args.push(
|
|
1427
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1593
1428
|
// @ts-ignore
|
|
1594
1429
|
return tx.moveCall({
|
|
1595
1430
|
target: "0x3::validator::next_epoch_proof_of_possession",
|
|
@@ -1599,7 +1434,7 @@ export var validator;
|
|
|
1599
1434
|
builder.nextEpochProofOfPossession = nextEpochProofOfPossession;
|
|
1600
1435
|
function nextEpochProtocolPubkeyBytes(tx, args) {
|
|
1601
1436
|
const _args = [];
|
|
1602
|
-
_args.push(
|
|
1437
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1603
1438
|
// @ts-ignore
|
|
1604
1439
|
return tx.moveCall({
|
|
1605
1440
|
target: "0x3::validator::next_epoch_protocol_pubkey_bytes",
|
|
@@ -1609,7 +1444,7 @@ export var validator;
|
|
|
1609
1444
|
builder.nextEpochProtocolPubkeyBytes = nextEpochProtocolPubkeyBytes;
|
|
1610
1445
|
function nextEpochWorkerAddress(tx, args) {
|
|
1611
1446
|
const _args = [];
|
|
1612
|
-
_args.push(
|
|
1447
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1613
1448
|
// @ts-ignore
|
|
1614
1449
|
return tx.moveCall({
|
|
1615
1450
|
target: "0x3::validator::next_epoch_worker_address",
|
|
@@ -1619,7 +1454,7 @@ export var validator;
|
|
|
1619
1454
|
builder.nextEpochWorkerAddress = nextEpochWorkerAddress;
|
|
1620
1455
|
function nextEpochWorkerPubkeyBytes(tx, args) {
|
|
1621
1456
|
const _args = [];
|
|
1622
|
-
_args.push(
|
|
1457
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1623
1458
|
// @ts-ignore
|
|
1624
1459
|
return tx.moveCall({
|
|
1625
1460
|
target: "0x3::validator::next_epoch_worker_pubkey_bytes",
|
|
@@ -1629,7 +1464,7 @@ export var validator;
|
|
|
1629
1464
|
builder.nextEpochWorkerPubkeyBytes = nextEpochWorkerPubkeyBytes;
|
|
1630
1465
|
function operationCapId(tx, args) {
|
|
1631
1466
|
const _args = [];
|
|
1632
|
-
_args.push(
|
|
1467
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1633
1468
|
// @ts-ignore
|
|
1634
1469
|
return tx.moveCall({
|
|
1635
1470
|
target: "0x3::validator::operation_cap_id",
|
|
@@ -1639,7 +1474,7 @@ export var validator;
|
|
|
1639
1474
|
builder.operationCapId = operationCapId;
|
|
1640
1475
|
function p2pAddress(tx, args) {
|
|
1641
1476
|
const _args = [];
|
|
1642
|
-
_args.push(
|
|
1477
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1643
1478
|
// @ts-ignore
|
|
1644
1479
|
return tx.moveCall({
|
|
1645
1480
|
target: "0x3::validator::p2p_address",
|
|
@@ -1649,7 +1484,7 @@ export var validator;
|
|
|
1649
1484
|
builder.p2pAddress = p2pAddress;
|
|
1650
1485
|
function pendingStakeAmount(tx, args) {
|
|
1651
1486
|
const _args = [];
|
|
1652
|
-
_args.push(
|
|
1487
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1653
1488
|
// @ts-ignore
|
|
1654
1489
|
return tx.moveCall({
|
|
1655
1490
|
target: "0x3::validator::pending_stake_amount",
|
|
@@ -1659,7 +1494,7 @@ export var validator;
|
|
|
1659
1494
|
builder.pendingStakeAmount = pendingStakeAmount;
|
|
1660
1495
|
function pendingStakeWithdrawAmount(tx, args) {
|
|
1661
1496
|
const _args = [];
|
|
1662
|
-
_args.push(
|
|
1497
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1663
1498
|
// @ts-ignore
|
|
1664
1499
|
return tx.moveCall({
|
|
1665
1500
|
target: "0x3::validator::pending_stake_withdraw_amount",
|
|
@@ -1669,8 +1504,8 @@ export var validator;
|
|
|
1669
1504
|
builder.pendingStakeWithdrawAmount = pendingStakeWithdrawAmount;
|
|
1670
1505
|
function poolTokenExchangeRateAtEpoch(tx, args) {
|
|
1671
1506
|
const _args = [];
|
|
1672
|
-
_args.push(
|
|
1673
|
-
_args.push(
|
|
1507
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1508
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
1674
1509
|
// @ts-ignore
|
|
1675
1510
|
return tx.moveCall({
|
|
1676
1511
|
target: "0x3::validator::pool_token_exchange_rate_at_epoch",
|
|
@@ -1680,7 +1515,7 @@ export var validator;
|
|
|
1680
1515
|
builder.poolTokenExchangeRateAtEpoch = poolTokenExchangeRateAtEpoch;
|
|
1681
1516
|
function primaryAddress(tx, args) {
|
|
1682
1517
|
const _args = [];
|
|
1683
|
-
_args.push(
|
|
1518
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1684
1519
|
// @ts-ignore
|
|
1685
1520
|
return tx.moveCall({
|
|
1686
1521
|
target: "0x3::validator::primary_address",
|
|
@@ -1690,7 +1525,7 @@ export var validator;
|
|
|
1690
1525
|
builder.primaryAddress = primaryAddress;
|
|
1691
1526
|
function projectUrl(tx, args) {
|
|
1692
1527
|
const _args = [];
|
|
1693
|
-
_args.push(
|
|
1528
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1694
1529
|
// @ts-ignore
|
|
1695
1530
|
return tx.moveCall({
|
|
1696
1531
|
target: "0x3::validator::project_url",
|
|
@@ -1700,7 +1535,7 @@ export var validator;
|
|
|
1700
1535
|
builder.projectUrl = projectUrl;
|
|
1701
1536
|
function proofOfPossession(tx, args) {
|
|
1702
1537
|
const _args = [];
|
|
1703
|
-
_args.push(
|
|
1538
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1704
1539
|
// @ts-ignore
|
|
1705
1540
|
return tx.moveCall({
|
|
1706
1541
|
target: "0x3::validator::proof_of_possession",
|
|
@@ -1710,7 +1545,7 @@ export var validator;
|
|
|
1710
1545
|
builder.proofOfPossession = proofOfPossession;
|
|
1711
1546
|
function protocolPubkeyBytes(tx, args) {
|
|
1712
1547
|
const _args = [];
|
|
1713
|
-
_args.push(
|
|
1548
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1714
1549
|
// @ts-ignore
|
|
1715
1550
|
return tx.moveCall({
|
|
1716
1551
|
target: "0x3::validator::protocol_pubkey_bytes",
|
|
@@ -1720,7 +1555,7 @@ export var validator;
|
|
|
1720
1555
|
builder.protocolPubkeyBytes = protocolPubkeyBytes;
|
|
1721
1556
|
function stakeAmount(tx, args) {
|
|
1722
1557
|
const _args = [];
|
|
1723
|
-
_args.push(
|
|
1558
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1724
1559
|
// @ts-ignore
|
|
1725
1560
|
return tx.moveCall({
|
|
1726
1561
|
target: "0x3::validator::stake_amount",
|
|
@@ -1730,7 +1565,7 @@ export var validator;
|
|
|
1730
1565
|
builder.stakeAmount = stakeAmount;
|
|
1731
1566
|
function stakingPoolId(tx, args) {
|
|
1732
1567
|
const _args = [];
|
|
1733
|
-
_args.push(
|
|
1568
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1734
1569
|
// @ts-ignore
|
|
1735
1570
|
return tx.moveCall({
|
|
1736
1571
|
target: "0x3::validator::staking_pool_id",
|
|
@@ -1740,7 +1575,7 @@ export var validator;
|
|
|
1740
1575
|
builder.stakingPoolId = stakingPoolId;
|
|
1741
1576
|
function suiAddress(tx, args) {
|
|
1742
1577
|
const _args = [];
|
|
1743
|
-
_args.push(
|
|
1578
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1744
1579
|
// @ts-ignore
|
|
1745
1580
|
return tx.moveCall({
|
|
1746
1581
|
target: "0x3::validator::sui_address",
|
|
@@ -1750,7 +1585,7 @@ export var validator;
|
|
|
1750
1585
|
builder.suiAddress = suiAddress;
|
|
1751
1586
|
function totalStake(tx, args) {
|
|
1752
1587
|
const _args = [];
|
|
1753
|
-
_args.push(
|
|
1588
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1754
1589
|
// @ts-ignore
|
|
1755
1590
|
return tx.moveCall({
|
|
1756
1591
|
target: "0x3::validator::total_stake",
|
|
@@ -1760,7 +1595,7 @@ export var validator;
|
|
|
1760
1595
|
builder.totalStake = totalStake;
|
|
1761
1596
|
function totalStakeAmount(tx, args) {
|
|
1762
1597
|
const _args = [];
|
|
1763
|
-
_args.push(
|
|
1598
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1764
1599
|
// @ts-ignore
|
|
1765
1600
|
return tx.moveCall({
|
|
1766
1601
|
target: "0x3::validator::total_stake_amount",
|
|
@@ -1770,7 +1605,7 @@ export var validator;
|
|
|
1770
1605
|
builder.totalStakeAmount = totalStakeAmount;
|
|
1771
1606
|
function validateMetadata(tx, args) {
|
|
1772
1607
|
const _args = [];
|
|
1773
|
-
_args.push(
|
|
1608
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1774
1609
|
// @ts-ignore
|
|
1775
1610
|
return tx.moveCall({
|
|
1776
1611
|
target: "0x3::validator::validate_metadata",
|
|
@@ -1780,12 +1615,7 @@ export var validator;
|
|
|
1780
1615
|
builder.validateMetadata = validateMetadata;
|
|
1781
1616
|
function validateMetadataBcs(tx, args) {
|
|
1782
1617
|
const _args = [];
|
|
1783
|
-
_args.push(
|
|
1784
|
-
? args[0]
|
|
1785
|
-
: tx.makeMoveVec({
|
|
1786
|
-
objects: args[0].map((a) => tx.object(a)),
|
|
1787
|
-
// type: TODO
|
|
1788
|
-
}));
|
|
1618
|
+
_args.push(transactionArgumentOrVec(args[0], tx));
|
|
1789
1619
|
// @ts-ignore
|
|
1790
1620
|
return tx.moveCall({
|
|
1791
1621
|
target: "0x3::validator::validate_metadata_bcs",
|
|
@@ -1795,7 +1625,7 @@ export var validator;
|
|
|
1795
1625
|
builder.validateMetadataBcs = validateMetadataBcs;
|
|
1796
1626
|
function votingPower(tx, args) {
|
|
1797
1627
|
const _args = [];
|
|
1798
|
-
_args.push(
|
|
1628
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1799
1629
|
// @ts-ignore
|
|
1800
1630
|
return tx.moveCall({
|
|
1801
1631
|
target: "0x3::validator::voting_power",
|
|
@@ -1805,7 +1635,7 @@ export var validator;
|
|
|
1805
1635
|
builder.votingPower = votingPower;
|
|
1806
1636
|
function workerAddress(tx, args) {
|
|
1807
1637
|
const _args = [];
|
|
1808
|
-
_args.push(
|
|
1638
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1809
1639
|
// @ts-ignore
|
|
1810
1640
|
return tx.moveCall({
|
|
1811
1641
|
target: "0x3::validator::worker_address",
|
|
@@ -1815,7 +1645,7 @@ export var validator;
|
|
|
1815
1645
|
builder.workerAddress = workerAddress;
|
|
1816
1646
|
function workerPubkeyBytes(tx, args) {
|
|
1817
1647
|
const _args = [];
|
|
1818
|
-
_args.push(
|
|
1648
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
1819
1649
|
// @ts-ignore
|
|
1820
1650
|
return tx.moveCall({
|
|
1821
1651
|
target: "0x3::validator::worker_pubkey_bytes",
|
|
@@ -2280,7 +2110,7 @@ export var validator_set;
|
|
|
2280
2110
|
(function (builder) {
|
|
2281
2111
|
function activeValidators(tx, args) {
|
|
2282
2112
|
const _args = [];
|
|
2283
|
-
_args.push(
|
|
2113
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
2284
2114
|
// @ts-ignore
|
|
2285
2115
|
return tx.moveCall({
|
|
2286
2116
|
target: "0x3::validator_set::active_validators",
|
|
@@ -2290,7 +2120,7 @@ export var validator_set;
|
|
|
2290
2120
|
builder.activeValidators = activeValidators;
|
|
2291
2121
|
function deriveReferenceGasPrice(tx, args) {
|
|
2292
2122
|
const _args = [];
|
|
2293
|
-
_args.push(
|
|
2123
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
2294
2124
|
// @ts-ignore
|
|
2295
2125
|
return tx.moveCall({
|
|
2296
2126
|
target: "0x3::validator_set::derive_reference_gas_price",
|
|
@@ -2300,8 +2130,8 @@ export var validator_set;
|
|
|
2300
2130
|
builder.deriveReferenceGasPrice = deriveReferenceGasPrice;
|
|
2301
2131
|
function getActiveValidatorRef(tx, args) {
|
|
2302
2132
|
const _args = [];
|
|
2303
|
-
_args.push(
|
|
2304
|
-
_args.push(
|
|
2133
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
2134
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2305
2135
|
// @ts-ignore
|
|
2306
2136
|
return tx.moveCall({
|
|
2307
2137
|
target: "0x3::validator_set::get_active_validator_ref",
|
|
@@ -2311,8 +2141,8 @@ export var validator_set;
|
|
|
2311
2141
|
builder.getActiveValidatorRef = getActiveValidatorRef;
|
|
2312
2142
|
function getPendingValidatorRef(tx, args) {
|
|
2313
2143
|
const _args = [];
|
|
2314
|
-
_args.push(
|
|
2315
|
-
_args.push(
|
|
2144
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
2145
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2316
2146
|
// @ts-ignore
|
|
2317
2147
|
return tx.moveCall({
|
|
2318
2148
|
target: "0x3::validator_set::get_pending_validator_ref",
|
|
@@ -2322,8 +2152,8 @@ export var validator_set;
|
|
|
2322
2152
|
builder.getPendingValidatorRef = getPendingValidatorRef;
|
|
2323
2153
|
function isInactiveValidator(tx, args) {
|
|
2324
2154
|
const _args = [];
|
|
2325
|
-
_args.push(
|
|
2326
|
-
_args.push(
|
|
2155
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
2156
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2327
2157
|
// @ts-ignore
|
|
2328
2158
|
return tx.moveCall({
|
|
2329
2159
|
target: "0x3::validator_set::is_inactive_validator",
|
|
@@ -2333,8 +2163,8 @@ export var validator_set;
|
|
|
2333
2163
|
builder.isInactiveValidator = isInactiveValidator;
|
|
2334
2164
|
function isValidatorCandidate(tx, args) {
|
|
2335
2165
|
const _args = [];
|
|
2336
|
-
_args.push(
|
|
2337
|
-
_args.push(
|
|
2166
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
2167
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2338
2168
|
// @ts-ignore
|
|
2339
2169
|
return tx.moveCall({
|
|
2340
2170
|
target: "0x3::validator_set::is_validator_candidate",
|
|
@@ -2344,7 +2174,7 @@ export var validator_set;
|
|
|
2344
2174
|
builder.isValidatorCandidate = isValidatorCandidate;
|
|
2345
2175
|
function stakingPoolMappings(tx, args) {
|
|
2346
2176
|
const _args = [];
|
|
2347
|
-
_args.push(
|
|
2177
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
2348
2178
|
// @ts-ignore
|
|
2349
2179
|
return tx.moveCall({
|
|
2350
2180
|
target: "0x3::validator_set::staking_pool_mappings",
|
|
@@ -2354,8 +2184,8 @@ export var validator_set;
|
|
|
2354
2184
|
builder.stakingPoolMappings = stakingPoolMappings;
|
|
2355
2185
|
function sumVotingPowerByAddresses(tx, args) {
|
|
2356
2186
|
const _args = [];
|
|
2357
|
-
_args.push(
|
|
2358
|
-
_args.push(
|
|
2187
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
2188
|
+
_args.push(transactionArgumentOrObject(args[1], tx));
|
|
2359
2189
|
// @ts-ignore
|
|
2360
2190
|
return tx.moveCall({
|
|
2361
2191
|
target: "0x3::validator_set::sum_voting_power_by_addresses",
|
|
@@ -2365,7 +2195,7 @@ export var validator_set;
|
|
|
2365
2195
|
builder.sumVotingPowerByAddresses = sumVotingPowerByAddresses;
|
|
2366
2196
|
function totalStake(tx, args) {
|
|
2367
2197
|
const _args = [];
|
|
2368
|
-
_args.push(
|
|
2198
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
2369
2199
|
// @ts-ignore
|
|
2370
2200
|
return tx.moveCall({
|
|
2371
2201
|
target: "0x3::validator_set::total_stake",
|
|
@@ -2375,8 +2205,8 @@ export var validator_set;
|
|
|
2375
2205
|
builder.totalStake = totalStake;
|
|
2376
2206
|
function validatorStakeAmount(tx, args) {
|
|
2377
2207
|
const _args = [];
|
|
2378
|
-
_args.push(
|
|
2379
|
-
_args.push(
|
|
2208
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
2209
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2380
2210
|
// @ts-ignore
|
|
2381
2211
|
return tx.moveCall({
|
|
2382
2212
|
target: "0x3::validator_set::validator_stake_amount",
|
|
@@ -2386,8 +2216,8 @@ export var validator_set;
|
|
|
2386
2216
|
builder.validatorStakeAmount = validatorStakeAmount;
|
|
2387
2217
|
function validatorStakingPoolId(tx, args) {
|
|
2388
2218
|
const _args = [];
|
|
2389
|
-
_args.push(
|
|
2390
|
-
_args.push(
|
|
2219
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
2220
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2391
2221
|
// @ts-ignore
|
|
2392
2222
|
return tx.moveCall({
|
|
2393
2223
|
target: "0x3::validator_set::validator_staking_pool_id",
|
|
@@ -2397,8 +2227,8 @@ export var validator_set;
|
|
|
2397
2227
|
builder.validatorStakingPoolId = validatorStakingPoolId;
|
|
2398
2228
|
function validatorTotalStakeAmount(tx, args) {
|
|
2399
2229
|
const _args = [];
|
|
2400
|
-
_args.push(
|
|
2401
|
-
_args.push(
|
|
2230
|
+
_args.push(transactionArgumentOrObject(args[0], tx));
|
|
2231
|
+
_args.push(transactionArgumentOrPure(args[1], tx));
|
|
2402
2232
|
// @ts-ignore
|
|
2403
2233
|
return tx.moveCall({
|
|
2404
2234
|
target: "0x3::validator_set::validator_total_stake_amount",
|