diff --git a/op-dispute-mon/mon/extract/balance_enricher.go b/op-dispute-mon/mon/extract/balance_enricher.go index 3c6ee63a3c2a..42cc5b8ccafe 100644 --- a/op-dispute-mon/mon/extract/balance_enricher.go +++ b/op-dispute-mon/mon/extract/balance_enricher.go @@ -10,12 +10,13 @@ import ( "github.com/ethereum/go-ethereum/common" ) +var _ Enricher = (*BalanceEnricher)(nil) + type BalanceCaller interface { GetBalance(context.Context, rpcblock.Block) (*big.Int, common.Address, error) } -type BalanceEnricher struct { -} +type BalanceEnricher struct{} func NewBalanceEnricher() *BalanceEnricher { return &BalanceEnricher{} diff --git a/op-dispute-mon/mon/extract/bond_enricher.go b/op-dispute-mon/mon/extract/bond_enricher.go index c194f8cc8414..ec3659f92859 100644 --- a/op-dispute-mon/mon/extract/bond_enricher.go +++ b/op-dispute-mon/mon/extract/bond_enricher.go @@ -12,13 +12,15 @@ import ( "golang.org/x/exp/maps" ) +var _ Enricher = (*BondEnricher)(nil) + var ErrIncorrectCreditCount = errors.New("incorrect credit count") type BondCaller interface { GetCredits(context.Context, rpcblock.Block, ...common.Address) ([]*big.Int, error) } -type BondEnricher struct { -} + +type BondEnricher struct{} func NewBondEnricher() *BondEnricher { return &BondEnricher{} diff --git a/op-dispute-mon/mon/extract/head_enricher.go b/op-dispute-mon/mon/extract/head_enricher.go index f1a304be6c8b..943e648f771d 100644 --- a/op-dispute-mon/mon/extract/head_enricher.go +++ b/op-dispute-mon/mon/extract/head_enricher.go @@ -10,6 +10,8 @@ import ( "github.com/ethereum/go-ethereum/core/types" ) +var _ Enricher = (*L1HeadBlockNumEnricher)(nil) + type BlockFetcher interface { HeaderByHash(ctx context.Context, block common.Hash) (*types.Header, error) }