Skip to content

Commit

Permalink
Add NewChainReader as a top level Relayer function
Browse files Browse the repository at this point in the history
  • Loading branch information
ilija42 committed May 21, 2024
1 parent 6a2cfa1 commit 93d8216
Show file tree
Hide file tree
Showing 19 changed files with 753 additions and 459 deletions.
4 changes: 4 additions & 0 deletions pkg/loop/adapters/relay/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ type RelayerAdapter struct {
RelayerExt
}

func (r *RelayerAdapter) NewChainReader(_ context.Context, chainReaderConfig []byte) (types.ChainReader, error) {
return r.Relayer.NewChainReader(chainReaderConfig)
}

func (r *RelayerAdapter) NewConfigProvider(ctx context.Context, rargs types.RelayArgs) (types.ConfigProvider, error) {
return r.Relayer.NewConfigProvider(rargs)
}
Expand Down
Loading

0 comments on commit 93d8216

Please sign in to comment.