Skip to content
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

Merged
merged 15 commits into from
Sep 16, 2024
Merged

Conversation

asoliman92
Copy link
Contributor

@asoliman92 asoliman92 commented Sep 13, 2024

Review this PR commit by commit.

Commits ordered are doing the following:

  1. Add feed contract config AND use offchain config in pluginOracleCreator
  2. Adding some comments in home_chain deployment for future PRs
  3. Refactor pluginOracleCreator. Extract code into smaller functions to make it easier to deal with.

@@ -109,6 +122,47 @@ var DestReaderConfig = evmrelaytypes.ChainReaderConfig{
},
},
},
consts.ContractNameFeeQuoter: {
Copy link
Contributor Author

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

@asoliman92 asoliman92 marked this pull request as ready for review September 13, 2024 15:19
@asoliman92 asoliman92 requested review from a team as code owners September 13, 2024 15:19
@asoliman92 asoliman92 requested review from EasterTheBunny and removed request for a team September 13, 2024 15:19
@asoliman92 asoliman92 changed the title Token price integration Add commit offchain config in OracleCreator Sep 13, 2024
winder
winder previously approved these changes Sep 13, 2024
core/capabilities/ccip/oraclecreator/plugin.go Outdated Show resolved Hide resolved
core/capabilities/ccip/oraclecreator/plugin.go Outdated Show resolved Hide resolved
core/capabilities/ccip/oraclecreator/plugin.go Outdated Show resolved Hide resolved
Comment on lines 411 to 416
bcs = append(bcs, types.BoundContract{
Address: info.AggregatorAddress,
Name: consts.ContractNamePriceAggregator,
})
}
Copy link
Contributor

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)

Copy link
Contributor

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.

Copy link
Contributor Author

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?

Copy link
Contributor

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.

makramkd
makramkd previously approved these changes Sep 16, 2024
winder
winder previously approved these changes Sep 16, 2024
@asoliman92 asoliman92 dismissed stale reviews from winder and makramkd via 1820dc6 September 16, 2024 15:50
@asoliman92 asoliman92 added this pull request to the merge queue Sep 16, 2024
Merged via the queue into develop with commit 0187f18 Sep 16, 2024
154 of 156 checks passed
@asoliman92 asoliman92 deleted the token-price-integration branch September 16, 2024 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants