File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # EV Deployer configuration
2+ # See: bin/ev-deployer/README.md
3+
4+ [chain ]
5+ # The chain ID for the target network.
6+ chain_id = 0
7+
8+ # ── Contracts ────────────────────────────────────────────
9+ # Uncomment and configure the contracts you want to include
10+ # in the genesis alloc.
11+
12+ # AdminProxy: transparent proxy with owner-based access control.
13+ # The owner address is stored in slot 0.
14+ # [contracts.admin_proxy]
15+ # address = "0x000000000000000000000000000000000000Ad00"
16+ # owner = "0x..."
Original file line number Diff line number Diff line change @@ -43,6 +43,12 @@ enum Command {
4343 #[ arg( long) ]
4444 addresses_out : Option < PathBuf > ,
4545 } ,
46+ /// Generate a starter config file with all supported contracts commented out.
47+ Init {
48+ /// Write config to this file instead of stdout.
49+ #[ arg( long) ]
50+ output : Option < PathBuf > ,
51+ } ,
4652 /// Compute the address for a configured contract.
4753 ComputeAddress {
4854 /// Path to the deploy TOML config.
@@ -90,6 +96,16 @@ fn main() -> eyre::Result<()> {
9096 eprintln ! ( "Wrote address manifest to {}" , addr_path. display( ) ) ;
9197 }
9298 }
99+ Command :: Init { output } => {
100+ let template = include_str ! ( "init_template.toml" ) ;
101+
102+ if let Some ( ref out_path) = output {
103+ std:: fs:: write ( out_path, template) ?;
104+ eprintln ! ( "Wrote config to {}" , out_path. display( ) ) ;
105+ } else {
106+ print ! ( "{template}" ) ;
107+ }
108+ }
93109 Command :: ComputeAddress {
94110 config : config_path,
95111 contract,
You can’t perform that action at this time.
0 commit comments