Skip to content

Fix config - #814

Open
stackman27 wants to merge 5 commits into
mainfrom
sish/fix-config
Open

Fix config#814
stackman27 wants to merge 5 commits into
mainfrom
sish/fix-config

Conversation

@stackman27

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 22, 2026 01:21
@stackman27
stackman27 marked this pull request as ready for review July 22, 2026 01:21
@stackman27
stackman27 requested a review from a team as a code owner July 22, 2026 01:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates Canton lane configuration defaults, including token price assumptions and per-remote-chain default fee parameters, and introduces stricter defaulting behavior for inbound committee verifiers.

Changes:

  • Adjust default native (Amulet) USD-per-token fallback from 0.1 to 0.15.
  • Add EVM vs non-EVM branching for Canton default FeeQuoter destination-chain configuration and remote-chain defaults.
  • Change default inbound CCV resolution to fail-closed behavior when not explicitly configured.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
deployment/adapters/configure_lanes_token_prices.go Updates default native token USD price used when FamilyExtras omit a value.
deployment/adapters/chain_family_adapter.go Adds EVM/non-EVM default selection for fee config + remote defaults; changes default inbound CCV resolution behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +557 to +568
// Hardening: default inbound CCV is invalid-ccv (fail-closed) when not explicitly configured.
ref, err := findContractRef(
ds,
chainSelector,
datastore.ContractType(committeeverifierop.ContractType),
committeeverifierop.Version,
"invalid-ccv",
)
if err != nil {
return nil, fmt.Errorf("resolve default invalid-ccv inbound qualifier: %w", err)
}
return []datastore.AddressRef{ref}, nil
@stackman27

Copy link
Copy Markdown
Contributor Author

/auto-fix

This commit was created from the local commit with hash 4ba4973f66d466cbc367f090b31704d1060222a3.
Copilot AI review requested due to automatic review settings July 22, 2026 02:16
@app-token-issuer-integrations

Copy link
Copy Markdown
Contributor

Autofix successful
Workflow run: https://github.com/smartcontractkit/chainlink-canton/actions/runs/29884688411

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

deployment/adapters/chain_family_adapter.go:566

  • The fallback to a hard-coded CommitteeVerifier qualifier "invalid-ccv" introduces a datastore dependency that doesn't appear to be created/used anywhere else in the repo (no other references found). As written, any remote config that omits DefaultInboundCCVs will now fail during ConfigureChainForLanes with a somewhat indirect error. If the goal is fail-closed hardening, it’s clearer to return an explicit error requiring DefaultInboundCCVs to be set (or to separately ensure an "invalid-ccv" ref is always seeded).
		datastore.ContractType(committeeverifierop.ContractType),
		committeeverifierop.Version,
		"invalid-ccv",
	)
	if err != nil {

V2Params: &lanes.FeeQuoterV2Params{
LinkFeeMultiplierPercent: 90,
USDPerUnitGas: big.NewInt(38),
USDPerUnitGas: big.NewInt(1e6),
Copilot AI review requested due to automatic review settings July 29, 2026 00:33
JohnChangUK
JohnChangUK previously approved these changes Jul 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

deployment/adapters/chain_family_adapter.go:90

  • big.NewInt(1e6) works, but the scientific-notation literal is less readable in Go and can be mistaken for a float-derived value. Prefer an integer literal with separators for clarity.
			USDPerUnitGas:            big.NewInt(1e6),

Comment on lines +558 to +570
// Hardening: default inbound CCV is invalid-ccv (fail-closed) when not explicitly configured.
ref, err := findContractRef(
ds,
chainSelector,
datastore.ContractType(committeeverifierop.ContractType),
committeeverifierop.Version,
"invalid-ccv",
)
if err != nil {
return nil, fmt.Errorf("resolve default invalid-ccv inbound qualifier: %w", err)
}

return []datastore.AddressRef{ref}, nil
Copilot AI review requested due to automatic review settings July 29, 2026 01:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

deployment/adapters/chain_family_adapter.go:559

  • resolveDefaultInboundCCVs now hard-codes a fallback qualifier ("invalid-ccv") when DefaultInboundCCVs is empty. There are no other references/definitions of this qualifier in the repo, so lane configuration will fail at runtime unless the datastore is pre-populated with a CommitteeVerifier address ref using qualifier "invalid-ccv". Consider failing fast with a clear error asking callers to explicitly configure DefaultInboundCCVs (or ensure the qualifier is created as part of deployment/setup).
	// Hardening: default inbound CCV is invalid-ccv (fail-closed) when not explicitly configured.
	ref, err := findContractRef(
		ds,
		chainSelector,
		datastore.ContractType(committeeverifierop.ContractType),
		committeeverifierop.Version,
		"invalid-ccv",

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.

3 participants