Skip to content

Conversation

archseer
Copy link
Contributor

@archseer archseer commented Oct 3, 2025

No description provided.

@archseer archseer requested a review from tt-cll October 3, 2025 08:01
ConfigDigest: configForOCR3.ConfigDigest,
OcrPluginType: uint8(pluginType),
F: configForOCR3.Config.FRoleDON,
IsSignatureVerificationEnabled: pluginType == ccipocr3.PluginTypeCCIPCommit,
Copy link
Contributor Author

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))
Copy link
Contributor Author

@archseer archseer Oct 3, 2025

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

Comment on lines +43 to +44
state.Chains[homeChainSelector].CapabilityRegistry,
state.Chains[homeChainSelector].CCIPHome,
Copy link
Contributor Author

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?

Copy link
Collaborator

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
Copy link
Contributor Author

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

Copy link
Collaborator

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.

Copy link

github-actions bot commented Oct 3, 2025

Metric cld-set-ocr3-config main
Coverage 69.3% 68.8%

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