START WITH THE PROMISE, THEN WRITE THE CONTRACT.
What must never happen?
Turn a business rule into code, a state map, and an executable check.
Not tested
THE CONTRACT’S LIFE / TEMPLATE-DERIVED
This map describes the generated template. Source edits require manual review of the map and permissions.
Who can control the money?
SCENARIOS / REPLAYABLE EXAMPLES
Edit the generated source to explore a change. Previous test results become stale.
Export these scenarios as Foundry tests. Requires forge-std. The wizard executes local EVM scenarios; it does not run Forge in your browser.
Starters are intentionally narrow: native currency, fixed roles and no upgrades. These examples do not establish reentrancy resistance, correctness under every receiver/token behavior, or security under arbitrary transaction sequences. Passing checks are evidence for the displayed cases only.