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

CCIP-3710 create new custom calldata L1 gas oracle #14710

Draft
wants to merge 1 commit into
base: chore/move-da-oracle-config-consts
Choose a base branch
from

Conversation

ogtownsend
Copy link
Collaborator

As a follow up to #14599, this PR adds a separate custom L1 oracle specifically for fetching gas prices from a custom contract method rather than baking the logic into the existing OP stack L1 oracle

Copy link
Contributor

github-actions bot commented Oct 9, 2024

WF: CI Core#528e80a

No errors found in this run. 🎉

@ogtownsend ogtownsend force-pushed the CCIP-3710-create-new-custom-calldata-oracle-separate-from-existing-da-oracles branch from 9cdbf76 to 41b5cb9 Compare October 9, 2024 21:55
func (d *daOracleConfig) CustomGasPriceCalldata() string {
// TODO: CCIP-3710 update once custom calldata oracle is added
return ""
if d.c.OracleType != toml.CustomCalldata {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this feels off, maybe we can move the Oracle constants into a child daoracle package, or prepend them, smt like DAOracle_CustomCalldata

logger logger.SugaredLogger

daOracleConfig evmconfig.DAOracle
l1GasPriceMu sync.RWMutex
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's remove all references to l1 and use da instead

@ogtownsend ogtownsend force-pushed the CCIP-3552-refactor-op-stack-oracle-to-accept-generic-op-l-2-config branch 2 times, most recently from e33bf1e to 6ab6540 Compare October 10, 2024 20:36
Base automatically changed from CCIP-3552-refactor-op-stack-oracle-to-accept-generic-op-l-2-config to develop October 11, 2024 19:07
@ogtownsend ogtownsend force-pushed the CCIP-3710-create-new-custom-calldata-oracle-separate-from-existing-da-oracles branch from 41b5cb9 to 6c8b7f5 Compare October 11, 2024 22:52
@ogtownsend ogtownsend changed the base branch from develop to chore/move-da-oracle-config-consts October 11, 2024 22:52
@ogtownsend ogtownsend force-pushed the CCIP-3710-create-new-custom-calldata-oracle-separate-from-existing-da-oracles branch from 6c8b7f5 to 528e80a Compare October 11, 2024 22:56
@ogtownsend ogtownsend force-pushed the CCIP-3710-create-new-custom-calldata-oracle-separate-from-existing-da-oracles branch from 528e80a to 69ab245 Compare October 11, 2024 23:14
@cl-sonarqube-production
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint

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.

2 participants