File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ interface CollatorRow {
1212 paraId : number
1313 isInvulnerable : boolean
1414 isStaking : boolean
15- stake : bigint
15+ stake : bigint | undefined
1616}
1717
1818export interface CollatorTableProps {
Original file line number Diff line number Diff line change @@ -40,13 +40,16 @@ const ValidatorQueries: React.FC<ValidatorQueriesProps> = ({ api }) => {
4040 const activeEraRaw = await api . query . externalValidators . activeEra ( )
4141 const activeEra = activeEraRaw . unwrap ( ) . index . toNumber ( )
4242
43- const eraRewardPoints = await api . query . externalValidatorsRewards . rewardPointsForEra ( activeEra )
43+ const eraRewardPoints = ( await api . query . externalValidatorsRewards . rewardPointsForEra ( activeEra ) ) . toJSON ( )
44+
45+ const babeAuthorities = ( await api . query . babe . authorities ( ) ) . toJSON ( )
46+ const queuedKeys = ( await api . query . session . queuedKeys ( ) ) . toJSON ( )
4447
4548 setData ( {
4649 blockNumber,
4750 activeEra,
4851 validators,
49- eraRewardPoints : eraRewardPoints . toJSON ( ) ,
52+ eraRewardPoints,
5053 externalValidators,
5154 whitelistedValidators,
5255 skipExternalValidators,
@@ -55,6 +58,8 @@ const ValidatorQueries: React.FC<ValidatorQueriesProps> = ({ api }) => {
5558 currentIndex,
5659 maxExternalValidators,
5760 maxWhitelistedValidators,
61+ babeAuthorities,
62+ queuedKeys,
5863 } )
5964 } catch ( err : any ) {
6065 message . error ( `Error fetching validator data: ${ err . message } ` )
You can’t perform that action at this time.
0 commit comments