From fe203df2fdcbada82d6fe9923bb395271e217de9 Mon Sep 17 00:00:00 2001 From: Makram Date: Wed, 26 Jun 2024 11:30:51 +0300 Subject: [PATCH] export home chain types (#1095) ## Motivation We need these types in the ccip module. ## Solution Export the required types. --- .../plugins/ccip/pkg/reader/home_chain.go | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 core/services/ocr3/plugins/ccip/pkg/reader/home_chain.go diff --git a/core/services/ocr3/plugins/ccip/pkg/reader/home_chain.go b/core/services/ocr3/plugins/ccip/pkg/reader/home_chain.go new file mode 100644 index 0000000000..7d56122952 --- /dev/null +++ b/core/services/ocr3/plugins/ccip/pkg/reader/home_chain.go @@ -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) +}