File tree 3 files changed +14
-4
lines changed
apps/explorer/components/Address
3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' explorer ' : minor
3
+ ' @siafoundation/explored-types ' : minor
4
+ ---
5
+
6
+ Fixed missing address event types.
Original file line number Diff line number Diff line change @@ -244,10 +244,12 @@ function formatV2ContractResolutionEntity(
244
244
245
245
function formatPayoutEntity ( payout : ExplorerEvent ) : EntityListItemProps {
246
246
const { siacoinElement } = payout . data as EventPayout
247
+ const capitalizedType =
248
+ payout . type . slice ( 0 , 1 ) . toUpperCase ( ) + payout . type . slice ( 1 )
247
249
return {
248
250
hash : payout . id ,
249
- label : ' Payout' ,
250
- initials : 'P' ,
251
+ label : ` ${ capitalizedType } Payout` ,
252
+ initials : ` ${ capitalizedType . slice ( 0 , 1 ) } P` ,
251
253
href : routes . address . view . replace ( ':id' , siacoinElement . source ) ,
252
254
height : payout . index . height ,
253
255
sc : new BigNumber ( siacoinElement . siacoinOutput . value ) ,
@@ -287,7 +289,9 @@ const formatEvent = (
287
289
case 'v2ContractResolution' :
288
290
baseEntity = formatV2ContractResolutionEntity ( event )
289
291
break
290
- case 'payout' :
292
+ case 'miner' :
293
+ case 'foundation' :
294
+ case 'siafundClaim' :
291
295
baseEntity = formatPayoutEntity ( event )
292
296
break
293
297
}
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ type ExplorerEventBase = {
95
95
}
96
96
97
97
type ExplorerMinerPayoutEvent = ExplorerEventBase & {
98
- type : 'payout '
98
+ type : 'miner' | 'foundation' | 'siafundClaim '
99
99
data : EventPayout
100
100
}
101
101
You can’t perform that action at this time.
0 commit comments