-
Notifications
You must be signed in to change notification settings - Fork 16
deployment: Set OCR3 config #1233
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
base: main
Are you sure you want to change the base?
Conversation
ConfigDigest: configForOCR3.ConfigDigest, | ||
OcrPluginType: uint8(pluginType), | ||
F: configForOCR3.Config.FRoleDON, | ||
IsSignatureVerificationEnabled: pluginType == ccipocr3.PluginTypeCCIPCommit, |
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.
ccipocr3.PluginType was recently added by @ogtownsend to common, we should use them everywhere in core as well and retire the old types
CapabilityVersion = "v1.0.0" | ||
) | ||
|
||
var CCIPCapabilityID = hashutil.NewKeccak().Hash(mustABIEncode(`[{"type": "string"}, {"type": "string"}]`, CapabilityLabelledName, CapabilityVersion)) |
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.
We need to do something like this in core too, a lot of unnecessary "github.com/smartcontractkit/chainlink-evm/pkg/utils"
imports
state.Chains[homeChainSelector].CapabilityRegistry, | ||
state.Chains[homeChainSelector].CCIPHome, |
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.
What should we do here? Need to avoid the stateview
dep?
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.
something like this I think
homeFamily, err := chain_selectors.GetSelectorFamily(homeChainSelector)
if err != nil {
return nil, err
}
ccipHome, err := registeredChainAdapters[homeFamily].GetCCIPHome(e, homeChainSelector)
if err != nil {
return nil, err
}
capabilityRegistry, err := registeredChainAdapters[homeFamily].GetCapabilityRegistry(e, homeChainSelector)
if err != nil {
return nil, err
}
donID, err := internal.DonIDForChain(
ccipHome,
capabilityRegistry,
chainSelector,
)
if err != nil {
return nil, fmt.Errorf("failed to get DON ID: %w", err)
}
github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20250911201806-5a095deaeb52 | ||
github.com/smartcontractkit/chainlink-common v0.9.6-0.20250930212138-0b782340a7f5 | ||
github.com/smartcontractkit/chainlink-deployments-framework v0.44.0 | ||
github.com/smartcontractkit/chainlink-evm/gethwrappers v0.0.0-20250827130336-5922343458be |
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 made sure we depend on gethwrappers only, chainlink-evm/pkg
should be an auto-deny lint
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 let's set up a linter for this separately.
|
No description provided.