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

Add Solana chain reader config to plugin creator #15876

Open
wants to merge 2 commits into
base: solana-offchain-plugin
Choose a base branch
from

Conversation

huangzhen1997
Copy link
Contributor

@huangzhen1997 huangzhen1997 commented Jan 9, 2025

Jira ticket https://smartcontract-it.atlassian.net/browse/NONEVM-933

This PR remove EVM specific dependency, and add Solana support for chain reader config in plugin logic. At the moment, the Solana program address required for the plugin are not yet available. They will be configured later in a different PR, and an empty place holder will be used now for unblocking E2E test.

@huangzhen1997 huangzhen1997 changed the base branch from develop to solana-offchain-plugin January 9, 2025 19:51
@huangzhen1997 huangzhen1997 marked this pull request as ready for review January 9, 2025 21:28
@huangzhen1997 huangzhen1997 requested review from a team as code owners January 9, 2025 21:28
lggr.Debugw("Adding home chain reader config", "chainID", chainID)
chainReaderConfig = evmconfig.MergeReaderConfigs(chainReaderConfig, evmconfig.HomeChainReaderConfigRaw)
}
if chainID == homeChainID {
Copy link
Contributor

Choose a reason for hiding this comment

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

This home chain config merging with local raw config will likely be needed for Solana too.
Because tooling team will add some configs to home chain, and some to local node.
So its good to add this config merging logic to solana too.
Or better, make it generic for all chain families if possible. I mean after fetching all local configs separately for each chain family, at the end, do a merge with home chain config, that is chain family agnostic.

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