Skip to content

make: refuse the EVM-only forking targets on a non-EVM chainFamily - #38

Merged
SyedAsadKazmi merged 1 commit into
mainfrom
feat/makefile-family-aware
Sep 16, 2026
Merged

SyedAsadKazmi merged 1 commit into
mainfrom
feat/makefile-family-aware

Conversation

@aelmanaa

Copy link
Copy Markdown
Contributor

This pull request introduces robust handling for non-EVM (e.g., Solana) chains in the Makefile and related config tooling. It ensures that EVM-only deployment targets (like deploy-token and adopt-token TOKEN=) now explicitly refuse to run on non-EVM chains, providing clear guidance to the user. Additionally, the tools target now checks for the chain family and gives appropriate feedback, while the roles-check script is updated to skip non-EVM chains gracefully. Documentation and help texts are updated to reflect these changes.

EVM vs Non-EVM Chain Handling:

  • Added a new require-evm-chain Makefile macro to prevent EVM-only targets from running on non-EVM chains, with user-friendly error messages and hints for proper usage. (Makefile) [1] [2] [3]
  • Updated the adopt-token, deploy-token, deploy-pool, deploy-lockbox, and deploy-lockrelease-pool targets to invoke this macro, ensuring they only operate on EVM chains. (Makefile) [1] [2]
  • Created script/config/chain-family.sh to robustly determine a chain's family, defaulting to evm on missing or malformed configs to avoid accidental refusals.

Tooling and Documentation Updates:

  • Enhanced the tools target to check the chain's family and provide clear, family-specific guidance without requiring extra tools for non-EVM chains. Updated help text and the catalog accordingly. (Makefile, docs/primitives/catalog.json) [1] [2]
  • Updated documentation (docs/config-schema.md) to describe the new EVM-only enforcement and clarify behavior for non-EVM chains.

roles-check Script Improvements:

  • Modified roles-check.sh to skip non-EVM chains both when specified explicitly and during sweeps, providing clear SKIP messages and accurate summary output. (script/config/roles-check.sh) [1] [2] [3] [4]

@aelmanaa
aelmanaa requested review from a team as code owners September 15, 2026 21:40
@SyedAsadKazmi
SyedAsadKazmi merged commit 1459ea8 into main Sep 16, 2026
15 checks passed
@SyedAsadKazmi
SyedAsadKazmi deleted the feat/makefile-family-aware branch September 16, 2026 10:05
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