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