creation: the genesis template owns its allocations - #40
Open
owenwahlgren wants to merge 2 commits into
Open
Conversation
The alloc object accepts the $genesis-funds placeholder (resolves to the generated bombard account) and literal addresses, which pass through verbatim: prefunds and prebaked contracts alike. Removing the placeholder line only disables bombard on that chain; l1 create prints a note. The generated feeder and the oracle aggregator still inject, and a collision with a template allocation is an error. New examples/oracle-feed.ini shows the oracle shape in generic syntax.
The values equal the default ladder, so behavior is unchanged; the failover design is now visible on the lines. dev-single-host stays untagged as the zero-config demonstration, and the oracle chain takes no tag because its flat weight is not operator-tunable. A new test loads every example through the real parser so the files cannot drift again.
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 changed
genesis-template.jsonalloc is no longer forced empty. Two key forms: the$genesis-fundsplaceholder (resolves to the generated bombard account with the balance the template states) and literal hex addresses, which pass through verbatim (balance, code, storage, nonce). Operators can prefund their own accounts, prebake their own contracts, or remove the bombard funding (create prints a note; only bombard stops working).$genesis-fundsline visibly.examples/oracle-feed.ini(main + oracle shape in genericchain=oraclesyntax); stale oracle-roles sentence inexamples/README.mdfixed;two-chains.inicomment updated.Verification
go test ./...green; new render tests cover placeholder resolution, literal passthrough, removal, collisions, and strict field validation.