diff --git a/.changeset/silly-starfishes-destroy.md b/.changeset/silly-starfishes-destroy.md new file mode 100644 index 00000000000..ebb552fdca2 --- /dev/null +++ b/.changeset/silly-starfishes-destroy.md @@ -0,0 +1,5 @@ +--- +"chainlink": patch +--- + +#internal ccip contract reader config. diff --git a/core/capabilities/ccip/configs/evm/contract_reader.go b/core/capabilities/ccip/configs/evm/contract_reader.go index 963051146d9..07ec7de4eb2 100644 --- a/core/capabilities/ccip/configs/evm/contract_reader.go +++ b/core/capabilities/ccip/configs/evm/contract_reader.go @@ -15,6 +15,7 @@ import ( "github.com/smartcontractkit/chainlink/v2/core/gethwrappers/ccip/generated/offramp" "github.com/smartcontractkit/chainlink/v2/core/gethwrappers/ccip/generated/onramp" "github.com/smartcontractkit/chainlink/v2/core/gethwrappers/ccip/generated/rmn_remote" + "github.com/smartcontractkit/chainlink/v2/core/gethwrappers/ccip/generated/router" "github.com/smartcontractkit/chainlink/v2/core/gethwrappers/generated/aggregator_v3_interface" kcr "github.com/smartcontractkit/chainlink/v2/core/gethwrappers/keystone/generated/capabilities_registry" evmrelaytypes "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/types" @@ -29,6 +30,7 @@ var ( priceFeedABI = evmtypes.MustGetABI(aggregator_v3_interface.AggregatorV3InterfaceABI) rmnRemoteABI = evmtypes.MustGetABI(rmn_remote.RMNRemoteABI) rmnHomeABI = evmtypes.MustGetABI(rmnHomeString) + routerABI = evmtypes.MustGetABI(router.RouterABI) ) // TODO: replace with generated ABI when the contract will be defined @@ -169,6 +171,15 @@ var DestReaderConfig = evmrelaytypes.ChainReaderConfig{ // }, }, }, + consts.ContractNameRouter: { + ContractABI: router.RouterABI, + Configs: map[string]*evmrelaytypes.ChainReaderDefinition{ + consts.MethodNameRouterGetWrappedNative: { + ChainSpecificName: mustGetMethodName("getWrappedNative", routerABI), + ReadType: evmrelaytypes.Method, + }, + }, + }, }, } @@ -219,6 +230,15 @@ var SourceReaderConfig = evmrelaytypes.ChainReaderConfig{ }, }, }, + consts.ContractNameRouter: { + ContractABI: router.RouterABI, + Configs: map[string]*evmrelaytypes.ChainReaderDefinition{ + consts.MethodNameRouterGetWrappedNative: { + ChainSpecificName: mustGetMethodName("getWrappedNative", routerABI), + ReadType: evmrelaytypes.Method, + }, + }, + }, }, }