@@ -58,9 +58,18 @@ function SlotStats() {
5858 const values = useMemo ( ( ) => {
5959 if ( ! query . response ?. publish ) return ;
6060
61- const voteTxns = fixValue ( query . response . publish . vote_transactions ?? 0 ) ;
62- const totalTxns = fixValue ( query . response . publish . transactions ?? 0 ) ;
63- const nonVoteTxns = totalTxns - voteTxns ;
61+ const successfulVoteTxns = fixValue (
62+ query . response . publish . success_vote_transaction_cnt ?? 0 ,
63+ ) ;
64+ const successfulUserTxns = fixValue (
65+ query . response . publish . success_user_transaction_cnt ?? 0 ,
66+ ) ;
67+ const failedVoteTxns = fixValue (
68+ query . response . publish . failed_vote_transaction_cnt ?? 0 ,
69+ ) ;
70+ const failedUserTxns = fixValue (
71+ query . response . publish . failed_user_transaction_cnt ?? 0 ,
72+ ) ;
6473
6574 const transactionFee3Decimals = query . response . publish . transaction_fee
6675 ? formatNumber (
@@ -106,8 +115,10 @@ function SlotStats() {
106115
107116 return {
108117 computeUnits,
109- voteTxns,
110- nonVoteTxns,
118+ successfulVoteTxns,
119+ successfulUserTxns,
120+ failedVoteTxns,
121+ failedUserTxns,
111122 transactionFeeFull,
112123 transactionFee3Decimals,
113124 priorityFeeFull,
@@ -152,10 +163,22 @@ function SlotStats() {
152163 < div style = { { gridColumn : "span 2" } } >
153164 < RowSeparator my = "0" />
154165 </ div >
155- < Text > Vote Transactions</ Text >
156- < Text align = "right" > { values ?. voteTxns ?. toLocaleString ( ) ?? "-" } </ Text >
157- < Text > Non-vote Transactions</ Text >
158- < Text align = "right" > { values ?. nonVoteTxns ?. toLocaleString ( ) ?? "-" } </ Text >
166+ < Text > Successful Vote Transactions</ Text >
167+ < Text align = "right" >
168+ { values ?. successfulVoteTxns ?. toLocaleString ( ) ?? "-" }
169+ </ Text >
170+ < Text > Failed Vote Transactions</ Text >
171+ < Text align = "right" >
172+ { values ?. failedVoteTxns . toLocaleString ( ) ?? "-" }
173+ </ Text >
174+ < Text > Successful User Transactions</ Text >
175+ < Text align = "right" >
176+ { values ?. successfulUserTxns ?. toLocaleString ( ) ?? "-" }
177+ </ Text >
178+ < Text > Failed User Transactions</ Text >
179+ < Text align = "right" >
180+ { values ?. failedUserTxns ?. toLocaleString ( ) ?? "-" }
181+ </ Text >
159182 < div style = { { gridColumn : "span 2" } } >
160183 < RowSeparator my = "0" />
161184 </ div >
0 commit comments