feat(anvil): seed Base activation features for a standalone anvil --base node (BOP-375)#39
Merged
Conversation
…ase node (BOP-375)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A standalone
anvil --basenode now has Base's activation-gated features (B20Asset, B20Stablecoin, PolicyRegistry) active at startup, matchingforge --baselocal execution and a live Beryl-or-later chain.Why
--baseinstalls the Base precompiles, but the gated features start OFF in a fresh local EVM.forge --basealready seeds them active for local (non-fork) runs; a node a developer starts withanvil --basedid not, so calls revertedFeatureNotActivateduntil the dev manuallyactivate()d each feature over RPC.How
In
Backend::apply_genesis, after the genesis alloc, writeNetworkConfigs::base_activation_seeds()into the node DB viaset_storage_at. Reuses the exact seeds + derivation as the forge path. Skipped in fork mode (the live chain carries real activation state); no-op unless--baseis set.Verification
cargo check -p anvilclean.anvil --base:isActivated(bytes32)returns true for B20Asset / B20Stablecoin / PolicyRegistry with no manualactivate(); a bogus feature id returns false.anvil: registry has no code (unchanged behavior).Closes BOP-375.