@@ -600,6 +600,23 @@ export class Node extends Entity {
600
600
constructor ( id : string ) {
601
601
super ( ) ;
602
602
this . set ( "id" , Value . fromString ( id ) ) ;
603
+
604
+ this . set ( "timezone" , Value . fromString ( "" ) ) ;
605
+ this . set ( "rplStaked" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
606
+ this . set ( "effectiveRPLStaked" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
607
+ this . set ( "totalRPLSlashed" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
608
+ this . set ( "totalClaimedRPLRewards" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
609
+ this . set ( "minimumRPLNeededForMinipools" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
610
+ this . set ( "maximumRPLNeededForMinipools" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
611
+ this . set ( "queuedMinipools" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
612
+ this . set ( "stakingMinipools" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
613
+ this . set ( "stakingUnbondedMinipools" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
614
+ this . set ( "withdrawableMinipools" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
615
+ this . set ( "totalFinalizedMinipools" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
616
+ this . set ( "averageFeeForActiveMinipools" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
617
+ this . set ( "minipools" , Value . fromStringArray ( new Array ( 0 ) ) ) ;
618
+ this . set ( "block" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
619
+ this . set ( "blockTime" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
603
620
}
604
621
605
622
save ( ) : void {
@@ -760,6 +777,15 @@ export class Node extends Entity {
760
777
}
761
778
}
762
779
780
+ get minipools ( ) : Array < string > {
781
+ let value = this . get ( "minipools" ) ;
782
+ return value ! . toStringArray ( ) ;
783
+ }
784
+
785
+ set minipools ( value : Array < string > ) {
786
+ this . set ( "minipools" , Value . fromStringArray ( value ) ) ;
787
+ }
788
+
763
789
get block ( ) : BigInt {
764
790
let value = this . get ( "block" ) ;
765
791
return value . toBigInt ( ) ;
@@ -1606,3 +1632,117 @@ export class NodeBalanceCheckpoint extends Entity {
1606
1632
this . set ( "blockTime" , Value . fromBigInt ( value ) ) ;
1607
1633
}
1608
1634
}
1635
+
1636
+ export class Minipool extends Entity {
1637
+ constructor ( id : string ) {
1638
+ super ( ) ;
1639
+ this . set ( "id" , Value . fromString ( id ) ) ;
1640
+
1641
+ this . set ( "node" , Value . fromString ( "" ) ) ;
1642
+ this . set ( "fee" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
1643
+ this . set ( "queuedBlockTime" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
1644
+ this . set ( "dequeuedBlockTime" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
1645
+ this . set ( "destroyedBlockTime" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
1646
+ this . set ( "stakingBlockTime" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
1647
+ this . set ( "withdrawableBlockTime" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
1648
+ this . set ( "finalizedBlockTime" , Value . fromBigInt ( BigInt . zero ( ) ) ) ;
1649
+ }
1650
+
1651
+ save ( ) : void {
1652
+ let id = this . get ( "id" ) ;
1653
+ assert ( id != null , "Cannot save Minipool entity without an ID" ) ;
1654
+ if ( id ) {
1655
+ assert (
1656
+ id . kind == ValueKind . STRING ,
1657
+ "Cannot save Minipool entity with non-string ID. " +
1658
+ 'Considering using .toHex() to convert the "id" to a string.'
1659
+ ) ;
1660
+ store . set ( "Minipool" , id . toString ( ) , this ) ;
1661
+ }
1662
+ }
1663
+
1664
+ static load ( id : string ) : Minipool | null {
1665
+ return changetype < Minipool | null > ( store . get ( "Minipool" , id ) ) ;
1666
+ }
1667
+
1668
+ get id ( ) : string {
1669
+ let value = this . get ( "id" ) ;
1670
+ return value ! . toString ( ) ;
1671
+ }
1672
+
1673
+ set id ( value : string ) {
1674
+ this . set ( "id" , Value . fromString ( value ) ) ;
1675
+ }
1676
+
1677
+ get node ( ) : string {
1678
+ let value = this . get ( "node" ) ;
1679
+ return value ! . toString ( ) ;
1680
+ }
1681
+
1682
+ set node ( value : string ) {
1683
+ this . set ( "node" , Value . fromString ( value ) ) ;
1684
+ }
1685
+
1686
+ get fee ( ) : BigInt {
1687
+ let value = this . get ( "fee" ) ;
1688
+ return value ! . toBigInt ( ) ;
1689
+ }
1690
+
1691
+ set fee ( value : BigInt ) {
1692
+ this . set ( "fee" , Value . fromBigInt ( value ) ) ;
1693
+ }
1694
+
1695
+ get queuedBlockTime ( ) : BigInt {
1696
+ let value = this . get ( "queuedBlockTime" ) ;
1697
+ return value ! . toBigInt ( ) ;
1698
+ }
1699
+
1700
+ set queuedBlockTime ( value : BigInt ) {
1701
+ this . set ( "queuedBlockTime" , Value . fromBigInt ( value ) ) ;
1702
+ }
1703
+
1704
+ get dequeuedBlockTime ( ) : BigInt {
1705
+ let value = this . get ( "dequeuedBlockTime" ) ;
1706
+ return value ! . toBigInt ( ) ;
1707
+ }
1708
+
1709
+ set dequeuedBlockTime ( value : BigInt ) {
1710
+ this . set ( "dequeuedBlockTime" , Value . fromBigInt ( value ) ) ;
1711
+ }
1712
+
1713
+ get destroyedBlockTime ( ) : BigInt {
1714
+ let value = this . get ( "destroyedBlockTime" ) ;
1715
+ return value ! . toBigInt ( ) ;
1716
+ }
1717
+
1718
+ set destroyedBlockTime ( value : BigInt ) {
1719
+ this . set ( "destroyedBlockTime" , Value . fromBigInt ( value ) ) ;
1720
+ }
1721
+
1722
+ get stakingBlockTime ( ) : BigInt {
1723
+ let value = this . get ( "stakingBlockTime" ) ;
1724
+ return value ! . toBigInt ( ) ;
1725
+ }
1726
+
1727
+ set stakingBlockTime ( value : BigInt ) {
1728
+ this . set ( "stakingBlockTime" , Value . fromBigInt ( value ) ) ;
1729
+ }
1730
+
1731
+ get withdrawableBlockTime ( ) : BigInt {
1732
+ let value = this . get ( "withdrawableBlockTime" ) ;
1733
+ return value ! . toBigInt ( ) ;
1734
+ }
1735
+
1736
+ set withdrawableBlockTime ( value : BigInt ) {
1737
+ this . set ( "withdrawableBlockTime" , Value . fromBigInt ( value ) ) ;
1738
+ }
1739
+
1740
+ get finalizedBlockTime ( ) : BigInt {
1741
+ let value = this . get ( "finalizedBlockTime" ) ;
1742
+ return value ! . toBigInt ( ) ;
1743
+ }
1744
+
1745
+ set finalizedBlockTime ( value : BigInt ) {
1746
+ this . set ( "finalizedBlockTime" , Value . fromBigInt ( value ) ) ;
1747
+ }
1748
+ }
0 commit comments