@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/src/builtin/0x3.ts
CHANGED
|
@@ -9,7 +9,11 @@ import { MoveCoder, TypedEventInstance } from "@typemove/sui";
|
|
|
9
9
|
|
|
10
10
|
import { defaultMoveCoder } from "@typemove/sui";
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
ZERO_ADDRESS,
|
|
14
|
+
TypedDevInspectResults,
|
|
15
|
+
getMoveCoder,
|
|
16
|
+
} from "@typemove/sui";
|
|
13
17
|
import { TransactionBlock } from "@mysten/sui.js/transactions";
|
|
14
18
|
import { ObjectCallArg, TransactionArgument } from "@mysten/sui.js";
|
|
15
19
|
import { SuiClient } from "@mysten/sui.js/client";
|
|
@@ -167,14 +171,17 @@ export namespace stake_subsidy {
|
|
|
167
171
|
export async function currentEpochSubsidyAmount(
|
|
168
172
|
client: SuiClient,
|
|
169
173
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
170
|
-
) {
|
|
174
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
171
175
|
const tx = new TransactionBlock();
|
|
172
176
|
builder.currentEpochSubsidyAmount(tx, args);
|
|
173
|
-
const
|
|
177
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
174
178
|
transactionBlock: tx,
|
|
175
179
|
sender: ZERO_ADDRESS,
|
|
176
180
|
});
|
|
177
|
-
|
|
181
|
+
|
|
182
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
183
|
+
insepctRes,
|
|
184
|
+
);
|
|
178
185
|
}
|
|
179
186
|
}
|
|
180
187
|
}
|
|
@@ -485,38 +492,47 @@ export namespace staking_pool {
|
|
|
485
492
|
string | ObjectCallArg | TransactionArgument,
|
|
486
493
|
string | ObjectCallArg | TransactionArgument,
|
|
487
494
|
],
|
|
488
|
-
) {
|
|
495
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
489
496
|
const tx = new TransactionBlock();
|
|
490
497
|
builder.isEqualStakingMetadata(tx, args);
|
|
491
|
-
const
|
|
498
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
492
499
|
transactionBlock: tx,
|
|
493
500
|
sender: ZERO_ADDRESS,
|
|
494
501
|
});
|
|
495
|
-
|
|
502
|
+
|
|
503
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
504
|
+
insepctRes,
|
|
505
|
+
);
|
|
496
506
|
}
|
|
497
507
|
export async function isInactive(
|
|
498
508
|
client: SuiClient,
|
|
499
509
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
500
|
-
) {
|
|
510
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
501
511
|
const tx = new TransactionBlock();
|
|
502
512
|
builder.isInactive(tx, args);
|
|
503
|
-
const
|
|
513
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
504
514
|
transactionBlock: tx,
|
|
505
515
|
sender: ZERO_ADDRESS,
|
|
506
516
|
});
|
|
507
|
-
|
|
517
|
+
|
|
518
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
519
|
+
insepctRes,
|
|
520
|
+
);
|
|
508
521
|
}
|
|
509
522
|
export async function isPreactive(
|
|
510
523
|
client: SuiClient,
|
|
511
524
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
512
|
-
) {
|
|
525
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
513
526
|
const tx = new TransactionBlock();
|
|
514
527
|
builder.isPreactive(tx, args);
|
|
515
|
-
const
|
|
528
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
516
529
|
transactionBlock: tx,
|
|
517
530
|
sender: ZERO_ADDRESS,
|
|
518
531
|
});
|
|
519
|
-
|
|
532
|
+
|
|
533
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
534
|
+
insepctRes,
|
|
535
|
+
);
|
|
520
536
|
}
|
|
521
537
|
export async function joinStakedSui(
|
|
522
538
|
client: SuiClient,
|
|
@@ -524,51 +540,63 @@ export namespace staking_pool {
|
|
|
524
540
|
string | ObjectCallArg | TransactionArgument,
|
|
525
541
|
staking_pool.StakedSui | TransactionArgument,
|
|
526
542
|
],
|
|
527
|
-
) {
|
|
543
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
528
544
|
const tx = new TransactionBlock();
|
|
529
545
|
builder.joinStakedSui(tx, args);
|
|
530
|
-
const
|
|
546
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
531
547
|
transactionBlock: tx,
|
|
532
548
|
sender: ZERO_ADDRESS,
|
|
533
549
|
});
|
|
534
|
-
|
|
550
|
+
|
|
551
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
552
|
+
insepctRes,
|
|
553
|
+
);
|
|
535
554
|
}
|
|
536
555
|
|
|
537
556
|
export async function pendingStakeAmount(
|
|
538
557
|
client: SuiClient,
|
|
539
558
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
540
|
-
) {
|
|
559
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
541
560
|
const tx = new TransactionBlock();
|
|
542
561
|
builder.pendingStakeAmount(tx, args);
|
|
543
|
-
const
|
|
562
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
544
563
|
transactionBlock: tx,
|
|
545
564
|
sender: ZERO_ADDRESS,
|
|
546
565
|
});
|
|
547
|
-
|
|
566
|
+
|
|
567
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
568
|
+
insepctRes,
|
|
569
|
+
);
|
|
548
570
|
}
|
|
549
571
|
export async function pendingStakeWithdrawAmount(
|
|
550
572
|
client: SuiClient,
|
|
551
573
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
552
|
-
) {
|
|
574
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
553
575
|
const tx = new TransactionBlock();
|
|
554
576
|
builder.pendingStakeWithdrawAmount(tx, args);
|
|
555
|
-
const
|
|
577
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
556
578
|
transactionBlock: tx,
|
|
557
579
|
sender: ZERO_ADDRESS,
|
|
558
580
|
});
|
|
559
|
-
|
|
581
|
+
|
|
582
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
583
|
+
insepctRes,
|
|
584
|
+
);
|
|
560
585
|
}
|
|
561
586
|
export async function poolId(
|
|
562
587
|
client: SuiClient,
|
|
563
588
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
564
|
-
) {
|
|
589
|
+
): Promise<TypedDevInspectResults<[_0x2.object_.ID]>> {
|
|
565
590
|
const tx = new TransactionBlock();
|
|
566
591
|
builder.poolId(tx, args);
|
|
567
|
-
const
|
|
592
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
568
593
|
transactionBlock: tx,
|
|
569
594
|
sender: ZERO_ADDRESS,
|
|
570
595
|
});
|
|
571
|
-
|
|
596
|
+
|
|
597
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
598
|
+
[_0x2.object_.ID]
|
|
599
|
+
>(insepctRes);
|
|
572
600
|
}
|
|
573
601
|
export async function poolTokenExchangeRateAtEpoch(
|
|
574
602
|
client: SuiClient,
|
|
@@ -576,14 +604,17 @@ export namespace staking_pool {
|
|
|
576
604
|
string | ObjectCallArg | TransactionArgument,
|
|
577
605
|
bigint | TransactionArgument,
|
|
578
606
|
],
|
|
579
|
-
) {
|
|
607
|
+
): Promise<TypedDevInspectResults<[staking_pool.PoolTokenExchangeRate]>> {
|
|
580
608
|
const tx = new TransactionBlock();
|
|
581
609
|
builder.poolTokenExchangeRateAtEpoch(tx, args);
|
|
582
|
-
const
|
|
610
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
583
611
|
transactionBlock: tx,
|
|
584
612
|
sender: ZERO_ADDRESS,
|
|
585
613
|
});
|
|
586
|
-
|
|
614
|
+
|
|
615
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
616
|
+
[staking_pool.PoolTokenExchangeRate]
|
|
617
|
+
>(insepctRes);
|
|
587
618
|
}
|
|
588
619
|
|
|
589
620
|
export async function split(
|
|
@@ -593,14 +624,17 @@ export namespace staking_pool {
|
|
|
593
624
|
bigint | TransactionArgument,
|
|
594
625
|
string | ObjectCallArg | TransactionArgument,
|
|
595
626
|
],
|
|
596
|
-
) {
|
|
627
|
+
): Promise<TypedDevInspectResults<[staking_pool.StakedSui]>> {
|
|
597
628
|
const tx = new TransactionBlock();
|
|
598
629
|
builder.split(tx, args);
|
|
599
|
-
const
|
|
630
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
600
631
|
transactionBlock: tx,
|
|
601
632
|
sender: ZERO_ADDRESS,
|
|
602
633
|
});
|
|
603
|
-
|
|
634
|
+
|
|
635
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
636
|
+
[staking_pool.StakedSui]
|
|
637
|
+
>(insepctRes);
|
|
604
638
|
}
|
|
605
639
|
export async function splitStakedSui(
|
|
606
640
|
client: SuiClient,
|
|
@@ -609,50 +643,62 @@ export namespace staking_pool {
|
|
|
609
643
|
bigint | TransactionArgument,
|
|
610
644
|
string | ObjectCallArg | TransactionArgument,
|
|
611
645
|
],
|
|
612
|
-
) {
|
|
646
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
613
647
|
const tx = new TransactionBlock();
|
|
614
648
|
builder.splitStakedSui(tx, args);
|
|
615
|
-
const
|
|
649
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
616
650
|
transactionBlock: tx,
|
|
617
651
|
sender: ZERO_ADDRESS,
|
|
618
652
|
});
|
|
619
|
-
|
|
653
|
+
|
|
654
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
655
|
+
insepctRes,
|
|
656
|
+
);
|
|
620
657
|
}
|
|
621
658
|
export async function stakeActivationEpoch(
|
|
622
659
|
client: SuiClient,
|
|
623
660
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
624
|
-
) {
|
|
661
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
625
662
|
const tx = new TransactionBlock();
|
|
626
663
|
builder.stakeActivationEpoch(tx, args);
|
|
627
|
-
const
|
|
664
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
628
665
|
transactionBlock: tx,
|
|
629
666
|
sender: ZERO_ADDRESS,
|
|
630
667
|
});
|
|
631
|
-
|
|
668
|
+
|
|
669
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
670
|
+
insepctRes,
|
|
671
|
+
);
|
|
632
672
|
}
|
|
633
673
|
export async function stakedSuiAmount(
|
|
634
674
|
client: SuiClient,
|
|
635
675
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
636
|
-
) {
|
|
676
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
637
677
|
const tx = new TransactionBlock();
|
|
638
678
|
builder.stakedSuiAmount(tx, args);
|
|
639
|
-
const
|
|
679
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
640
680
|
transactionBlock: tx,
|
|
641
681
|
sender: ZERO_ADDRESS,
|
|
642
682
|
});
|
|
643
|
-
|
|
683
|
+
|
|
684
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
685
|
+
insepctRes,
|
|
686
|
+
);
|
|
644
687
|
}
|
|
645
688
|
export async function suiBalance(
|
|
646
689
|
client: SuiClient,
|
|
647
690
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
648
|
-
) {
|
|
691
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
649
692
|
const tx = new TransactionBlock();
|
|
650
693
|
builder.suiBalance(tx, args);
|
|
651
|
-
const
|
|
694
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
652
695
|
transactionBlock: tx,
|
|
653
696
|
sender: ZERO_ADDRESS,
|
|
654
697
|
});
|
|
655
|
-
|
|
698
|
+
|
|
699
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
700
|
+
insepctRes,
|
|
701
|
+
);
|
|
656
702
|
}
|
|
657
703
|
}
|
|
658
704
|
}
|
|
@@ -709,26 +755,32 @@ export namespace storage_fund {
|
|
|
709
755
|
export async function totalBalance(
|
|
710
756
|
client: SuiClient,
|
|
711
757
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
712
|
-
) {
|
|
758
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
713
759
|
const tx = new TransactionBlock();
|
|
714
760
|
builder.totalBalance(tx, args);
|
|
715
|
-
const
|
|
761
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
716
762
|
transactionBlock: tx,
|
|
717
763
|
sender: ZERO_ADDRESS,
|
|
718
764
|
});
|
|
719
|
-
|
|
765
|
+
|
|
766
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
767
|
+
insepctRes,
|
|
768
|
+
);
|
|
720
769
|
}
|
|
721
770
|
export async function totalObjectStorageRebates(
|
|
722
771
|
client: SuiClient,
|
|
723
772
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
724
|
-
) {
|
|
773
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
725
774
|
const tx = new TransactionBlock();
|
|
726
775
|
builder.totalObjectStorageRebates(tx, args);
|
|
727
|
-
const
|
|
776
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
728
777
|
transactionBlock: tx,
|
|
729
778
|
sender: ZERO_ADDRESS,
|
|
730
779
|
});
|
|
731
|
-
|
|
780
|
+
|
|
781
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
782
|
+
insepctRes,
|
|
783
|
+
);
|
|
732
784
|
}
|
|
733
785
|
}
|
|
734
786
|
}
|
|
@@ -1824,14 +1876,17 @@ export namespace sui_system {
|
|
|
1824
1876
|
string | ObjectCallArg | TransactionArgument,
|
|
1825
1877
|
string | TransactionArgument,
|
|
1826
1878
|
],
|
|
1827
|
-
) {
|
|
1879
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
1828
1880
|
const tx = new TransactionBlock();
|
|
1829
1881
|
builder.reportValidator(tx, args);
|
|
1830
|
-
const
|
|
1882
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1831
1883
|
transactionBlock: tx,
|
|
1832
1884
|
sender: ZERO_ADDRESS,
|
|
1833
1885
|
});
|
|
1834
|
-
|
|
1886
|
+
|
|
1887
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1888
|
+
insepctRes,
|
|
1889
|
+
);
|
|
1835
1890
|
}
|
|
1836
1891
|
export async function requestAddStake(
|
|
1837
1892
|
client: SuiClient,
|
|
@@ -1841,14 +1896,17 @@ export namespace sui_system {
|
|
|
1841
1896
|
string | TransactionArgument,
|
|
1842
1897
|
string | ObjectCallArg | TransactionArgument,
|
|
1843
1898
|
],
|
|
1844
|
-
) {
|
|
1899
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
1845
1900
|
const tx = new TransactionBlock();
|
|
1846
1901
|
builder.requestAddStake(tx, args);
|
|
1847
|
-
const
|
|
1902
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1848
1903
|
transactionBlock: tx,
|
|
1849
1904
|
sender: ZERO_ADDRESS,
|
|
1850
1905
|
});
|
|
1851
|
-
|
|
1906
|
+
|
|
1907
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1908
|
+
insepctRes,
|
|
1909
|
+
);
|
|
1852
1910
|
}
|
|
1853
1911
|
export async function requestAddStakeMulCoin(
|
|
1854
1912
|
client: SuiClient,
|
|
@@ -1859,14 +1917,17 @@ export namespace sui_system {
|
|
|
1859
1917
|
string | TransactionArgument,
|
|
1860
1918
|
string | ObjectCallArg | TransactionArgument,
|
|
1861
1919
|
],
|
|
1862
|
-
) {
|
|
1920
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
1863
1921
|
const tx = new TransactionBlock();
|
|
1864
1922
|
builder.requestAddStakeMulCoin(tx, args);
|
|
1865
|
-
const
|
|
1923
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1866
1924
|
transactionBlock: tx,
|
|
1867
1925
|
sender: ZERO_ADDRESS,
|
|
1868
1926
|
});
|
|
1869
|
-
|
|
1927
|
+
|
|
1928
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1929
|
+
insepctRes,
|
|
1930
|
+
);
|
|
1870
1931
|
}
|
|
1871
1932
|
export async function requestAddValidator(
|
|
1872
1933
|
client: SuiClient,
|
|
@@ -1874,14 +1935,17 @@ export namespace sui_system {
|
|
|
1874
1935
|
string | ObjectCallArg | TransactionArgument,
|
|
1875
1936
|
string | ObjectCallArg | TransactionArgument,
|
|
1876
1937
|
],
|
|
1877
|
-
) {
|
|
1938
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
1878
1939
|
const tx = new TransactionBlock();
|
|
1879
1940
|
builder.requestAddValidator(tx, args);
|
|
1880
|
-
const
|
|
1941
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1881
1942
|
transactionBlock: tx,
|
|
1882
1943
|
sender: ZERO_ADDRESS,
|
|
1883
1944
|
});
|
|
1884
|
-
|
|
1945
|
+
|
|
1946
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1947
|
+
insepctRes,
|
|
1948
|
+
);
|
|
1885
1949
|
}
|
|
1886
1950
|
export async function requestAddValidatorCandidate(
|
|
1887
1951
|
client: SuiClient,
|
|
@@ -1903,14 +1967,17 @@ export namespace sui_system {
|
|
|
1903
1967
|
bigint | TransactionArgument,
|
|
1904
1968
|
string | ObjectCallArg | TransactionArgument,
|
|
1905
1969
|
],
|
|
1906
|
-
) {
|
|
1970
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
1907
1971
|
const tx = new TransactionBlock();
|
|
1908
1972
|
builder.requestAddValidatorCandidate(tx, args);
|
|
1909
|
-
const
|
|
1973
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1910
1974
|
transactionBlock: tx,
|
|
1911
1975
|
sender: ZERO_ADDRESS,
|
|
1912
1976
|
});
|
|
1913
|
-
|
|
1977
|
+
|
|
1978
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1979
|
+
insepctRes,
|
|
1980
|
+
);
|
|
1914
1981
|
}
|
|
1915
1982
|
export async function requestRemoveValidator(
|
|
1916
1983
|
client: SuiClient,
|
|
@@ -1918,14 +1985,17 @@ export namespace sui_system {
|
|
|
1918
1985
|
string | ObjectCallArg | TransactionArgument,
|
|
1919
1986
|
string | ObjectCallArg | TransactionArgument,
|
|
1920
1987
|
],
|
|
1921
|
-
) {
|
|
1988
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
1922
1989
|
const tx = new TransactionBlock();
|
|
1923
1990
|
builder.requestRemoveValidator(tx, args);
|
|
1924
|
-
const
|
|
1991
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1925
1992
|
transactionBlock: tx,
|
|
1926
1993
|
sender: ZERO_ADDRESS,
|
|
1927
1994
|
});
|
|
1928
|
-
|
|
1995
|
+
|
|
1996
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1997
|
+
insepctRes,
|
|
1998
|
+
);
|
|
1929
1999
|
}
|
|
1930
2000
|
export async function requestRemoveValidatorCandidate(
|
|
1931
2001
|
client: SuiClient,
|
|
@@ -1933,14 +2003,17 @@ export namespace sui_system {
|
|
|
1933
2003
|
string | ObjectCallArg | TransactionArgument,
|
|
1934
2004
|
string | ObjectCallArg | TransactionArgument,
|
|
1935
2005
|
],
|
|
1936
|
-
) {
|
|
2006
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
1937
2007
|
const tx = new TransactionBlock();
|
|
1938
2008
|
builder.requestRemoveValidatorCandidate(tx, args);
|
|
1939
|
-
const
|
|
2009
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1940
2010
|
transactionBlock: tx,
|
|
1941
2011
|
sender: ZERO_ADDRESS,
|
|
1942
2012
|
});
|
|
1943
|
-
|
|
2013
|
+
|
|
2014
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2015
|
+
insepctRes,
|
|
2016
|
+
);
|
|
1944
2017
|
}
|
|
1945
2018
|
export async function requestSetCommissionRate(
|
|
1946
2019
|
client: SuiClient,
|
|
@@ -1949,14 +2022,17 @@ export namespace sui_system {
|
|
|
1949
2022
|
bigint | TransactionArgument,
|
|
1950
2023
|
string | ObjectCallArg | TransactionArgument,
|
|
1951
2024
|
],
|
|
1952
|
-
) {
|
|
2025
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
1953
2026
|
const tx = new TransactionBlock();
|
|
1954
2027
|
builder.requestSetCommissionRate(tx, args);
|
|
1955
|
-
const
|
|
2028
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1956
2029
|
transactionBlock: tx,
|
|
1957
2030
|
sender: ZERO_ADDRESS,
|
|
1958
2031
|
});
|
|
1959
|
-
|
|
2032
|
+
|
|
2033
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2034
|
+
insepctRes,
|
|
2035
|
+
);
|
|
1960
2036
|
}
|
|
1961
2037
|
export async function requestSetGasPrice(
|
|
1962
2038
|
client: SuiClient,
|
|
@@ -1965,14 +2041,17 @@ export namespace sui_system {
|
|
|
1965
2041
|
string | ObjectCallArg | TransactionArgument,
|
|
1966
2042
|
bigint | TransactionArgument,
|
|
1967
2043
|
],
|
|
1968
|
-
) {
|
|
2044
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
1969
2045
|
const tx = new TransactionBlock();
|
|
1970
2046
|
builder.requestSetGasPrice(tx, args);
|
|
1971
|
-
const
|
|
2047
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1972
2048
|
transactionBlock: tx,
|
|
1973
2049
|
sender: ZERO_ADDRESS,
|
|
1974
2050
|
});
|
|
1975
|
-
|
|
2051
|
+
|
|
2052
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2053
|
+
insepctRes,
|
|
2054
|
+
);
|
|
1976
2055
|
}
|
|
1977
2056
|
export async function requestWithdrawStake(
|
|
1978
2057
|
client: SuiClient,
|
|
@@ -1981,14 +2060,17 @@ export namespace sui_system {
|
|
|
1981
2060
|
staking_pool.StakedSui | TransactionArgument,
|
|
1982
2061
|
string | ObjectCallArg | TransactionArgument,
|
|
1983
2062
|
],
|
|
1984
|
-
) {
|
|
2063
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
1985
2064
|
const tx = new TransactionBlock();
|
|
1986
2065
|
builder.requestWithdrawStake(tx, args);
|
|
1987
|
-
const
|
|
2066
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
1988
2067
|
transactionBlock: tx,
|
|
1989
2068
|
sender: ZERO_ADDRESS,
|
|
1990
2069
|
});
|
|
1991
|
-
|
|
2070
|
+
|
|
2071
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2072
|
+
insepctRes,
|
|
2073
|
+
);
|
|
1992
2074
|
}
|
|
1993
2075
|
export async function rotateOperationCap(
|
|
1994
2076
|
client: SuiClient,
|
|
@@ -1996,14 +2078,17 @@ export namespace sui_system {
|
|
|
1996
2078
|
string | ObjectCallArg | TransactionArgument,
|
|
1997
2079
|
string | ObjectCallArg | TransactionArgument,
|
|
1998
2080
|
],
|
|
1999
|
-
) {
|
|
2081
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2000
2082
|
const tx = new TransactionBlock();
|
|
2001
2083
|
builder.rotateOperationCap(tx, args);
|
|
2002
|
-
const
|
|
2084
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2003
2085
|
transactionBlock: tx,
|
|
2004
2086
|
sender: ZERO_ADDRESS,
|
|
2005
2087
|
});
|
|
2006
|
-
|
|
2088
|
+
|
|
2089
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2090
|
+
insepctRes,
|
|
2091
|
+
);
|
|
2007
2092
|
}
|
|
2008
2093
|
export async function setCandidateValidatorCommissionRate(
|
|
2009
2094
|
client: SuiClient,
|
|
@@ -2012,14 +2097,17 @@ export namespace sui_system {
|
|
|
2012
2097
|
bigint | TransactionArgument,
|
|
2013
2098
|
string | ObjectCallArg | TransactionArgument,
|
|
2014
2099
|
],
|
|
2015
|
-
) {
|
|
2100
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2016
2101
|
const tx = new TransactionBlock();
|
|
2017
2102
|
builder.setCandidateValidatorCommissionRate(tx, args);
|
|
2018
|
-
const
|
|
2103
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2019
2104
|
transactionBlock: tx,
|
|
2020
2105
|
sender: ZERO_ADDRESS,
|
|
2021
2106
|
});
|
|
2022
|
-
|
|
2107
|
+
|
|
2108
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2109
|
+
insepctRes,
|
|
2110
|
+
);
|
|
2023
2111
|
}
|
|
2024
2112
|
export async function setCandidateValidatorGasPrice(
|
|
2025
2113
|
client: SuiClient,
|
|
@@ -2028,14 +2116,17 @@ export namespace sui_system {
|
|
|
2028
2116
|
string | ObjectCallArg | TransactionArgument,
|
|
2029
2117
|
bigint | TransactionArgument,
|
|
2030
2118
|
],
|
|
2031
|
-
) {
|
|
2119
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2032
2120
|
const tx = new TransactionBlock();
|
|
2033
2121
|
builder.setCandidateValidatorGasPrice(tx, args);
|
|
2034
|
-
const
|
|
2122
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2035
2123
|
transactionBlock: tx,
|
|
2036
2124
|
sender: ZERO_ADDRESS,
|
|
2037
2125
|
});
|
|
2038
|
-
|
|
2126
|
+
|
|
2127
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2128
|
+
insepctRes,
|
|
2129
|
+
);
|
|
2039
2130
|
}
|
|
2040
2131
|
export async function undoReportValidator(
|
|
2041
2132
|
client: SuiClient,
|
|
@@ -2044,14 +2135,17 @@ export namespace sui_system {
|
|
|
2044
2135
|
string | ObjectCallArg | TransactionArgument,
|
|
2045
2136
|
string | TransactionArgument,
|
|
2046
2137
|
],
|
|
2047
|
-
) {
|
|
2138
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2048
2139
|
const tx = new TransactionBlock();
|
|
2049
2140
|
builder.undoReportValidator(tx, args);
|
|
2050
|
-
const
|
|
2141
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2051
2142
|
transactionBlock: tx,
|
|
2052
2143
|
sender: ZERO_ADDRESS,
|
|
2053
2144
|
});
|
|
2054
|
-
|
|
2145
|
+
|
|
2146
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2147
|
+
insepctRes,
|
|
2148
|
+
);
|
|
2055
2149
|
}
|
|
2056
2150
|
export async function updateCandidateValidatorNetworkAddress(
|
|
2057
2151
|
client: SuiClient,
|
|
@@ -2060,14 +2154,17 @@ export namespace sui_system {
|
|
|
2060
2154
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2061
2155
|
string | ObjectCallArg | TransactionArgument,
|
|
2062
2156
|
],
|
|
2063
|
-
) {
|
|
2157
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2064
2158
|
const tx = new TransactionBlock();
|
|
2065
2159
|
builder.updateCandidateValidatorNetworkAddress(tx, args);
|
|
2066
|
-
const
|
|
2160
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2067
2161
|
transactionBlock: tx,
|
|
2068
2162
|
sender: ZERO_ADDRESS,
|
|
2069
2163
|
});
|
|
2070
|
-
|
|
2164
|
+
|
|
2165
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2166
|
+
insepctRes,
|
|
2167
|
+
);
|
|
2071
2168
|
}
|
|
2072
2169
|
export async function updateCandidateValidatorNetworkPubkey(
|
|
2073
2170
|
client: SuiClient,
|
|
@@ -2076,14 +2173,17 @@ export namespace sui_system {
|
|
|
2076
2173
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2077
2174
|
string | ObjectCallArg | TransactionArgument,
|
|
2078
2175
|
],
|
|
2079
|
-
) {
|
|
2176
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2080
2177
|
const tx = new TransactionBlock();
|
|
2081
2178
|
builder.updateCandidateValidatorNetworkPubkey(tx, args);
|
|
2082
|
-
const
|
|
2179
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2083
2180
|
transactionBlock: tx,
|
|
2084
2181
|
sender: ZERO_ADDRESS,
|
|
2085
2182
|
});
|
|
2086
|
-
|
|
2183
|
+
|
|
2184
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2185
|
+
insepctRes,
|
|
2186
|
+
);
|
|
2087
2187
|
}
|
|
2088
2188
|
export async function updateCandidateValidatorP2pAddress(
|
|
2089
2189
|
client: SuiClient,
|
|
@@ -2092,14 +2192,17 @@ export namespace sui_system {
|
|
|
2092
2192
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2093
2193
|
string | ObjectCallArg | TransactionArgument,
|
|
2094
2194
|
],
|
|
2095
|
-
) {
|
|
2195
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2096
2196
|
const tx = new TransactionBlock();
|
|
2097
2197
|
builder.updateCandidateValidatorP2pAddress(tx, args);
|
|
2098
|
-
const
|
|
2198
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2099
2199
|
transactionBlock: tx,
|
|
2100
2200
|
sender: ZERO_ADDRESS,
|
|
2101
2201
|
});
|
|
2102
|
-
|
|
2202
|
+
|
|
2203
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2204
|
+
insepctRes,
|
|
2205
|
+
);
|
|
2103
2206
|
}
|
|
2104
2207
|
export async function updateCandidateValidatorPrimaryAddress(
|
|
2105
2208
|
client: SuiClient,
|
|
@@ -2108,14 +2211,17 @@ export namespace sui_system {
|
|
|
2108
2211
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2109
2212
|
string | ObjectCallArg | TransactionArgument,
|
|
2110
2213
|
],
|
|
2111
|
-
) {
|
|
2214
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2112
2215
|
const tx = new TransactionBlock();
|
|
2113
2216
|
builder.updateCandidateValidatorPrimaryAddress(tx, args);
|
|
2114
|
-
const
|
|
2217
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2115
2218
|
transactionBlock: tx,
|
|
2116
2219
|
sender: ZERO_ADDRESS,
|
|
2117
2220
|
});
|
|
2118
|
-
|
|
2221
|
+
|
|
2222
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2223
|
+
insepctRes,
|
|
2224
|
+
);
|
|
2119
2225
|
}
|
|
2120
2226
|
export async function updateCandidateValidatorProtocolPubkey(
|
|
2121
2227
|
client: SuiClient,
|
|
@@ -2125,14 +2231,17 @@ export namespace sui_system {
|
|
|
2125
2231
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2126
2232
|
string | ObjectCallArg | TransactionArgument,
|
|
2127
2233
|
],
|
|
2128
|
-
) {
|
|
2234
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2129
2235
|
const tx = new TransactionBlock();
|
|
2130
2236
|
builder.updateCandidateValidatorProtocolPubkey(tx, args);
|
|
2131
|
-
const
|
|
2237
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2132
2238
|
transactionBlock: tx,
|
|
2133
2239
|
sender: ZERO_ADDRESS,
|
|
2134
2240
|
});
|
|
2135
|
-
|
|
2241
|
+
|
|
2242
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2243
|
+
insepctRes,
|
|
2244
|
+
);
|
|
2136
2245
|
}
|
|
2137
2246
|
export async function updateCandidateValidatorWorkerAddress(
|
|
2138
2247
|
client: SuiClient,
|
|
@@ -2141,14 +2250,17 @@ export namespace sui_system {
|
|
|
2141
2250
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2142
2251
|
string | ObjectCallArg | TransactionArgument,
|
|
2143
2252
|
],
|
|
2144
|
-
) {
|
|
2253
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2145
2254
|
const tx = new TransactionBlock();
|
|
2146
2255
|
builder.updateCandidateValidatorWorkerAddress(tx, args);
|
|
2147
|
-
const
|
|
2256
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2148
2257
|
transactionBlock: tx,
|
|
2149
2258
|
sender: ZERO_ADDRESS,
|
|
2150
2259
|
});
|
|
2151
|
-
|
|
2260
|
+
|
|
2261
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2262
|
+
insepctRes,
|
|
2263
|
+
);
|
|
2152
2264
|
}
|
|
2153
2265
|
export async function updateCandidateValidatorWorkerPubkey(
|
|
2154
2266
|
client: SuiClient,
|
|
@@ -2157,14 +2269,17 @@ export namespace sui_system {
|
|
|
2157
2269
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2158
2270
|
string | ObjectCallArg | TransactionArgument,
|
|
2159
2271
|
],
|
|
2160
|
-
) {
|
|
2272
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2161
2273
|
const tx = new TransactionBlock();
|
|
2162
2274
|
builder.updateCandidateValidatorWorkerPubkey(tx, args);
|
|
2163
|
-
const
|
|
2275
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2164
2276
|
transactionBlock: tx,
|
|
2165
2277
|
sender: ZERO_ADDRESS,
|
|
2166
2278
|
});
|
|
2167
|
-
|
|
2279
|
+
|
|
2280
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2281
|
+
insepctRes,
|
|
2282
|
+
);
|
|
2168
2283
|
}
|
|
2169
2284
|
export async function updateValidatorDescription(
|
|
2170
2285
|
client: SuiClient,
|
|
@@ -2173,14 +2288,17 @@ export namespace sui_system {
|
|
|
2173
2288
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2174
2289
|
string | ObjectCallArg | TransactionArgument,
|
|
2175
2290
|
],
|
|
2176
|
-
) {
|
|
2291
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2177
2292
|
const tx = new TransactionBlock();
|
|
2178
2293
|
builder.updateValidatorDescription(tx, args);
|
|
2179
|
-
const
|
|
2294
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2180
2295
|
transactionBlock: tx,
|
|
2181
2296
|
sender: ZERO_ADDRESS,
|
|
2182
2297
|
});
|
|
2183
|
-
|
|
2298
|
+
|
|
2299
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2300
|
+
insepctRes,
|
|
2301
|
+
);
|
|
2184
2302
|
}
|
|
2185
2303
|
export async function updateValidatorImageUrl(
|
|
2186
2304
|
client: SuiClient,
|
|
@@ -2189,14 +2307,17 @@ export namespace sui_system {
|
|
|
2189
2307
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2190
2308
|
string | ObjectCallArg | TransactionArgument,
|
|
2191
2309
|
],
|
|
2192
|
-
) {
|
|
2310
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2193
2311
|
const tx = new TransactionBlock();
|
|
2194
2312
|
builder.updateValidatorImageUrl(tx, args);
|
|
2195
|
-
const
|
|
2313
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2196
2314
|
transactionBlock: tx,
|
|
2197
2315
|
sender: ZERO_ADDRESS,
|
|
2198
2316
|
});
|
|
2199
|
-
|
|
2317
|
+
|
|
2318
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2319
|
+
insepctRes,
|
|
2320
|
+
);
|
|
2200
2321
|
}
|
|
2201
2322
|
export async function updateValidatorName(
|
|
2202
2323
|
client: SuiClient,
|
|
@@ -2205,14 +2326,17 @@ export namespace sui_system {
|
|
|
2205
2326
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2206
2327
|
string | ObjectCallArg | TransactionArgument,
|
|
2207
2328
|
],
|
|
2208
|
-
) {
|
|
2329
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2209
2330
|
const tx = new TransactionBlock();
|
|
2210
2331
|
builder.updateValidatorName(tx, args);
|
|
2211
|
-
const
|
|
2332
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2212
2333
|
transactionBlock: tx,
|
|
2213
2334
|
sender: ZERO_ADDRESS,
|
|
2214
2335
|
});
|
|
2215
|
-
|
|
2336
|
+
|
|
2337
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2338
|
+
insepctRes,
|
|
2339
|
+
);
|
|
2216
2340
|
}
|
|
2217
2341
|
export async function updateValidatorNextEpochNetworkAddress(
|
|
2218
2342
|
client: SuiClient,
|
|
@@ -2221,14 +2345,17 @@ export namespace sui_system {
|
|
|
2221
2345
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2222
2346
|
string | ObjectCallArg | TransactionArgument,
|
|
2223
2347
|
],
|
|
2224
|
-
) {
|
|
2348
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2225
2349
|
const tx = new TransactionBlock();
|
|
2226
2350
|
builder.updateValidatorNextEpochNetworkAddress(tx, args);
|
|
2227
|
-
const
|
|
2351
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2228
2352
|
transactionBlock: tx,
|
|
2229
2353
|
sender: ZERO_ADDRESS,
|
|
2230
2354
|
});
|
|
2231
|
-
|
|
2355
|
+
|
|
2356
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2357
|
+
insepctRes,
|
|
2358
|
+
);
|
|
2232
2359
|
}
|
|
2233
2360
|
export async function updateValidatorNextEpochNetworkPubkey(
|
|
2234
2361
|
client: SuiClient,
|
|
@@ -2237,14 +2364,17 @@ export namespace sui_system {
|
|
|
2237
2364
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2238
2365
|
string | ObjectCallArg | TransactionArgument,
|
|
2239
2366
|
],
|
|
2240
|
-
) {
|
|
2367
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2241
2368
|
const tx = new TransactionBlock();
|
|
2242
2369
|
builder.updateValidatorNextEpochNetworkPubkey(tx, args);
|
|
2243
|
-
const
|
|
2370
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2244
2371
|
transactionBlock: tx,
|
|
2245
2372
|
sender: ZERO_ADDRESS,
|
|
2246
2373
|
});
|
|
2247
|
-
|
|
2374
|
+
|
|
2375
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2376
|
+
insepctRes,
|
|
2377
|
+
);
|
|
2248
2378
|
}
|
|
2249
2379
|
export async function updateValidatorNextEpochP2pAddress(
|
|
2250
2380
|
client: SuiClient,
|
|
@@ -2253,14 +2383,17 @@ export namespace sui_system {
|
|
|
2253
2383
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2254
2384
|
string | ObjectCallArg | TransactionArgument,
|
|
2255
2385
|
],
|
|
2256
|
-
) {
|
|
2386
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2257
2387
|
const tx = new TransactionBlock();
|
|
2258
2388
|
builder.updateValidatorNextEpochP2pAddress(tx, args);
|
|
2259
|
-
const
|
|
2389
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2260
2390
|
transactionBlock: tx,
|
|
2261
2391
|
sender: ZERO_ADDRESS,
|
|
2262
2392
|
});
|
|
2263
|
-
|
|
2393
|
+
|
|
2394
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2395
|
+
insepctRes,
|
|
2396
|
+
);
|
|
2264
2397
|
}
|
|
2265
2398
|
export async function updateValidatorNextEpochPrimaryAddress(
|
|
2266
2399
|
client: SuiClient,
|
|
@@ -2269,14 +2402,17 @@ export namespace sui_system {
|
|
|
2269
2402
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2270
2403
|
string | ObjectCallArg | TransactionArgument,
|
|
2271
2404
|
],
|
|
2272
|
-
) {
|
|
2405
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2273
2406
|
const tx = new TransactionBlock();
|
|
2274
2407
|
builder.updateValidatorNextEpochPrimaryAddress(tx, args);
|
|
2275
|
-
const
|
|
2408
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2276
2409
|
transactionBlock: tx,
|
|
2277
2410
|
sender: ZERO_ADDRESS,
|
|
2278
2411
|
});
|
|
2279
|
-
|
|
2412
|
+
|
|
2413
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2414
|
+
insepctRes,
|
|
2415
|
+
);
|
|
2280
2416
|
}
|
|
2281
2417
|
export async function updateValidatorNextEpochProtocolPubkey(
|
|
2282
2418
|
client: SuiClient,
|
|
@@ -2286,14 +2422,17 @@ export namespace sui_system {
|
|
|
2286
2422
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2287
2423
|
string | ObjectCallArg | TransactionArgument,
|
|
2288
2424
|
],
|
|
2289
|
-
) {
|
|
2425
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2290
2426
|
const tx = new TransactionBlock();
|
|
2291
2427
|
builder.updateValidatorNextEpochProtocolPubkey(tx, args);
|
|
2292
|
-
const
|
|
2428
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2293
2429
|
transactionBlock: tx,
|
|
2294
2430
|
sender: ZERO_ADDRESS,
|
|
2295
2431
|
});
|
|
2296
|
-
|
|
2432
|
+
|
|
2433
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2434
|
+
insepctRes,
|
|
2435
|
+
);
|
|
2297
2436
|
}
|
|
2298
2437
|
export async function updateValidatorNextEpochWorkerAddress(
|
|
2299
2438
|
client: SuiClient,
|
|
@@ -2302,14 +2441,17 @@ export namespace sui_system {
|
|
|
2302
2441
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2303
2442
|
string | ObjectCallArg | TransactionArgument,
|
|
2304
2443
|
],
|
|
2305
|
-
) {
|
|
2444
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2306
2445
|
const tx = new TransactionBlock();
|
|
2307
2446
|
builder.updateValidatorNextEpochWorkerAddress(tx, args);
|
|
2308
|
-
const
|
|
2447
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2309
2448
|
transactionBlock: tx,
|
|
2310
2449
|
sender: ZERO_ADDRESS,
|
|
2311
2450
|
});
|
|
2312
|
-
|
|
2451
|
+
|
|
2452
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2453
|
+
insepctRes,
|
|
2454
|
+
);
|
|
2313
2455
|
}
|
|
2314
2456
|
export async function updateValidatorNextEpochWorkerPubkey(
|
|
2315
2457
|
client: SuiClient,
|
|
@@ -2318,14 +2460,17 @@ export namespace sui_system {
|
|
|
2318
2460
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2319
2461
|
string | ObjectCallArg | TransactionArgument,
|
|
2320
2462
|
],
|
|
2321
|
-
) {
|
|
2463
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2322
2464
|
const tx = new TransactionBlock();
|
|
2323
2465
|
builder.updateValidatorNextEpochWorkerPubkey(tx, args);
|
|
2324
|
-
const
|
|
2466
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2325
2467
|
transactionBlock: tx,
|
|
2326
2468
|
sender: ZERO_ADDRESS,
|
|
2327
2469
|
});
|
|
2328
|
-
|
|
2470
|
+
|
|
2471
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2472
|
+
insepctRes,
|
|
2473
|
+
);
|
|
2329
2474
|
}
|
|
2330
2475
|
export async function updateValidatorProjectUrl(
|
|
2331
2476
|
client: SuiClient,
|
|
@@ -2334,14 +2479,17 @@ export namespace sui_system {
|
|
|
2334
2479
|
(string | ObjectCallArg)[] | TransactionArgument,
|
|
2335
2480
|
string | ObjectCallArg | TransactionArgument,
|
|
2336
2481
|
],
|
|
2337
|
-
) {
|
|
2482
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
2338
2483
|
const tx = new TransactionBlock();
|
|
2339
2484
|
builder.updateValidatorProjectUrl(tx, args);
|
|
2340
|
-
const
|
|
2485
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
2341
2486
|
transactionBlock: tx,
|
|
2342
2487
|
sender: ZERO_ADDRESS,
|
|
2343
2488
|
});
|
|
2344
|
-
|
|
2489
|
+
|
|
2490
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2491
|
+
insepctRes,
|
|
2492
|
+
);
|
|
2345
2493
|
}
|
|
2346
2494
|
}
|
|
2347
2495
|
}
|
|
@@ -3214,52 +3362,64 @@ export namespace validator {
|
|
|
3214
3362
|
export async function commissionRate(
|
|
3215
3363
|
client: SuiClient,
|
|
3216
3364
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3217
|
-
) {
|
|
3365
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3218
3366
|
const tx = new TransactionBlock();
|
|
3219
3367
|
builder.commissionRate(tx, args);
|
|
3220
|
-
const
|
|
3368
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3221
3369
|
transactionBlock: tx,
|
|
3222
3370
|
sender: ZERO_ADDRESS,
|
|
3223
3371
|
});
|
|
3224
|
-
|
|
3372
|
+
|
|
3373
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3374
|
+
insepctRes,
|
|
3375
|
+
);
|
|
3225
3376
|
}
|
|
3226
3377
|
|
|
3227
3378
|
export async function description(
|
|
3228
3379
|
client: SuiClient,
|
|
3229
3380
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3230
|
-
) {
|
|
3381
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3231
3382
|
const tx = new TransactionBlock();
|
|
3232
3383
|
builder.description(tx, args);
|
|
3233
|
-
const
|
|
3384
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3234
3385
|
transactionBlock: tx,
|
|
3235
3386
|
sender: ZERO_ADDRESS,
|
|
3236
3387
|
});
|
|
3237
|
-
|
|
3388
|
+
|
|
3389
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3390
|
+
insepctRes,
|
|
3391
|
+
);
|
|
3238
3392
|
}
|
|
3239
3393
|
|
|
3240
3394
|
export async function gasPrice(
|
|
3241
3395
|
client: SuiClient,
|
|
3242
3396
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3243
|
-
) {
|
|
3397
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3244
3398
|
const tx = new TransactionBlock();
|
|
3245
3399
|
builder.gasPrice(tx, args);
|
|
3246
|
-
const
|
|
3400
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3247
3401
|
transactionBlock: tx,
|
|
3248
3402
|
sender: ZERO_ADDRESS,
|
|
3249
3403
|
});
|
|
3250
|
-
|
|
3404
|
+
|
|
3405
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3406
|
+
insepctRes,
|
|
3407
|
+
);
|
|
3251
3408
|
}
|
|
3252
3409
|
export async function imageUrl(
|
|
3253
3410
|
client: SuiClient,
|
|
3254
3411
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3255
|
-
) {
|
|
3412
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3256
3413
|
const tx = new TransactionBlock();
|
|
3257
3414
|
builder.imageUrl(tx, args);
|
|
3258
|
-
const
|
|
3415
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3259
3416
|
transactionBlock: tx,
|
|
3260
3417
|
sender: ZERO_ADDRESS,
|
|
3261
3418
|
});
|
|
3262
|
-
|
|
3419
|
+
|
|
3420
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3421
|
+
insepctRes,
|
|
3422
|
+
);
|
|
3263
3423
|
}
|
|
3264
3424
|
export async function isDuplicate(
|
|
3265
3425
|
client: SuiClient,
|
|
@@ -3267,231 +3427,288 @@ export namespace validator {
|
|
|
3267
3427
|
string | ObjectCallArg | TransactionArgument,
|
|
3268
3428
|
string | ObjectCallArg | TransactionArgument,
|
|
3269
3429
|
],
|
|
3270
|
-
) {
|
|
3430
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
3271
3431
|
const tx = new TransactionBlock();
|
|
3272
3432
|
builder.isDuplicate(tx, args);
|
|
3273
|
-
const
|
|
3433
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3274
3434
|
transactionBlock: tx,
|
|
3275
3435
|
sender: ZERO_ADDRESS,
|
|
3276
3436
|
});
|
|
3277
|
-
|
|
3437
|
+
|
|
3438
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
3439
|
+
insepctRes,
|
|
3440
|
+
);
|
|
3278
3441
|
}
|
|
3279
3442
|
export async function isPreactive(
|
|
3280
3443
|
client: SuiClient,
|
|
3281
3444
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3282
|
-
) {
|
|
3445
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
3283
3446
|
const tx = new TransactionBlock();
|
|
3284
3447
|
builder.isPreactive(tx, args);
|
|
3285
|
-
const
|
|
3448
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3286
3449
|
transactionBlock: tx,
|
|
3287
3450
|
sender: ZERO_ADDRESS,
|
|
3288
3451
|
});
|
|
3289
|
-
|
|
3452
|
+
|
|
3453
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
3454
|
+
insepctRes,
|
|
3455
|
+
);
|
|
3290
3456
|
}
|
|
3291
3457
|
export async function metadata(
|
|
3292
3458
|
client: SuiClient,
|
|
3293
3459
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3294
|
-
) {
|
|
3460
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3295
3461
|
const tx = new TransactionBlock();
|
|
3296
3462
|
builder.metadata(tx, args);
|
|
3297
|
-
const
|
|
3463
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3298
3464
|
transactionBlock: tx,
|
|
3299
3465
|
sender: ZERO_ADDRESS,
|
|
3300
3466
|
});
|
|
3301
|
-
|
|
3467
|
+
|
|
3468
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3469
|
+
insepctRes,
|
|
3470
|
+
);
|
|
3302
3471
|
}
|
|
3303
3472
|
export async function name(
|
|
3304
3473
|
client: SuiClient,
|
|
3305
3474
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3306
|
-
) {
|
|
3475
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3307
3476
|
const tx = new TransactionBlock();
|
|
3308
3477
|
builder.name(tx, args);
|
|
3309
|
-
const
|
|
3478
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3310
3479
|
transactionBlock: tx,
|
|
3311
3480
|
sender: ZERO_ADDRESS,
|
|
3312
3481
|
});
|
|
3313
|
-
|
|
3482
|
+
|
|
3483
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3484
|
+
insepctRes,
|
|
3485
|
+
);
|
|
3314
3486
|
}
|
|
3315
3487
|
export async function networkAddress(
|
|
3316
3488
|
client: SuiClient,
|
|
3317
3489
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3318
|
-
) {
|
|
3490
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3319
3491
|
const tx = new TransactionBlock();
|
|
3320
3492
|
builder.networkAddress(tx, args);
|
|
3321
|
-
const
|
|
3493
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3322
3494
|
transactionBlock: tx,
|
|
3323
3495
|
sender: ZERO_ADDRESS,
|
|
3324
3496
|
});
|
|
3325
|
-
|
|
3497
|
+
|
|
3498
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3499
|
+
insepctRes,
|
|
3500
|
+
);
|
|
3326
3501
|
}
|
|
3327
3502
|
export async function networkPubkeyBytes(
|
|
3328
3503
|
client: SuiClient,
|
|
3329
3504
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3330
|
-
) {
|
|
3505
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3331
3506
|
const tx = new TransactionBlock();
|
|
3332
3507
|
builder.networkPubkeyBytes(tx, args);
|
|
3333
|
-
const
|
|
3508
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3334
3509
|
transactionBlock: tx,
|
|
3335
3510
|
sender: ZERO_ADDRESS,
|
|
3336
3511
|
});
|
|
3337
|
-
|
|
3512
|
+
|
|
3513
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3514
|
+
insepctRes,
|
|
3515
|
+
);
|
|
3338
3516
|
}
|
|
3339
3517
|
|
|
3340
3518
|
export async function nextEpochGasPrice(
|
|
3341
3519
|
client: SuiClient,
|
|
3342
3520
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3343
|
-
) {
|
|
3521
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3344
3522
|
const tx = new TransactionBlock();
|
|
3345
3523
|
builder.nextEpochGasPrice(tx, args);
|
|
3346
|
-
const
|
|
3524
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3347
3525
|
transactionBlock: tx,
|
|
3348
3526
|
sender: ZERO_ADDRESS,
|
|
3349
3527
|
});
|
|
3350
|
-
|
|
3528
|
+
|
|
3529
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3530
|
+
insepctRes,
|
|
3531
|
+
);
|
|
3351
3532
|
}
|
|
3352
3533
|
export async function nextEpochNetworkAddress(
|
|
3353
3534
|
client: SuiClient,
|
|
3354
3535
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3355
|
-
) {
|
|
3536
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3356
3537
|
const tx = new TransactionBlock();
|
|
3357
3538
|
builder.nextEpochNetworkAddress(tx, args);
|
|
3358
|
-
const
|
|
3539
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3359
3540
|
transactionBlock: tx,
|
|
3360
3541
|
sender: ZERO_ADDRESS,
|
|
3361
3542
|
});
|
|
3362
|
-
|
|
3543
|
+
|
|
3544
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3545
|
+
insepctRes,
|
|
3546
|
+
);
|
|
3363
3547
|
}
|
|
3364
3548
|
export async function nextEpochNetworkPubkeyBytes(
|
|
3365
3549
|
client: SuiClient,
|
|
3366
3550
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3367
|
-
) {
|
|
3551
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3368
3552
|
const tx = new TransactionBlock();
|
|
3369
3553
|
builder.nextEpochNetworkPubkeyBytes(tx, args);
|
|
3370
|
-
const
|
|
3554
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3371
3555
|
transactionBlock: tx,
|
|
3372
3556
|
sender: ZERO_ADDRESS,
|
|
3373
3557
|
});
|
|
3374
|
-
|
|
3558
|
+
|
|
3559
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3560
|
+
insepctRes,
|
|
3561
|
+
);
|
|
3375
3562
|
}
|
|
3376
3563
|
export async function nextEpochP2pAddress(
|
|
3377
3564
|
client: SuiClient,
|
|
3378
3565
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3379
|
-
) {
|
|
3566
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3380
3567
|
const tx = new TransactionBlock();
|
|
3381
3568
|
builder.nextEpochP2pAddress(tx, args);
|
|
3382
|
-
const
|
|
3569
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3383
3570
|
transactionBlock: tx,
|
|
3384
3571
|
sender: ZERO_ADDRESS,
|
|
3385
3572
|
});
|
|
3386
|
-
|
|
3573
|
+
|
|
3574
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3575
|
+
insepctRes,
|
|
3576
|
+
);
|
|
3387
3577
|
}
|
|
3388
3578
|
export async function nextEpochPrimaryAddress(
|
|
3389
3579
|
client: SuiClient,
|
|
3390
3580
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3391
|
-
) {
|
|
3581
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3392
3582
|
const tx = new TransactionBlock();
|
|
3393
3583
|
builder.nextEpochPrimaryAddress(tx, args);
|
|
3394
|
-
const
|
|
3584
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3395
3585
|
transactionBlock: tx,
|
|
3396
3586
|
sender: ZERO_ADDRESS,
|
|
3397
3587
|
});
|
|
3398
|
-
|
|
3588
|
+
|
|
3589
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3590
|
+
insepctRes,
|
|
3591
|
+
);
|
|
3399
3592
|
}
|
|
3400
3593
|
export async function nextEpochProofOfPossession(
|
|
3401
3594
|
client: SuiClient,
|
|
3402
3595
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3403
|
-
) {
|
|
3596
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3404
3597
|
const tx = new TransactionBlock();
|
|
3405
3598
|
builder.nextEpochProofOfPossession(tx, args);
|
|
3406
|
-
const
|
|
3599
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3407
3600
|
transactionBlock: tx,
|
|
3408
3601
|
sender: ZERO_ADDRESS,
|
|
3409
3602
|
});
|
|
3410
|
-
|
|
3603
|
+
|
|
3604
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3605
|
+
insepctRes,
|
|
3606
|
+
);
|
|
3411
3607
|
}
|
|
3412
3608
|
export async function nextEpochProtocolPubkeyBytes(
|
|
3413
3609
|
client: SuiClient,
|
|
3414
3610
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3415
|
-
) {
|
|
3611
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3416
3612
|
const tx = new TransactionBlock();
|
|
3417
3613
|
builder.nextEpochProtocolPubkeyBytes(tx, args);
|
|
3418
|
-
const
|
|
3614
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3419
3615
|
transactionBlock: tx,
|
|
3420
3616
|
sender: ZERO_ADDRESS,
|
|
3421
3617
|
});
|
|
3422
|
-
|
|
3618
|
+
|
|
3619
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3620
|
+
insepctRes,
|
|
3621
|
+
);
|
|
3423
3622
|
}
|
|
3424
3623
|
export async function nextEpochWorkerAddress(
|
|
3425
3624
|
client: SuiClient,
|
|
3426
3625
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3427
|
-
) {
|
|
3626
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3428
3627
|
const tx = new TransactionBlock();
|
|
3429
3628
|
builder.nextEpochWorkerAddress(tx, args);
|
|
3430
|
-
const
|
|
3629
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3431
3630
|
transactionBlock: tx,
|
|
3432
3631
|
sender: ZERO_ADDRESS,
|
|
3433
3632
|
});
|
|
3434
|
-
|
|
3633
|
+
|
|
3634
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3635
|
+
insepctRes,
|
|
3636
|
+
);
|
|
3435
3637
|
}
|
|
3436
3638
|
export async function nextEpochWorkerPubkeyBytes(
|
|
3437
3639
|
client: SuiClient,
|
|
3438
3640
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3439
|
-
) {
|
|
3641
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3440
3642
|
const tx = new TransactionBlock();
|
|
3441
3643
|
builder.nextEpochWorkerPubkeyBytes(tx, args);
|
|
3442
|
-
const
|
|
3644
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3443
3645
|
transactionBlock: tx,
|
|
3444
3646
|
sender: ZERO_ADDRESS,
|
|
3445
3647
|
});
|
|
3446
|
-
|
|
3648
|
+
|
|
3649
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3650
|
+
insepctRes,
|
|
3651
|
+
);
|
|
3447
3652
|
}
|
|
3448
3653
|
export async function operationCapId(
|
|
3449
3654
|
client: SuiClient,
|
|
3450
3655
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3451
|
-
) {
|
|
3656
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3452
3657
|
const tx = new TransactionBlock();
|
|
3453
3658
|
builder.operationCapId(tx, args);
|
|
3454
|
-
const
|
|
3659
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3455
3660
|
transactionBlock: tx,
|
|
3456
3661
|
sender: ZERO_ADDRESS,
|
|
3457
3662
|
});
|
|
3458
|
-
|
|
3663
|
+
|
|
3664
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3665
|
+
insepctRes,
|
|
3666
|
+
);
|
|
3459
3667
|
}
|
|
3460
3668
|
export async function p2pAddress(
|
|
3461
3669
|
client: SuiClient,
|
|
3462
3670
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3463
|
-
) {
|
|
3671
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3464
3672
|
const tx = new TransactionBlock();
|
|
3465
3673
|
builder.p2pAddress(tx, args);
|
|
3466
|
-
const
|
|
3674
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3467
3675
|
transactionBlock: tx,
|
|
3468
3676
|
sender: ZERO_ADDRESS,
|
|
3469
3677
|
});
|
|
3470
|
-
|
|
3678
|
+
|
|
3679
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3680
|
+
insepctRes,
|
|
3681
|
+
);
|
|
3471
3682
|
}
|
|
3472
3683
|
export async function pendingStakeAmount(
|
|
3473
3684
|
client: SuiClient,
|
|
3474
3685
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3475
|
-
) {
|
|
3686
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3476
3687
|
const tx = new TransactionBlock();
|
|
3477
3688
|
builder.pendingStakeAmount(tx, args);
|
|
3478
|
-
const
|
|
3689
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3479
3690
|
transactionBlock: tx,
|
|
3480
3691
|
sender: ZERO_ADDRESS,
|
|
3481
3692
|
});
|
|
3482
|
-
|
|
3693
|
+
|
|
3694
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3695
|
+
insepctRes,
|
|
3696
|
+
);
|
|
3483
3697
|
}
|
|
3484
3698
|
export async function pendingStakeWithdrawAmount(
|
|
3485
3699
|
client: SuiClient,
|
|
3486
3700
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3487
|
-
) {
|
|
3701
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3488
3702
|
const tx = new TransactionBlock();
|
|
3489
3703
|
builder.pendingStakeWithdrawAmount(tx, args);
|
|
3490
|
-
const
|
|
3704
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3491
3705
|
transactionBlock: tx,
|
|
3492
3706
|
sender: ZERO_ADDRESS,
|
|
3493
3707
|
});
|
|
3494
|
-
|
|
3708
|
+
|
|
3709
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3710
|
+
insepctRes,
|
|
3711
|
+
);
|
|
3495
3712
|
}
|
|
3496
3713
|
export async function poolTokenExchangeRateAtEpoch(
|
|
3497
3714
|
client: SuiClient,
|
|
@@ -3499,185 +3716,230 @@ export namespace validator {
|
|
|
3499
3716
|
string | ObjectCallArg | TransactionArgument,
|
|
3500
3717
|
bigint | TransactionArgument,
|
|
3501
3718
|
],
|
|
3502
|
-
) {
|
|
3719
|
+
): Promise<TypedDevInspectResults<[staking_pool.PoolTokenExchangeRate]>> {
|
|
3503
3720
|
const tx = new TransactionBlock();
|
|
3504
3721
|
builder.poolTokenExchangeRateAtEpoch(tx, args);
|
|
3505
|
-
const
|
|
3722
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3506
3723
|
transactionBlock: tx,
|
|
3507
3724
|
sender: ZERO_ADDRESS,
|
|
3508
3725
|
});
|
|
3509
|
-
|
|
3726
|
+
|
|
3727
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3728
|
+
[staking_pool.PoolTokenExchangeRate]
|
|
3729
|
+
>(insepctRes);
|
|
3510
3730
|
}
|
|
3511
3731
|
export async function primaryAddress(
|
|
3512
3732
|
client: SuiClient,
|
|
3513
3733
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3514
|
-
) {
|
|
3734
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3515
3735
|
const tx = new TransactionBlock();
|
|
3516
3736
|
builder.primaryAddress(tx, args);
|
|
3517
|
-
const
|
|
3737
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3518
3738
|
transactionBlock: tx,
|
|
3519
3739
|
sender: ZERO_ADDRESS,
|
|
3520
3740
|
});
|
|
3521
|
-
|
|
3741
|
+
|
|
3742
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3743
|
+
insepctRes,
|
|
3744
|
+
);
|
|
3522
3745
|
}
|
|
3523
3746
|
|
|
3524
3747
|
export async function projectUrl(
|
|
3525
3748
|
client: SuiClient,
|
|
3526
3749
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3527
|
-
) {
|
|
3750
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3528
3751
|
const tx = new TransactionBlock();
|
|
3529
3752
|
builder.projectUrl(tx, args);
|
|
3530
|
-
const
|
|
3753
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3531
3754
|
transactionBlock: tx,
|
|
3532
3755
|
sender: ZERO_ADDRESS,
|
|
3533
3756
|
});
|
|
3534
|
-
|
|
3757
|
+
|
|
3758
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3759
|
+
insepctRes,
|
|
3760
|
+
);
|
|
3535
3761
|
}
|
|
3536
3762
|
export async function proofOfPossession(
|
|
3537
3763
|
client: SuiClient,
|
|
3538
3764
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3539
|
-
) {
|
|
3765
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3540
3766
|
const tx = new TransactionBlock();
|
|
3541
3767
|
builder.proofOfPossession(tx, args);
|
|
3542
|
-
const
|
|
3768
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3543
3769
|
transactionBlock: tx,
|
|
3544
3770
|
sender: ZERO_ADDRESS,
|
|
3545
3771
|
});
|
|
3546
|
-
|
|
3772
|
+
|
|
3773
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3774
|
+
insepctRes,
|
|
3775
|
+
);
|
|
3547
3776
|
}
|
|
3548
3777
|
export async function protocolPubkeyBytes(
|
|
3549
3778
|
client: SuiClient,
|
|
3550
3779
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3551
|
-
) {
|
|
3780
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3552
3781
|
const tx = new TransactionBlock();
|
|
3553
3782
|
builder.protocolPubkeyBytes(tx, args);
|
|
3554
|
-
const
|
|
3783
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3555
3784
|
transactionBlock: tx,
|
|
3556
3785
|
sender: ZERO_ADDRESS,
|
|
3557
3786
|
});
|
|
3558
|
-
|
|
3787
|
+
|
|
3788
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3789
|
+
insepctRes,
|
|
3790
|
+
);
|
|
3559
3791
|
}
|
|
3560
3792
|
|
|
3561
3793
|
export async function stakeAmount(
|
|
3562
3794
|
client: SuiClient,
|
|
3563
3795
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3564
|
-
) {
|
|
3796
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3565
3797
|
const tx = new TransactionBlock();
|
|
3566
3798
|
builder.stakeAmount(tx, args);
|
|
3567
|
-
const
|
|
3799
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3568
3800
|
transactionBlock: tx,
|
|
3569
3801
|
sender: ZERO_ADDRESS,
|
|
3570
3802
|
});
|
|
3571
|
-
|
|
3803
|
+
|
|
3804
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3805
|
+
insepctRes,
|
|
3806
|
+
);
|
|
3572
3807
|
}
|
|
3573
3808
|
export async function stakingPoolId(
|
|
3574
3809
|
client: SuiClient,
|
|
3575
3810
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3576
|
-
) {
|
|
3811
|
+
): Promise<TypedDevInspectResults<[_0x2.object_.ID]>> {
|
|
3577
3812
|
const tx = new TransactionBlock();
|
|
3578
3813
|
builder.stakingPoolId(tx, args);
|
|
3579
|
-
const
|
|
3814
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3580
3815
|
transactionBlock: tx,
|
|
3581
3816
|
sender: ZERO_ADDRESS,
|
|
3582
3817
|
});
|
|
3583
|
-
|
|
3818
|
+
|
|
3819
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3820
|
+
[_0x2.object_.ID]
|
|
3821
|
+
>(insepctRes);
|
|
3584
3822
|
}
|
|
3585
3823
|
export async function suiAddress(
|
|
3586
3824
|
client: SuiClient,
|
|
3587
3825
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3588
|
-
) {
|
|
3826
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3589
3827
|
const tx = new TransactionBlock();
|
|
3590
3828
|
builder.suiAddress(tx, args);
|
|
3591
|
-
const
|
|
3829
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3592
3830
|
transactionBlock: tx,
|
|
3593
3831
|
sender: ZERO_ADDRESS,
|
|
3594
3832
|
});
|
|
3595
|
-
|
|
3833
|
+
|
|
3834
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3835
|
+
insepctRes,
|
|
3836
|
+
);
|
|
3596
3837
|
}
|
|
3597
3838
|
export async function totalStake(
|
|
3598
3839
|
client: SuiClient,
|
|
3599
3840
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3600
|
-
) {
|
|
3841
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3601
3842
|
const tx = new TransactionBlock();
|
|
3602
3843
|
builder.totalStake(tx, args);
|
|
3603
|
-
const
|
|
3844
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3604
3845
|
transactionBlock: tx,
|
|
3605
3846
|
sender: ZERO_ADDRESS,
|
|
3606
3847
|
});
|
|
3607
|
-
|
|
3848
|
+
|
|
3849
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3850
|
+
insepctRes,
|
|
3851
|
+
);
|
|
3608
3852
|
}
|
|
3609
3853
|
export async function totalStakeAmount(
|
|
3610
3854
|
client: SuiClient,
|
|
3611
3855
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3612
|
-
) {
|
|
3856
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3613
3857
|
const tx = new TransactionBlock();
|
|
3614
3858
|
builder.totalStakeAmount(tx, args);
|
|
3615
|
-
const
|
|
3859
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3616
3860
|
transactionBlock: tx,
|
|
3617
3861
|
sender: ZERO_ADDRESS,
|
|
3618
3862
|
});
|
|
3619
|
-
|
|
3863
|
+
|
|
3864
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3865
|
+
insepctRes,
|
|
3866
|
+
);
|
|
3620
3867
|
}
|
|
3621
3868
|
|
|
3622
3869
|
export async function validateMetadata(
|
|
3623
3870
|
client: SuiClient,
|
|
3624
3871
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3625
|
-
) {
|
|
3872
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
3626
3873
|
const tx = new TransactionBlock();
|
|
3627
3874
|
builder.validateMetadata(tx, args);
|
|
3628
|
-
const
|
|
3875
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3629
3876
|
transactionBlock: tx,
|
|
3630
3877
|
sender: ZERO_ADDRESS,
|
|
3631
3878
|
});
|
|
3632
|
-
|
|
3879
|
+
|
|
3880
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
3881
|
+
insepctRes,
|
|
3882
|
+
);
|
|
3633
3883
|
}
|
|
3634
3884
|
export async function validateMetadataBcs(
|
|
3635
3885
|
client: SuiClient,
|
|
3636
3886
|
args: [(string | ObjectCallArg)[] | TransactionArgument],
|
|
3637
|
-
) {
|
|
3887
|
+
): Promise<TypedDevInspectResults<[]>> {
|
|
3638
3888
|
const tx = new TransactionBlock();
|
|
3639
3889
|
builder.validateMetadataBcs(tx, args);
|
|
3640
|
-
const
|
|
3890
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3641
3891
|
transactionBlock: tx,
|
|
3642
3892
|
sender: ZERO_ADDRESS,
|
|
3643
3893
|
});
|
|
3644
|
-
|
|
3894
|
+
|
|
3895
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
3896
|
+
insepctRes,
|
|
3897
|
+
);
|
|
3645
3898
|
}
|
|
3646
3899
|
export async function votingPower(
|
|
3647
3900
|
client: SuiClient,
|
|
3648
3901
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3649
|
-
) {
|
|
3902
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3650
3903
|
const tx = new TransactionBlock();
|
|
3651
3904
|
builder.votingPower(tx, args);
|
|
3652
|
-
const
|
|
3905
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3653
3906
|
transactionBlock: tx,
|
|
3654
3907
|
sender: ZERO_ADDRESS,
|
|
3655
3908
|
});
|
|
3656
|
-
|
|
3909
|
+
|
|
3910
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3911
|
+
insepctRes,
|
|
3912
|
+
);
|
|
3657
3913
|
}
|
|
3658
3914
|
export async function workerAddress(
|
|
3659
3915
|
client: SuiClient,
|
|
3660
3916
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3661
|
-
) {
|
|
3917
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3662
3918
|
const tx = new TransactionBlock();
|
|
3663
3919
|
builder.workerAddress(tx, args);
|
|
3664
|
-
const
|
|
3920
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3665
3921
|
transactionBlock: tx,
|
|
3666
3922
|
sender: ZERO_ADDRESS,
|
|
3667
3923
|
});
|
|
3668
|
-
|
|
3924
|
+
|
|
3925
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3926
|
+
insepctRes,
|
|
3927
|
+
);
|
|
3669
3928
|
}
|
|
3670
3929
|
export async function workerPubkeyBytes(
|
|
3671
3930
|
client: SuiClient,
|
|
3672
3931
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
3673
|
-
) {
|
|
3932
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
3674
3933
|
const tx = new TransactionBlock();
|
|
3675
3934
|
builder.workerPubkeyBytes(tx, args);
|
|
3676
|
-
const
|
|
3935
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
3677
3936
|
transactionBlock: tx,
|
|
3678
3937
|
sender: ZERO_ADDRESS,
|
|
3679
3938
|
});
|
|
3680
|
-
|
|
3939
|
+
|
|
3940
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3941
|
+
insepctRes,
|
|
3942
|
+
);
|
|
3681
3943
|
}
|
|
3682
3944
|
}
|
|
3683
3945
|
}
|
|
@@ -4086,27 +4348,33 @@ export namespace validator_set {
|
|
|
4086
4348
|
export async function activeValidators(
|
|
4087
4349
|
client: SuiClient,
|
|
4088
4350
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
4089
|
-
) {
|
|
4351
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
4090
4352
|
const tx = new TransactionBlock();
|
|
4091
4353
|
builder.activeValidators(tx, args);
|
|
4092
|
-
const
|
|
4354
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
4093
4355
|
transactionBlock: tx,
|
|
4094
4356
|
sender: ZERO_ADDRESS,
|
|
4095
4357
|
});
|
|
4096
|
-
|
|
4358
|
+
|
|
4359
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
4360
|
+
insepctRes,
|
|
4361
|
+
);
|
|
4097
4362
|
}
|
|
4098
4363
|
|
|
4099
4364
|
export async function deriveReferenceGasPrice(
|
|
4100
4365
|
client: SuiClient,
|
|
4101
4366
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
4102
|
-
) {
|
|
4367
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4103
4368
|
const tx = new TransactionBlock();
|
|
4104
4369
|
builder.deriveReferenceGasPrice(tx, args);
|
|
4105
|
-
const
|
|
4370
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
4106
4371
|
transactionBlock: tx,
|
|
4107
4372
|
sender: ZERO_ADDRESS,
|
|
4108
4373
|
});
|
|
4109
|
-
|
|
4374
|
+
|
|
4375
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4376
|
+
insepctRes,
|
|
4377
|
+
);
|
|
4110
4378
|
}
|
|
4111
4379
|
|
|
4112
4380
|
export async function getActiveValidatorRef(
|
|
@@ -4115,14 +4383,17 @@ export namespace validator_set {
|
|
|
4115
4383
|
string | ObjectCallArg | TransactionArgument,
|
|
4116
4384
|
string | TransactionArgument,
|
|
4117
4385
|
],
|
|
4118
|
-
) {
|
|
4386
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
4119
4387
|
const tx = new TransactionBlock();
|
|
4120
4388
|
builder.getActiveValidatorRef(tx, args);
|
|
4121
|
-
const
|
|
4389
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
4122
4390
|
transactionBlock: tx,
|
|
4123
4391
|
sender: ZERO_ADDRESS,
|
|
4124
4392
|
});
|
|
4125
|
-
|
|
4393
|
+
|
|
4394
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
4395
|
+
insepctRes,
|
|
4396
|
+
);
|
|
4126
4397
|
}
|
|
4127
4398
|
export async function getPendingValidatorRef(
|
|
4128
4399
|
client: SuiClient,
|
|
@@ -4130,14 +4401,17 @@ export namespace validator_set {
|
|
|
4130
4401
|
string | ObjectCallArg | TransactionArgument,
|
|
4131
4402
|
string | TransactionArgument,
|
|
4132
4403
|
],
|
|
4133
|
-
) {
|
|
4404
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
4134
4405
|
const tx = new TransactionBlock();
|
|
4135
4406
|
builder.getPendingValidatorRef(tx, args);
|
|
4136
|
-
const
|
|
4407
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
4137
4408
|
transactionBlock: tx,
|
|
4138
4409
|
sender: ZERO_ADDRESS,
|
|
4139
4410
|
});
|
|
4140
|
-
|
|
4411
|
+
|
|
4412
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
4413
|
+
insepctRes,
|
|
4414
|
+
);
|
|
4141
4415
|
}
|
|
4142
4416
|
|
|
4143
4417
|
export async function isInactiveValidator(
|
|
@@ -4146,14 +4420,17 @@ export namespace validator_set {
|
|
|
4146
4420
|
string | ObjectCallArg | TransactionArgument,
|
|
4147
4421
|
_0x2.object_.ID | TransactionArgument,
|
|
4148
4422
|
],
|
|
4149
|
-
) {
|
|
4423
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
4150
4424
|
const tx = new TransactionBlock();
|
|
4151
4425
|
builder.isInactiveValidator(tx, args);
|
|
4152
|
-
const
|
|
4426
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
4153
4427
|
transactionBlock: tx,
|
|
4154
4428
|
sender: ZERO_ADDRESS,
|
|
4155
4429
|
});
|
|
4156
|
-
|
|
4430
|
+
|
|
4431
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
4432
|
+
insepctRes,
|
|
4433
|
+
);
|
|
4157
4434
|
}
|
|
4158
4435
|
export async function isValidatorCandidate(
|
|
4159
4436
|
client: SuiClient,
|
|
@@ -4161,27 +4438,33 @@ export namespace validator_set {
|
|
|
4161
4438
|
string | ObjectCallArg | TransactionArgument,
|
|
4162
4439
|
string | TransactionArgument,
|
|
4163
4440
|
],
|
|
4164
|
-
) {
|
|
4441
|
+
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
4165
4442
|
const tx = new TransactionBlock();
|
|
4166
4443
|
builder.isValidatorCandidate(tx, args);
|
|
4167
|
-
const
|
|
4444
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
4168
4445
|
transactionBlock: tx,
|
|
4169
4446
|
sender: ZERO_ADDRESS,
|
|
4170
4447
|
});
|
|
4171
|
-
|
|
4448
|
+
|
|
4449
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
4450
|
+
insepctRes,
|
|
4451
|
+
);
|
|
4172
4452
|
}
|
|
4173
4453
|
|
|
4174
4454
|
export async function stakingPoolMappings(
|
|
4175
4455
|
client: SuiClient,
|
|
4176
4456
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
4177
|
-
) {
|
|
4457
|
+
): Promise<TypedDevInspectResults<[string]>> {
|
|
4178
4458
|
const tx = new TransactionBlock();
|
|
4179
4459
|
builder.stakingPoolMappings(tx, args);
|
|
4180
|
-
const
|
|
4460
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
4181
4461
|
transactionBlock: tx,
|
|
4182
4462
|
sender: ZERO_ADDRESS,
|
|
4183
4463
|
});
|
|
4184
|
-
|
|
4464
|
+
|
|
4465
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
4466
|
+
insepctRes,
|
|
4467
|
+
);
|
|
4185
4468
|
}
|
|
4186
4469
|
export async function sumVotingPowerByAddresses(
|
|
4187
4470
|
client: SuiClient,
|
|
@@ -4189,26 +4472,32 @@ export namespace validator_set {
|
|
|
4189
4472
|
string | ObjectCallArg | TransactionArgument,
|
|
4190
4473
|
string | ObjectCallArg | TransactionArgument,
|
|
4191
4474
|
],
|
|
4192
|
-
) {
|
|
4475
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4193
4476
|
const tx = new TransactionBlock();
|
|
4194
4477
|
builder.sumVotingPowerByAddresses(tx, args);
|
|
4195
|
-
const
|
|
4478
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
4196
4479
|
transactionBlock: tx,
|
|
4197
4480
|
sender: ZERO_ADDRESS,
|
|
4198
4481
|
});
|
|
4199
|
-
|
|
4482
|
+
|
|
4483
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4484
|
+
insepctRes,
|
|
4485
|
+
);
|
|
4200
4486
|
}
|
|
4201
4487
|
export async function totalStake(
|
|
4202
4488
|
client: SuiClient,
|
|
4203
4489
|
args: [string | ObjectCallArg | TransactionArgument],
|
|
4204
|
-
) {
|
|
4490
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4205
4491
|
const tx = new TransactionBlock();
|
|
4206
4492
|
builder.totalStake(tx, args);
|
|
4207
|
-
const
|
|
4493
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
4208
4494
|
transactionBlock: tx,
|
|
4209
4495
|
sender: ZERO_ADDRESS,
|
|
4210
4496
|
});
|
|
4211
|
-
|
|
4497
|
+
|
|
4498
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4499
|
+
insepctRes,
|
|
4500
|
+
);
|
|
4212
4501
|
}
|
|
4213
4502
|
export async function validatorStakeAmount(
|
|
4214
4503
|
client: SuiClient,
|
|
@@ -4216,14 +4505,17 @@ export namespace validator_set {
|
|
|
4216
4505
|
string | ObjectCallArg | TransactionArgument,
|
|
4217
4506
|
string | TransactionArgument,
|
|
4218
4507
|
],
|
|
4219
|
-
) {
|
|
4508
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4220
4509
|
const tx = new TransactionBlock();
|
|
4221
4510
|
builder.validatorStakeAmount(tx, args);
|
|
4222
|
-
const
|
|
4511
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
4223
4512
|
transactionBlock: tx,
|
|
4224
4513
|
sender: ZERO_ADDRESS,
|
|
4225
4514
|
});
|
|
4226
|
-
|
|
4515
|
+
|
|
4516
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4517
|
+
insepctRes,
|
|
4518
|
+
);
|
|
4227
4519
|
}
|
|
4228
4520
|
export async function validatorStakingPoolId(
|
|
4229
4521
|
client: SuiClient,
|
|
@@ -4231,14 +4523,17 @@ export namespace validator_set {
|
|
|
4231
4523
|
string | ObjectCallArg | TransactionArgument,
|
|
4232
4524
|
string | TransactionArgument,
|
|
4233
4525
|
],
|
|
4234
|
-
) {
|
|
4526
|
+
): Promise<TypedDevInspectResults<[_0x2.object_.ID]>> {
|
|
4235
4527
|
const tx = new TransactionBlock();
|
|
4236
4528
|
builder.validatorStakingPoolId(tx, args);
|
|
4237
|
-
const
|
|
4529
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
4238
4530
|
transactionBlock: tx,
|
|
4239
4531
|
sender: ZERO_ADDRESS,
|
|
4240
4532
|
});
|
|
4241
|
-
|
|
4533
|
+
|
|
4534
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4535
|
+
[_0x2.object_.ID]
|
|
4536
|
+
>(insepctRes);
|
|
4242
4537
|
}
|
|
4243
4538
|
export async function validatorTotalStakeAmount(
|
|
4244
4539
|
client: SuiClient,
|
|
@@ -4246,14 +4541,17 @@ export namespace validator_set {
|
|
|
4246
4541
|
string | ObjectCallArg | TransactionArgument,
|
|
4247
4542
|
string | TransactionArgument,
|
|
4248
4543
|
],
|
|
4249
|
-
) {
|
|
4544
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4250
4545
|
const tx = new TransactionBlock();
|
|
4251
4546
|
builder.validatorTotalStakeAmount(tx, args);
|
|
4252
|
-
const
|
|
4547
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
4253
4548
|
transactionBlock: tx,
|
|
4254
4549
|
sender: ZERO_ADDRESS,
|
|
4255
4550
|
});
|
|
4256
|
-
|
|
4551
|
+
|
|
4552
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4553
|
+
insepctRes,
|
|
4554
|
+
);
|
|
4257
4555
|
}
|
|
4258
4556
|
}
|
|
4259
4557
|
}
|
|
@@ -4343,24 +4641,36 @@ export namespace voting_power {
|
|
|
4343
4641
|
}
|
|
4344
4642
|
}
|
|
4345
4643
|
export namespace view {
|
|
4346
|
-
export async function quorumThreshold(
|
|
4644
|
+
export async function quorumThreshold(
|
|
4645
|
+
client: SuiClient,
|
|
4646
|
+
args: [],
|
|
4647
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4347
4648
|
const tx = new TransactionBlock();
|
|
4348
4649
|
builder.quorumThreshold(tx, args);
|
|
4349
|
-
const
|
|
4650
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
4350
4651
|
transactionBlock: tx,
|
|
4351
4652
|
sender: ZERO_ADDRESS,
|
|
4352
4653
|
});
|
|
4353
|
-
|
|
4654
|
+
|
|
4655
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4656
|
+
insepctRes,
|
|
4657
|
+
);
|
|
4354
4658
|
}
|
|
4355
4659
|
|
|
4356
|
-
export async function totalVotingPower(
|
|
4660
|
+
export async function totalVotingPower(
|
|
4661
|
+
client: SuiClient,
|
|
4662
|
+
args: [],
|
|
4663
|
+
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4357
4664
|
const tx = new TransactionBlock();
|
|
4358
4665
|
builder.totalVotingPower(tx, args);
|
|
4359
|
-
const
|
|
4666
|
+
const insepctRes = await client.devInspectTransactionBlock({
|
|
4360
4667
|
transactionBlock: tx,
|
|
4361
4668
|
sender: ZERO_ADDRESS,
|
|
4362
4669
|
});
|
|
4363
|
-
|
|
4670
|
+
|
|
4671
|
+
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4672
|
+
insepctRes,
|
|
4673
|
+
);
|
|
4364
4674
|
}
|
|
4365
4675
|
}
|
|
4366
4676
|
}
|