Skip to content

Commit

Permalink
chore(genesis): move development genesis config to runtime (#2152)
Browse files Browse the repository at this point in the history
Move Development Genesis Config to the Runtime to
support decoupling of client and runtime dependencies.

When running `chain-spec-builder`, the following command:

```
chain-spec-builder list-presets –-runtime-wasm-path ./target/debug/wbuild/frequency-runtime/frequency_runtime.wasm
```

**Outputs:**
With feature flags _"frequency-no-relay", "frequency-local"_ enabled:
```
{“presets”:[“development”, "frequency-local", "frequency"]}
```

Additionally, when running:
```
chain-spec-builder display-preset --runtime-wasm-path ./target/debug/wbuild/frequency-runtime/frequency_runtime.wasm --preset-name development
```

it outputs the development genesis config:
```
{"aura":{"authorities":[]},"auraExt":{},"balances":{ ...} ... }
```

With feature flags _"frequency"_ only, mainnet presets show up:
```
{“presets”:["frequency"]}
```
Additionally, when running:
```
chain-spec-builder display-preset --runtime-wasm-path ./target/debug/wbuild/frequency-runtime/frequency_runtime.wasm --preset-name frequency
```

it outputs the frequency genesis config:
```
{"aura":{"authorities":[]},"auraExt":{},"balances":{ ...} ... }
```


#2149
#2142
  • Loading branch information
enddynayn authored Oct 1, 2024
1 parent c8f184f commit 8e6c002
Show file tree
Hide file tree
Showing 10 changed files with 316 additions and 681 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8e6c002

Please sign in to comment.