@@ -17,8 +17,6 @@ interface AhBalancesBefore {
1717
1818interface AccountMigration {
1919 totalAccounts : number ;
20- liquidAccounts : number ;
21- nonLiquidAccounts : number ;
2220 timestamp : string ;
2321}
2422
@@ -41,10 +39,13 @@ const BalanceVerification: React.FC = () => {
4139 }
4240 } , [ ] ) ) ;
4341
44- // Subscribe to account migration events
45- useEventSource ( [ 'accountMigration' ] , useCallback ( ( eventType : EventType , data : AccountMigration ) => {
46- if ( eventType === 'accountMigration' ) {
47- setAccountMigration ( data ) ;
42+ // Subscribe to pallet migration update events for Accounts pallet
43+ useEventSource ( [ 'palletMigrationUpdate' ] , useCallback ( ( eventType : EventType , data : any ) => {
44+ if ( eventType === 'palletMigrationUpdate' && data . palletName === 'Accounts' ) {
45+ setAccountMigration ( {
46+ totalAccounts : data . totalItemsProcessed || 0 ,
47+ timestamp : data . lastUpdated ,
48+ } ) ;
4849 }
4950 } , [ ] ) ) ;
5051
@@ -137,25 +138,11 @@ const BalanceVerification: React.FC = () => {
137138
138139 < div className = "balance-metrics" >
139140 < div className = "balance-metric" >
140- < div className = "balance-metric-label" > Total Migrated</ div >
141+ < div className = "balance-metric-label" > Total Accounts Migrated</ div >
141142 < div className = "balance-metric-value" >
142143 { accountMigration ?. totalAccounts . toLocaleString ( ) || '0' }
143144 </ div >
144145 </ div >
145-
146- < div className = "balance-metric" >
147- < div className = "balance-metric-label" > Liquid</ div >
148- < div className = "balance-metric-value" >
149- { accountMigration ?. liquidAccounts . toLocaleString ( ) || '0' }
150- </ div >
151- </ div >
152-
153- < div className = "balance-metric" >
154- < div className = "balance-metric-label" > Non-Liquid</ div >
155- < div className = "balance-metric-value" >
156- { accountMigration ?. nonLiquidAccounts . toLocaleString ( ) || '0' }
157- </ div >
158- </ div >
159146 </ div >
160147 </ div >
161148 </ div >
0 commit comments