Skip to content

Commit

Permalink
export home chain types (#1095)
Browse files Browse the repository at this point in the history
## Motivation

We need these types in the ccip module.

## Solution

Export the required types.
  • Loading branch information
makramkd authored Jun 26, 2024
1 parent d53a361 commit fe203df
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions core/services/ocr3/plugins/ccip/pkg/reader/home_chain.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package reader

import (
"time"

"github.com/smartcontractkit/chainlink-common/pkg/logger"
"github.com/smartcontractkit/chainlink-common/pkg/types"

reader_internal "github.com/smartcontractkit/ccipocr3/internal/reader"
)

type HomeChain = reader_internal.HomeChain

type ChainConfig = reader_internal.ChainConfig

type ChainConfigInfo = reader_internal.ChainConfigInfo

func NewHomeChainReader(
homeChainReader types.ContractReader,
lggr logger.Logger,
pollingInterval time.Duration,
) HomeChain {
return reader_internal.NewHomeChainConfigPoller(homeChainReader, lggr, pollingInterval)
}

0 comments on commit fe203df

Please sign in to comment.