-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add commit offchain config in OracleCreator #14423
Conversation
Add FeedReaderConfig to Bind all feed addresses for each token in the offchain config
@@ -109,6 +122,47 @@ var DestReaderConfig = evmrelaytypes.ChainReaderConfig{ | |||
}, | |||
}, | |||
}, | |||
consts.ContractNameFeeQuoter: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moving FeeQuoter from SourceChainConfig to DestChainConfig
bcs = append(bcs, types.BoundContract{ | ||
Address: info.AggregatorAddress, | ||
Name: consts.ContractNamePriceAggregator, | ||
}) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like we will run into the same issue we did with the offramps, these will have to be re-bound in the chainlink-ccip code because we call GetBindings
(I think)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since these won't be used for events and just calls, and since we have all the addresses anyway in the plugin, I'm tempted to just do this in the plugin codebase instead and simplify the startup code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we bind offramp here then? We bind it again in chainlink-ccip, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think we should revisit this.
efd33b1
to
2240a98
Compare
Add FeedReaderConfig to Bind all feed addresses for each token in the offchain config
Quality Gate passedIssues Measures |
Review this PR commit by commit.
Commits ordered are doing the following:
pluginOracleCreator
pluginOracleCreator
. Extract code into smaller functions to make it easier to deal with.