@typemove/sui 1.5.1 → 1.5.2-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/Readme.md +8 -4
- package/dist/cjs/builtin/0x1.d.ts +2 -0
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +187 -167
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x2.d.ts +121 -0
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +1077 -856
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.js +212 -212
- package/dist/cjs/codegen/codegen.js +2 -2
- package/dist/cjs/move-coder.d.ts +1 -1
- package/dist/cjs/move-coder.js +4 -4
- package/dist/esm/builtin/0x1.d.ts +2 -0
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +187 -167
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +121 -0
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +1076 -855
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.js +212 -212
- package/dist/esm/codegen/codegen.js +2 -2
- package/dist/esm/move-coder.d.ts +1 -1
- package/dist/esm/move-coder.js +4 -4
- package/package.json +2 -2
- package/src/abis/0x1.json +20 -0
- package/src/abis/0x2.json +551 -0
- package/src/builtin/0x1.ts +195 -167
- package/src/builtin/0x2.ts +1238 -855
- package/src/builtin/0x3.ts +212 -212
- package/src/codegen/codegen.ts +2 -2
- package/src/move-coder.ts +4 -4
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +8 -8
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +96 -96
- package/src/tests/types/testnet/0xdee9.ts +94 -94
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +310 -310
package/dist/cjs/builtin/0x3.js
CHANGED
|
@@ -81,11 +81,11 @@ var stake_subsidy;
|
|
|
81
81
|
async function currentEpochSubsidyAmount(client, args) {
|
|
82
82
|
const tx = new transactions_1.TransactionBlock();
|
|
83
83
|
builder.currentEpochSubsidyAmount(tx, args);
|
|
84
|
-
const
|
|
84
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
85
85
|
transactionBlock: tx,
|
|
86
86
|
sender: sui_2.ZERO_ADDRESS,
|
|
87
87
|
});
|
|
88
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
88
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
89
89
|
}
|
|
90
90
|
view.currentEpochSubsidyAmount = currentEpochSubsidyAmount;
|
|
91
91
|
})(view = stake_subsidy.view || (stake_subsidy.view = {}));
|
|
@@ -284,151 +284,151 @@ var staking_pool;
|
|
|
284
284
|
async function isEqualStakingMetadata(client, args) {
|
|
285
285
|
const tx = new transactions_1.TransactionBlock();
|
|
286
286
|
builder.isEqualStakingMetadata(tx, args);
|
|
287
|
-
const
|
|
287
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
288
288
|
transactionBlock: tx,
|
|
289
289
|
sender: sui_2.ZERO_ADDRESS,
|
|
290
290
|
});
|
|
291
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
291
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
292
292
|
}
|
|
293
293
|
view.isEqualStakingMetadata = isEqualStakingMetadata;
|
|
294
294
|
async function isInactive(client, args) {
|
|
295
295
|
const tx = new transactions_1.TransactionBlock();
|
|
296
296
|
builder.isInactive(tx, args);
|
|
297
|
-
const
|
|
297
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
298
298
|
transactionBlock: tx,
|
|
299
299
|
sender: sui_2.ZERO_ADDRESS,
|
|
300
300
|
});
|
|
301
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
301
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
302
302
|
}
|
|
303
303
|
view.isInactive = isInactive;
|
|
304
304
|
async function isPreactive(client, args) {
|
|
305
305
|
const tx = new transactions_1.TransactionBlock();
|
|
306
306
|
builder.isPreactive(tx, args);
|
|
307
|
-
const
|
|
307
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
308
308
|
transactionBlock: tx,
|
|
309
309
|
sender: sui_2.ZERO_ADDRESS,
|
|
310
310
|
});
|
|
311
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
311
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
312
312
|
}
|
|
313
313
|
view.isPreactive = isPreactive;
|
|
314
314
|
async function joinStakedSui(client, args) {
|
|
315
315
|
const tx = new transactions_1.TransactionBlock();
|
|
316
316
|
builder.joinStakedSui(tx, args);
|
|
317
|
-
const
|
|
317
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
318
318
|
transactionBlock: tx,
|
|
319
319
|
sender: sui_2.ZERO_ADDRESS,
|
|
320
320
|
});
|
|
321
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
321
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
322
322
|
}
|
|
323
323
|
view.joinStakedSui = joinStakedSui;
|
|
324
324
|
async function pendingStakeAmount(client, args) {
|
|
325
325
|
const tx = new transactions_1.TransactionBlock();
|
|
326
326
|
builder.pendingStakeAmount(tx, args);
|
|
327
|
-
const
|
|
327
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
328
328
|
transactionBlock: tx,
|
|
329
329
|
sender: sui_2.ZERO_ADDRESS,
|
|
330
330
|
});
|
|
331
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
331
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
332
332
|
}
|
|
333
333
|
view.pendingStakeAmount = pendingStakeAmount;
|
|
334
334
|
async function pendingStakeWithdrawAmount(client, args) {
|
|
335
335
|
const tx = new transactions_1.TransactionBlock();
|
|
336
336
|
builder.pendingStakeWithdrawAmount(tx, args);
|
|
337
|
-
const
|
|
337
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
338
338
|
transactionBlock: tx,
|
|
339
339
|
sender: sui_2.ZERO_ADDRESS,
|
|
340
340
|
});
|
|
341
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
341
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
342
342
|
}
|
|
343
343
|
view.pendingStakeWithdrawAmount = pendingStakeWithdrawAmount;
|
|
344
344
|
async function poolId(client, args) {
|
|
345
345
|
const tx = new transactions_1.TransactionBlock();
|
|
346
346
|
builder.poolId(tx, args);
|
|
347
|
-
const
|
|
347
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
348
348
|
transactionBlock: tx,
|
|
349
349
|
sender: sui_2.ZERO_ADDRESS,
|
|
350
350
|
});
|
|
351
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
351
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
352
352
|
}
|
|
353
353
|
view.poolId = poolId;
|
|
354
354
|
async function poolTokenAmount(client, args) {
|
|
355
355
|
const tx = new transactions_1.TransactionBlock();
|
|
356
356
|
builder.poolTokenAmount(tx, args);
|
|
357
|
-
const
|
|
357
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
358
358
|
transactionBlock: tx,
|
|
359
359
|
sender: sui_2.ZERO_ADDRESS,
|
|
360
360
|
});
|
|
361
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
361
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
362
362
|
}
|
|
363
363
|
view.poolTokenAmount = poolTokenAmount;
|
|
364
364
|
async function poolTokenExchangeRateAtEpoch(client, args) {
|
|
365
365
|
const tx = new transactions_1.TransactionBlock();
|
|
366
366
|
builder.poolTokenExchangeRateAtEpoch(tx, args);
|
|
367
|
-
const
|
|
367
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
368
368
|
transactionBlock: tx,
|
|
369
369
|
sender: sui_2.ZERO_ADDRESS,
|
|
370
370
|
});
|
|
371
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
371
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
372
372
|
}
|
|
373
373
|
view.poolTokenExchangeRateAtEpoch = poolTokenExchangeRateAtEpoch;
|
|
374
374
|
async function split(client, args) {
|
|
375
375
|
const tx = new transactions_1.TransactionBlock();
|
|
376
376
|
builder.split(tx, args);
|
|
377
|
-
const
|
|
377
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
378
378
|
transactionBlock: tx,
|
|
379
379
|
sender: sui_2.ZERO_ADDRESS,
|
|
380
380
|
});
|
|
381
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
381
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
382
382
|
}
|
|
383
383
|
view.split = split;
|
|
384
384
|
async function splitStakedSui(client, args) {
|
|
385
385
|
const tx = new transactions_1.TransactionBlock();
|
|
386
386
|
builder.splitStakedSui(tx, args);
|
|
387
|
-
const
|
|
387
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
388
388
|
transactionBlock: tx,
|
|
389
389
|
sender: sui_2.ZERO_ADDRESS,
|
|
390
390
|
});
|
|
391
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
391
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
392
392
|
}
|
|
393
393
|
view.splitStakedSui = splitStakedSui;
|
|
394
394
|
async function stakeActivationEpoch(client, args) {
|
|
395
395
|
const tx = new transactions_1.TransactionBlock();
|
|
396
396
|
builder.stakeActivationEpoch(tx, args);
|
|
397
|
-
const
|
|
397
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
398
398
|
transactionBlock: tx,
|
|
399
399
|
sender: sui_2.ZERO_ADDRESS,
|
|
400
400
|
});
|
|
401
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
401
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
402
402
|
}
|
|
403
403
|
view.stakeActivationEpoch = stakeActivationEpoch;
|
|
404
404
|
async function stakedSuiAmount(client, args) {
|
|
405
405
|
const tx = new transactions_1.TransactionBlock();
|
|
406
406
|
builder.stakedSuiAmount(tx, args);
|
|
407
|
-
const
|
|
407
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
408
408
|
transactionBlock: tx,
|
|
409
409
|
sender: sui_2.ZERO_ADDRESS,
|
|
410
410
|
});
|
|
411
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
411
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
412
412
|
}
|
|
413
413
|
view.stakedSuiAmount = stakedSuiAmount;
|
|
414
414
|
async function suiAmount(client, args) {
|
|
415
415
|
const tx = new transactions_1.TransactionBlock();
|
|
416
416
|
builder.suiAmount(tx, args);
|
|
417
|
-
const
|
|
417
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
418
418
|
transactionBlock: tx,
|
|
419
419
|
sender: sui_2.ZERO_ADDRESS,
|
|
420
420
|
});
|
|
421
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
421
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
422
422
|
}
|
|
423
423
|
view.suiAmount = suiAmount;
|
|
424
424
|
async function suiBalance(client, args) {
|
|
425
425
|
const tx = new transactions_1.TransactionBlock();
|
|
426
426
|
builder.suiBalance(tx, args);
|
|
427
|
-
const
|
|
427
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
428
428
|
transactionBlock: tx,
|
|
429
429
|
sender: sui_2.ZERO_ADDRESS,
|
|
430
430
|
});
|
|
431
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
431
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
432
432
|
}
|
|
433
433
|
view.suiBalance = suiBalance;
|
|
434
434
|
})(view = staking_pool.view || (staking_pool.view = {}));
|
|
@@ -472,21 +472,21 @@ var storage_fund;
|
|
|
472
472
|
async function totalBalance(client, args) {
|
|
473
473
|
const tx = new transactions_1.TransactionBlock();
|
|
474
474
|
builder.totalBalance(tx, args);
|
|
475
|
-
const
|
|
475
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
476
476
|
transactionBlock: tx,
|
|
477
477
|
sender: sui_2.ZERO_ADDRESS,
|
|
478
478
|
});
|
|
479
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
479
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
480
480
|
}
|
|
481
481
|
view.totalBalance = totalBalance;
|
|
482
482
|
async function totalObjectStorageRebates(client, args) {
|
|
483
483
|
const tx = new transactions_1.TransactionBlock();
|
|
484
484
|
builder.totalObjectStorageRebates(tx, args);
|
|
485
|
-
const
|
|
485
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
486
486
|
transactionBlock: tx,
|
|
487
487
|
sender: sui_2.ZERO_ADDRESS,
|
|
488
488
|
});
|
|
489
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
489
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
490
490
|
}
|
|
491
491
|
view.totalObjectStorageRebates = totalObjectStorageRebates;
|
|
492
492
|
})(view = storage_fund.view || (storage_fund.view = {}));
|
|
@@ -954,361 +954,361 @@ var sui_system;
|
|
|
954
954
|
async function activeValidatorAddresses(client, args) {
|
|
955
955
|
const tx = new transactions_1.TransactionBlock();
|
|
956
956
|
builder.activeValidatorAddresses(tx, args);
|
|
957
|
-
const
|
|
957
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
958
958
|
transactionBlock: tx,
|
|
959
959
|
sender: sui_2.ZERO_ADDRESS,
|
|
960
960
|
});
|
|
961
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
961
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
962
962
|
}
|
|
963
963
|
view.activeValidatorAddresses = activeValidatorAddresses;
|
|
964
964
|
async function poolExchangeRates(client, args) {
|
|
965
965
|
const tx = new transactions_1.TransactionBlock();
|
|
966
966
|
builder.poolExchangeRates(tx, args);
|
|
967
|
-
const
|
|
967
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
968
968
|
transactionBlock: tx,
|
|
969
969
|
sender: sui_2.ZERO_ADDRESS,
|
|
970
970
|
});
|
|
971
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
971
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
972
972
|
}
|
|
973
973
|
view.poolExchangeRates = poolExchangeRates;
|
|
974
974
|
async function reportValidator(client, args) {
|
|
975
975
|
const tx = new transactions_1.TransactionBlock();
|
|
976
976
|
builder.reportValidator(tx, args);
|
|
977
|
-
const
|
|
977
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
978
978
|
transactionBlock: tx,
|
|
979
979
|
sender: sui_2.ZERO_ADDRESS,
|
|
980
980
|
});
|
|
981
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
981
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
982
982
|
}
|
|
983
983
|
view.reportValidator = reportValidator;
|
|
984
984
|
async function requestAddStake(client, args) {
|
|
985
985
|
const tx = new transactions_1.TransactionBlock();
|
|
986
986
|
builder.requestAddStake(tx, args);
|
|
987
|
-
const
|
|
987
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
988
988
|
transactionBlock: tx,
|
|
989
989
|
sender: sui_2.ZERO_ADDRESS,
|
|
990
990
|
});
|
|
991
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
991
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
992
992
|
}
|
|
993
993
|
view.requestAddStake = requestAddStake;
|
|
994
994
|
async function requestAddStakeMulCoin(client, args) {
|
|
995
995
|
const tx = new transactions_1.TransactionBlock();
|
|
996
996
|
builder.requestAddStakeMulCoin(tx, args);
|
|
997
|
-
const
|
|
997
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
998
998
|
transactionBlock: tx,
|
|
999
999
|
sender: sui_2.ZERO_ADDRESS,
|
|
1000
1000
|
});
|
|
1001
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1001
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1002
1002
|
}
|
|
1003
1003
|
view.requestAddStakeMulCoin = requestAddStakeMulCoin;
|
|
1004
1004
|
async function requestAddStakeNonEntry(client, args) {
|
|
1005
1005
|
const tx = new transactions_1.TransactionBlock();
|
|
1006
1006
|
builder.requestAddStakeNonEntry(tx, args);
|
|
1007
|
-
const
|
|
1007
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1008
1008
|
transactionBlock: tx,
|
|
1009
1009
|
sender: sui_2.ZERO_ADDRESS,
|
|
1010
1010
|
});
|
|
1011
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1011
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1012
1012
|
}
|
|
1013
1013
|
view.requestAddStakeNonEntry = requestAddStakeNonEntry;
|
|
1014
1014
|
async function requestAddValidator(client, args) {
|
|
1015
1015
|
const tx = new transactions_1.TransactionBlock();
|
|
1016
1016
|
builder.requestAddValidator(tx, args);
|
|
1017
|
-
const
|
|
1017
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1018
1018
|
transactionBlock: tx,
|
|
1019
1019
|
sender: sui_2.ZERO_ADDRESS,
|
|
1020
1020
|
});
|
|
1021
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1021
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1022
1022
|
}
|
|
1023
1023
|
view.requestAddValidator = requestAddValidator;
|
|
1024
1024
|
async function requestAddValidatorCandidate(client, args) {
|
|
1025
1025
|
const tx = new transactions_1.TransactionBlock();
|
|
1026
1026
|
builder.requestAddValidatorCandidate(tx, args);
|
|
1027
|
-
const
|
|
1027
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1028
1028
|
transactionBlock: tx,
|
|
1029
1029
|
sender: sui_2.ZERO_ADDRESS,
|
|
1030
1030
|
});
|
|
1031
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1031
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1032
1032
|
}
|
|
1033
1033
|
view.requestAddValidatorCandidate = requestAddValidatorCandidate;
|
|
1034
1034
|
async function requestRemoveValidator(client, args) {
|
|
1035
1035
|
const tx = new transactions_1.TransactionBlock();
|
|
1036
1036
|
builder.requestRemoveValidator(tx, args);
|
|
1037
|
-
const
|
|
1037
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1038
1038
|
transactionBlock: tx,
|
|
1039
1039
|
sender: sui_2.ZERO_ADDRESS,
|
|
1040
1040
|
});
|
|
1041
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1041
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1042
1042
|
}
|
|
1043
1043
|
view.requestRemoveValidator = requestRemoveValidator;
|
|
1044
1044
|
async function requestRemoveValidatorCandidate(client, args) {
|
|
1045
1045
|
const tx = new transactions_1.TransactionBlock();
|
|
1046
1046
|
builder.requestRemoveValidatorCandidate(tx, args);
|
|
1047
|
-
const
|
|
1047
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1048
1048
|
transactionBlock: tx,
|
|
1049
1049
|
sender: sui_2.ZERO_ADDRESS,
|
|
1050
1050
|
});
|
|
1051
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1051
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1052
1052
|
}
|
|
1053
1053
|
view.requestRemoveValidatorCandidate = requestRemoveValidatorCandidate;
|
|
1054
1054
|
async function requestSetCommissionRate(client, args) {
|
|
1055
1055
|
const tx = new transactions_1.TransactionBlock();
|
|
1056
1056
|
builder.requestSetCommissionRate(tx, args);
|
|
1057
|
-
const
|
|
1057
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1058
1058
|
transactionBlock: tx,
|
|
1059
1059
|
sender: sui_2.ZERO_ADDRESS,
|
|
1060
1060
|
});
|
|
1061
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1061
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1062
1062
|
}
|
|
1063
1063
|
view.requestSetCommissionRate = requestSetCommissionRate;
|
|
1064
1064
|
async function requestSetGasPrice(client, args) {
|
|
1065
1065
|
const tx = new transactions_1.TransactionBlock();
|
|
1066
1066
|
builder.requestSetGasPrice(tx, args);
|
|
1067
|
-
const
|
|
1067
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1068
1068
|
transactionBlock: tx,
|
|
1069
1069
|
sender: sui_2.ZERO_ADDRESS,
|
|
1070
1070
|
});
|
|
1071
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1071
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1072
1072
|
}
|
|
1073
1073
|
view.requestSetGasPrice = requestSetGasPrice;
|
|
1074
1074
|
async function requestWithdrawStake(client, args) {
|
|
1075
1075
|
const tx = new transactions_1.TransactionBlock();
|
|
1076
1076
|
builder.requestWithdrawStake(tx, args);
|
|
1077
|
-
const
|
|
1077
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1078
1078
|
transactionBlock: tx,
|
|
1079
1079
|
sender: sui_2.ZERO_ADDRESS,
|
|
1080
1080
|
});
|
|
1081
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1081
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1082
1082
|
}
|
|
1083
1083
|
view.requestWithdrawStake = requestWithdrawStake;
|
|
1084
1084
|
async function requestWithdrawStakeNonEntry(client, args) {
|
|
1085
1085
|
const tx = new transactions_1.TransactionBlock();
|
|
1086
1086
|
builder.requestWithdrawStakeNonEntry(tx, args);
|
|
1087
|
-
const
|
|
1087
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1088
1088
|
transactionBlock: tx,
|
|
1089
1089
|
sender: sui_2.ZERO_ADDRESS,
|
|
1090
1090
|
});
|
|
1091
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1091
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1092
1092
|
}
|
|
1093
1093
|
view.requestWithdrawStakeNonEntry = requestWithdrawStakeNonEntry;
|
|
1094
1094
|
async function rotateOperationCap(client, args) {
|
|
1095
1095
|
const tx = new transactions_1.TransactionBlock();
|
|
1096
1096
|
builder.rotateOperationCap(tx, args);
|
|
1097
|
-
const
|
|
1097
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1098
1098
|
transactionBlock: tx,
|
|
1099
1099
|
sender: sui_2.ZERO_ADDRESS,
|
|
1100
1100
|
});
|
|
1101
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1101
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1102
1102
|
}
|
|
1103
1103
|
view.rotateOperationCap = rotateOperationCap;
|
|
1104
1104
|
async function setCandidateValidatorCommissionRate(client, args) {
|
|
1105
1105
|
const tx = new transactions_1.TransactionBlock();
|
|
1106
1106
|
builder.setCandidateValidatorCommissionRate(tx, args);
|
|
1107
|
-
const
|
|
1107
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1108
1108
|
transactionBlock: tx,
|
|
1109
1109
|
sender: sui_2.ZERO_ADDRESS,
|
|
1110
1110
|
});
|
|
1111
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1111
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1112
1112
|
}
|
|
1113
1113
|
view.setCandidateValidatorCommissionRate = setCandidateValidatorCommissionRate;
|
|
1114
1114
|
async function setCandidateValidatorGasPrice(client, args) {
|
|
1115
1115
|
const tx = new transactions_1.TransactionBlock();
|
|
1116
1116
|
builder.setCandidateValidatorGasPrice(tx, args);
|
|
1117
|
-
const
|
|
1117
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1118
1118
|
transactionBlock: tx,
|
|
1119
1119
|
sender: sui_2.ZERO_ADDRESS,
|
|
1120
1120
|
});
|
|
1121
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1121
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1122
1122
|
}
|
|
1123
1123
|
view.setCandidateValidatorGasPrice = setCandidateValidatorGasPrice;
|
|
1124
1124
|
async function undoReportValidator(client, args) {
|
|
1125
1125
|
const tx = new transactions_1.TransactionBlock();
|
|
1126
1126
|
builder.undoReportValidator(tx, args);
|
|
1127
|
-
const
|
|
1127
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1128
1128
|
transactionBlock: tx,
|
|
1129
1129
|
sender: sui_2.ZERO_ADDRESS,
|
|
1130
1130
|
});
|
|
1131
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1131
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1132
1132
|
}
|
|
1133
1133
|
view.undoReportValidator = undoReportValidator;
|
|
1134
1134
|
async function updateCandidateValidatorNetworkAddress(client, args) {
|
|
1135
1135
|
const tx = new transactions_1.TransactionBlock();
|
|
1136
1136
|
builder.updateCandidateValidatorNetworkAddress(tx, args);
|
|
1137
|
-
const
|
|
1137
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1138
1138
|
transactionBlock: tx,
|
|
1139
1139
|
sender: sui_2.ZERO_ADDRESS,
|
|
1140
1140
|
});
|
|
1141
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1141
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1142
1142
|
}
|
|
1143
1143
|
view.updateCandidateValidatorNetworkAddress = updateCandidateValidatorNetworkAddress;
|
|
1144
1144
|
async function updateCandidateValidatorNetworkPubkey(client, args) {
|
|
1145
1145
|
const tx = new transactions_1.TransactionBlock();
|
|
1146
1146
|
builder.updateCandidateValidatorNetworkPubkey(tx, args);
|
|
1147
|
-
const
|
|
1147
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1148
1148
|
transactionBlock: tx,
|
|
1149
1149
|
sender: sui_2.ZERO_ADDRESS,
|
|
1150
1150
|
});
|
|
1151
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1151
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1152
1152
|
}
|
|
1153
1153
|
view.updateCandidateValidatorNetworkPubkey = updateCandidateValidatorNetworkPubkey;
|
|
1154
1154
|
async function updateCandidateValidatorP2pAddress(client, args) {
|
|
1155
1155
|
const tx = new transactions_1.TransactionBlock();
|
|
1156
1156
|
builder.updateCandidateValidatorP2pAddress(tx, args);
|
|
1157
|
-
const
|
|
1157
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1158
1158
|
transactionBlock: tx,
|
|
1159
1159
|
sender: sui_2.ZERO_ADDRESS,
|
|
1160
1160
|
});
|
|
1161
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1161
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1162
1162
|
}
|
|
1163
1163
|
view.updateCandidateValidatorP2pAddress = updateCandidateValidatorP2pAddress;
|
|
1164
1164
|
async function updateCandidateValidatorPrimaryAddress(client, args) {
|
|
1165
1165
|
const tx = new transactions_1.TransactionBlock();
|
|
1166
1166
|
builder.updateCandidateValidatorPrimaryAddress(tx, args);
|
|
1167
|
-
const
|
|
1167
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1168
1168
|
transactionBlock: tx,
|
|
1169
1169
|
sender: sui_2.ZERO_ADDRESS,
|
|
1170
1170
|
});
|
|
1171
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1171
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1172
1172
|
}
|
|
1173
1173
|
view.updateCandidateValidatorPrimaryAddress = updateCandidateValidatorPrimaryAddress;
|
|
1174
1174
|
async function updateCandidateValidatorProtocolPubkey(client, args) {
|
|
1175
1175
|
const tx = new transactions_1.TransactionBlock();
|
|
1176
1176
|
builder.updateCandidateValidatorProtocolPubkey(tx, args);
|
|
1177
|
-
const
|
|
1177
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1178
1178
|
transactionBlock: tx,
|
|
1179
1179
|
sender: sui_2.ZERO_ADDRESS,
|
|
1180
1180
|
});
|
|
1181
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1181
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1182
1182
|
}
|
|
1183
1183
|
view.updateCandidateValidatorProtocolPubkey = updateCandidateValidatorProtocolPubkey;
|
|
1184
1184
|
async function updateCandidateValidatorWorkerAddress(client, args) {
|
|
1185
1185
|
const tx = new transactions_1.TransactionBlock();
|
|
1186
1186
|
builder.updateCandidateValidatorWorkerAddress(tx, args);
|
|
1187
|
-
const
|
|
1187
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1188
1188
|
transactionBlock: tx,
|
|
1189
1189
|
sender: sui_2.ZERO_ADDRESS,
|
|
1190
1190
|
});
|
|
1191
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1191
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1192
1192
|
}
|
|
1193
1193
|
view.updateCandidateValidatorWorkerAddress = updateCandidateValidatorWorkerAddress;
|
|
1194
1194
|
async function updateCandidateValidatorWorkerPubkey(client, args) {
|
|
1195
1195
|
const tx = new transactions_1.TransactionBlock();
|
|
1196
1196
|
builder.updateCandidateValidatorWorkerPubkey(tx, args);
|
|
1197
|
-
const
|
|
1197
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1198
1198
|
transactionBlock: tx,
|
|
1199
1199
|
sender: sui_2.ZERO_ADDRESS,
|
|
1200
1200
|
});
|
|
1201
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1201
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1202
1202
|
}
|
|
1203
1203
|
view.updateCandidateValidatorWorkerPubkey = updateCandidateValidatorWorkerPubkey;
|
|
1204
1204
|
async function updateValidatorDescription(client, args) {
|
|
1205
1205
|
const tx = new transactions_1.TransactionBlock();
|
|
1206
1206
|
builder.updateValidatorDescription(tx, args);
|
|
1207
|
-
const
|
|
1207
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1208
1208
|
transactionBlock: tx,
|
|
1209
1209
|
sender: sui_2.ZERO_ADDRESS,
|
|
1210
1210
|
});
|
|
1211
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1211
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1212
1212
|
}
|
|
1213
1213
|
view.updateValidatorDescription = updateValidatorDescription;
|
|
1214
1214
|
async function updateValidatorImageUrl(client, args) {
|
|
1215
1215
|
const tx = new transactions_1.TransactionBlock();
|
|
1216
1216
|
builder.updateValidatorImageUrl(tx, args);
|
|
1217
|
-
const
|
|
1217
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1218
1218
|
transactionBlock: tx,
|
|
1219
1219
|
sender: sui_2.ZERO_ADDRESS,
|
|
1220
1220
|
});
|
|
1221
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1221
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1222
1222
|
}
|
|
1223
1223
|
view.updateValidatorImageUrl = updateValidatorImageUrl;
|
|
1224
1224
|
async function updateValidatorName(client, args) {
|
|
1225
1225
|
const tx = new transactions_1.TransactionBlock();
|
|
1226
1226
|
builder.updateValidatorName(tx, args);
|
|
1227
|
-
const
|
|
1227
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1228
1228
|
transactionBlock: tx,
|
|
1229
1229
|
sender: sui_2.ZERO_ADDRESS,
|
|
1230
1230
|
});
|
|
1231
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1231
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1232
1232
|
}
|
|
1233
1233
|
view.updateValidatorName = updateValidatorName;
|
|
1234
1234
|
async function updateValidatorNextEpochNetworkAddress(client, args) {
|
|
1235
1235
|
const tx = new transactions_1.TransactionBlock();
|
|
1236
1236
|
builder.updateValidatorNextEpochNetworkAddress(tx, args);
|
|
1237
|
-
const
|
|
1237
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1238
1238
|
transactionBlock: tx,
|
|
1239
1239
|
sender: sui_2.ZERO_ADDRESS,
|
|
1240
1240
|
});
|
|
1241
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1241
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1242
1242
|
}
|
|
1243
1243
|
view.updateValidatorNextEpochNetworkAddress = updateValidatorNextEpochNetworkAddress;
|
|
1244
1244
|
async function updateValidatorNextEpochNetworkPubkey(client, args) {
|
|
1245
1245
|
const tx = new transactions_1.TransactionBlock();
|
|
1246
1246
|
builder.updateValidatorNextEpochNetworkPubkey(tx, args);
|
|
1247
|
-
const
|
|
1247
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1248
1248
|
transactionBlock: tx,
|
|
1249
1249
|
sender: sui_2.ZERO_ADDRESS,
|
|
1250
1250
|
});
|
|
1251
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1251
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1252
1252
|
}
|
|
1253
1253
|
view.updateValidatorNextEpochNetworkPubkey = updateValidatorNextEpochNetworkPubkey;
|
|
1254
1254
|
async function updateValidatorNextEpochP2pAddress(client, args) {
|
|
1255
1255
|
const tx = new transactions_1.TransactionBlock();
|
|
1256
1256
|
builder.updateValidatorNextEpochP2pAddress(tx, args);
|
|
1257
|
-
const
|
|
1257
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1258
1258
|
transactionBlock: tx,
|
|
1259
1259
|
sender: sui_2.ZERO_ADDRESS,
|
|
1260
1260
|
});
|
|
1261
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1261
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1262
1262
|
}
|
|
1263
1263
|
view.updateValidatorNextEpochP2pAddress = updateValidatorNextEpochP2pAddress;
|
|
1264
1264
|
async function updateValidatorNextEpochPrimaryAddress(client, args) {
|
|
1265
1265
|
const tx = new transactions_1.TransactionBlock();
|
|
1266
1266
|
builder.updateValidatorNextEpochPrimaryAddress(tx, args);
|
|
1267
|
-
const
|
|
1267
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1268
1268
|
transactionBlock: tx,
|
|
1269
1269
|
sender: sui_2.ZERO_ADDRESS,
|
|
1270
1270
|
});
|
|
1271
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1271
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1272
1272
|
}
|
|
1273
1273
|
view.updateValidatorNextEpochPrimaryAddress = updateValidatorNextEpochPrimaryAddress;
|
|
1274
1274
|
async function updateValidatorNextEpochProtocolPubkey(client, args) {
|
|
1275
1275
|
const tx = new transactions_1.TransactionBlock();
|
|
1276
1276
|
builder.updateValidatorNextEpochProtocolPubkey(tx, args);
|
|
1277
|
-
const
|
|
1277
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1278
1278
|
transactionBlock: tx,
|
|
1279
1279
|
sender: sui_2.ZERO_ADDRESS,
|
|
1280
1280
|
});
|
|
1281
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1281
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1282
1282
|
}
|
|
1283
1283
|
view.updateValidatorNextEpochProtocolPubkey = updateValidatorNextEpochProtocolPubkey;
|
|
1284
1284
|
async function updateValidatorNextEpochWorkerAddress(client, args) {
|
|
1285
1285
|
const tx = new transactions_1.TransactionBlock();
|
|
1286
1286
|
builder.updateValidatorNextEpochWorkerAddress(tx, args);
|
|
1287
|
-
const
|
|
1287
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1288
1288
|
transactionBlock: tx,
|
|
1289
1289
|
sender: sui_2.ZERO_ADDRESS,
|
|
1290
1290
|
});
|
|
1291
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1291
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1292
1292
|
}
|
|
1293
1293
|
view.updateValidatorNextEpochWorkerAddress = updateValidatorNextEpochWorkerAddress;
|
|
1294
1294
|
async function updateValidatorNextEpochWorkerPubkey(client, args) {
|
|
1295
1295
|
const tx = new transactions_1.TransactionBlock();
|
|
1296
1296
|
builder.updateValidatorNextEpochWorkerPubkey(tx, args);
|
|
1297
|
-
const
|
|
1297
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1298
1298
|
transactionBlock: tx,
|
|
1299
1299
|
sender: sui_2.ZERO_ADDRESS,
|
|
1300
1300
|
});
|
|
1301
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1301
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1302
1302
|
}
|
|
1303
1303
|
view.updateValidatorNextEpochWorkerPubkey = updateValidatorNextEpochWorkerPubkey;
|
|
1304
1304
|
async function updateValidatorProjectUrl(client, args) {
|
|
1305
1305
|
const tx = new transactions_1.TransactionBlock();
|
|
1306
1306
|
builder.updateValidatorProjectUrl(tx, args);
|
|
1307
|
-
const
|
|
1307
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1308
1308
|
transactionBlock: tx,
|
|
1309
1309
|
sender: sui_2.ZERO_ADDRESS,
|
|
1310
1310
|
});
|
|
1311
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1311
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1312
1312
|
}
|
|
1313
1313
|
view.updateValidatorProjectUrl = updateValidatorProjectUrl;
|
|
1314
1314
|
})(view = sui_system.view || (sui_system.view = {}));
|
|
@@ -1789,381 +1789,381 @@ var validator;
|
|
|
1789
1789
|
async function commissionRate(client, args) {
|
|
1790
1790
|
const tx = new transactions_1.TransactionBlock();
|
|
1791
1791
|
builder.commissionRate(tx, args);
|
|
1792
|
-
const
|
|
1792
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1793
1793
|
transactionBlock: tx,
|
|
1794
1794
|
sender: sui_2.ZERO_ADDRESS,
|
|
1795
1795
|
});
|
|
1796
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1796
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1797
1797
|
}
|
|
1798
1798
|
view.commissionRate = commissionRate;
|
|
1799
1799
|
async function description(client, args) {
|
|
1800
1800
|
const tx = new transactions_1.TransactionBlock();
|
|
1801
1801
|
builder.description(tx, args);
|
|
1802
|
-
const
|
|
1802
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1803
1803
|
transactionBlock: tx,
|
|
1804
1804
|
sender: sui_2.ZERO_ADDRESS,
|
|
1805
1805
|
});
|
|
1806
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1806
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1807
1807
|
}
|
|
1808
1808
|
view.description = description;
|
|
1809
1809
|
async function gasPrice(client, args) {
|
|
1810
1810
|
const tx = new transactions_1.TransactionBlock();
|
|
1811
1811
|
builder.gasPrice(tx, args);
|
|
1812
|
-
const
|
|
1812
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1813
1813
|
transactionBlock: tx,
|
|
1814
1814
|
sender: sui_2.ZERO_ADDRESS,
|
|
1815
1815
|
});
|
|
1816
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1816
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1817
1817
|
}
|
|
1818
1818
|
view.gasPrice = gasPrice;
|
|
1819
1819
|
async function imageUrl(client, args) {
|
|
1820
1820
|
const tx = new transactions_1.TransactionBlock();
|
|
1821
1821
|
builder.imageUrl(tx, args);
|
|
1822
|
-
const
|
|
1822
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1823
1823
|
transactionBlock: tx,
|
|
1824
1824
|
sender: sui_2.ZERO_ADDRESS,
|
|
1825
1825
|
});
|
|
1826
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1826
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1827
1827
|
}
|
|
1828
1828
|
view.imageUrl = imageUrl;
|
|
1829
1829
|
async function isDuplicate(client, args) {
|
|
1830
1830
|
const tx = new transactions_1.TransactionBlock();
|
|
1831
1831
|
builder.isDuplicate(tx, args);
|
|
1832
|
-
const
|
|
1832
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1833
1833
|
transactionBlock: tx,
|
|
1834
1834
|
sender: sui_2.ZERO_ADDRESS,
|
|
1835
1835
|
});
|
|
1836
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1836
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1837
1837
|
}
|
|
1838
1838
|
view.isDuplicate = isDuplicate;
|
|
1839
1839
|
async function isPreactive(client, args) {
|
|
1840
1840
|
const tx = new transactions_1.TransactionBlock();
|
|
1841
1841
|
builder.isPreactive(tx, args);
|
|
1842
|
-
const
|
|
1842
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1843
1843
|
transactionBlock: tx,
|
|
1844
1844
|
sender: sui_2.ZERO_ADDRESS,
|
|
1845
1845
|
});
|
|
1846
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1846
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1847
1847
|
}
|
|
1848
1848
|
view.isPreactive = isPreactive;
|
|
1849
1849
|
async function metadata(client, args) {
|
|
1850
1850
|
const tx = new transactions_1.TransactionBlock();
|
|
1851
1851
|
builder.metadata(tx, args);
|
|
1852
|
-
const
|
|
1852
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1853
1853
|
transactionBlock: tx,
|
|
1854
1854
|
sender: sui_2.ZERO_ADDRESS,
|
|
1855
1855
|
});
|
|
1856
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1856
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1857
1857
|
}
|
|
1858
1858
|
view.metadata = metadata;
|
|
1859
1859
|
async function name(client, args) {
|
|
1860
1860
|
const tx = new transactions_1.TransactionBlock();
|
|
1861
1861
|
builder.name(tx, args);
|
|
1862
|
-
const
|
|
1862
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1863
1863
|
transactionBlock: tx,
|
|
1864
1864
|
sender: sui_2.ZERO_ADDRESS,
|
|
1865
1865
|
});
|
|
1866
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1866
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1867
1867
|
}
|
|
1868
1868
|
view.name = name;
|
|
1869
1869
|
async function networkAddress(client, args) {
|
|
1870
1870
|
const tx = new transactions_1.TransactionBlock();
|
|
1871
1871
|
builder.networkAddress(tx, args);
|
|
1872
|
-
const
|
|
1872
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1873
1873
|
transactionBlock: tx,
|
|
1874
1874
|
sender: sui_2.ZERO_ADDRESS,
|
|
1875
1875
|
});
|
|
1876
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1876
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1877
1877
|
}
|
|
1878
1878
|
view.networkAddress = networkAddress;
|
|
1879
1879
|
async function networkPubkeyBytes(client, args) {
|
|
1880
1880
|
const tx = new transactions_1.TransactionBlock();
|
|
1881
1881
|
builder.networkPubkeyBytes(tx, args);
|
|
1882
|
-
const
|
|
1882
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1883
1883
|
transactionBlock: tx,
|
|
1884
1884
|
sender: sui_2.ZERO_ADDRESS,
|
|
1885
1885
|
});
|
|
1886
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1886
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1887
1887
|
}
|
|
1888
1888
|
view.networkPubkeyBytes = networkPubkeyBytes;
|
|
1889
1889
|
async function nextEpochGasPrice(client, args) {
|
|
1890
1890
|
const tx = new transactions_1.TransactionBlock();
|
|
1891
1891
|
builder.nextEpochGasPrice(tx, args);
|
|
1892
|
-
const
|
|
1892
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1893
1893
|
transactionBlock: tx,
|
|
1894
1894
|
sender: sui_2.ZERO_ADDRESS,
|
|
1895
1895
|
});
|
|
1896
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1896
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1897
1897
|
}
|
|
1898
1898
|
view.nextEpochGasPrice = nextEpochGasPrice;
|
|
1899
1899
|
async function nextEpochNetworkAddress(client, args) {
|
|
1900
1900
|
const tx = new transactions_1.TransactionBlock();
|
|
1901
1901
|
builder.nextEpochNetworkAddress(tx, args);
|
|
1902
|
-
const
|
|
1902
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1903
1903
|
transactionBlock: tx,
|
|
1904
1904
|
sender: sui_2.ZERO_ADDRESS,
|
|
1905
1905
|
});
|
|
1906
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1906
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1907
1907
|
}
|
|
1908
1908
|
view.nextEpochNetworkAddress = nextEpochNetworkAddress;
|
|
1909
1909
|
async function nextEpochNetworkPubkeyBytes(client, args) {
|
|
1910
1910
|
const tx = new transactions_1.TransactionBlock();
|
|
1911
1911
|
builder.nextEpochNetworkPubkeyBytes(tx, args);
|
|
1912
|
-
const
|
|
1912
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1913
1913
|
transactionBlock: tx,
|
|
1914
1914
|
sender: sui_2.ZERO_ADDRESS,
|
|
1915
1915
|
});
|
|
1916
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1916
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1917
1917
|
}
|
|
1918
1918
|
view.nextEpochNetworkPubkeyBytes = nextEpochNetworkPubkeyBytes;
|
|
1919
1919
|
async function nextEpochP2pAddress(client, args) {
|
|
1920
1920
|
const tx = new transactions_1.TransactionBlock();
|
|
1921
1921
|
builder.nextEpochP2pAddress(tx, args);
|
|
1922
|
-
const
|
|
1922
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1923
1923
|
transactionBlock: tx,
|
|
1924
1924
|
sender: sui_2.ZERO_ADDRESS,
|
|
1925
1925
|
});
|
|
1926
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1926
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1927
1927
|
}
|
|
1928
1928
|
view.nextEpochP2pAddress = nextEpochP2pAddress;
|
|
1929
1929
|
async function nextEpochPrimaryAddress(client, args) {
|
|
1930
1930
|
const tx = new transactions_1.TransactionBlock();
|
|
1931
1931
|
builder.nextEpochPrimaryAddress(tx, args);
|
|
1932
|
-
const
|
|
1932
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1933
1933
|
transactionBlock: tx,
|
|
1934
1934
|
sender: sui_2.ZERO_ADDRESS,
|
|
1935
1935
|
});
|
|
1936
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1936
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1937
1937
|
}
|
|
1938
1938
|
view.nextEpochPrimaryAddress = nextEpochPrimaryAddress;
|
|
1939
1939
|
async function nextEpochProofOfPossession(client, args) {
|
|
1940
1940
|
const tx = new transactions_1.TransactionBlock();
|
|
1941
1941
|
builder.nextEpochProofOfPossession(tx, args);
|
|
1942
|
-
const
|
|
1942
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1943
1943
|
transactionBlock: tx,
|
|
1944
1944
|
sender: sui_2.ZERO_ADDRESS,
|
|
1945
1945
|
});
|
|
1946
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1946
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1947
1947
|
}
|
|
1948
1948
|
view.nextEpochProofOfPossession = nextEpochProofOfPossession;
|
|
1949
1949
|
async function nextEpochProtocolPubkeyBytes(client, args) {
|
|
1950
1950
|
const tx = new transactions_1.TransactionBlock();
|
|
1951
1951
|
builder.nextEpochProtocolPubkeyBytes(tx, args);
|
|
1952
|
-
const
|
|
1952
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1953
1953
|
transactionBlock: tx,
|
|
1954
1954
|
sender: sui_2.ZERO_ADDRESS,
|
|
1955
1955
|
});
|
|
1956
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1956
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1957
1957
|
}
|
|
1958
1958
|
view.nextEpochProtocolPubkeyBytes = nextEpochProtocolPubkeyBytes;
|
|
1959
1959
|
async function nextEpochWorkerAddress(client, args) {
|
|
1960
1960
|
const tx = new transactions_1.TransactionBlock();
|
|
1961
1961
|
builder.nextEpochWorkerAddress(tx, args);
|
|
1962
|
-
const
|
|
1962
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1963
1963
|
transactionBlock: tx,
|
|
1964
1964
|
sender: sui_2.ZERO_ADDRESS,
|
|
1965
1965
|
});
|
|
1966
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1966
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1967
1967
|
}
|
|
1968
1968
|
view.nextEpochWorkerAddress = nextEpochWorkerAddress;
|
|
1969
1969
|
async function nextEpochWorkerPubkeyBytes(client, args) {
|
|
1970
1970
|
const tx = new transactions_1.TransactionBlock();
|
|
1971
1971
|
builder.nextEpochWorkerPubkeyBytes(tx, args);
|
|
1972
|
-
const
|
|
1972
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1973
1973
|
transactionBlock: tx,
|
|
1974
1974
|
sender: sui_2.ZERO_ADDRESS,
|
|
1975
1975
|
});
|
|
1976
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1976
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1977
1977
|
}
|
|
1978
1978
|
view.nextEpochWorkerPubkeyBytes = nextEpochWorkerPubkeyBytes;
|
|
1979
1979
|
async function operationCapId(client, args) {
|
|
1980
1980
|
const tx = new transactions_1.TransactionBlock();
|
|
1981
1981
|
builder.operationCapId(tx, args);
|
|
1982
|
-
const
|
|
1982
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1983
1983
|
transactionBlock: tx,
|
|
1984
1984
|
sender: sui_2.ZERO_ADDRESS,
|
|
1985
1985
|
});
|
|
1986
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1986
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1987
1987
|
}
|
|
1988
1988
|
view.operationCapId = operationCapId;
|
|
1989
1989
|
async function p2pAddress(client, args) {
|
|
1990
1990
|
const tx = new transactions_1.TransactionBlock();
|
|
1991
1991
|
builder.p2pAddress(tx, args);
|
|
1992
|
-
const
|
|
1992
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1993
1993
|
transactionBlock: tx,
|
|
1994
1994
|
sender: sui_2.ZERO_ADDRESS,
|
|
1995
1995
|
});
|
|
1996
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
1996
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
1997
1997
|
}
|
|
1998
1998
|
view.p2pAddress = p2pAddress;
|
|
1999
1999
|
async function pendingStakeAmount(client, args) {
|
|
2000
2000
|
const tx = new transactions_1.TransactionBlock();
|
|
2001
2001
|
builder.pendingStakeAmount(tx, args);
|
|
2002
|
-
const
|
|
2002
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2003
2003
|
transactionBlock: tx,
|
|
2004
2004
|
sender: sui_2.ZERO_ADDRESS,
|
|
2005
2005
|
});
|
|
2006
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2006
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2007
2007
|
}
|
|
2008
2008
|
view.pendingStakeAmount = pendingStakeAmount;
|
|
2009
2009
|
async function pendingStakeWithdrawAmount(client, args) {
|
|
2010
2010
|
const tx = new transactions_1.TransactionBlock();
|
|
2011
2011
|
builder.pendingStakeWithdrawAmount(tx, args);
|
|
2012
|
-
const
|
|
2012
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2013
2013
|
transactionBlock: tx,
|
|
2014
2014
|
sender: sui_2.ZERO_ADDRESS,
|
|
2015
2015
|
});
|
|
2016
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2016
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2017
2017
|
}
|
|
2018
2018
|
view.pendingStakeWithdrawAmount = pendingStakeWithdrawAmount;
|
|
2019
2019
|
async function poolTokenExchangeRateAtEpoch(client, args) {
|
|
2020
2020
|
const tx = new transactions_1.TransactionBlock();
|
|
2021
2021
|
builder.poolTokenExchangeRateAtEpoch(tx, args);
|
|
2022
|
-
const
|
|
2022
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2023
2023
|
transactionBlock: tx,
|
|
2024
2024
|
sender: sui_2.ZERO_ADDRESS,
|
|
2025
2025
|
});
|
|
2026
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2026
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2027
2027
|
}
|
|
2028
2028
|
view.poolTokenExchangeRateAtEpoch = poolTokenExchangeRateAtEpoch;
|
|
2029
2029
|
async function primaryAddress(client, args) {
|
|
2030
2030
|
const tx = new transactions_1.TransactionBlock();
|
|
2031
2031
|
builder.primaryAddress(tx, args);
|
|
2032
|
-
const
|
|
2032
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2033
2033
|
transactionBlock: tx,
|
|
2034
2034
|
sender: sui_2.ZERO_ADDRESS,
|
|
2035
2035
|
});
|
|
2036
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2036
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2037
2037
|
}
|
|
2038
2038
|
view.primaryAddress = primaryAddress;
|
|
2039
2039
|
async function projectUrl(client, args) {
|
|
2040
2040
|
const tx = new transactions_1.TransactionBlock();
|
|
2041
2041
|
builder.projectUrl(tx, args);
|
|
2042
|
-
const
|
|
2042
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2043
2043
|
transactionBlock: tx,
|
|
2044
2044
|
sender: sui_2.ZERO_ADDRESS,
|
|
2045
2045
|
});
|
|
2046
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2046
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2047
2047
|
}
|
|
2048
2048
|
view.projectUrl = projectUrl;
|
|
2049
2049
|
async function proofOfPossession(client, args) {
|
|
2050
2050
|
const tx = new transactions_1.TransactionBlock();
|
|
2051
2051
|
builder.proofOfPossession(tx, args);
|
|
2052
|
-
const
|
|
2052
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2053
2053
|
transactionBlock: tx,
|
|
2054
2054
|
sender: sui_2.ZERO_ADDRESS,
|
|
2055
2055
|
});
|
|
2056
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2056
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2057
2057
|
}
|
|
2058
2058
|
view.proofOfPossession = proofOfPossession;
|
|
2059
2059
|
async function protocolPubkeyBytes(client, args) {
|
|
2060
2060
|
const tx = new transactions_1.TransactionBlock();
|
|
2061
2061
|
builder.protocolPubkeyBytes(tx, args);
|
|
2062
|
-
const
|
|
2062
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2063
2063
|
transactionBlock: tx,
|
|
2064
2064
|
sender: sui_2.ZERO_ADDRESS,
|
|
2065
2065
|
});
|
|
2066
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2066
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2067
2067
|
}
|
|
2068
2068
|
view.protocolPubkeyBytes = protocolPubkeyBytes;
|
|
2069
2069
|
async function stakeAmount(client, args) {
|
|
2070
2070
|
const tx = new transactions_1.TransactionBlock();
|
|
2071
2071
|
builder.stakeAmount(tx, args);
|
|
2072
|
-
const
|
|
2072
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2073
2073
|
transactionBlock: tx,
|
|
2074
2074
|
sender: sui_2.ZERO_ADDRESS,
|
|
2075
2075
|
});
|
|
2076
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2076
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2077
2077
|
}
|
|
2078
2078
|
view.stakeAmount = stakeAmount;
|
|
2079
2079
|
async function stakingPoolId(client, args) {
|
|
2080
2080
|
const tx = new transactions_1.TransactionBlock();
|
|
2081
2081
|
builder.stakingPoolId(tx, args);
|
|
2082
|
-
const
|
|
2082
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2083
2083
|
transactionBlock: tx,
|
|
2084
2084
|
sender: sui_2.ZERO_ADDRESS,
|
|
2085
2085
|
});
|
|
2086
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2086
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2087
2087
|
}
|
|
2088
2088
|
view.stakingPoolId = stakingPoolId;
|
|
2089
2089
|
async function suiAddress(client, args) {
|
|
2090
2090
|
const tx = new transactions_1.TransactionBlock();
|
|
2091
2091
|
builder.suiAddress(tx, args);
|
|
2092
|
-
const
|
|
2092
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2093
2093
|
transactionBlock: tx,
|
|
2094
2094
|
sender: sui_2.ZERO_ADDRESS,
|
|
2095
2095
|
});
|
|
2096
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2096
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2097
2097
|
}
|
|
2098
2098
|
view.suiAddress = suiAddress;
|
|
2099
2099
|
async function totalStake(client, args) {
|
|
2100
2100
|
const tx = new transactions_1.TransactionBlock();
|
|
2101
2101
|
builder.totalStake(tx, args);
|
|
2102
|
-
const
|
|
2102
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2103
2103
|
transactionBlock: tx,
|
|
2104
2104
|
sender: sui_2.ZERO_ADDRESS,
|
|
2105
2105
|
});
|
|
2106
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2106
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2107
2107
|
}
|
|
2108
2108
|
view.totalStake = totalStake;
|
|
2109
2109
|
async function totalStakeAmount(client, args) {
|
|
2110
2110
|
const tx = new transactions_1.TransactionBlock();
|
|
2111
2111
|
builder.totalStakeAmount(tx, args);
|
|
2112
|
-
const
|
|
2112
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2113
2113
|
transactionBlock: tx,
|
|
2114
2114
|
sender: sui_2.ZERO_ADDRESS,
|
|
2115
2115
|
});
|
|
2116
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2116
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2117
2117
|
}
|
|
2118
2118
|
view.totalStakeAmount = totalStakeAmount;
|
|
2119
2119
|
async function validateMetadata(client, args) {
|
|
2120
2120
|
const tx = new transactions_1.TransactionBlock();
|
|
2121
2121
|
builder.validateMetadata(tx, args);
|
|
2122
|
-
const
|
|
2122
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2123
2123
|
transactionBlock: tx,
|
|
2124
2124
|
sender: sui_2.ZERO_ADDRESS,
|
|
2125
2125
|
});
|
|
2126
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2126
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2127
2127
|
}
|
|
2128
2128
|
view.validateMetadata = validateMetadata;
|
|
2129
2129
|
async function validateMetadataBcs(client, args) {
|
|
2130
2130
|
const tx = new transactions_1.TransactionBlock();
|
|
2131
2131
|
builder.validateMetadataBcs(tx, args);
|
|
2132
|
-
const
|
|
2132
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2133
2133
|
transactionBlock: tx,
|
|
2134
2134
|
sender: sui_2.ZERO_ADDRESS,
|
|
2135
2135
|
});
|
|
2136
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2136
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2137
2137
|
}
|
|
2138
2138
|
view.validateMetadataBcs = validateMetadataBcs;
|
|
2139
2139
|
async function votingPower(client, args) {
|
|
2140
2140
|
const tx = new transactions_1.TransactionBlock();
|
|
2141
2141
|
builder.votingPower(tx, args);
|
|
2142
|
-
const
|
|
2142
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2143
2143
|
transactionBlock: tx,
|
|
2144
2144
|
sender: sui_2.ZERO_ADDRESS,
|
|
2145
2145
|
});
|
|
2146
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2146
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2147
2147
|
}
|
|
2148
2148
|
view.votingPower = votingPower;
|
|
2149
2149
|
async function workerAddress(client, args) {
|
|
2150
2150
|
const tx = new transactions_1.TransactionBlock();
|
|
2151
2151
|
builder.workerAddress(tx, args);
|
|
2152
|
-
const
|
|
2152
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2153
2153
|
transactionBlock: tx,
|
|
2154
2154
|
sender: sui_2.ZERO_ADDRESS,
|
|
2155
2155
|
});
|
|
2156
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2156
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2157
2157
|
}
|
|
2158
2158
|
view.workerAddress = workerAddress;
|
|
2159
2159
|
async function workerPubkeyBytes(client, args) {
|
|
2160
2160
|
const tx = new transactions_1.TransactionBlock();
|
|
2161
2161
|
builder.workerPubkeyBytes(tx, args);
|
|
2162
|
-
const
|
|
2162
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2163
2163
|
transactionBlock: tx,
|
|
2164
2164
|
sender: sui_2.ZERO_ADDRESS,
|
|
2165
2165
|
});
|
|
2166
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2166
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2167
2167
|
}
|
|
2168
2168
|
view.workerPubkeyBytes = workerPubkeyBytes;
|
|
2169
2169
|
})(view = validator.view || (validator.view = {}));
|
|
@@ -2372,121 +2372,121 @@ var validator_set;
|
|
|
2372
2372
|
async function activeValidators(client, args) {
|
|
2373
2373
|
const tx = new transactions_1.TransactionBlock();
|
|
2374
2374
|
builder.activeValidators(tx, args);
|
|
2375
|
-
const
|
|
2375
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2376
2376
|
transactionBlock: tx,
|
|
2377
2377
|
sender: sui_2.ZERO_ADDRESS,
|
|
2378
2378
|
});
|
|
2379
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2379
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2380
2380
|
}
|
|
2381
2381
|
view.activeValidators = activeValidators;
|
|
2382
2382
|
async function deriveReferenceGasPrice(client, args) {
|
|
2383
2383
|
const tx = new transactions_1.TransactionBlock();
|
|
2384
2384
|
builder.deriveReferenceGasPrice(tx, args);
|
|
2385
|
-
const
|
|
2385
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2386
2386
|
transactionBlock: tx,
|
|
2387
2387
|
sender: sui_2.ZERO_ADDRESS,
|
|
2388
2388
|
});
|
|
2389
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2389
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2390
2390
|
}
|
|
2391
2391
|
view.deriveReferenceGasPrice = deriveReferenceGasPrice;
|
|
2392
2392
|
async function getActiveValidatorRef(client, args) {
|
|
2393
2393
|
const tx = new transactions_1.TransactionBlock();
|
|
2394
2394
|
builder.getActiveValidatorRef(tx, args);
|
|
2395
|
-
const
|
|
2395
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2396
2396
|
transactionBlock: tx,
|
|
2397
2397
|
sender: sui_2.ZERO_ADDRESS,
|
|
2398
2398
|
});
|
|
2399
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2399
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2400
2400
|
}
|
|
2401
2401
|
view.getActiveValidatorRef = getActiveValidatorRef;
|
|
2402
2402
|
async function getPendingValidatorRef(client, args) {
|
|
2403
2403
|
const tx = new transactions_1.TransactionBlock();
|
|
2404
2404
|
builder.getPendingValidatorRef(tx, args);
|
|
2405
|
-
const
|
|
2405
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2406
2406
|
transactionBlock: tx,
|
|
2407
2407
|
sender: sui_2.ZERO_ADDRESS,
|
|
2408
2408
|
});
|
|
2409
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2409
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2410
2410
|
}
|
|
2411
2411
|
view.getPendingValidatorRef = getPendingValidatorRef;
|
|
2412
2412
|
async function isInactiveValidator(client, args) {
|
|
2413
2413
|
const tx = new transactions_1.TransactionBlock();
|
|
2414
2414
|
builder.isInactiveValidator(tx, args);
|
|
2415
|
-
const
|
|
2415
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2416
2416
|
transactionBlock: tx,
|
|
2417
2417
|
sender: sui_2.ZERO_ADDRESS,
|
|
2418
2418
|
});
|
|
2419
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2419
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2420
2420
|
}
|
|
2421
2421
|
view.isInactiveValidator = isInactiveValidator;
|
|
2422
2422
|
async function isValidatorCandidate(client, args) {
|
|
2423
2423
|
const tx = new transactions_1.TransactionBlock();
|
|
2424
2424
|
builder.isValidatorCandidate(tx, args);
|
|
2425
|
-
const
|
|
2425
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2426
2426
|
transactionBlock: tx,
|
|
2427
2427
|
sender: sui_2.ZERO_ADDRESS,
|
|
2428
2428
|
});
|
|
2429
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2429
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2430
2430
|
}
|
|
2431
2431
|
view.isValidatorCandidate = isValidatorCandidate;
|
|
2432
2432
|
async function stakingPoolMappings(client, args) {
|
|
2433
2433
|
const tx = new transactions_1.TransactionBlock();
|
|
2434
2434
|
builder.stakingPoolMappings(tx, args);
|
|
2435
|
-
const
|
|
2435
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2436
2436
|
transactionBlock: tx,
|
|
2437
2437
|
sender: sui_2.ZERO_ADDRESS,
|
|
2438
2438
|
});
|
|
2439
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2439
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2440
2440
|
}
|
|
2441
2441
|
view.stakingPoolMappings = stakingPoolMappings;
|
|
2442
2442
|
async function sumVotingPowerByAddresses(client, args) {
|
|
2443
2443
|
const tx = new transactions_1.TransactionBlock();
|
|
2444
2444
|
builder.sumVotingPowerByAddresses(tx, args);
|
|
2445
|
-
const
|
|
2445
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2446
2446
|
transactionBlock: tx,
|
|
2447
2447
|
sender: sui_2.ZERO_ADDRESS,
|
|
2448
2448
|
});
|
|
2449
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2449
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2450
2450
|
}
|
|
2451
2451
|
view.sumVotingPowerByAddresses = sumVotingPowerByAddresses;
|
|
2452
2452
|
async function totalStake(client, args) {
|
|
2453
2453
|
const tx = new transactions_1.TransactionBlock();
|
|
2454
2454
|
builder.totalStake(tx, args);
|
|
2455
|
-
const
|
|
2455
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2456
2456
|
transactionBlock: tx,
|
|
2457
2457
|
sender: sui_2.ZERO_ADDRESS,
|
|
2458
2458
|
});
|
|
2459
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2459
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2460
2460
|
}
|
|
2461
2461
|
view.totalStake = totalStake;
|
|
2462
2462
|
async function validatorStakeAmount(client, args) {
|
|
2463
2463
|
const tx = new transactions_1.TransactionBlock();
|
|
2464
2464
|
builder.validatorStakeAmount(tx, args);
|
|
2465
|
-
const
|
|
2465
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2466
2466
|
transactionBlock: tx,
|
|
2467
2467
|
sender: sui_2.ZERO_ADDRESS,
|
|
2468
2468
|
});
|
|
2469
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2469
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2470
2470
|
}
|
|
2471
2471
|
view.validatorStakeAmount = validatorStakeAmount;
|
|
2472
2472
|
async function validatorStakingPoolId(client, args) {
|
|
2473
2473
|
const tx = new transactions_1.TransactionBlock();
|
|
2474
2474
|
builder.validatorStakingPoolId(tx, args);
|
|
2475
|
-
const
|
|
2475
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2476
2476
|
transactionBlock: tx,
|
|
2477
2477
|
sender: sui_2.ZERO_ADDRESS,
|
|
2478
2478
|
});
|
|
2479
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2479
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2480
2480
|
}
|
|
2481
2481
|
view.validatorStakingPoolId = validatorStakingPoolId;
|
|
2482
2482
|
async function validatorTotalStakeAmount(client, args) {
|
|
2483
2483
|
const tx = new transactions_1.TransactionBlock();
|
|
2484
2484
|
builder.validatorTotalStakeAmount(tx, args);
|
|
2485
|
-
const
|
|
2485
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2486
2486
|
transactionBlock: tx,
|
|
2487
2487
|
sender: sui_2.ZERO_ADDRESS,
|
|
2488
2488
|
});
|
|
2489
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2489
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2490
2490
|
}
|
|
2491
2491
|
view.validatorTotalStakeAmount = validatorTotalStakeAmount;
|
|
2492
2492
|
})(view = validator_set.view || (validator_set.view = {}));
|
|
@@ -2549,21 +2549,21 @@ var voting_power;
|
|
|
2549
2549
|
async function quorumThreshold(client, args) {
|
|
2550
2550
|
const tx = new transactions_1.TransactionBlock();
|
|
2551
2551
|
builder.quorumThreshold(tx, args);
|
|
2552
|
-
const
|
|
2552
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2553
2553
|
transactionBlock: tx,
|
|
2554
2554
|
sender: sui_2.ZERO_ADDRESS,
|
|
2555
2555
|
});
|
|
2556
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2556
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2557
2557
|
}
|
|
2558
2558
|
view.quorumThreshold = quorumThreshold;
|
|
2559
2559
|
async function totalVotingPower(client, args) {
|
|
2560
2560
|
const tx = new transactions_1.TransactionBlock();
|
|
2561
2561
|
builder.totalVotingPower(tx, args);
|
|
2562
|
-
const
|
|
2562
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2563
2563
|
transactionBlock: tx,
|
|
2564
2564
|
sender: sui_2.ZERO_ADDRESS,
|
|
2565
2565
|
});
|
|
2566
|
-
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(
|
|
2566
|
+
return (await (0, sui_2.getMoveCoder)(client)).decodeDevInspectResult(inspectRes);
|
|
2567
2567
|
}
|
|
2568
2568
|
view.totalVotingPower = totalVotingPower;
|
|
2569
2569
|
})(view = voting_power.view || (voting_power.view = {}));
|