@typemove/sui 1.5.1 → 1.5.2-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +8 -4
- package/dist/cjs/builtin/0x1.d.ts +2 -0
- package/dist/cjs/builtin/0x1.d.ts.map +1 -1
- package/dist/cjs/builtin/0x1.js +187 -167
- package/dist/cjs/builtin/0x1.js.map +1 -1
- package/dist/cjs/builtin/0x2.d.ts +121 -0
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +1077 -856
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.js +212 -212
- package/dist/cjs/codegen/codegen.js +2 -2
- package/dist/cjs/move-coder.d.ts +1 -1
- package/dist/cjs/move-coder.js +4 -4
- package/dist/esm/builtin/0x1.d.ts +2 -0
- package/dist/esm/builtin/0x1.d.ts.map +1 -1
- package/dist/esm/builtin/0x1.js +187 -167
- package/dist/esm/builtin/0x1.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +121 -0
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +1076 -855
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.js +212 -212
- package/dist/esm/codegen/codegen.js +2 -2
- package/dist/esm/move-coder.d.ts +1 -1
- package/dist/esm/move-coder.js +4 -4
- package/package.json +2 -2
- package/src/abis/0x1.json +20 -0
- package/src/abis/0x2.json +551 -0
- package/src/builtin/0x1.ts +195 -167
- package/src/builtin/0x2.ts +1238 -855
- package/src/builtin/0x3.ts +212 -212
- package/src/codegen/codegen.ts +2 -2
- package/src/move-coder.ts +4 -4
- package/src/tests/types/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.ts +8 -8
- package/src/tests/types/testnet/0x6c4a21e3e7e6b6d51c4604021633e1d97e24e37a696f8c082cd48f37503e602a.ts +96 -96
- package/src/tests/types/testnet/0xdee9.ts +94 -94
- package/src/tests/types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.ts +310 -310
package/src/builtin/0x3.ts
CHANGED
|
@@ -180,13 +180,13 @@ export namespace stake_subsidy {
|
|
|
180
180
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
181
181
|
const tx = new TransactionBlock();
|
|
182
182
|
builder.currentEpochSubsidyAmount(tx, args);
|
|
183
|
-
const
|
|
183
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
184
184
|
transactionBlock: tx,
|
|
185
185
|
sender: ZERO_ADDRESS,
|
|
186
186
|
});
|
|
187
187
|
|
|
188
188
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
189
|
-
|
|
189
|
+
inspectRes,
|
|
190
190
|
);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
@@ -495,13 +495,13 @@ export namespace staking_pool {
|
|
|
495
495
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
496
496
|
const tx = new TransactionBlock();
|
|
497
497
|
builder.isEqualStakingMetadata(tx, args);
|
|
498
|
-
const
|
|
498
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
499
499
|
transactionBlock: tx,
|
|
500
500
|
sender: ZERO_ADDRESS,
|
|
501
501
|
});
|
|
502
502
|
|
|
503
503
|
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
504
|
-
|
|
504
|
+
inspectRes,
|
|
505
505
|
);
|
|
506
506
|
}
|
|
507
507
|
export async function isInactive(
|
|
@@ -510,13 +510,13 @@ export namespace staking_pool {
|
|
|
510
510
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
511
511
|
const tx = new TransactionBlock();
|
|
512
512
|
builder.isInactive(tx, args);
|
|
513
|
-
const
|
|
513
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
514
514
|
transactionBlock: tx,
|
|
515
515
|
sender: ZERO_ADDRESS,
|
|
516
516
|
});
|
|
517
517
|
|
|
518
518
|
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
519
|
-
|
|
519
|
+
inspectRes,
|
|
520
520
|
);
|
|
521
521
|
}
|
|
522
522
|
export async function isPreactive(
|
|
@@ -525,13 +525,13 @@ export namespace staking_pool {
|
|
|
525
525
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
526
526
|
const tx = new TransactionBlock();
|
|
527
527
|
builder.isPreactive(tx, args);
|
|
528
|
-
const
|
|
528
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
529
529
|
transactionBlock: tx,
|
|
530
530
|
sender: ZERO_ADDRESS,
|
|
531
531
|
});
|
|
532
532
|
|
|
533
533
|
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
534
|
-
|
|
534
|
+
inspectRes,
|
|
535
535
|
);
|
|
536
536
|
}
|
|
537
537
|
export async function joinStakedSui(
|
|
@@ -543,13 +543,13 @@ export namespace staking_pool {
|
|
|
543
543
|
): Promise<TypedDevInspectResults<[]>> {
|
|
544
544
|
const tx = new TransactionBlock();
|
|
545
545
|
builder.joinStakedSui(tx, args);
|
|
546
|
-
const
|
|
546
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
547
547
|
transactionBlock: tx,
|
|
548
548
|
sender: ZERO_ADDRESS,
|
|
549
549
|
});
|
|
550
550
|
|
|
551
551
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
552
|
-
|
|
552
|
+
inspectRes,
|
|
553
553
|
);
|
|
554
554
|
}
|
|
555
555
|
|
|
@@ -559,13 +559,13 @@ export namespace staking_pool {
|
|
|
559
559
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
560
560
|
const tx = new TransactionBlock();
|
|
561
561
|
builder.pendingStakeAmount(tx, args);
|
|
562
|
-
const
|
|
562
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
563
563
|
transactionBlock: tx,
|
|
564
564
|
sender: ZERO_ADDRESS,
|
|
565
565
|
});
|
|
566
566
|
|
|
567
567
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
568
|
-
|
|
568
|
+
inspectRes,
|
|
569
569
|
);
|
|
570
570
|
}
|
|
571
571
|
export async function pendingStakeWithdrawAmount(
|
|
@@ -574,13 +574,13 @@ export namespace staking_pool {
|
|
|
574
574
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
575
575
|
const tx = new TransactionBlock();
|
|
576
576
|
builder.pendingStakeWithdrawAmount(tx, args);
|
|
577
|
-
const
|
|
577
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
578
578
|
transactionBlock: tx,
|
|
579
579
|
sender: ZERO_ADDRESS,
|
|
580
580
|
});
|
|
581
581
|
|
|
582
582
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
583
|
-
|
|
583
|
+
inspectRes,
|
|
584
584
|
);
|
|
585
585
|
}
|
|
586
586
|
export async function poolId(
|
|
@@ -589,14 +589,14 @@ export namespace staking_pool {
|
|
|
589
589
|
): Promise<TypedDevInspectResults<[_0x2.object_.ID]>> {
|
|
590
590
|
const tx = new TransactionBlock();
|
|
591
591
|
builder.poolId(tx, args);
|
|
592
|
-
const
|
|
592
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
593
593
|
transactionBlock: tx,
|
|
594
594
|
sender: ZERO_ADDRESS,
|
|
595
595
|
});
|
|
596
596
|
|
|
597
597
|
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
598
598
|
[_0x2.object_.ID]
|
|
599
|
-
>(
|
|
599
|
+
>(inspectRes);
|
|
600
600
|
}
|
|
601
601
|
export async function poolTokenAmount(
|
|
602
602
|
client: SuiClient,
|
|
@@ -604,13 +604,13 @@ export namespace staking_pool {
|
|
|
604
604
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
605
605
|
const tx = new TransactionBlock();
|
|
606
606
|
builder.poolTokenAmount(tx, args);
|
|
607
|
-
const
|
|
607
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
608
608
|
transactionBlock: tx,
|
|
609
609
|
sender: ZERO_ADDRESS,
|
|
610
610
|
});
|
|
611
611
|
|
|
612
612
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
613
|
-
|
|
613
|
+
inspectRes,
|
|
614
614
|
);
|
|
615
615
|
}
|
|
616
616
|
export async function poolTokenExchangeRateAtEpoch(
|
|
@@ -622,14 +622,14 @@ export namespace staking_pool {
|
|
|
622
622
|
): Promise<TypedDevInspectResults<[staking_pool.PoolTokenExchangeRate]>> {
|
|
623
623
|
const tx = new TransactionBlock();
|
|
624
624
|
builder.poolTokenExchangeRateAtEpoch(tx, args);
|
|
625
|
-
const
|
|
625
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
626
626
|
transactionBlock: tx,
|
|
627
627
|
sender: ZERO_ADDRESS,
|
|
628
628
|
});
|
|
629
629
|
|
|
630
630
|
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
631
631
|
[staking_pool.PoolTokenExchangeRate]
|
|
632
|
-
>(
|
|
632
|
+
>(inspectRes);
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
export async function split(
|
|
@@ -642,14 +642,14 @@ export namespace staking_pool {
|
|
|
642
642
|
): Promise<TypedDevInspectResults<[staking_pool.StakedSui]>> {
|
|
643
643
|
const tx = new TransactionBlock();
|
|
644
644
|
builder.split(tx, args);
|
|
645
|
-
const
|
|
645
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
646
646
|
transactionBlock: tx,
|
|
647
647
|
sender: ZERO_ADDRESS,
|
|
648
648
|
});
|
|
649
649
|
|
|
650
650
|
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
651
651
|
[staking_pool.StakedSui]
|
|
652
|
-
>(
|
|
652
|
+
>(inspectRes);
|
|
653
653
|
}
|
|
654
654
|
export async function splitStakedSui(
|
|
655
655
|
client: SuiClient,
|
|
@@ -661,13 +661,13 @@ export namespace staking_pool {
|
|
|
661
661
|
): Promise<TypedDevInspectResults<[]>> {
|
|
662
662
|
const tx = new TransactionBlock();
|
|
663
663
|
builder.splitStakedSui(tx, args);
|
|
664
|
-
const
|
|
664
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
665
665
|
transactionBlock: tx,
|
|
666
666
|
sender: ZERO_ADDRESS,
|
|
667
667
|
});
|
|
668
668
|
|
|
669
669
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
670
|
-
|
|
670
|
+
inspectRes,
|
|
671
671
|
);
|
|
672
672
|
}
|
|
673
673
|
export async function stakeActivationEpoch(
|
|
@@ -676,13 +676,13 @@ export namespace staking_pool {
|
|
|
676
676
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
677
677
|
const tx = new TransactionBlock();
|
|
678
678
|
builder.stakeActivationEpoch(tx, args);
|
|
679
|
-
const
|
|
679
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
680
680
|
transactionBlock: tx,
|
|
681
681
|
sender: ZERO_ADDRESS,
|
|
682
682
|
});
|
|
683
683
|
|
|
684
684
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
685
|
-
|
|
685
|
+
inspectRes,
|
|
686
686
|
);
|
|
687
687
|
}
|
|
688
688
|
export async function stakedSuiAmount(
|
|
@@ -691,13 +691,13 @@ export namespace staking_pool {
|
|
|
691
691
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
692
692
|
const tx = new TransactionBlock();
|
|
693
693
|
builder.stakedSuiAmount(tx, args);
|
|
694
|
-
const
|
|
694
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
695
695
|
transactionBlock: tx,
|
|
696
696
|
sender: ZERO_ADDRESS,
|
|
697
697
|
});
|
|
698
698
|
|
|
699
699
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
700
|
-
|
|
700
|
+
inspectRes,
|
|
701
701
|
);
|
|
702
702
|
}
|
|
703
703
|
export async function suiAmount(
|
|
@@ -706,13 +706,13 @@ export namespace staking_pool {
|
|
|
706
706
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
707
707
|
const tx = new TransactionBlock();
|
|
708
708
|
builder.suiAmount(tx, args);
|
|
709
|
-
const
|
|
709
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
710
710
|
transactionBlock: tx,
|
|
711
711
|
sender: ZERO_ADDRESS,
|
|
712
712
|
});
|
|
713
713
|
|
|
714
714
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
715
|
-
|
|
715
|
+
inspectRes,
|
|
716
716
|
);
|
|
717
717
|
}
|
|
718
718
|
export async function suiBalance(
|
|
@@ -721,13 +721,13 @@ export namespace staking_pool {
|
|
|
721
721
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
722
722
|
const tx = new TransactionBlock();
|
|
723
723
|
builder.suiBalance(tx, args);
|
|
724
|
-
const
|
|
724
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
725
725
|
transactionBlock: tx,
|
|
726
726
|
sender: ZERO_ADDRESS,
|
|
727
727
|
});
|
|
728
728
|
|
|
729
729
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
730
|
-
|
|
730
|
+
inspectRes,
|
|
731
731
|
);
|
|
732
732
|
}
|
|
733
733
|
}
|
|
@@ -784,13 +784,13 @@ export namespace storage_fund {
|
|
|
784
784
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
785
785
|
const tx = new TransactionBlock();
|
|
786
786
|
builder.totalBalance(tx, args);
|
|
787
|
-
const
|
|
787
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
788
788
|
transactionBlock: tx,
|
|
789
789
|
sender: ZERO_ADDRESS,
|
|
790
790
|
});
|
|
791
791
|
|
|
792
792
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
793
|
-
|
|
793
|
+
inspectRes,
|
|
794
794
|
);
|
|
795
795
|
}
|
|
796
796
|
export async function totalObjectStorageRebates(
|
|
@@ -799,13 +799,13 @@ export namespace storage_fund {
|
|
|
799
799
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
800
800
|
const tx = new TransactionBlock();
|
|
801
801
|
builder.totalObjectStorageRebates(tx, args);
|
|
802
|
-
const
|
|
802
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
803
803
|
transactionBlock: tx,
|
|
804
804
|
sender: ZERO_ADDRESS,
|
|
805
805
|
});
|
|
806
806
|
|
|
807
807
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
808
|
-
|
|
808
|
+
inspectRes,
|
|
809
809
|
);
|
|
810
810
|
}
|
|
811
811
|
}
|
|
@@ -1616,13 +1616,13 @@ export namespace sui_system {
|
|
|
1616
1616
|
): Promise<TypedDevInspectResults<[string[]]>> {
|
|
1617
1617
|
const tx = new TransactionBlock();
|
|
1618
1618
|
builder.activeValidatorAddresses(tx, args);
|
|
1619
|
-
const
|
|
1619
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1620
1620
|
transactionBlock: tx,
|
|
1621
1621
|
sender: ZERO_ADDRESS,
|
|
1622
1622
|
});
|
|
1623
1623
|
|
|
1624
1624
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string[]]>(
|
|
1625
|
-
|
|
1625
|
+
inspectRes,
|
|
1626
1626
|
);
|
|
1627
1627
|
}
|
|
1628
1628
|
|
|
@@ -1635,13 +1635,13 @@ export namespace sui_system {
|
|
|
1635
1635
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
1636
1636
|
const tx = new TransactionBlock();
|
|
1637
1637
|
builder.poolExchangeRates(tx, args);
|
|
1638
|
-
const
|
|
1638
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1639
1639
|
transactionBlock: tx,
|
|
1640
1640
|
sender: ZERO_ADDRESS,
|
|
1641
1641
|
});
|
|
1642
1642
|
|
|
1643
1643
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
1644
|
-
|
|
1644
|
+
inspectRes,
|
|
1645
1645
|
);
|
|
1646
1646
|
}
|
|
1647
1647
|
export async function reportValidator(
|
|
@@ -1654,13 +1654,13 @@ export namespace sui_system {
|
|
|
1654
1654
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1655
1655
|
const tx = new TransactionBlock();
|
|
1656
1656
|
builder.reportValidator(tx, args);
|
|
1657
|
-
const
|
|
1657
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1658
1658
|
transactionBlock: tx,
|
|
1659
1659
|
sender: ZERO_ADDRESS,
|
|
1660
1660
|
});
|
|
1661
1661
|
|
|
1662
1662
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1663
|
-
|
|
1663
|
+
inspectRes,
|
|
1664
1664
|
);
|
|
1665
1665
|
}
|
|
1666
1666
|
export async function requestAddStake(
|
|
@@ -1674,13 +1674,13 @@ export namespace sui_system {
|
|
|
1674
1674
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1675
1675
|
const tx = new TransactionBlock();
|
|
1676
1676
|
builder.requestAddStake(tx, args);
|
|
1677
|
-
const
|
|
1677
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1678
1678
|
transactionBlock: tx,
|
|
1679
1679
|
sender: ZERO_ADDRESS,
|
|
1680
1680
|
});
|
|
1681
1681
|
|
|
1682
1682
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1683
|
-
|
|
1683
|
+
inspectRes,
|
|
1684
1684
|
);
|
|
1685
1685
|
}
|
|
1686
1686
|
export async function requestAddStakeMulCoin(
|
|
@@ -1695,13 +1695,13 @@ export namespace sui_system {
|
|
|
1695
1695
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1696
1696
|
const tx = new TransactionBlock();
|
|
1697
1697
|
builder.requestAddStakeMulCoin(tx, args);
|
|
1698
|
-
const
|
|
1698
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1699
1699
|
transactionBlock: tx,
|
|
1700
1700
|
sender: ZERO_ADDRESS,
|
|
1701
1701
|
});
|
|
1702
1702
|
|
|
1703
1703
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1704
|
-
|
|
1704
|
+
inspectRes,
|
|
1705
1705
|
);
|
|
1706
1706
|
}
|
|
1707
1707
|
export async function requestAddStakeNonEntry(
|
|
@@ -1715,14 +1715,14 @@ export namespace sui_system {
|
|
|
1715
1715
|
): Promise<TypedDevInspectResults<[staking_pool.StakedSui]>> {
|
|
1716
1716
|
const tx = new TransactionBlock();
|
|
1717
1717
|
builder.requestAddStakeNonEntry(tx, args);
|
|
1718
|
-
const
|
|
1718
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1719
1719
|
transactionBlock: tx,
|
|
1720
1720
|
sender: ZERO_ADDRESS,
|
|
1721
1721
|
});
|
|
1722
1722
|
|
|
1723
1723
|
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
1724
1724
|
[staking_pool.StakedSui]
|
|
1725
|
-
>(
|
|
1725
|
+
>(inspectRes);
|
|
1726
1726
|
}
|
|
1727
1727
|
export async function requestAddValidator(
|
|
1728
1728
|
client: SuiClient,
|
|
@@ -1733,13 +1733,13 @@ export namespace sui_system {
|
|
|
1733
1733
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1734
1734
|
const tx = new TransactionBlock();
|
|
1735
1735
|
builder.requestAddValidator(tx, args);
|
|
1736
|
-
const
|
|
1736
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1737
1737
|
transactionBlock: tx,
|
|
1738
1738
|
sender: ZERO_ADDRESS,
|
|
1739
1739
|
});
|
|
1740
1740
|
|
|
1741
1741
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1742
|
-
|
|
1742
|
+
inspectRes,
|
|
1743
1743
|
);
|
|
1744
1744
|
}
|
|
1745
1745
|
export async function requestAddValidatorCandidate(
|
|
@@ -1765,13 +1765,13 @@ export namespace sui_system {
|
|
|
1765
1765
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1766
1766
|
const tx = new TransactionBlock();
|
|
1767
1767
|
builder.requestAddValidatorCandidate(tx, args);
|
|
1768
|
-
const
|
|
1768
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1769
1769
|
transactionBlock: tx,
|
|
1770
1770
|
sender: ZERO_ADDRESS,
|
|
1771
1771
|
});
|
|
1772
1772
|
|
|
1773
1773
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1774
|
-
|
|
1774
|
+
inspectRes,
|
|
1775
1775
|
);
|
|
1776
1776
|
}
|
|
1777
1777
|
export async function requestRemoveValidator(
|
|
@@ -1783,13 +1783,13 @@ export namespace sui_system {
|
|
|
1783
1783
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1784
1784
|
const tx = new TransactionBlock();
|
|
1785
1785
|
builder.requestRemoveValidator(tx, args);
|
|
1786
|
-
const
|
|
1786
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1787
1787
|
transactionBlock: tx,
|
|
1788
1788
|
sender: ZERO_ADDRESS,
|
|
1789
1789
|
});
|
|
1790
1790
|
|
|
1791
1791
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1792
|
-
|
|
1792
|
+
inspectRes,
|
|
1793
1793
|
);
|
|
1794
1794
|
}
|
|
1795
1795
|
export async function requestRemoveValidatorCandidate(
|
|
@@ -1801,13 +1801,13 @@ export namespace sui_system {
|
|
|
1801
1801
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1802
1802
|
const tx = new TransactionBlock();
|
|
1803
1803
|
builder.requestRemoveValidatorCandidate(tx, args);
|
|
1804
|
-
const
|
|
1804
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1805
1805
|
transactionBlock: tx,
|
|
1806
1806
|
sender: ZERO_ADDRESS,
|
|
1807
1807
|
});
|
|
1808
1808
|
|
|
1809
1809
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1810
|
-
|
|
1810
|
+
inspectRes,
|
|
1811
1811
|
);
|
|
1812
1812
|
}
|
|
1813
1813
|
export async function requestSetCommissionRate(
|
|
@@ -1820,13 +1820,13 @@ export namespace sui_system {
|
|
|
1820
1820
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1821
1821
|
const tx = new TransactionBlock();
|
|
1822
1822
|
builder.requestSetCommissionRate(tx, args);
|
|
1823
|
-
const
|
|
1823
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1824
1824
|
transactionBlock: tx,
|
|
1825
1825
|
sender: ZERO_ADDRESS,
|
|
1826
1826
|
});
|
|
1827
1827
|
|
|
1828
1828
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1829
|
-
|
|
1829
|
+
inspectRes,
|
|
1830
1830
|
);
|
|
1831
1831
|
}
|
|
1832
1832
|
export async function requestSetGasPrice(
|
|
@@ -1839,13 +1839,13 @@ export namespace sui_system {
|
|
|
1839
1839
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1840
1840
|
const tx = new TransactionBlock();
|
|
1841
1841
|
builder.requestSetGasPrice(tx, args);
|
|
1842
|
-
const
|
|
1842
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1843
1843
|
transactionBlock: tx,
|
|
1844
1844
|
sender: ZERO_ADDRESS,
|
|
1845
1845
|
});
|
|
1846
1846
|
|
|
1847
1847
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1848
|
-
|
|
1848
|
+
inspectRes,
|
|
1849
1849
|
);
|
|
1850
1850
|
}
|
|
1851
1851
|
export async function requestWithdrawStake(
|
|
@@ -1858,13 +1858,13 @@ export namespace sui_system {
|
|
|
1858
1858
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1859
1859
|
const tx = new TransactionBlock();
|
|
1860
1860
|
builder.requestWithdrawStake(tx, args);
|
|
1861
|
-
const
|
|
1861
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1862
1862
|
transactionBlock: tx,
|
|
1863
1863
|
sender: ZERO_ADDRESS,
|
|
1864
1864
|
});
|
|
1865
1865
|
|
|
1866
1866
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1867
|
-
|
|
1867
|
+
inspectRes,
|
|
1868
1868
|
);
|
|
1869
1869
|
}
|
|
1870
1870
|
export async function requestWithdrawStakeNonEntry(
|
|
@@ -1877,14 +1877,14 @@ export namespace sui_system {
|
|
|
1877
1877
|
): Promise<TypedDevInspectResults<[_0x2.balance.Balance<_0x2.sui.SUI>]>> {
|
|
1878
1878
|
const tx = new TransactionBlock();
|
|
1879
1879
|
builder.requestWithdrawStakeNonEntry(tx, args);
|
|
1880
|
-
const
|
|
1880
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1881
1881
|
transactionBlock: tx,
|
|
1882
1882
|
sender: ZERO_ADDRESS,
|
|
1883
1883
|
});
|
|
1884
1884
|
|
|
1885
1885
|
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
1886
1886
|
[_0x2.balance.Balance<_0x2.sui.SUI>]
|
|
1887
|
-
>(
|
|
1887
|
+
>(inspectRes);
|
|
1888
1888
|
}
|
|
1889
1889
|
export async function rotateOperationCap(
|
|
1890
1890
|
client: SuiClient,
|
|
@@ -1895,13 +1895,13 @@ export namespace sui_system {
|
|
|
1895
1895
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1896
1896
|
const tx = new TransactionBlock();
|
|
1897
1897
|
builder.rotateOperationCap(tx, args);
|
|
1898
|
-
const
|
|
1898
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1899
1899
|
transactionBlock: tx,
|
|
1900
1900
|
sender: ZERO_ADDRESS,
|
|
1901
1901
|
});
|
|
1902
1902
|
|
|
1903
1903
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1904
|
-
|
|
1904
|
+
inspectRes,
|
|
1905
1905
|
);
|
|
1906
1906
|
}
|
|
1907
1907
|
export async function setCandidateValidatorCommissionRate(
|
|
@@ -1914,13 +1914,13 @@ export namespace sui_system {
|
|
|
1914
1914
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1915
1915
|
const tx = new TransactionBlock();
|
|
1916
1916
|
builder.setCandidateValidatorCommissionRate(tx, args);
|
|
1917
|
-
const
|
|
1917
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1918
1918
|
transactionBlock: tx,
|
|
1919
1919
|
sender: ZERO_ADDRESS,
|
|
1920
1920
|
});
|
|
1921
1921
|
|
|
1922
1922
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1923
|
-
|
|
1923
|
+
inspectRes,
|
|
1924
1924
|
);
|
|
1925
1925
|
}
|
|
1926
1926
|
export async function setCandidateValidatorGasPrice(
|
|
@@ -1933,13 +1933,13 @@ export namespace sui_system {
|
|
|
1933
1933
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1934
1934
|
const tx = new TransactionBlock();
|
|
1935
1935
|
builder.setCandidateValidatorGasPrice(tx, args);
|
|
1936
|
-
const
|
|
1936
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1937
1937
|
transactionBlock: tx,
|
|
1938
1938
|
sender: ZERO_ADDRESS,
|
|
1939
1939
|
});
|
|
1940
1940
|
|
|
1941
1941
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1942
|
-
|
|
1942
|
+
inspectRes,
|
|
1943
1943
|
);
|
|
1944
1944
|
}
|
|
1945
1945
|
export async function undoReportValidator(
|
|
@@ -1952,13 +1952,13 @@ export namespace sui_system {
|
|
|
1952
1952
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1953
1953
|
const tx = new TransactionBlock();
|
|
1954
1954
|
builder.undoReportValidator(tx, args);
|
|
1955
|
-
const
|
|
1955
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1956
1956
|
transactionBlock: tx,
|
|
1957
1957
|
sender: ZERO_ADDRESS,
|
|
1958
1958
|
});
|
|
1959
1959
|
|
|
1960
1960
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1961
|
-
|
|
1961
|
+
inspectRes,
|
|
1962
1962
|
);
|
|
1963
1963
|
}
|
|
1964
1964
|
export async function updateCandidateValidatorNetworkAddress(
|
|
@@ -1971,13 +1971,13 @@ export namespace sui_system {
|
|
|
1971
1971
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1972
1972
|
const tx = new TransactionBlock();
|
|
1973
1973
|
builder.updateCandidateValidatorNetworkAddress(tx, args);
|
|
1974
|
-
const
|
|
1974
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1975
1975
|
transactionBlock: tx,
|
|
1976
1976
|
sender: ZERO_ADDRESS,
|
|
1977
1977
|
});
|
|
1978
1978
|
|
|
1979
1979
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1980
|
-
|
|
1980
|
+
inspectRes,
|
|
1981
1981
|
);
|
|
1982
1982
|
}
|
|
1983
1983
|
export async function updateCandidateValidatorNetworkPubkey(
|
|
@@ -1990,13 +1990,13 @@ export namespace sui_system {
|
|
|
1990
1990
|
): Promise<TypedDevInspectResults<[]>> {
|
|
1991
1991
|
const tx = new TransactionBlock();
|
|
1992
1992
|
builder.updateCandidateValidatorNetworkPubkey(tx, args);
|
|
1993
|
-
const
|
|
1993
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
1994
1994
|
transactionBlock: tx,
|
|
1995
1995
|
sender: ZERO_ADDRESS,
|
|
1996
1996
|
});
|
|
1997
1997
|
|
|
1998
1998
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
1999
|
-
|
|
1999
|
+
inspectRes,
|
|
2000
2000
|
);
|
|
2001
2001
|
}
|
|
2002
2002
|
export async function updateCandidateValidatorP2pAddress(
|
|
@@ -2009,13 +2009,13 @@ export namespace sui_system {
|
|
|
2009
2009
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2010
2010
|
const tx = new TransactionBlock();
|
|
2011
2011
|
builder.updateCandidateValidatorP2pAddress(tx, args);
|
|
2012
|
-
const
|
|
2012
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2013
2013
|
transactionBlock: tx,
|
|
2014
2014
|
sender: ZERO_ADDRESS,
|
|
2015
2015
|
});
|
|
2016
2016
|
|
|
2017
2017
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2018
|
-
|
|
2018
|
+
inspectRes,
|
|
2019
2019
|
);
|
|
2020
2020
|
}
|
|
2021
2021
|
export async function updateCandidateValidatorPrimaryAddress(
|
|
@@ -2028,13 +2028,13 @@ export namespace sui_system {
|
|
|
2028
2028
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2029
2029
|
const tx = new TransactionBlock();
|
|
2030
2030
|
builder.updateCandidateValidatorPrimaryAddress(tx, args);
|
|
2031
|
-
const
|
|
2031
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2032
2032
|
transactionBlock: tx,
|
|
2033
2033
|
sender: ZERO_ADDRESS,
|
|
2034
2034
|
});
|
|
2035
2035
|
|
|
2036
2036
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2037
|
-
|
|
2037
|
+
inspectRes,
|
|
2038
2038
|
);
|
|
2039
2039
|
}
|
|
2040
2040
|
export async function updateCandidateValidatorProtocolPubkey(
|
|
@@ -2048,13 +2048,13 @@ export namespace sui_system {
|
|
|
2048
2048
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2049
2049
|
const tx = new TransactionBlock();
|
|
2050
2050
|
builder.updateCandidateValidatorProtocolPubkey(tx, args);
|
|
2051
|
-
const
|
|
2051
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2052
2052
|
transactionBlock: tx,
|
|
2053
2053
|
sender: ZERO_ADDRESS,
|
|
2054
2054
|
});
|
|
2055
2055
|
|
|
2056
2056
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2057
|
-
|
|
2057
|
+
inspectRes,
|
|
2058
2058
|
);
|
|
2059
2059
|
}
|
|
2060
2060
|
export async function updateCandidateValidatorWorkerAddress(
|
|
@@ -2067,13 +2067,13 @@ export namespace sui_system {
|
|
|
2067
2067
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2068
2068
|
const tx = new TransactionBlock();
|
|
2069
2069
|
builder.updateCandidateValidatorWorkerAddress(tx, args);
|
|
2070
|
-
const
|
|
2070
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2071
2071
|
transactionBlock: tx,
|
|
2072
2072
|
sender: ZERO_ADDRESS,
|
|
2073
2073
|
});
|
|
2074
2074
|
|
|
2075
2075
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2076
|
-
|
|
2076
|
+
inspectRes,
|
|
2077
2077
|
);
|
|
2078
2078
|
}
|
|
2079
2079
|
export async function updateCandidateValidatorWorkerPubkey(
|
|
@@ -2086,13 +2086,13 @@ export namespace sui_system {
|
|
|
2086
2086
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2087
2087
|
const tx = new TransactionBlock();
|
|
2088
2088
|
builder.updateCandidateValidatorWorkerPubkey(tx, args);
|
|
2089
|
-
const
|
|
2089
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2090
2090
|
transactionBlock: tx,
|
|
2091
2091
|
sender: ZERO_ADDRESS,
|
|
2092
2092
|
});
|
|
2093
2093
|
|
|
2094
2094
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2095
|
-
|
|
2095
|
+
inspectRes,
|
|
2096
2096
|
);
|
|
2097
2097
|
}
|
|
2098
2098
|
export async function updateValidatorDescription(
|
|
@@ -2105,13 +2105,13 @@ export namespace sui_system {
|
|
|
2105
2105
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2106
2106
|
const tx = new TransactionBlock();
|
|
2107
2107
|
builder.updateValidatorDescription(tx, args);
|
|
2108
|
-
const
|
|
2108
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2109
2109
|
transactionBlock: tx,
|
|
2110
2110
|
sender: ZERO_ADDRESS,
|
|
2111
2111
|
});
|
|
2112
2112
|
|
|
2113
2113
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2114
|
-
|
|
2114
|
+
inspectRes,
|
|
2115
2115
|
);
|
|
2116
2116
|
}
|
|
2117
2117
|
export async function updateValidatorImageUrl(
|
|
@@ -2124,13 +2124,13 @@ export namespace sui_system {
|
|
|
2124
2124
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2125
2125
|
const tx = new TransactionBlock();
|
|
2126
2126
|
builder.updateValidatorImageUrl(tx, args);
|
|
2127
|
-
const
|
|
2127
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2128
2128
|
transactionBlock: tx,
|
|
2129
2129
|
sender: ZERO_ADDRESS,
|
|
2130
2130
|
});
|
|
2131
2131
|
|
|
2132
2132
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2133
|
-
|
|
2133
|
+
inspectRes,
|
|
2134
2134
|
);
|
|
2135
2135
|
}
|
|
2136
2136
|
export async function updateValidatorName(
|
|
@@ -2143,13 +2143,13 @@ export namespace sui_system {
|
|
|
2143
2143
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2144
2144
|
const tx = new TransactionBlock();
|
|
2145
2145
|
builder.updateValidatorName(tx, args);
|
|
2146
|
-
const
|
|
2146
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2147
2147
|
transactionBlock: tx,
|
|
2148
2148
|
sender: ZERO_ADDRESS,
|
|
2149
2149
|
});
|
|
2150
2150
|
|
|
2151
2151
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2152
|
-
|
|
2152
|
+
inspectRes,
|
|
2153
2153
|
);
|
|
2154
2154
|
}
|
|
2155
2155
|
export async function updateValidatorNextEpochNetworkAddress(
|
|
@@ -2162,13 +2162,13 @@ export namespace sui_system {
|
|
|
2162
2162
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2163
2163
|
const tx = new TransactionBlock();
|
|
2164
2164
|
builder.updateValidatorNextEpochNetworkAddress(tx, args);
|
|
2165
|
-
const
|
|
2165
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2166
2166
|
transactionBlock: tx,
|
|
2167
2167
|
sender: ZERO_ADDRESS,
|
|
2168
2168
|
});
|
|
2169
2169
|
|
|
2170
2170
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2171
|
-
|
|
2171
|
+
inspectRes,
|
|
2172
2172
|
);
|
|
2173
2173
|
}
|
|
2174
2174
|
export async function updateValidatorNextEpochNetworkPubkey(
|
|
@@ -2181,13 +2181,13 @@ export namespace sui_system {
|
|
|
2181
2181
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2182
2182
|
const tx = new TransactionBlock();
|
|
2183
2183
|
builder.updateValidatorNextEpochNetworkPubkey(tx, args);
|
|
2184
|
-
const
|
|
2184
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2185
2185
|
transactionBlock: tx,
|
|
2186
2186
|
sender: ZERO_ADDRESS,
|
|
2187
2187
|
});
|
|
2188
2188
|
|
|
2189
2189
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2190
|
-
|
|
2190
|
+
inspectRes,
|
|
2191
2191
|
);
|
|
2192
2192
|
}
|
|
2193
2193
|
export async function updateValidatorNextEpochP2pAddress(
|
|
@@ -2200,13 +2200,13 @@ export namespace sui_system {
|
|
|
2200
2200
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2201
2201
|
const tx = new TransactionBlock();
|
|
2202
2202
|
builder.updateValidatorNextEpochP2pAddress(tx, args);
|
|
2203
|
-
const
|
|
2203
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2204
2204
|
transactionBlock: tx,
|
|
2205
2205
|
sender: ZERO_ADDRESS,
|
|
2206
2206
|
});
|
|
2207
2207
|
|
|
2208
2208
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2209
|
-
|
|
2209
|
+
inspectRes,
|
|
2210
2210
|
);
|
|
2211
2211
|
}
|
|
2212
2212
|
export async function updateValidatorNextEpochPrimaryAddress(
|
|
@@ -2219,13 +2219,13 @@ export namespace sui_system {
|
|
|
2219
2219
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2220
2220
|
const tx = new TransactionBlock();
|
|
2221
2221
|
builder.updateValidatorNextEpochPrimaryAddress(tx, args);
|
|
2222
|
-
const
|
|
2222
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2223
2223
|
transactionBlock: tx,
|
|
2224
2224
|
sender: ZERO_ADDRESS,
|
|
2225
2225
|
});
|
|
2226
2226
|
|
|
2227
2227
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2228
|
-
|
|
2228
|
+
inspectRes,
|
|
2229
2229
|
);
|
|
2230
2230
|
}
|
|
2231
2231
|
export async function updateValidatorNextEpochProtocolPubkey(
|
|
@@ -2239,13 +2239,13 @@ export namespace sui_system {
|
|
|
2239
2239
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2240
2240
|
const tx = new TransactionBlock();
|
|
2241
2241
|
builder.updateValidatorNextEpochProtocolPubkey(tx, args);
|
|
2242
|
-
const
|
|
2242
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2243
2243
|
transactionBlock: tx,
|
|
2244
2244
|
sender: ZERO_ADDRESS,
|
|
2245
2245
|
});
|
|
2246
2246
|
|
|
2247
2247
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2248
|
-
|
|
2248
|
+
inspectRes,
|
|
2249
2249
|
);
|
|
2250
2250
|
}
|
|
2251
2251
|
export async function updateValidatorNextEpochWorkerAddress(
|
|
@@ -2258,13 +2258,13 @@ export namespace sui_system {
|
|
|
2258
2258
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2259
2259
|
const tx = new TransactionBlock();
|
|
2260
2260
|
builder.updateValidatorNextEpochWorkerAddress(tx, args);
|
|
2261
|
-
const
|
|
2261
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2262
2262
|
transactionBlock: tx,
|
|
2263
2263
|
sender: ZERO_ADDRESS,
|
|
2264
2264
|
});
|
|
2265
2265
|
|
|
2266
2266
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2267
|
-
|
|
2267
|
+
inspectRes,
|
|
2268
2268
|
);
|
|
2269
2269
|
}
|
|
2270
2270
|
export async function updateValidatorNextEpochWorkerPubkey(
|
|
@@ -2277,13 +2277,13 @@ export namespace sui_system {
|
|
|
2277
2277
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2278
2278
|
const tx = new TransactionBlock();
|
|
2279
2279
|
builder.updateValidatorNextEpochWorkerPubkey(tx, args);
|
|
2280
|
-
const
|
|
2280
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2281
2281
|
transactionBlock: tx,
|
|
2282
2282
|
sender: ZERO_ADDRESS,
|
|
2283
2283
|
});
|
|
2284
2284
|
|
|
2285
2285
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2286
|
-
|
|
2286
|
+
inspectRes,
|
|
2287
2287
|
);
|
|
2288
2288
|
}
|
|
2289
2289
|
export async function updateValidatorProjectUrl(
|
|
@@ -2296,13 +2296,13 @@ export namespace sui_system {
|
|
|
2296
2296
|
): Promise<TypedDevInspectResults<[]>> {
|
|
2297
2297
|
const tx = new TransactionBlock();
|
|
2298
2298
|
builder.updateValidatorProjectUrl(tx, args);
|
|
2299
|
-
const
|
|
2299
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
2300
2300
|
transactionBlock: tx,
|
|
2301
2301
|
sender: ZERO_ADDRESS,
|
|
2302
2302
|
});
|
|
2303
2303
|
|
|
2304
2304
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
2305
|
-
|
|
2305
|
+
inspectRes,
|
|
2306
2306
|
);
|
|
2307
2307
|
}
|
|
2308
2308
|
}
|
|
@@ -3097,13 +3097,13 @@ export namespace validator {
|
|
|
3097
3097
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3098
3098
|
const tx = new TransactionBlock();
|
|
3099
3099
|
builder.commissionRate(tx, args);
|
|
3100
|
-
const
|
|
3100
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3101
3101
|
transactionBlock: tx,
|
|
3102
3102
|
sender: ZERO_ADDRESS,
|
|
3103
3103
|
});
|
|
3104
3104
|
|
|
3105
3105
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3106
|
-
|
|
3106
|
+
inspectRes,
|
|
3107
3107
|
);
|
|
3108
3108
|
}
|
|
3109
3109
|
|
|
@@ -3113,13 +3113,13 @@ export namespace validator {
|
|
|
3113
3113
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3114
3114
|
const tx = new TransactionBlock();
|
|
3115
3115
|
builder.description(tx, args);
|
|
3116
|
-
const
|
|
3116
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3117
3117
|
transactionBlock: tx,
|
|
3118
3118
|
sender: ZERO_ADDRESS,
|
|
3119
3119
|
});
|
|
3120
3120
|
|
|
3121
3121
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3122
|
-
|
|
3122
|
+
inspectRes,
|
|
3123
3123
|
);
|
|
3124
3124
|
}
|
|
3125
3125
|
|
|
@@ -3129,13 +3129,13 @@ export namespace validator {
|
|
|
3129
3129
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3130
3130
|
const tx = new TransactionBlock();
|
|
3131
3131
|
builder.gasPrice(tx, args);
|
|
3132
|
-
const
|
|
3132
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3133
3133
|
transactionBlock: tx,
|
|
3134
3134
|
sender: ZERO_ADDRESS,
|
|
3135
3135
|
});
|
|
3136
3136
|
|
|
3137
3137
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3138
|
-
|
|
3138
|
+
inspectRes,
|
|
3139
3139
|
);
|
|
3140
3140
|
}
|
|
3141
3141
|
|
|
@@ -3145,13 +3145,13 @@ export namespace validator {
|
|
|
3145
3145
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3146
3146
|
const tx = new TransactionBlock();
|
|
3147
3147
|
builder.imageUrl(tx, args);
|
|
3148
|
-
const
|
|
3148
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3149
3149
|
transactionBlock: tx,
|
|
3150
3150
|
sender: ZERO_ADDRESS,
|
|
3151
3151
|
});
|
|
3152
3152
|
|
|
3153
3153
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3154
|
-
|
|
3154
|
+
inspectRes,
|
|
3155
3155
|
);
|
|
3156
3156
|
}
|
|
3157
3157
|
export async function isDuplicate(
|
|
@@ -3163,13 +3163,13 @@ export namespace validator {
|
|
|
3163
3163
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
3164
3164
|
const tx = new TransactionBlock();
|
|
3165
3165
|
builder.isDuplicate(tx, args);
|
|
3166
|
-
const
|
|
3166
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3167
3167
|
transactionBlock: tx,
|
|
3168
3168
|
sender: ZERO_ADDRESS,
|
|
3169
3169
|
});
|
|
3170
3170
|
|
|
3171
3171
|
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
3172
|
-
|
|
3172
|
+
inspectRes,
|
|
3173
3173
|
);
|
|
3174
3174
|
}
|
|
3175
3175
|
export async function isPreactive(
|
|
@@ -3178,13 +3178,13 @@ export namespace validator {
|
|
|
3178
3178
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
3179
3179
|
const tx = new TransactionBlock();
|
|
3180
3180
|
builder.isPreactive(tx, args);
|
|
3181
|
-
const
|
|
3181
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3182
3182
|
transactionBlock: tx,
|
|
3183
3183
|
sender: ZERO_ADDRESS,
|
|
3184
3184
|
});
|
|
3185
3185
|
|
|
3186
3186
|
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
3187
|
-
|
|
3187
|
+
inspectRes,
|
|
3188
3188
|
);
|
|
3189
3189
|
}
|
|
3190
3190
|
export async function metadata(
|
|
@@ -3193,13 +3193,13 @@ export namespace validator {
|
|
|
3193
3193
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3194
3194
|
const tx = new TransactionBlock();
|
|
3195
3195
|
builder.metadata(tx, args);
|
|
3196
|
-
const
|
|
3196
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3197
3197
|
transactionBlock: tx,
|
|
3198
3198
|
sender: ZERO_ADDRESS,
|
|
3199
3199
|
});
|
|
3200
3200
|
|
|
3201
3201
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3202
|
-
|
|
3202
|
+
inspectRes,
|
|
3203
3203
|
);
|
|
3204
3204
|
}
|
|
3205
3205
|
export async function name(
|
|
@@ -3208,13 +3208,13 @@ export namespace validator {
|
|
|
3208
3208
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3209
3209
|
const tx = new TransactionBlock();
|
|
3210
3210
|
builder.name(tx, args);
|
|
3211
|
-
const
|
|
3211
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3212
3212
|
transactionBlock: tx,
|
|
3213
3213
|
sender: ZERO_ADDRESS,
|
|
3214
3214
|
});
|
|
3215
3215
|
|
|
3216
3216
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3217
|
-
|
|
3217
|
+
inspectRes,
|
|
3218
3218
|
);
|
|
3219
3219
|
}
|
|
3220
3220
|
export async function networkAddress(
|
|
@@ -3223,13 +3223,13 @@ export namespace validator {
|
|
|
3223
3223
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3224
3224
|
const tx = new TransactionBlock();
|
|
3225
3225
|
builder.networkAddress(tx, args);
|
|
3226
|
-
const
|
|
3226
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3227
3227
|
transactionBlock: tx,
|
|
3228
3228
|
sender: ZERO_ADDRESS,
|
|
3229
3229
|
});
|
|
3230
3230
|
|
|
3231
3231
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3232
|
-
|
|
3232
|
+
inspectRes,
|
|
3233
3233
|
);
|
|
3234
3234
|
}
|
|
3235
3235
|
export async function networkPubkeyBytes(
|
|
@@ -3238,13 +3238,13 @@ export namespace validator {
|
|
|
3238
3238
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3239
3239
|
const tx = new TransactionBlock();
|
|
3240
3240
|
builder.networkPubkeyBytes(tx, args);
|
|
3241
|
-
const
|
|
3241
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3242
3242
|
transactionBlock: tx,
|
|
3243
3243
|
sender: ZERO_ADDRESS,
|
|
3244
3244
|
});
|
|
3245
3245
|
|
|
3246
3246
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3247
|
-
|
|
3247
|
+
inspectRes,
|
|
3248
3248
|
);
|
|
3249
3249
|
}
|
|
3250
3250
|
|
|
@@ -3254,13 +3254,13 @@ export namespace validator {
|
|
|
3254
3254
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3255
3255
|
const tx = new TransactionBlock();
|
|
3256
3256
|
builder.nextEpochGasPrice(tx, args);
|
|
3257
|
-
const
|
|
3257
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3258
3258
|
transactionBlock: tx,
|
|
3259
3259
|
sender: ZERO_ADDRESS,
|
|
3260
3260
|
});
|
|
3261
3261
|
|
|
3262
3262
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3263
|
-
|
|
3263
|
+
inspectRes,
|
|
3264
3264
|
);
|
|
3265
3265
|
}
|
|
3266
3266
|
export async function nextEpochNetworkAddress(
|
|
@@ -3269,13 +3269,13 @@ export namespace validator {
|
|
|
3269
3269
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3270
3270
|
const tx = new TransactionBlock();
|
|
3271
3271
|
builder.nextEpochNetworkAddress(tx, args);
|
|
3272
|
-
const
|
|
3272
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3273
3273
|
transactionBlock: tx,
|
|
3274
3274
|
sender: ZERO_ADDRESS,
|
|
3275
3275
|
});
|
|
3276
3276
|
|
|
3277
3277
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3278
|
-
|
|
3278
|
+
inspectRes,
|
|
3279
3279
|
);
|
|
3280
3280
|
}
|
|
3281
3281
|
export async function nextEpochNetworkPubkeyBytes(
|
|
@@ -3284,13 +3284,13 @@ export namespace validator {
|
|
|
3284
3284
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3285
3285
|
const tx = new TransactionBlock();
|
|
3286
3286
|
builder.nextEpochNetworkPubkeyBytes(tx, args);
|
|
3287
|
-
const
|
|
3287
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3288
3288
|
transactionBlock: tx,
|
|
3289
3289
|
sender: ZERO_ADDRESS,
|
|
3290
3290
|
});
|
|
3291
3291
|
|
|
3292
3292
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3293
|
-
|
|
3293
|
+
inspectRes,
|
|
3294
3294
|
);
|
|
3295
3295
|
}
|
|
3296
3296
|
export async function nextEpochP2pAddress(
|
|
@@ -3299,13 +3299,13 @@ export namespace validator {
|
|
|
3299
3299
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3300
3300
|
const tx = new TransactionBlock();
|
|
3301
3301
|
builder.nextEpochP2pAddress(tx, args);
|
|
3302
|
-
const
|
|
3302
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3303
3303
|
transactionBlock: tx,
|
|
3304
3304
|
sender: ZERO_ADDRESS,
|
|
3305
3305
|
});
|
|
3306
3306
|
|
|
3307
3307
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3308
|
-
|
|
3308
|
+
inspectRes,
|
|
3309
3309
|
);
|
|
3310
3310
|
}
|
|
3311
3311
|
export async function nextEpochPrimaryAddress(
|
|
@@ -3314,13 +3314,13 @@ export namespace validator {
|
|
|
3314
3314
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3315
3315
|
const tx = new TransactionBlock();
|
|
3316
3316
|
builder.nextEpochPrimaryAddress(tx, args);
|
|
3317
|
-
const
|
|
3317
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3318
3318
|
transactionBlock: tx,
|
|
3319
3319
|
sender: ZERO_ADDRESS,
|
|
3320
3320
|
});
|
|
3321
3321
|
|
|
3322
3322
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3323
|
-
|
|
3323
|
+
inspectRes,
|
|
3324
3324
|
);
|
|
3325
3325
|
}
|
|
3326
3326
|
export async function nextEpochProofOfPossession(
|
|
@@ -3329,13 +3329,13 @@ export namespace validator {
|
|
|
3329
3329
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3330
3330
|
const tx = new TransactionBlock();
|
|
3331
3331
|
builder.nextEpochProofOfPossession(tx, args);
|
|
3332
|
-
const
|
|
3332
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3333
3333
|
transactionBlock: tx,
|
|
3334
3334
|
sender: ZERO_ADDRESS,
|
|
3335
3335
|
});
|
|
3336
3336
|
|
|
3337
3337
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3338
|
-
|
|
3338
|
+
inspectRes,
|
|
3339
3339
|
);
|
|
3340
3340
|
}
|
|
3341
3341
|
export async function nextEpochProtocolPubkeyBytes(
|
|
@@ -3344,13 +3344,13 @@ export namespace validator {
|
|
|
3344
3344
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3345
3345
|
const tx = new TransactionBlock();
|
|
3346
3346
|
builder.nextEpochProtocolPubkeyBytes(tx, args);
|
|
3347
|
-
const
|
|
3347
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3348
3348
|
transactionBlock: tx,
|
|
3349
3349
|
sender: ZERO_ADDRESS,
|
|
3350
3350
|
});
|
|
3351
3351
|
|
|
3352
3352
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3353
|
-
|
|
3353
|
+
inspectRes,
|
|
3354
3354
|
);
|
|
3355
3355
|
}
|
|
3356
3356
|
export async function nextEpochWorkerAddress(
|
|
@@ -3359,13 +3359,13 @@ export namespace validator {
|
|
|
3359
3359
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3360
3360
|
const tx = new TransactionBlock();
|
|
3361
3361
|
builder.nextEpochWorkerAddress(tx, args);
|
|
3362
|
-
const
|
|
3362
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3363
3363
|
transactionBlock: tx,
|
|
3364
3364
|
sender: ZERO_ADDRESS,
|
|
3365
3365
|
});
|
|
3366
3366
|
|
|
3367
3367
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3368
|
-
|
|
3368
|
+
inspectRes,
|
|
3369
3369
|
);
|
|
3370
3370
|
}
|
|
3371
3371
|
export async function nextEpochWorkerPubkeyBytes(
|
|
@@ -3374,13 +3374,13 @@ export namespace validator {
|
|
|
3374
3374
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3375
3375
|
const tx = new TransactionBlock();
|
|
3376
3376
|
builder.nextEpochWorkerPubkeyBytes(tx, args);
|
|
3377
|
-
const
|
|
3377
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3378
3378
|
transactionBlock: tx,
|
|
3379
3379
|
sender: ZERO_ADDRESS,
|
|
3380
3380
|
});
|
|
3381
3381
|
|
|
3382
3382
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3383
|
-
|
|
3383
|
+
inspectRes,
|
|
3384
3384
|
);
|
|
3385
3385
|
}
|
|
3386
3386
|
export async function operationCapId(
|
|
@@ -3389,13 +3389,13 @@ export namespace validator {
|
|
|
3389
3389
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3390
3390
|
const tx = new TransactionBlock();
|
|
3391
3391
|
builder.operationCapId(tx, args);
|
|
3392
|
-
const
|
|
3392
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3393
3393
|
transactionBlock: tx,
|
|
3394
3394
|
sender: ZERO_ADDRESS,
|
|
3395
3395
|
});
|
|
3396
3396
|
|
|
3397
3397
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3398
|
-
|
|
3398
|
+
inspectRes,
|
|
3399
3399
|
);
|
|
3400
3400
|
}
|
|
3401
3401
|
export async function p2pAddress(
|
|
@@ -3404,13 +3404,13 @@ export namespace validator {
|
|
|
3404
3404
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3405
3405
|
const tx = new TransactionBlock();
|
|
3406
3406
|
builder.p2pAddress(tx, args);
|
|
3407
|
-
const
|
|
3407
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3408
3408
|
transactionBlock: tx,
|
|
3409
3409
|
sender: ZERO_ADDRESS,
|
|
3410
3410
|
});
|
|
3411
3411
|
|
|
3412
3412
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3413
|
-
|
|
3413
|
+
inspectRes,
|
|
3414
3414
|
);
|
|
3415
3415
|
}
|
|
3416
3416
|
export async function pendingStakeAmount(
|
|
@@ -3419,13 +3419,13 @@ export namespace validator {
|
|
|
3419
3419
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3420
3420
|
const tx = new TransactionBlock();
|
|
3421
3421
|
builder.pendingStakeAmount(tx, args);
|
|
3422
|
-
const
|
|
3422
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3423
3423
|
transactionBlock: tx,
|
|
3424
3424
|
sender: ZERO_ADDRESS,
|
|
3425
3425
|
});
|
|
3426
3426
|
|
|
3427
3427
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3428
|
-
|
|
3428
|
+
inspectRes,
|
|
3429
3429
|
);
|
|
3430
3430
|
}
|
|
3431
3431
|
export async function pendingStakeWithdrawAmount(
|
|
@@ -3434,13 +3434,13 @@ export namespace validator {
|
|
|
3434
3434
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3435
3435
|
const tx = new TransactionBlock();
|
|
3436
3436
|
builder.pendingStakeWithdrawAmount(tx, args);
|
|
3437
|
-
const
|
|
3437
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3438
3438
|
transactionBlock: tx,
|
|
3439
3439
|
sender: ZERO_ADDRESS,
|
|
3440
3440
|
});
|
|
3441
3441
|
|
|
3442
3442
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3443
|
-
|
|
3443
|
+
inspectRes,
|
|
3444
3444
|
);
|
|
3445
3445
|
}
|
|
3446
3446
|
export async function poolTokenExchangeRateAtEpoch(
|
|
@@ -3452,14 +3452,14 @@ export namespace validator {
|
|
|
3452
3452
|
): Promise<TypedDevInspectResults<[staking_pool.PoolTokenExchangeRate]>> {
|
|
3453
3453
|
const tx = new TransactionBlock();
|
|
3454
3454
|
builder.poolTokenExchangeRateAtEpoch(tx, args);
|
|
3455
|
-
const
|
|
3455
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3456
3456
|
transactionBlock: tx,
|
|
3457
3457
|
sender: ZERO_ADDRESS,
|
|
3458
3458
|
});
|
|
3459
3459
|
|
|
3460
3460
|
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3461
3461
|
[staking_pool.PoolTokenExchangeRate]
|
|
3462
|
-
>(
|
|
3462
|
+
>(inspectRes);
|
|
3463
3463
|
}
|
|
3464
3464
|
export async function primaryAddress(
|
|
3465
3465
|
client: SuiClient,
|
|
@@ -3467,13 +3467,13 @@ export namespace validator {
|
|
|
3467
3467
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3468
3468
|
const tx = new TransactionBlock();
|
|
3469
3469
|
builder.primaryAddress(tx, args);
|
|
3470
|
-
const
|
|
3470
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3471
3471
|
transactionBlock: tx,
|
|
3472
3472
|
sender: ZERO_ADDRESS,
|
|
3473
3473
|
});
|
|
3474
3474
|
|
|
3475
3475
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3476
|
-
|
|
3476
|
+
inspectRes,
|
|
3477
3477
|
);
|
|
3478
3478
|
}
|
|
3479
3479
|
|
|
@@ -3483,13 +3483,13 @@ export namespace validator {
|
|
|
3483
3483
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3484
3484
|
const tx = new TransactionBlock();
|
|
3485
3485
|
builder.projectUrl(tx, args);
|
|
3486
|
-
const
|
|
3486
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3487
3487
|
transactionBlock: tx,
|
|
3488
3488
|
sender: ZERO_ADDRESS,
|
|
3489
3489
|
});
|
|
3490
3490
|
|
|
3491
3491
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3492
|
-
|
|
3492
|
+
inspectRes,
|
|
3493
3493
|
);
|
|
3494
3494
|
}
|
|
3495
3495
|
export async function proofOfPossession(
|
|
@@ -3498,13 +3498,13 @@ export namespace validator {
|
|
|
3498
3498
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3499
3499
|
const tx = new TransactionBlock();
|
|
3500
3500
|
builder.proofOfPossession(tx, args);
|
|
3501
|
-
const
|
|
3501
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3502
3502
|
transactionBlock: tx,
|
|
3503
3503
|
sender: ZERO_ADDRESS,
|
|
3504
3504
|
});
|
|
3505
3505
|
|
|
3506
3506
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3507
|
-
|
|
3507
|
+
inspectRes,
|
|
3508
3508
|
);
|
|
3509
3509
|
}
|
|
3510
3510
|
export async function protocolPubkeyBytes(
|
|
@@ -3513,13 +3513,13 @@ export namespace validator {
|
|
|
3513
3513
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3514
3514
|
const tx = new TransactionBlock();
|
|
3515
3515
|
builder.protocolPubkeyBytes(tx, args);
|
|
3516
|
-
const
|
|
3516
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3517
3517
|
transactionBlock: tx,
|
|
3518
3518
|
sender: ZERO_ADDRESS,
|
|
3519
3519
|
});
|
|
3520
3520
|
|
|
3521
3521
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3522
|
-
|
|
3522
|
+
inspectRes,
|
|
3523
3523
|
);
|
|
3524
3524
|
}
|
|
3525
3525
|
|
|
@@ -3529,13 +3529,13 @@ export namespace validator {
|
|
|
3529
3529
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3530
3530
|
const tx = new TransactionBlock();
|
|
3531
3531
|
builder.stakeAmount(tx, args);
|
|
3532
|
-
const
|
|
3532
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3533
3533
|
transactionBlock: tx,
|
|
3534
3534
|
sender: ZERO_ADDRESS,
|
|
3535
3535
|
});
|
|
3536
3536
|
|
|
3537
3537
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3538
|
-
|
|
3538
|
+
inspectRes,
|
|
3539
3539
|
);
|
|
3540
3540
|
}
|
|
3541
3541
|
export async function stakingPoolId(
|
|
@@ -3544,14 +3544,14 @@ export namespace validator {
|
|
|
3544
3544
|
): Promise<TypedDevInspectResults<[_0x2.object_.ID]>> {
|
|
3545
3545
|
const tx = new TransactionBlock();
|
|
3546
3546
|
builder.stakingPoolId(tx, args);
|
|
3547
|
-
const
|
|
3547
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3548
3548
|
transactionBlock: tx,
|
|
3549
3549
|
sender: ZERO_ADDRESS,
|
|
3550
3550
|
});
|
|
3551
3551
|
|
|
3552
3552
|
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
3553
3553
|
[_0x2.object_.ID]
|
|
3554
|
-
>(
|
|
3554
|
+
>(inspectRes);
|
|
3555
3555
|
}
|
|
3556
3556
|
export async function suiAddress(
|
|
3557
3557
|
client: SuiClient,
|
|
@@ -3559,13 +3559,13 @@ export namespace validator {
|
|
|
3559
3559
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3560
3560
|
const tx = new TransactionBlock();
|
|
3561
3561
|
builder.suiAddress(tx, args);
|
|
3562
|
-
const
|
|
3562
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3563
3563
|
transactionBlock: tx,
|
|
3564
3564
|
sender: ZERO_ADDRESS,
|
|
3565
3565
|
});
|
|
3566
3566
|
|
|
3567
3567
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3568
|
-
|
|
3568
|
+
inspectRes,
|
|
3569
3569
|
);
|
|
3570
3570
|
}
|
|
3571
3571
|
export async function totalStake(
|
|
@@ -3574,13 +3574,13 @@ export namespace validator {
|
|
|
3574
3574
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3575
3575
|
const tx = new TransactionBlock();
|
|
3576
3576
|
builder.totalStake(tx, args);
|
|
3577
|
-
const
|
|
3577
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3578
3578
|
transactionBlock: tx,
|
|
3579
3579
|
sender: ZERO_ADDRESS,
|
|
3580
3580
|
});
|
|
3581
3581
|
|
|
3582
3582
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3583
|
-
|
|
3583
|
+
inspectRes,
|
|
3584
3584
|
);
|
|
3585
3585
|
}
|
|
3586
3586
|
export async function totalStakeAmount(
|
|
@@ -3589,13 +3589,13 @@ export namespace validator {
|
|
|
3589
3589
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3590
3590
|
const tx = new TransactionBlock();
|
|
3591
3591
|
builder.totalStakeAmount(tx, args);
|
|
3592
|
-
const
|
|
3592
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3593
3593
|
transactionBlock: tx,
|
|
3594
3594
|
sender: ZERO_ADDRESS,
|
|
3595
3595
|
});
|
|
3596
3596
|
|
|
3597
3597
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3598
|
-
|
|
3598
|
+
inspectRes,
|
|
3599
3599
|
);
|
|
3600
3600
|
}
|
|
3601
3601
|
|
|
@@ -3605,13 +3605,13 @@ export namespace validator {
|
|
|
3605
3605
|
): Promise<TypedDevInspectResults<[]>> {
|
|
3606
3606
|
const tx = new TransactionBlock();
|
|
3607
3607
|
builder.validateMetadata(tx, args);
|
|
3608
|
-
const
|
|
3608
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3609
3609
|
transactionBlock: tx,
|
|
3610
3610
|
sender: ZERO_ADDRESS,
|
|
3611
3611
|
});
|
|
3612
3612
|
|
|
3613
3613
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
3614
|
-
|
|
3614
|
+
inspectRes,
|
|
3615
3615
|
);
|
|
3616
3616
|
}
|
|
3617
3617
|
export async function validateMetadataBcs(
|
|
@@ -3620,13 +3620,13 @@ export namespace validator {
|
|
|
3620
3620
|
): Promise<TypedDevInspectResults<[]>> {
|
|
3621
3621
|
const tx = new TransactionBlock();
|
|
3622
3622
|
builder.validateMetadataBcs(tx, args);
|
|
3623
|
-
const
|
|
3623
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3624
3624
|
transactionBlock: tx,
|
|
3625
3625
|
sender: ZERO_ADDRESS,
|
|
3626
3626
|
});
|
|
3627
3627
|
|
|
3628
3628
|
return (await getMoveCoder(client)).decodeDevInspectResult<[]>(
|
|
3629
|
-
|
|
3629
|
+
inspectRes,
|
|
3630
3630
|
);
|
|
3631
3631
|
}
|
|
3632
3632
|
export async function votingPower(
|
|
@@ -3635,13 +3635,13 @@ export namespace validator {
|
|
|
3635
3635
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
3636
3636
|
const tx = new TransactionBlock();
|
|
3637
3637
|
builder.votingPower(tx, args);
|
|
3638
|
-
const
|
|
3638
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3639
3639
|
transactionBlock: tx,
|
|
3640
3640
|
sender: ZERO_ADDRESS,
|
|
3641
3641
|
});
|
|
3642
3642
|
|
|
3643
3643
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
3644
|
-
|
|
3644
|
+
inspectRes,
|
|
3645
3645
|
);
|
|
3646
3646
|
}
|
|
3647
3647
|
export async function workerAddress(
|
|
@@ -3650,13 +3650,13 @@ export namespace validator {
|
|
|
3650
3650
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3651
3651
|
const tx = new TransactionBlock();
|
|
3652
3652
|
builder.workerAddress(tx, args);
|
|
3653
|
-
const
|
|
3653
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3654
3654
|
transactionBlock: tx,
|
|
3655
3655
|
sender: ZERO_ADDRESS,
|
|
3656
3656
|
});
|
|
3657
3657
|
|
|
3658
3658
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3659
|
-
|
|
3659
|
+
inspectRes,
|
|
3660
3660
|
);
|
|
3661
3661
|
}
|
|
3662
3662
|
export async function workerPubkeyBytes(
|
|
@@ -3665,13 +3665,13 @@ export namespace validator {
|
|
|
3665
3665
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
3666
3666
|
const tx = new TransactionBlock();
|
|
3667
3667
|
builder.workerPubkeyBytes(tx, args);
|
|
3668
|
-
const
|
|
3668
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
3669
3669
|
transactionBlock: tx,
|
|
3670
3670
|
sender: ZERO_ADDRESS,
|
|
3671
3671
|
});
|
|
3672
3672
|
|
|
3673
3673
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
3674
|
-
|
|
3674
|
+
inspectRes,
|
|
3675
3675
|
);
|
|
3676
3676
|
}
|
|
3677
3677
|
}
|
|
@@ -4058,13 +4058,13 @@ export namespace validator_set {
|
|
|
4058
4058
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
4059
4059
|
const tx = new TransactionBlock();
|
|
4060
4060
|
builder.activeValidators(tx, args);
|
|
4061
|
-
const
|
|
4061
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4062
4062
|
transactionBlock: tx,
|
|
4063
4063
|
sender: ZERO_ADDRESS,
|
|
4064
4064
|
});
|
|
4065
4065
|
|
|
4066
4066
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
4067
|
-
|
|
4067
|
+
inspectRes,
|
|
4068
4068
|
);
|
|
4069
4069
|
}
|
|
4070
4070
|
|
|
@@ -4074,13 +4074,13 @@ export namespace validator_set {
|
|
|
4074
4074
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4075
4075
|
const tx = new TransactionBlock();
|
|
4076
4076
|
builder.deriveReferenceGasPrice(tx, args);
|
|
4077
|
-
const
|
|
4077
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4078
4078
|
transactionBlock: tx,
|
|
4079
4079
|
sender: ZERO_ADDRESS,
|
|
4080
4080
|
});
|
|
4081
4081
|
|
|
4082
4082
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4083
|
-
|
|
4083
|
+
inspectRes,
|
|
4084
4084
|
);
|
|
4085
4085
|
}
|
|
4086
4086
|
|
|
@@ -4093,13 +4093,13 @@ export namespace validator_set {
|
|
|
4093
4093
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
4094
4094
|
const tx = new TransactionBlock();
|
|
4095
4095
|
builder.getActiveValidatorRef(tx, args);
|
|
4096
|
-
const
|
|
4096
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4097
4097
|
transactionBlock: tx,
|
|
4098
4098
|
sender: ZERO_ADDRESS,
|
|
4099
4099
|
});
|
|
4100
4100
|
|
|
4101
4101
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
4102
|
-
|
|
4102
|
+
inspectRes,
|
|
4103
4103
|
);
|
|
4104
4104
|
}
|
|
4105
4105
|
export async function getPendingValidatorRef(
|
|
@@ -4111,13 +4111,13 @@ export namespace validator_set {
|
|
|
4111
4111
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
4112
4112
|
const tx = new TransactionBlock();
|
|
4113
4113
|
builder.getPendingValidatorRef(tx, args);
|
|
4114
|
-
const
|
|
4114
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4115
4115
|
transactionBlock: tx,
|
|
4116
4116
|
sender: ZERO_ADDRESS,
|
|
4117
4117
|
});
|
|
4118
4118
|
|
|
4119
4119
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
4120
|
-
|
|
4120
|
+
inspectRes,
|
|
4121
4121
|
);
|
|
4122
4122
|
}
|
|
4123
4123
|
|
|
@@ -4130,13 +4130,13 @@ export namespace validator_set {
|
|
|
4130
4130
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
4131
4131
|
const tx = new TransactionBlock();
|
|
4132
4132
|
builder.isInactiveValidator(tx, args);
|
|
4133
|
-
const
|
|
4133
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4134
4134
|
transactionBlock: tx,
|
|
4135
4135
|
sender: ZERO_ADDRESS,
|
|
4136
4136
|
});
|
|
4137
4137
|
|
|
4138
4138
|
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
4139
|
-
|
|
4139
|
+
inspectRes,
|
|
4140
4140
|
);
|
|
4141
4141
|
}
|
|
4142
4142
|
export async function isValidatorCandidate(
|
|
@@ -4148,13 +4148,13 @@ export namespace validator_set {
|
|
|
4148
4148
|
): Promise<TypedDevInspectResults<[Boolean]>> {
|
|
4149
4149
|
const tx = new TransactionBlock();
|
|
4150
4150
|
builder.isValidatorCandidate(tx, args);
|
|
4151
|
-
const
|
|
4151
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4152
4152
|
transactionBlock: tx,
|
|
4153
4153
|
sender: ZERO_ADDRESS,
|
|
4154
4154
|
});
|
|
4155
4155
|
|
|
4156
4156
|
return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>(
|
|
4157
|
-
|
|
4157
|
+
inspectRes,
|
|
4158
4158
|
);
|
|
4159
4159
|
}
|
|
4160
4160
|
|
|
@@ -4164,13 +4164,13 @@ export namespace validator_set {
|
|
|
4164
4164
|
): Promise<TypedDevInspectResults<[string]>> {
|
|
4165
4165
|
const tx = new TransactionBlock();
|
|
4166
4166
|
builder.stakingPoolMappings(tx, args);
|
|
4167
|
-
const
|
|
4167
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4168
4168
|
transactionBlock: tx,
|
|
4169
4169
|
sender: ZERO_ADDRESS,
|
|
4170
4170
|
});
|
|
4171
4171
|
|
|
4172
4172
|
return (await getMoveCoder(client)).decodeDevInspectResult<[string]>(
|
|
4173
|
-
|
|
4173
|
+
inspectRes,
|
|
4174
4174
|
);
|
|
4175
4175
|
}
|
|
4176
4176
|
export async function sumVotingPowerByAddresses(
|
|
@@ -4182,13 +4182,13 @@ export namespace validator_set {
|
|
|
4182
4182
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4183
4183
|
const tx = new TransactionBlock();
|
|
4184
4184
|
builder.sumVotingPowerByAddresses(tx, args);
|
|
4185
|
-
const
|
|
4185
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4186
4186
|
transactionBlock: tx,
|
|
4187
4187
|
sender: ZERO_ADDRESS,
|
|
4188
4188
|
});
|
|
4189
4189
|
|
|
4190
4190
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4191
|
-
|
|
4191
|
+
inspectRes,
|
|
4192
4192
|
);
|
|
4193
4193
|
}
|
|
4194
4194
|
export async function totalStake(
|
|
@@ -4197,13 +4197,13 @@ export namespace validator_set {
|
|
|
4197
4197
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4198
4198
|
const tx = new TransactionBlock();
|
|
4199
4199
|
builder.totalStake(tx, args);
|
|
4200
|
-
const
|
|
4200
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4201
4201
|
transactionBlock: tx,
|
|
4202
4202
|
sender: ZERO_ADDRESS,
|
|
4203
4203
|
});
|
|
4204
4204
|
|
|
4205
4205
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4206
|
-
|
|
4206
|
+
inspectRes,
|
|
4207
4207
|
);
|
|
4208
4208
|
}
|
|
4209
4209
|
export async function validatorStakeAmount(
|
|
@@ -4215,13 +4215,13 @@ export namespace validator_set {
|
|
|
4215
4215
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4216
4216
|
const tx = new TransactionBlock();
|
|
4217
4217
|
builder.validatorStakeAmount(tx, args);
|
|
4218
|
-
const
|
|
4218
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4219
4219
|
transactionBlock: tx,
|
|
4220
4220
|
sender: ZERO_ADDRESS,
|
|
4221
4221
|
});
|
|
4222
4222
|
|
|
4223
4223
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4224
|
-
|
|
4224
|
+
inspectRes,
|
|
4225
4225
|
);
|
|
4226
4226
|
}
|
|
4227
4227
|
export async function validatorStakingPoolId(
|
|
@@ -4233,14 +4233,14 @@ export namespace validator_set {
|
|
|
4233
4233
|
): Promise<TypedDevInspectResults<[_0x2.object_.ID]>> {
|
|
4234
4234
|
const tx = new TransactionBlock();
|
|
4235
4235
|
builder.validatorStakingPoolId(tx, args);
|
|
4236
|
-
const
|
|
4236
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4237
4237
|
transactionBlock: tx,
|
|
4238
4238
|
sender: ZERO_ADDRESS,
|
|
4239
4239
|
});
|
|
4240
4240
|
|
|
4241
4241
|
return (await getMoveCoder(client)).decodeDevInspectResult<
|
|
4242
4242
|
[_0x2.object_.ID]
|
|
4243
|
-
>(
|
|
4243
|
+
>(inspectRes);
|
|
4244
4244
|
}
|
|
4245
4245
|
export async function validatorTotalStakeAmount(
|
|
4246
4246
|
client: SuiClient,
|
|
@@ -4251,13 +4251,13 @@ export namespace validator_set {
|
|
|
4251
4251
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4252
4252
|
const tx = new TransactionBlock();
|
|
4253
4253
|
builder.validatorTotalStakeAmount(tx, args);
|
|
4254
|
-
const
|
|
4254
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4255
4255
|
transactionBlock: tx,
|
|
4256
4256
|
sender: ZERO_ADDRESS,
|
|
4257
4257
|
});
|
|
4258
4258
|
|
|
4259
4259
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4260
|
-
|
|
4260
|
+
inspectRes,
|
|
4261
4261
|
);
|
|
4262
4262
|
}
|
|
4263
4263
|
}
|
|
@@ -4354,13 +4354,13 @@ export namespace voting_power {
|
|
|
4354
4354
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4355
4355
|
const tx = new TransactionBlock();
|
|
4356
4356
|
builder.quorumThreshold(tx, args);
|
|
4357
|
-
const
|
|
4357
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4358
4358
|
transactionBlock: tx,
|
|
4359
4359
|
sender: ZERO_ADDRESS,
|
|
4360
4360
|
});
|
|
4361
4361
|
|
|
4362
4362
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4363
|
-
|
|
4363
|
+
inspectRes,
|
|
4364
4364
|
);
|
|
4365
4365
|
}
|
|
4366
4366
|
|
|
@@ -4370,13 +4370,13 @@ export namespace voting_power {
|
|
|
4370
4370
|
): Promise<TypedDevInspectResults<[bigint]>> {
|
|
4371
4371
|
const tx = new TransactionBlock();
|
|
4372
4372
|
builder.totalVotingPower(tx, args);
|
|
4373
|
-
const
|
|
4373
|
+
const inspectRes = await client.devInspectTransactionBlock({
|
|
4374
4374
|
transactionBlock: tx,
|
|
4375
4375
|
sender: ZERO_ADDRESS,
|
|
4376
4376
|
});
|
|
4377
4377
|
|
|
4378
4378
|
return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>(
|
|
4379
|
-
|
|
4379
|
+
inspectRes,
|
|
4380
4380
|
);
|
|
4381
4381
|
}
|
|
4382
4382
|
}
|