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

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.

Copy link
Contributor

github-actions bot commented Jan 11, 2025

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

AER Report: CI Core ran successfully ✅

aer_workflow , commit

Copy link
Contributor

@ilija42 ilija42 left a comment

Choose a reason for hiding this comment

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

looks good

@huangzhen1997 huangzhen1997 requested a review from a team as a code owner January 14, 2025 22:38
@huangzhen1997 huangzhen1997 requested a review from a team as a code owner January 15, 2025 15:29
@huangzhen1997 huangzhen1997 merged commit 27c2440 into solana-offchain-plugin Jan 17, 2025
186 of 187 checks passed
@huangzhen1997 huangzhen1997 deleted the NONEVM-933/add-chain-reader-config-to-plugin-creator branch January 17, 2025 20:37
@huangzhen1997 huangzhen1997 restored the NONEVM-933/add-chain-reader-config-to-plugin-creator branch January 17, 2025 20:37
@huangzhen1997 huangzhen1997 deleted the NONEVM-933/add-chain-reader-config-to-plugin-creator branch January 17, 2025 20:37
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