@typemove/sui 1.2.0-rc.2 → 1.2.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/builtin/0x1.d.ts +83 -82
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +164 -164
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x2.d.ts +353 -349
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +698 -698
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +101 -100
- package/dist/cjs/builtin/0x3.d.ts.map +1 -1
- package/dist/cjs/builtin/0x3.js +200 -200
- package/dist/cjs/builtin/0x3.js.map +1 -1
- package/dist/cjs/codegen/codegen.d.ts.map +1 -1
- package/dist/cjs/codegen/codegen.js +11 -8
- package/dist/cjs/codegen/codegen.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models.d.ts +7 -1
- package/dist/cjs/models.d.ts.map +1 -1
- package/dist/cjs/models.js +0 -3
- package/dist/cjs/models.js.map +1 -1
- package/dist/cjs/move-coder.d.ts +6 -3
- package/dist/cjs/move-coder.d.ts.map +1 -1
- package/dist/cjs/move-coder.js +50 -5
- package/dist/cjs/move-coder.js.map +1 -1
- package/dist/cjs/sui-chain-adapter.d.ts +4 -1
- package/dist/cjs/sui-chain-adapter.d.ts.map +1 -1
- package/dist/cjs/sui-chain-adapter.js +10 -4
- package/dist/cjs/sui-chain-adapter.js.map +1 -1
- package/dist/esm/builtin/0x1.d.ts +83 -82
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +165 -165
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +353 -349
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +699 -699
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +101 -100
- package/dist/esm/builtin/0x3.d.ts.map +1 -1
- package/dist/esm/builtin/0x3.js +201 -201
- package/dist/esm/builtin/0x3.js.map +1 -1
- package/dist/esm/codegen/codegen.d.ts.map +1 -1
- package/dist/esm/codegen/codegen.js +12 -9
- package/dist/esm/codegen/codegen.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models.d.ts +7 -1
- package/dist/esm/models.d.ts.map +1 -1
- package/dist/esm/models.js +0 -3
- package/dist/esm/models.js.map +1 -1
- package/dist/esm/move-coder.d.ts +6 -3
- package/dist/esm/move-coder.d.ts.map +1 -1
- package/dist/esm/move-coder.js +48 -4
- package/dist/esm/move-coder.js.map +1 -1
- package/dist/esm/sui-chain-adapter.d.ts +4 -1
- package/dist/esm/sui-chain-adapter.d.ts.map +1 -1
- package/dist/esm/sui-chain-adapter.js +10 -4
- package/dist/esm/sui-chain-adapter.js.map +1 -1
- package/package.json +2 -2
- package/src/builtin/0x1.ts +503 -247
- package/src/builtin/0x2.ts +2137 -1049
- package/src/builtin/0x3.ts +611 -301
- package/src/codegen/codegen.ts +14 -10
- package/src/index.ts +1 -1
- package/src/models.ts +7 -4
- package/src/move-coder.ts +57 -6
- package/src/sui-chain-adapter.ts +11 -4
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +29 -13
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +319 -145
- package/src/tests/types/testnet/0xdee9.ts +303 -142
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +990 -466
package/dist/esm/builtin/0x3.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/* Generated modules for account 0x3 */
|
|
5
5
|
import { TypeDescriptor } from "@typemove/move";
|
|
6
6
|
import { defaultMoveCoder } from "@typemove/sui";
|
|
7
|
-
import { ZERO_ADDRESS } from "@typemove/sui";
|
|
7
|
+
import { ZERO_ADDRESS, getMoveCoder, } from "@typemove/sui";
|
|
8
8
|
import { TransactionBlock } from "@mysten/sui.js/transactions";
|
|
9
9
|
import { TransactionArgument } from "@mysten/sui.js";
|
|
10
10
|
import * as _0x1 from "./0x1.js";
|
|
@@ -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 insepctRes = await client.devInspectTransactionBlock({
|
|
81
81
|
transactionBlock: tx,
|
|
82
82
|
sender: ZERO_ADDRESS,
|
|
83
83
|
});
|
|
84
|
-
return
|
|
84
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
85
85
|
}
|
|
86
86
|
view.currentEpochSubsidyAmount = currentEpochSubsidyAmount;
|
|
87
87
|
})(view = stake_subsidy.view || (stake_subsidy.view = {}));
|
|
@@ -260,131 +260,131 @@ export var staking_pool;
|
|
|
260
260
|
async function isEqualStakingMetadata(client, args) {
|
|
261
261
|
const tx = new TransactionBlock();
|
|
262
262
|
builder.isEqualStakingMetadata(tx, args);
|
|
263
|
-
const
|
|
263
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
264
264
|
transactionBlock: tx,
|
|
265
265
|
sender: ZERO_ADDRESS,
|
|
266
266
|
});
|
|
267
|
-
return
|
|
267
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
268
268
|
}
|
|
269
269
|
view.isEqualStakingMetadata = isEqualStakingMetadata;
|
|
270
270
|
async function isInactive(client, args) {
|
|
271
271
|
const tx = new TransactionBlock();
|
|
272
272
|
builder.isInactive(tx, args);
|
|
273
|
-
const
|
|
273
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
274
274
|
transactionBlock: tx,
|
|
275
275
|
sender: ZERO_ADDRESS,
|
|
276
276
|
});
|
|
277
|
-
return
|
|
277
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
278
278
|
}
|
|
279
279
|
view.isInactive = isInactive;
|
|
280
280
|
async function isPreactive(client, args) {
|
|
281
281
|
const tx = new TransactionBlock();
|
|
282
282
|
builder.isPreactive(tx, args);
|
|
283
|
-
const
|
|
283
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
284
284
|
transactionBlock: tx,
|
|
285
285
|
sender: ZERO_ADDRESS,
|
|
286
286
|
});
|
|
287
|
-
return
|
|
287
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
288
288
|
}
|
|
289
289
|
view.isPreactive = isPreactive;
|
|
290
290
|
async function joinStakedSui(client, args) {
|
|
291
291
|
const tx = new TransactionBlock();
|
|
292
292
|
builder.joinStakedSui(tx, args);
|
|
293
|
-
const
|
|
293
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
294
294
|
transactionBlock: tx,
|
|
295
295
|
sender: ZERO_ADDRESS,
|
|
296
296
|
});
|
|
297
|
-
return
|
|
297
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
298
298
|
}
|
|
299
299
|
view.joinStakedSui = joinStakedSui;
|
|
300
300
|
async function pendingStakeAmount(client, args) {
|
|
301
301
|
const tx = new TransactionBlock();
|
|
302
302
|
builder.pendingStakeAmount(tx, args);
|
|
303
|
-
const
|
|
303
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
304
304
|
transactionBlock: tx,
|
|
305
305
|
sender: ZERO_ADDRESS,
|
|
306
306
|
});
|
|
307
|
-
return
|
|
307
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
308
308
|
}
|
|
309
309
|
view.pendingStakeAmount = pendingStakeAmount;
|
|
310
310
|
async function pendingStakeWithdrawAmount(client, args) {
|
|
311
311
|
const tx = new TransactionBlock();
|
|
312
312
|
builder.pendingStakeWithdrawAmount(tx, args);
|
|
313
|
-
const
|
|
313
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
314
314
|
transactionBlock: tx,
|
|
315
315
|
sender: ZERO_ADDRESS,
|
|
316
316
|
});
|
|
317
|
-
return
|
|
317
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
318
318
|
}
|
|
319
319
|
view.pendingStakeWithdrawAmount = pendingStakeWithdrawAmount;
|
|
320
320
|
async function poolId(client, args) {
|
|
321
321
|
const tx = new TransactionBlock();
|
|
322
322
|
builder.poolId(tx, args);
|
|
323
|
-
const
|
|
323
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
324
324
|
transactionBlock: tx,
|
|
325
325
|
sender: ZERO_ADDRESS,
|
|
326
326
|
});
|
|
327
|
-
return
|
|
327
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
328
328
|
}
|
|
329
329
|
view.poolId = poolId;
|
|
330
330
|
async function poolTokenExchangeRateAtEpoch(client, args) {
|
|
331
331
|
const tx = new TransactionBlock();
|
|
332
332
|
builder.poolTokenExchangeRateAtEpoch(tx, args);
|
|
333
|
-
const
|
|
333
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
334
334
|
transactionBlock: tx,
|
|
335
335
|
sender: ZERO_ADDRESS,
|
|
336
336
|
});
|
|
337
|
-
return
|
|
337
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
338
338
|
}
|
|
339
339
|
view.poolTokenExchangeRateAtEpoch = poolTokenExchangeRateAtEpoch;
|
|
340
340
|
async function split(client, args) {
|
|
341
341
|
const tx = new TransactionBlock();
|
|
342
342
|
builder.split(tx, args);
|
|
343
|
-
const
|
|
343
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
344
344
|
transactionBlock: tx,
|
|
345
345
|
sender: ZERO_ADDRESS,
|
|
346
346
|
});
|
|
347
|
-
return
|
|
347
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
348
348
|
}
|
|
349
349
|
view.split = split;
|
|
350
350
|
async function splitStakedSui(client, args) {
|
|
351
351
|
const tx = new TransactionBlock();
|
|
352
352
|
builder.splitStakedSui(tx, args);
|
|
353
|
-
const
|
|
353
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
354
354
|
transactionBlock: tx,
|
|
355
355
|
sender: ZERO_ADDRESS,
|
|
356
356
|
});
|
|
357
|
-
return
|
|
357
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
358
358
|
}
|
|
359
359
|
view.splitStakedSui = splitStakedSui;
|
|
360
360
|
async function stakeActivationEpoch(client, args) {
|
|
361
361
|
const tx = new TransactionBlock();
|
|
362
362
|
builder.stakeActivationEpoch(tx, args);
|
|
363
|
-
const
|
|
363
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
364
364
|
transactionBlock: tx,
|
|
365
365
|
sender: ZERO_ADDRESS,
|
|
366
366
|
});
|
|
367
|
-
return
|
|
367
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
368
368
|
}
|
|
369
369
|
view.stakeActivationEpoch = stakeActivationEpoch;
|
|
370
370
|
async function stakedSuiAmount(client, args) {
|
|
371
371
|
const tx = new TransactionBlock();
|
|
372
372
|
builder.stakedSuiAmount(tx, args);
|
|
373
|
-
const
|
|
373
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
374
374
|
transactionBlock: tx,
|
|
375
375
|
sender: ZERO_ADDRESS,
|
|
376
376
|
});
|
|
377
|
-
return
|
|
377
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
378
378
|
}
|
|
379
379
|
view.stakedSuiAmount = stakedSuiAmount;
|
|
380
380
|
async function suiBalance(client, args) {
|
|
381
381
|
const tx = new TransactionBlock();
|
|
382
382
|
builder.suiBalance(tx, args);
|
|
383
|
-
const
|
|
383
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
384
384
|
transactionBlock: tx,
|
|
385
385
|
sender: ZERO_ADDRESS,
|
|
386
386
|
});
|
|
387
|
-
return
|
|
387
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
388
388
|
}
|
|
389
389
|
view.suiBalance = suiBalance;
|
|
390
390
|
})(view = staking_pool.view || (staking_pool.view = {}));
|
|
@@ -428,21 +428,21 @@ export var storage_fund;
|
|
|
428
428
|
async function totalBalance(client, args) {
|
|
429
429
|
const tx = new TransactionBlock();
|
|
430
430
|
builder.totalBalance(tx, args);
|
|
431
|
-
const
|
|
431
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
432
432
|
transactionBlock: tx,
|
|
433
433
|
sender: ZERO_ADDRESS,
|
|
434
434
|
});
|
|
435
|
-
return
|
|
435
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
436
436
|
}
|
|
437
437
|
view.totalBalance = totalBalance;
|
|
438
438
|
async function totalObjectStorageRebates(client, args) {
|
|
439
439
|
const tx = new TransactionBlock();
|
|
440
440
|
builder.totalObjectStorageRebates(tx, args);
|
|
441
|
-
const
|
|
441
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
442
442
|
transactionBlock: tx,
|
|
443
443
|
sender: ZERO_ADDRESS,
|
|
444
444
|
});
|
|
445
|
-
return
|
|
445
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
446
446
|
}
|
|
447
447
|
view.totalObjectStorageRebates = totalObjectStorageRebates;
|
|
448
448
|
})(view = storage_fund.view || (storage_fund.view = {}));
|
|
@@ -1029,321 +1029,321 @@ export var sui_system;
|
|
|
1029
1029
|
async function reportValidator(client, args) {
|
|
1030
1030
|
const tx = new TransactionBlock();
|
|
1031
1031
|
builder.reportValidator(tx, args);
|
|
1032
|
-
const
|
|
1032
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1033
1033
|
transactionBlock: tx,
|
|
1034
1034
|
sender: ZERO_ADDRESS,
|
|
1035
1035
|
});
|
|
1036
|
-
return
|
|
1036
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1037
1037
|
}
|
|
1038
1038
|
view.reportValidator = reportValidator;
|
|
1039
1039
|
async function requestAddStake(client, args) {
|
|
1040
1040
|
const tx = new TransactionBlock();
|
|
1041
1041
|
builder.requestAddStake(tx, args);
|
|
1042
|
-
const
|
|
1042
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1043
1043
|
transactionBlock: tx,
|
|
1044
1044
|
sender: ZERO_ADDRESS,
|
|
1045
1045
|
});
|
|
1046
|
-
return
|
|
1046
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1047
1047
|
}
|
|
1048
1048
|
view.requestAddStake = requestAddStake;
|
|
1049
1049
|
async function requestAddStakeMulCoin(client, args) {
|
|
1050
1050
|
const tx = new TransactionBlock();
|
|
1051
1051
|
builder.requestAddStakeMulCoin(tx, args);
|
|
1052
|
-
const
|
|
1052
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1053
1053
|
transactionBlock: tx,
|
|
1054
1054
|
sender: ZERO_ADDRESS,
|
|
1055
1055
|
});
|
|
1056
|
-
return
|
|
1056
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1057
1057
|
}
|
|
1058
1058
|
view.requestAddStakeMulCoin = requestAddStakeMulCoin;
|
|
1059
1059
|
async function requestAddValidator(client, args) {
|
|
1060
1060
|
const tx = new TransactionBlock();
|
|
1061
1061
|
builder.requestAddValidator(tx, args);
|
|
1062
|
-
const
|
|
1062
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1063
1063
|
transactionBlock: tx,
|
|
1064
1064
|
sender: ZERO_ADDRESS,
|
|
1065
1065
|
});
|
|
1066
|
-
return
|
|
1066
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1067
1067
|
}
|
|
1068
1068
|
view.requestAddValidator = requestAddValidator;
|
|
1069
1069
|
async function requestAddValidatorCandidate(client, args) {
|
|
1070
1070
|
const tx = new TransactionBlock();
|
|
1071
1071
|
builder.requestAddValidatorCandidate(tx, args);
|
|
1072
|
-
const
|
|
1072
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1073
1073
|
transactionBlock: tx,
|
|
1074
1074
|
sender: ZERO_ADDRESS,
|
|
1075
1075
|
});
|
|
1076
|
-
return
|
|
1076
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1077
1077
|
}
|
|
1078
1078
|
view.requestAddValidatorCandidate = requestAddValidatorCandidate;
|
|
1079
1079
|
async function requestRemoveValidator(client, args) {
|
|
1080
1080
|
const tx = new TransactionBlock();
|
|
1081
1081
|
builder.requestRemoveValidator(tx, args);
|
|
1082
|
-
const
|
|
1082
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1083
1083
|
transactionBlock: tx,
|
|
1084
1084
|
sender: ZERO_ADDRESS,
|
|
1085
1085
|
});
|
|
1086
|
-
return
|
|
1086
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1087
1087
|
}
|
|
1088
1088
|
view.requestRemoveValidator = requestRemoveValidator;
|
|
1089
1089
|
async function requestRemoveValidatorCandidate(client, args) {
|
|
1090
1090
|
const tx = new TransactionBlock();
|
|
1091
1091
|
builder.requestRemoveValidatorCandidate(tx, args);
|
|
1092
|
-
const
|
|
1092
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1093
1093
|
transactionBlock: tx,
|
|
1094
1094
|
sender: ZERO_ADDRESS,
|
|
1095
1095
|
});
|
|
1096
|
-
return
|
|
1096
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1097
1097
|
}
|
|
1098
1098
|
view.requestRemoveValidatorCandidate = requestRemoveValidatorCandidate;
|
|
1099
1099
|
async function requestSetCommissionRate(client, args) {
|
|
1100
1100
|
const tx = new TransactionBlock();
|
|
1101
1101
|
builder.requestSetCommissionRate(tx, args);
|
|
1102
|
-
const
|
|
1102
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1103
1103
|
transactionBlock: tx,
|
|
1104
1104
|
sender: ZERO_ADDRESS,
|
|
1105
1105
|
});
|
|
1106
|
-
return
|
|
1106
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1107
1107
|
}
|
|
1108
1108
|
view.requestSetCommissionRate = requestSetCommissionRate;
|
|
1109
1109
|
async function requestSetGasPrice(client, args) {
|
|
1110
1110
|
const tx = new TransactionBlock();
|
|
1111
1111
|
builder.requestSetGasPrice(tx, args);
|
|
1112
|
-
const
|
|
1112
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1113
1113
|
transactionBlock: tx,
|
|
1114
1114
|
sender: ZERO_ADDRESS,
|
|
1115
1115
|
});
|
|
1116
|
-
return
|
|
1116
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1117
1117
|
}
|
|
1118
1118
|
view.requestSetGasPrice = requestSetGasPrice;
|
|
1119
1119
|
async function requestWithdrawStake(client, args) {
|
|
1120
1120
|
const tx = new TransactionBlock();
|
|
1121
1121
|
builder.requestWithdrawStake(tx, args);
|
|
1122
|
-
const
|
|
1122
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1123
1123
|
transactionBlock: tx,
|
|
1124
1124
|
sender: ZERO_ADDRESS,
|
|
1125
1125
|
});
|
|
1126
|
-
return
|
|
1126
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1127
1127
|
}
|
|
1128
1128
|
view.requestWithdrawStake = requestWithdrawStake;
|
|
1129
1129
|
async function rotateOperationCap(client, args) {
|
|
1130
1130
|
const tx = new TransactionBlock();
|
|
1131
1131
|
builder.rotateOperationCap(tx, args);
|
|
1132
|
-
const
|
|
1132
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1133
1133
|
transactionBlock: tx,
|
|
1134
1134
|
sender: ZERO_ADDRESS,
|
|
1135
1135
|
});
|
|
1136
|
-
return
|
|
1136
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1137
1137
|
}
|
|
1138
1138
|
view.rotateOperationCap = rotateOperationCap;
|
|
1139
1139
|
async function setCandidateValidatorCommissionRate(client, args) {
|
|
1140
1140
|
const tx = new TransactionBlock();
|
|
1141
1141
|
builder.setCandidateValidatorCommissionRate(tx, args);
|
|
1142
|
-
const
|
|
1142
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1143
1143
|
transactionBlock: tx,
|
|
1144
1144
|
sender: ZERO_ADDRESS,
|
|
1145
1145
|
});
|
|
1146
|
-
return
|
|
1146
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1147
1147
|
}
|
|
1148
1148
|
view.setCandidateValidatorCommissionRate = setCandidateValidatorCommissionRate;
|
|
1149
1149
|
async function setCandidateValidatorGasPrice(client, args) {
|
|
1150
1150
|
const tx = new TransactionBlock();
|
|
1151
1151
|
builder.setCandidateValidatorGasPrice(tx, args);
|
|
1152
|
-
const
|
|
1152
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1153
1153
|
transactionBlock: tx,
|
|
1154
1154
|
sender: ZERO_ADDRESS,
|
|
1155
1155
|
});
|
|
1156
|
-
return
|
|
1156
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1157
1157
|
}
|
|
1158
1158
|
view.setCandidateValidatorGasPrice = setCandidateValidatorGasPrice;
|
|
1159
1159
|
async function undoReportValidator(client, args) {
|
|
1160
1160
|
const tx = new TransactionBlock();
|
|
1161
1161
|
builder.undoReportValidator(tx, args);
|
|
1162
|
-
const
|
|
1162
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1163
1163
|
transactionBlock: tx,
|
|
1164
1164
|
sender: ZERO_ADDRESS,
|
|
1165
1165
|
});
|
|
1166
|
-
return
|
|
1166
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1167
1167
|
}
|
|
1168
1168
|
view.undoReportValidator = undoReportValidator;
|
|
1169
1169
|
async function updateCandidateValidatorNetworkAddress(client, args) {
|
|
1170
1170
|
const tx = new TransactionBlock();
|
|
1171
1171
|
builder.updateCandidateValidatorNetworkAddress(tx, args);
|
|
1172
|
-
const
|
|
1172
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1173
1173
|
transactionBlock: tx,
|
|
1174
1174
|
sender: ZERO_ADDRESS,
|
|
1175
1175
|
});
|
|
1176
|
-
return
|
|
1176
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1177
1177
|
}
|
|
1178
1178
|
view.updateCandidateValidatorNetworkAddress = updateCandidateValidatorNetworkAddress;
|
|
1179
1179
|
async function updateCandidateValidatorNetworkPubkey(client, args) {
|
|
1180
1180
|
const tx = new TransactionBlock();
|
|
1181
1181
|
builder.updateCandidateValidatorNetworkPubkey(tx, args);
|
|
1182
|
-
const
|
|
1182
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1183
1183
|
transactionBlock: tx,
|
|
1184
1184
|
sender: ZERO_ADDRESS,
|
|
1185
1185
|
});
|
|
1186
|
-
return
|
|
1186
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1187
1187
|
}
|
|
1188
1188
|
view.updateCandidateValidatorNetworkPubkey = updateCandidateValidatorNetworkPubkey;
|
|
1189
1189
|
async function updateCandidateValidatorP2pAddress(client, args) {
|
|
1190
1190
|
const tx = new TransactionBlock();
|
|
1191
1191
|
builder.updateCandidateValidatorP2pAddress(tx, args);
|
|
1192
|
-
const
|
|
1192
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1193
1193
|
transactionBlock: tx,
|
|
1194
1194
|
sender: ZERO_ADDRESS,
|
|
1195
1195
|
});
|
|
1196
|
-
return
|
|
1196
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1197
1197
|
}
|
|
1198
1198
|
view.updateCandidateValidatorP2pAddress = updateCandidateValidatorP2pAddress;
|
|
1199
1199
|
async function updateCandidateValidatorPrimaryAddress(client, args) {
|
|
1200
1200
|
const tx = new TransactionBlock();
|
|
1201
1201
|
builder.updateCandidateValidatorPrimaryAddress(tx, args);
|
|
1202
|
-
const
|
|
1202
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1203
1203
|
transactionBlock: tx,
|
|
1204
1204
|
sender: ZERO_ADDRESS,
|
|
1205
1205
|
});
|
|
1206
|
-
return
|
|
1206
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1207
1207
|
}
|
|
1208
1208
|
view.updateCandidateValidatorPrimaryAddress = updateCandidateValidatorPrimaryAddress;
|
|
1209
1209
|
async function updateCandidateValidatorProtocolPubkey(client, args) {
|
|
1210
1210
|
const tx = new TransactionBlock();
|
|
1211
1211
|
builder.updateCandidateValidatorProtocolPubkey(tx, args);
|
|
1212
|
-
const
|
|
1212
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1213
1213
|
transactionBlock: tx,
|
|
1214
1214
|
sender: ZERO_ADDRESS,
|
|
1215
1215
|
});
|
|
1216
|
-
return
|
|
1216
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1217
1217
|
}
|
|
1218
1218
|
view.updateCandidateValidatorProtocolPubkey = updateCandidateValidatorProtocolPubkey;
|
|
1219
1219
|
async function updateCandidateValidatorWorkerAddress(client, args) {
|
|
1220
1220
|
const tx = new TransactionBlock();
|
|
1221
1221
|
builder.updateCandidateValidatorWorkerAddress(tx, args);
|
|
1222
|
-
const
|
|
1222
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1223
1223
|
transactionBlock: tx,
|
|
1224
1224
|
sender: ZERO_ADDRESS,
|
|
1225
1225
|
});
|
|
1226
|
-
return
|
|
1226
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1227
1227
|
}
|
|
1228
1228
|
view.updateCandidateValidatorWorkerAddress = updateCandidateValidatorWorkerAddress;
|
|
1229
1229
|
async function updateCandidateValidatorWorkerPubkey(client, args) {
|
|
1230
1230
|
const tx = new TransactionBlock();
|
|
1231
1231
|
builder.updateCandidateValidatorWorkerPubkey(tx, args);
|
|
1232
|
-
const
|
|
1232
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1233
1233
|
transactionBlock: tx,
|
|
1234
1234
|
sender: ZERO_ADDRESS,
|
|
1235
1235
|
});
|
|
1236
|
-
return
|
|
1236
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1237
1237
|
}
|
|
1238
1238
|
view.updateCandidateValidatorWorkerPubkey = updateCandidateValidatorWorkerPubkey;
|
|
1239
1239
|
async function updateValidatorDescription(client, args) {
|
|
1240
1240
|
const tx = new TransactionBlock();
|
|
1241
1241
|
builder.updateValidatorDescription(tx, args);
|
|
1242
|
-
const
|
|
1242
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1243
1243
|
transactionBlock: tx,
|
|
1244
1244
|
sender: ZERO_ADDRESS,
|
|
1245
1245
|
});
|
|
1246
|
-
return
|
|
1246
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1247
1247
|
}
|
|
1248
1248
|
view.updateValidatorDescription = updateValidatorDescription;
|
|
1249
1249
|
async function updateValidatorImageUrl(client, args) {
|
|
1250
1250
|
const tx = new TransactionBlock();
|
|
1251
1251
|
builder.updateValidatorImageUrl(tx, args);
|
|
1252
|
-
const
|
|
1252
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1253
1253
|
transactionBlock: tx,
|
|
1254
1254
|
sender: ZERO_ADDRESS,
|
|
1255
1255
|
});
|
|
1256
|
-
return
|
|
1256
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1257
1257
|
}
|
|
1258
1258
|
view.updateValidatorImageUrl = updateValidatorImageUrl;
|
|
1259
1259
|
async function updateValidatorName(client, args) {
|
|
1260
1260
|
const tx = new TransactionBlock();
|
|
1261
1261
|
builder.updateValidatorName(tx, args);
|
|
1262
|
-
const
|
|
1262
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1263
1263
|
transactionBlock: tx,
|
|
1264
1264
|
sender: ZERO_ADDRESS,
|
|
1265
1265
|
});
|
|
1266
|
-
return
|
|
1266
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1267
1267
|
}
|
|
1268
1268
|
view.updateValidatorName = updateValidatorName;
|
|
1269
1269
|
async function updateValidatorNextEpochNetworkAddress(client, args) {
|
|
1270
1270
|
const tx = new TransactionBlock();
|
|
1271
1271
|
builder.updateValidatorNextEpochNetworkAddress(tx, args);
|
|
1272
|
-
const
|
|
1272
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1273
1273
|
transactionBlock: tx,
|
|
1274
1274
|
sender: ZERO_ADDRESS,
|
|
1275
1275
|
});
|
|
1276
|
-
return
|
|
1276
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1277
1277
|
}
|
|
1278
1278
|
view.updateValidatorNextEpochNetworkAddress = updateValidatorNextEpochNetworkAddress;
|
|
1279
1279
|
async function updateValidatorNextEpochNetworkPubkey(client, args) {
|
|
1280
1280
|
const tx = new TransactionBlock();
|
|
1281
1281
|
builder.updateValidatorNextEpochNetworkPubkey(tx, args);
|
|
1282
|
-
const
|
|
1282
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1283
1283
|
transactionBlock: tx,
|
|
1284
1284
|
sender: ZERO_ADDRESS,
|
|
1285
1285
|
});
|
|
1286
|
-
return
|
|
1286
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1287
1287
|
}
|
|
1288
1288
|
view.updateValidatorNextEpochNetworkPubkey = updateValidatorNextEpochNetworkPubkey;
|
|
1289
1289
|
async function updateValidatorNextEpochP2pAddress(client, args) {
|
|
1290
1290
|
const tx = new TransactionBlock();
|
|
1291
1291
|
builder.updateValidatorNextEpochP2pAddress(tx, args);
|
|
1292
|
-
const
|
|
1292
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1293
1293
|
transactionBlock: tx,
|
|
1294
1294
|
sender: ZERO_ADDRESS,
|
|
1295
1295
|
});
|
|
1296
|
-
return
|
|
1296
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1297
1297
|
}
|
|
1298
1298
|
view.updateValidatorNextEpochP2pAddress = updateValidatorNextEpochP2pAddress;
|
|
1299
1299
|
async function updateValidatorNextEpochPrimaryAddress(client, args) {
|
|
1300
1300
|
const tx = new TransactionBlock();
|
|
1301
1301
|
builder.updateValidatorNextEpochPrimaryAddress(tx, args);
|
|
1302
|
-
const
|
|
1302
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1303
1303
|
transactionBlock: tx,
|
|
1304
1304
|
sender: ZERO_ADDRESS,
|
|
1305
1305
|
});
|
|
1306
|
-
return
|
|
1306
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1307
1307
|
}
|
|
1308
1308
|
view.updateValidatorNextEpochPrimaryAddress = updateValidatorNextEpochPrimaryAddress;
|
|
1309
1309
|
async function updateValidatorNextEpochProtocolPubkey(client, args) {
|
|
1310
1310
|
const tx = new TransactionBlock();
|
|
1311
1311
|
builder.updateValidatorNextEpochProtocolPubkey(tx, args);
|
|
1312
|
-
const
|
|
1312
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1313
1313
|
transactionBlock: tx,
|
|
1314
1314
|
sender: ZERO_ADDRESS,
|
|
1315
1315
|
});
|
|
1316
|
-
return
|
|
1316
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1317
1317
|
}
|
|
1318
1318
|
view.updateValidatorNextEpochProtocolPubkey = updateValidatorNextEpochProtocolPubkey;
|
|
1319
1319
|
async function updateValidatorNextEpochWorkerAddress(client, args) {
|
|
1320
1320
|
const tx = new TransactionBlock();
|
|
1321
1321
|
builder.updateValidatorNextEpochWorkerAddress(tx, args);
|
|
1322
|
-
const
|
|
1322
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1323
1323
|
transactionBlock: tx,
|
|
1324
1324
|
sender: ZERO_ADDRESS,
|
|
1325
1325
|
});
|
|
1326
|
-
return
|
|
1326
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1327
1327
|
}
|
|
1328
1328
|
view.updateValidatorNextEpochWorkerAddress = updateValidatorNextEpochWorkerAddress;
|
|
1329
1329
|
async function updateValidatorNextEpochWorkerPubkey(client, args) {
|
|
1330
1330
|
const tx = new TransactionBlock();
|
|
1331
1331
|
builder.updateValidatorNextEpochWorkerPubkey(tx, args);
|
|
1332
|
-
const
|
|
1332
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1333
1333
|
transactionBlock: tx,
|
|
1334
1334
|
sender: ZERO_ADDRESS,
|
|
1335
1335
|
});
|
|
1336
|
-
return
|
|
1336
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1337
1337
|
}
|
|
1338
1338
|
view.updateValidatorNextEpochWorkerPubkey = updateValidatorNextEpochWorkerPubkey;
|
|
1339
1339
|
async function updateValidatorProjectUrl(client, args) {
|
|
1340
1340
|
const tx = new TransactionBlock();
|
|
1341
1341
|
builder.updateValidatorProjectUrl(tx, args);
|
|
1342
|
-
const
|
|
1342
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1343
1343
|
transactionBlock: tx,
|
|
1344
1344
|
sender: ZERO_ADDRESS,
|
|
1345
1345
|
});
|
|
1346
|
-
return
|
|
1346
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1347
1347
|
}
|
|
1348
1348
|
view.updateValidatorProjectUrl = updateValidatorProjectUrl;
|
|
1349
1349
|
})(view = sui_system.view || (sui_system.view = {}));
|
|
@@ -1829,381 +1829,381 @@ export var validator;
|
|
|
1829
1829
|
async function commissionRate(client, args) {
|
|
1830
1830
|
const tx = new TransactionBlock();
|
|
1831
1831
|
builder.commissionRate(tx, args);
|
|
1832
|
-
const
|
|
1832
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1833
1833
|
transactionBlock: tx,
|
|
1834
1834
|
sender: ZERO_ADDRESS,
|
|
1835
1835
|
});
|
|
1836
|
-
return
|
|
1836
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1837
1837
|
}
|
|
1838
1838
|
view.commissionRate = commissionRate;
|
|
1839
1839
|
async function description(client, args) {
|
|
1840
1840
|
const tx = new TransactionBlock();
|
|
1841
1841
|
builder.description(tx, args);
|
|
1842
|
-
const
|
|
1842
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1843
1843
|
transactionBlock: tx,
|
|
1844
1844
|
sender: ZERO_ADDRESS,
|
|
1845
1845
|
});
|
|
1846
|
-
return
|
|
1846
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1847
1847
|
}
|
|
1848
1848
|
view.description = description;
|
|
1849
1849
|
async function gasPrice(client, args) {
|
|
1850
1850
|
const tx = new TransactionBlock();
|
|
1851
1851
|
builder.gasPrice(tx, args);
|
|
1852
|
-
const
|
|
1852
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1853
1853
|
transactionBlock: tx,
|
|
1854
1854
|
sender: ZERO_ADDRESS,
|
|
1855
1855
|
});
|
|
1856
|
-
return
|
|
1856
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1857
1857
|
}
|
|
1858
1858
|
view.gasPrice = gasPrice;
|
|
1859
1859
|
async function imageUrl(client, args) {
|
|
1860
1860
|
const tx = new TransactionBlock();
|
|
1861
1861
|
builder.imageUrl(tx, args);
|
|
1862
|
-
const
|
|
1862
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1863
1863
|
transactionBlock: tx,
|
|
1864
1864
|
sender: ZERO_ADDRESS,
|
|
1865
1865
|
});
|
|
1866
|
-
return
|
|
1866
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1867
1867
|
}
|
|
1868
1868
|
view.imageUrl = imageUrl;
|
|
1869
1869
|
async function isDuplicate(client, args) {
|
|
1870
1870
|
const tx = new TransactionBlock();
|
|
1871
1871
|
builder.isDuplicate(tx, args);
|
|
1872
|
-
const
|
|
1872
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1873
1873
|
transactionBlock: tx,
|
|
1874
1874
|
sender: ZERO_ADDRESS,
|
|
1875
1875
|
});
|
|
1876
|
-
return
|
|
1876
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1877
1877
|
}
|
|
1878
1878
|
view.isDuplicate = isDuplicate;
|
|
1879
1879
|
async function isPreactive(client, args) {
|
|
1880
1880
|
const tx = new TransactionBlock();
|
|
1881
1881
|
builder.isPreactive(tx, args);
|
|
1882
|
-
const
|
|
1882
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1883
1883
|
transactionBlock: tx,
|
|
1884
1884
|
sender: ZERO_ADDRESS,
|
|
1885
1885
|
});
|
|
1886
|
-
return
|
|
1886
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1887
1887
|
}
|
|
1888
1888
|
view.isPreactive = isPreactive;
|
|
1889
1889
|
async function metadata(client, args) {
|
|
1890
1890
|
const tx = new TransactionBlock();
|
|
1891
1891
|
builder.metadata(tx, args);
|
|
1892
|
-
const
|
|
1892
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1893
1893
|
transactionBlock: tx,
|
|
1894
1894
|
sender: ZERO_ADDRESS,
|
|
1895
1895
|
});
|
|
1896
|
-
return
|
|
1896
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1897
1897
|
}
|
|
1898
1898
|
view.metadata = metadata;
|
|
1899
1899
|
async function name(client, args) {
|
|
1900
1900
|
const tx = new TransactionBlock();
|
|
1901
1901
|
builder.name(tx, args);
|
|
1902
|
-
const
|
|
1902
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1903
1903
|
transactionBlock: tx,
|
|
1904
1904
|
sender: ZERO_ADDRESS,
|
|
1905
1905
|
});
|
|
1906
|
-
return
|
|
1906
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1907
1907
|
}
|
|
1908
1908
|
view.name = name;
|
|
1909
1909
|
async function networkAddress(client, args) {
|
|
1910
1910
|
const tx = new TransactionBlock();
|
|
1911
1911
|
builder.networkAddress(tx, args);
|
|
1912
|
-
const
|
|
1912
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1913
1913
|
transactionBlock: tx,
|
|
1914
1914
|
sender: ZERO_ADDRESS,
|
|
1915
1915
|
});
|
|
1916
|
-
return
|
|
1916
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1917
1917
|
}
|
|
1918
1918
|
view.networkAddress = networkAddress;
|
|
1919
1919
|
async function networkPubkeyBytes(client, args) {
|
|
1920
1920
|
const tx = new TransactionBlock();
|
|
1921
1921
|
builder.networkPubkeyBytes(tx, args);
|
|
1922
|
-
const
|
|
1922
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1923
1923
|
transactionBlock: tx,
|
|
1924
1924
|
sender: ZERO_ADDRESS,
|
|
1925
1925
|
});
|
|
1926
|
-
return
|
|
1926
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1927
1927
|
}
|
|
1928
1928
|
view.networkPubkeyBytes = networkPubkeyBytes;
|
|
1929
1929
|
async function nextEpochGasPrice(client, args) {
|
|
1930
1930
|
const tx = new TransactionBlock();
|
|
1931
1931
|
builder.nextEpochGasPrice(tx, args);
|
|
1932
|
-
const
|
|
1932
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1933
1933
|
transactionBlock: tx,
|
|
1934
1934
|
sender: ZERO_ADDRESS,
|
|
1935
1935
|
});
|
|
1936
|
-
return
|
|
1936
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1937
1937
|
}
|
|
1938
1938
|
view.nextEpochGasPrice = nextEpochGasPrice;
|
|
1939
1939
|
async function nextEpochNetworkAddress(client, args) {
|
|
1940
1940
|
const tx = new TransactionBlock();
|
|
1941
1941
|
builder.nextEpochNetworkAddress(tx, args);
|
|
1942
|
-
const
|
|
1942
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1943
1943
|
transactionBlock: tx,
|
|
1944
1944
|
sender: ZERO_ADDRESS,
|
|
1945
1945
|
});
|
|
1946
|
-
return
|
|
1946
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1947
1947
|
}
|
|
1948
1948
|
view.nextEpochNetworkAddress = nextEpochNetworkAddress;
|
|
1949
1949
|
async function nextEpochNetworkPubkeyBytes(client, args) {
|
|
1950
1950
|
const tx = new TransactionBlock();
|
|
1951
1951
|
builder.nextEpochNetworkPubkeyBytes(tx, args);
|
|
1952
|
-
const
|
|
1952
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1953
1953
|
transactionBlock: tx,
|
|
1954
1954
|
sender: ZERO_ADDRESS,
|
|
1955
1955
|
});
|
|
1956
|
-
return
|
|
1956
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1957
1957
|
}
|
|
1958
1958
|
view.nextEpochNetworkPubkeyBytes = nextEpochNetworkPubkeyBytes;
|
|
1959
1959
|
async function nextEpochP2pAddress(client, args) {
|
|
1960
1960
|
const tx = new TransactionBlock();
|
|
1961
1961
|
builder.nextEpochP2pAddress(tx, args);
|
|
1962
|
-
const
|
|
1962
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1963
1963
|
transactionBlock: tx,
|
|
1964
1964
|
sender: ZERO_ADDRESS,
|
|
1965
1965
|
});
|
|
1966
|
-
return
|
|
1966
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1967
1967
|
}
|
|
1968
1968
|
view.nextEpochP2pAddress = nextEpochP2pAddress;
|
|
1969
1969
|
async function nextEpochPrimaryAddress(client, args) {
|
|
1970
1970
|
const tx = new TransactionBlock();
|
|
1971
1971
|
builder.nextEpochPrimaryAddress(tx, args);
|
|
1972
|
-
const
|
|
1972
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1973
1973
|
transactionBlock: tx,
|
|
1974
1974
|
sender: ZERO_ADDRESS,
|
|
1975
1975
|
});
|
|
1976
|
-
return
|
|
1976
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1977
1977
|
}
|
|
1978
1978
|
view.nextEpochPrimaryAddress = nextEpochPrimaryAddress;
|
|
1979
1979
|
async function nextEpochProofOfPossession(client, args) {
|
|
1980
1980
|
const tx = new TransactionBlock();
|
|
1981
1981
|
builder.nextEpochProofOfPossession(tx, args);
|
|
1982
|
-
const
|
|
1982
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1983
1983
|
transactionBlock: tx,
|
|
1984
1984
|
sender: ZERO_ADDRESS,
|
|
1985
1985
|
});
|
|
1986
|
-
return
|
|
1986
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1987
1987
|
}
|
|
1988
1988
|
view.nextEpochProofOfPossession = nextEpochProofOfPossession;
|
|
1989
1989
|
async function nextEpochProtocolPubkeyBytes(client, args) {
|
|
1990
1990
|
const tx = new TransactionBlock();
|
|
1991
1991
|
builder.nextEpochProtocolPubkeyBytes(tx, args);
|
|
1992
|
-
const
|
|
1992
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1993
1993
|
transactionBlock: tx,
|
|
1994
1994
|
sender: ZERO_ADDRESS,
|
|
1995
1995
|
});
|
|
1996
|
-
return
|
|
1996
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
1997
1997
|
}
|
|
1998
1998
|
view.nextEpochProtocolPubkeyBytes = nextEpochProtocolPubkeyBytes;
|
|
1999
1999
|
async function nextEpochWorkerAddress(client, args) {
|
|
2000
2000
|
const tx = new TransactionBlock();
|
|
2001
2001
|
builder.nextEpochWorkerAddress(tx, args);
|
|
2002
|
-
const
|
|
2002
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2003
2003
|
transactionBlock: tx,
|
|
2004
2004
|
sender: ZERO_ADDRESS,
|
|
2005
2005
|
});
|
|
2006
|
-
return
|
|
2006
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2007
2007
|
}
|
|
2008
2008
|
view.nextEpochWorkerAddress = nextEpochWorkerAddress;
|
|
2009
2009
|
async function nextEpochWorkerPubkeyBytes(client, args) {
|
|
2010
2010
|
const tx = new TransactionBlock();
|
|
2011
2011
|
builder.nextEpochWorkerPubkeyBytes(tx, args);
|
|
2012
|
-
const
|
|
2012
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2013
2013
|
transactionBlock: tx,
|
|
2014
2014
|
sender: ZERO_ADDRESS,
|
|
2015
2015
|
});
|
|
2016
|
-
return
|
|
2016
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2017
2017
|
}
|
|
2018
2018
|
view.nextEpochWorkerPubkeyBytes = nextEpochWorkerPubkeyBytes;
|
|
2019
2019
|
async function operationCapId(client, args) {
|
|
2020
2020
|
const tx = new TransactionBlock();
|
|
2021
2021
|
builder.operationCapId(tx, args);
|
|
2022
|
-
const
|
|
2022
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2023
2023
|
transactionBlock: tx,
|
|
2024
2024
|
sender: ZERO_ADDRESS,
|
|
2025
2025
|
});
|
|
2026
|
-
return
|
|
2026
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2027
2027
|
}
|
|
2028
2028
|
view.operationCapId = operationCapId;
|
|
2029
2029
|
async function p2pAddress(client, args) {
|
|
2030
2030
|
const tx = new TransactionBlock();
|
|
2031
2031
|
builder.p2pAddress(tx, args);
|
|
2032
|
-
const
|
|
2032
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2033
2033
|
transactionBlock: tx,
|
|
2034
2034
|
sender: ZERO_ADDRESS,
|
|
2035
2035
|
});
|
|
2036
|
-
return
|
|
2036
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2037
2037
|
}
|
|
2038
2038
|
view.p2pAddress = p2pAddress;
|
|
2039
2039
|
async function pendingStakeAmount(client, args) {
|
|
2040
2040
|
const tx = new TransactionBlock();
|
|
2041
2041
|
builder.pendingStakeAmount(tx, args);
|
|
2042
|
-
const
|
|
2042
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2043
2043
|
transactionBlock: tx,
|
|
2044
2044
|
sender: ZERO_ADDRESS,
|
|
2045
2045
|
});
|
|
2046
|
-
return
|
|
2046
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2047
2047
|
}
|
|
2048
2048
|
view.pendingStakeAmount = pendingStakeAmount;
|
|
2049
2049
|
async function pendingStakeWithdrawAmount(client, args) {
|
|
2050
2050
|
const tx = new TransactionBlock();
|
|
2051
2051
|
builder.pendingStakeWithdrawAmount(tx, args);
|
|
2052
|
-
const
|
|
2052
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2053
2053
|
transactionBlock: tx,
|
|
2054
2054
|
sender: ZERO_ADDRESS,
|
|
2055
2055
|
});
|
|
2056
|
-
return
|
|
2056
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2057
2057
|
}
|
|
2058
2058
|
view.pendingStakeWithdrawAmount = pendingStakeWithdrawAmount;
|
|
2059
2059
|
async function poolTokenExchangeRateAtEpoch(client, args) {
|
|
2060
2060
|
const tx = new TransactionBlock();
|
|
2061
2061
|
builder.poolTokenExchangeRateAtEpoch(tx, args);
|
|
2062
|
-
const
|
|
2062
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2063
2063
|
transactionBlock: tx,
|
|
2064
2064
|
sender: ZERO_ADDRESS,
|
|
2065
2065
|
});
|
|
2066
|
-
return
|
|
2066
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2067
2067
|
}
|
|
2068
2068
|
view.poolTokenExchangeRateAtEpoch = poolTokenExchangeRateAtEpoch;
|
|
2069
2069
|
async function primaryAddress(client, args) {
|
|
2070
2070
|
const tx = new TransactionBlock();
|
|
2071
2071
|
builder.primaryAddress(tx, args);
|
|
2072
|
-
const
|
|
2072
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2073
2073
|
transactionBlock: tx,
|
|
2074
2074
|
sender: ZERO_ADDRESS,
|
|
2075
2075
|
});
|
|
2076
|
-
return
|
|
2076
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2077
2077
|
}
|
|
2078
2078
|
view.primaryAddress = primaryAddress;
|
|
2079
2079
|
async function projectUrl(client, args) {
|
|
2080
2080
|
const tx = new TransactionBlock();
|
|
2081
2081
|
builder.projectUrl(tx, args);
|
|
2082
|
-
const
|
|
2082
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2083
2083
|
transactionBlock: tx,
|
|
2084
2084
|
sender: ZERO_ADDRESS,
|
|
2085
2085
|
});
|
|
2086
|
-
return
|
|
2086
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2087
2087
|
}
|
|
2088
2088
|
view.projectUrl = projectUrl;
|
|
2089
2089
|
async function proofOfPossession(client, args) {
|
|
2090
2090
|
const tx = new TransactionBlock();
|
|
2091
2091
|
builder.proofOfPossession(tx, args);
|
|
2092
|
-
const
|
|
2092
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2093
2093
|
transactionBlock: tx,
|
|
2094
2094
|
sender: ZERO_ADDRESS,
|
|
2095
2095
|
});
|
|
2096
|
-
return
|
|
2096
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2097
2097
|
}
|
|
2098
2098
|
view.proofOfPossession = proofOfPossession;
|
|
2099
2099
|
async function protocolPubkeyBytes(client, args) {
|
|
2100
2100
|
const tx = new TransactionBlock();
|
|
2101
2101
|
builder.protocolPubkeyBytes(tx, args);
|
|
2102
|
-
const
|
|
2102
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2103
2103
|
transactionBlock: tx,
|
|
2104
2104
|
sender: ZERO_ADDRESS,
|
|
2105
2105
|
});
|
|
2106
|
-
return
|
|
2106
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2107
2107
|
}
|
|
2108
2108
|
view.protocolPubkeyBytes = protocolPubkeyBytes;
|
|
2109
2109
|
async function stakeAmount(client, args) {
|
|
2110
2110
|
const tx = new TransactionBlock();
|
|
2111
2111
|
builder.stakeAmount(tx, args);
|
|
2112
|
-
const
|
|
2112
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2113
2113
|
transactionBlock: tx,
|
|
2114
2114
|
sender: ZERO_ADDRESS,
|
|
2115
2115
|
});
|
|
2116
|
-
return
|
|
2116
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2117
2117
|
}
|
|
2118
2118
|
view.stakeAmount = stakeAmount;
|
|
2119
2119
|
async function stakingPoolId(client, args) {
|
|
2120
2120
|
const tx = new TransactionBlock();
|
|
2121
2121
|
builder.stakingPoolId(tx, args);
|
|
2122
|
-
const
|
|
2122
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2123
2123
|
transactionBlock: tx,
|
|
2124
2124
|
sender: ZERO_ADDRESS,
|
|
2125
2125
|
});
|
|
2126
|
-
return
|
|
2126
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2127
2127
|
}
|
|
2128
2128
|
view.stakingPoolId = stakingPoolId;
|
|
2129
2129
|
async function suiAddress(client, args) {
|
|
2130
2130
|
const tx = new TransactionBlock();
|
|
2131
2131
|
builder.suiAddress(tx, args);
|
|
2132
|
-
const
|
|
2132
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2133
2133
|
transactionBlock: tx,
|
|
2134
2134
|
sender: ZERO_ADDRESS,
|
|
2135
2135
|
});
|
|
2136
|
-
return
|
|
2136
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2137
2137
|
}
|
|
2138
2138
|
view.suiAddress = suiAddress;
|
|
2139
2139
|
async function totalStake(client, args) {
|
|
2140
2140
|
const tx = new TransactionBlock();
|
|
2141
2141
|
builder.totalStake(tx, args);
|
|
2142
|
-
const
|
|
2142
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2143
2143
|
transactionBlock: tx,
|
|
2144
2144
|
sender: ZERO_ADDRESS,
|
|
2145
2145
|
});
|
|
2146
|
-
return
|
|
2146
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2147
2147
|
}
|
|
2148
2148
|
view.totalStake = totalStake;
|
|
2149
2149
|
async function totalStakeAmount(client, args) {
|
|
2150
2150
|
const tx = new TransactionBlock();
|
|
2151
2151
|
builder.totalStakeAmount(tx, args);
|
|
2152
|
-
const
|
|
2152
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2153
2153
|
transactionBlock: tx,
|
|
2154
2154
|
sender: ZERO_ADDRESS,
|
|
2155
2155
|
});
|
|
2156
|
-
return
|
|
2156
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2157
2157
|
}
|
|
2158
2158
|
view.totalStakeAmount = totalStakeAmount;
|
|
2159
2159
|
async function validateMetadata(client, args) {
|
|
2160
2160
|
const tx = new TransactionBlock();
|
|
2161
2161
|
builder.validateMetadata(tx, args);
|
|
2162
|
-
const
|
|
2162
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2163
2163
|
transactionBlock: tx,
|
|
2164
2164
|
sender: ZERO_ADDRESS,
|
|
2165
2165
|
});
|
|
2166
|
-
return
|
|
2166
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2167
2167
|
}
|
|
2168
2168
|
view.validateMetadata = validateMetadata;
|
|
2169
2169
|
async function validateMetadataBcs(client, args) {
|
|
2170
2170
|
const tx = new TransactionBlock();
|
|
2171
2171
|
builder.validateMetadataBcs(tx, args);
|
|
2172
|
-
const
|
|
2172
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2173
2173
|
transactionBlock: tx,
|
|
2174
2174
|
sender: ZERO_ADDRESS,
|
|
2175
2175
|
});
|
|
2176
|
-
return
|
|
2176
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2177
2177
|
}
|
|
2178
2178
|
view.validateMetadataBcs = validateMetadataBcs;
|
|
2179
2179
|
async function votingPower(client, args) {
|
|
2180
2180
|
const tx = new TransactionBlock();
|
|
2181
2181
|
builder.votingPower(tx, args);
|
|
2182
|
-
const
|
|
2182
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2183
2183
|
transactionBlock: tx,
|
|
2184
2184
|
sender: ZERO_ADDRESS,
|
|
2185
2185
|
});
|
|
2186
|
-
return
|
|
2186
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2187
2187
|
}
|
|
2188
2188
|
view.votingPower = votingPower;
|
|
2189
2189
|
async function workerAddress(client, args) {
|
|
2190
2190
|
const tx = new TransactionBlock();
|
|
2191
2191
|
builder.workerAddress(tx, args);
|
|
2192
|
-
const
|
|
2192
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2193
2193
|
transactionBlock: tx,
|
|
2194
2194
|
sender: ZERO_ADDRESS,
|
|
2195
2195
|
});
|
|
2196
|
-
return
|
|
2196
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2197
2197
|
}
|
|
2198
2198
|
view.workerAddress = workerAddress;
|
|
2199
2199
|
async function workerPubkeyBytes(client, args) {
|
|
2200
2200
|
const tx = new TransactionBlock();
|
|
2201
2201
|
builder.workerPubkeyBytes(tx, args);
|
|
2202
|
-
const
|
|
2202
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2203
2203
|
transactionBlock: tx,
|
|
2204
2204
|
sender: ZERO_ADDRESS,
|
|
2205
2205
|
});
|
|
2206
|
-
return
|
|
2206
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2207
2207
|
}
|
|
2208
2208
|
view.workerPubkeyBytes = workerPubkeyBytes;
|
|
2209
2209
|
})(view = validator.view || (validator.view = {}));
|
|
@@ -2412,121 +2412,121 @@ export var validator_set;
|
|
|
2412
2412
|
async function activeValidators(client, args) {
|
|
2413
2413
|
const tx = new TransactionBlock();
|
|
2414
2414
|
builder.activeValidators(tx, args);
|
|
2415
|
-
const
|
|
2415
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2416
2416
|
transactionBlock: tx,
|
|
2417
2417
|
sender: ZERO_ADDRESS,
|
|
2418
2418
|
});
|
|
2419
|
-
return
|
|
2419
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2420
2420
|
}
|
|
2421
2421
|
view.activeValidators = activeValidators;
|
|
2422
2422
|
async function deriveReferenceGasPrice(client, args) {
|
|
2423
2423
|
const tx = new TransactionBlock();
|
|
2424
2424
|
builder.deriveReferenceGasPrice(tx, args);
|
|
2425
|
-
const
|
|
2425
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2426
2426
|
transactionBlock: tx,
|
|
2427
2427
|
sender: ZERO_ADDRESS,
|
|
2428
2428
|
});
|
|
2429
|
-
return
|
|
2429
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2430
2430
|
}
|
|
2431
2431
|
view.deriveReferenceGasPrice = deriveReferenceGasPrice;
|
|
2432
2432
|
async function getActiveValidatorRef(client, args) {
|
|
2433
2433
|
const tx = new TransactionBlock();
|
|
2434
2434
|
builder.getActiveValidatorRef(tx, args);
|
|
2435
|
-
const
|
|
2435
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2436
2436
|
transactionBlock: tx,
|
|
2437
2437
|
sender: ZERO_ADDRESS,
|
|
2438
2438
|
});
|
|
2439
|
-
return
|
|
2439
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2440
2440
|
}
|
|
2441
2441
|
view.getActiveValidatorRef = getActiveValidatorRef;
|
|
2442
2442
|
async function getPendingValidatorRef(client, args) {
|
|
2443
2443
|
const tx = new TransactionBlock();
|
|
2444
2444
|
builder.getPendingValidatorRef(tx, args);
|
|
2445
|
-
const
|
|
2445
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2446
2446
|
transactionBlock: tx,
|
|
2447
2447
|
sender: ZERO_ADDRESS,
|
|
2448
2448
|
});
|
|
2449
|
-
return
|
|
2449
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2450
2450
|
}
|
|
2451
2451
|
view.getPendingValidatorRef = getPendingValidatorRef;
|
|
2452
2452
|
async function isInactiveValidator(client, args) {
|
|
2453
2453
|
const tx = new TransactionBlock();
|
|
2454
2454
|
builder.isInactiveValidator(tx, args);
|
|
2455
|
-
const
|
|
2455
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2456
2456
|
transactionBlock: tx,
|
|
2457
2457
|
sender: ZERO_ADDRESS,
|
|
2458
2458
|
});
|
|
2459
|
-
return
|
|
2459
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2460
2460
|
}
|
|
2461
2461
|
view.isInactiveValidator = isInactiveValidator;
|
|
2462
2462
|
async function isValidatorCandidate(client, args) {
|
|
2463
2463
|
const tx = new TransactionBlock();
|
|
2464
2464
|
builder.isValidatorCandidate(tx, args);
|
|
2465
|
-
const
|
|
2465
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2466
2466
|
transactionBlock: tx,
|
|
2467
2467
|
sender: ZERO_ADDRESS,
|
|
2468
2468
|
});
|
|
2469
|
-
return
|
|
2469
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2470
2470
|
}
|
|
2471
2471
|
view.isValidatorCandidate = isValidatorCandidate;
|
|
2472
2472
|
async function stakingPoolMappings(client, args) {
|
|
2473
2473
|
const tx = new TransactionBlock();
|
|
2474
2474
|
builder.stakingPoolMappings(tx, args);
|
|
2475
|
-
const
|
|
2475
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2476
2476
|
transactionBlock: tx,
|
|
2477
2477
|
sender: ZERO_ADDRESS,
|
|
2478
2478
|
});
|
|
2479
|
-
return
|
|
2479
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2480
2480
|
}
|
|
2481
2481
|
view.stakingPoolMappings = stakingPoolMappings;
|
|
2482
2482
|
async function sumVotingPowerByAddresses(client, args) {
|
|
2483
2483
|
const tx = new TransactionBlock();
|
|
2484
2484
|
builder.sumVotingPowerByAddresses(tx, args);
|
|
2485
|
-
const
|
|
2485
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2486
2486
|
transactionBlock: tx,
|
|
2487
2487
|
sender: ZERO_ADDRESS,
|
|
2488
2488
|
});
|
|
2489
|
-
return
|
|
2489
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2490
2490
|
}
|
|
2491
2491
|
view.sumVotingPowerByAddresses = sumVotingPowerByAddresses;
|
|
2492
2492
|
async function totalStake(client, args) {
|
|
2493
2493
|
const tx = new TransactionBlock();
|
|
2494
2494
|
builder.totalStake(tx, args);
|
|
2495
|
-
const
|
|
2495
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2496
2496
|
transactionBlock: tx,
|
|
2497
2497
|
sender: ZERO_ADDRESS,
|
|
2498
2498
|
});
|
|
2499
|
-
return
|
|
2499
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2500
2500
|
}
|
|
2501
2501
|
view.totalStake = totalStake;
|
|
2502
2502
|
async function validatorStakeAmount(client, args) {
|
|
2503
2503
|
const tx = new TransactionBlock();
|
|
2504
2504
|
builder.validatorStakeAmount(tx, args);
|
|
2505
|
-
const
|
|
2505
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2506
2506
|
transactionBlock: tx,
|
|
2507
2507
|
sender: ZERO_ADDRESS,
|
|
2508
2508
|
});
|
|
2509
|
-
return
|
|
2509
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2510
2510
|
}
|
|
2511
2511
|
view.validatorStakeAmount = validatorStakeAmount;
|
|
2512
2512
|
async function validatorStakingPoolId(client, args) {
|
|
2513
2513
|
const tx = new TransactionBlock();
|
|
2514
2514
|
builder.validatorStakingPoolId(tx, args);
|
|
2515
|
-
const
|
|
2515
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2516
2516
|
transactionBlock: tx,
|
|
2517
2517
|
sender: ZERO_ADDRESS,
|
|
2518
2518
|
});
|
|
2519
|
-
return
|
|
2519
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2520
2520
|
}
|
|
2521
2521
|
view.validatorStakingPoolId = validatorStakingPoolId;
|
|
2522
2522
|
async function validatorTotalStakeAmount(client, args) {
|
|
2523
2523
|
const tx = new TransactionBlock();
|
|
2524
2524
|
builder.validatorTotalStakeAmount(tx, args);
|
|
2525
|
-
const
|
|
2525
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2526
2526
|
transactionBlock: tx,
|
|
2527
2527
|
sender: ZERO_ADDRESS,
|
|
2528
2528
|
});
|
|
2529
|
-
return
|
|
2529
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2530
2530
|
}
|
|
2531
2531
|
view.validatorTotalStakeAmount = validatorTotalStakeAmount;
|
|
2532
2532
|
})(view = validator_set.view || (validator_set.view = {}));
|
|
@@ -2589,21 +2589,21 @@ export var voting_power;
|
|
|
2589
2589
|
async function quorumThreshold(client, args) {
|
|
2590
2590
|
const tx = new TransactionBlock();
|
|
2591
2591
|
builder.quorumThreshold(tx, args);
|
|
2592
|
-
const
|
|
2592
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2593
2593
|
transactionBlock: tx,
|
|
2594
2594
|
sender: ZERO_ADDRESS,
|
|
2595
2595
|
});
|
|
2596
|
-
return
|
|
2596
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2597
2597
|
}
|
|
2598
2598
|
view.quorumThreshold = quorumThreshold;
|
|
2599
2599
|
async function totalVotingPower(client, args) {
|
|
2600
2600
|
const tx = new TransactionBlock();
|
|
2601
2601
|
builder.totalVotingPower(tx, args);
|
|
2602
|
-
const
|
|
2602
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2603
2603
|
transactionBlock: tx,
|
|
2604
2604
|
sender: ZERO_ADDRESS,
|
|
2605
2605
|
});
|
|
2606
|
-
return
|
|
2606
|
+
return (await getMoveCoder(client)).decodeDevInspectResult(insepctRes);
|
|
2607
2607
|
}
|
|
2608
2608
|
view.totalVotingPower = totalVotingPower;
|
|
2609
2609
|
})(view = voting_power.view || (voting_power.view = {}));
|