Skip to content

Canton Config for EVM - #2202

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

Canton Config for EVM #2202
stackman27 wants to merge 5 commits into
mainfrom
sish/canton-config-v2

Conversation

@stackman27

Copy link
Copy Markdown
Collaborator

No description provided.

@stackman27
stackman27 requested review from a team as code owners July 22, 2026 00:56
@github-actions

Copy link
Copy Markdown

👋 stackman27, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions

Copy link
Copy Markdown
Metric sish/canton-config-v2 main
Coverage 70.0% 69.6%


fqConfig := mergeFeeQuoterDestChainConfig(
remoteAdapter.GetDefaultFeeQuoterDestChainConfig(localChainSelector, remoteChainSelector, remoteAdapter.GetChainFamilySelector()),
localAdapter.GetDefaultFeeQuoterDestChainConfig(localChainSelector, remoteChainSelector, remoteAdapter.GetChainFamilySelector()),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this should stay as the remote adapter. Basically Canton's adapter should feed EVM the configs EVM needs to configure Canton

// what the defaults or user-supplied overrides contain.
fqConfig.ChainFamilySelector = remoteAdapter.GetChainFamilySelector()

defaults := remoteAdapter.GetDefaultRemoteChainConfig(localChainSelector, remoteChainSelector)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We still need this line. It's the job of the counterpart to give the "local" the right config to configure itself

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Because, imagine when Solana or Aptos needs to hook up to Canton. They shouldn't have any Canton specific details

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