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