Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(genesis): move development genesis config to runtime (#2152)
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