runtimes: presets are provided as config patches (#6349)
This PR introduces usage of `build_struct_json_patch` macro in all runtimes (also guides) within the code base. It also fixes macro to support _field init shorthand_, and _Struct Update_ syntax which were missing in original implementation. Follow up of #5700 and #5813
parent
0e09ad44
Pipeline
#504885
waiting for manual action
with stages
in
34 minutes and 54 seconds
Stage:
Stage:
Stage:
Stage:
Stage:
Showing
- cumulus/parachains/runtimes/assets/asset-hub-westend/src/genesis_config_presets.rs 5 additions, 12 deletions...es/assets/asset-hub-westend/src/genesis_config_presets.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/genesis_config_presets.rs 8 additions, 26 deletions...idge-hubs/bridge-hub-rococo/src/genesis_config_presets.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/genesis_config_presets.rs 9 additions, 29 deletions...dge-hubs/bridge-hub-westend/src/genesis_config_presets.rs
- cumulus/parachains/runtimes/collectives/collectives-westend/src/genesis_config_presets.rs 5 additions, 12 deletions...ectives/collectives-westend/src/genesis_config_presets.rs
- docs/sdk/packages/guides/first-runtime/src/lib.rs 3 additions, 5 deletionsdocs/sdk/packages/guides/first-runtime/src/lib.rs
- polkadot/runtime/rococo/src/genesis_config_presets.rs 9 additions, 22 deletionspolkadot/runtime/rococo/src/genesis_config_presets.rs
- polkadot/runtime/westend/src/genesis_config_presets.rs 5 additions, 13 deletionspolkadot/runtime/westend/src/genesis_config_presets.rs
- prdoc/pr_6349.prdoc 44 additions, 0 deletionsprdoc/pr_6349.prdoc
- substrate/frame/support/src/generate_genesis_config.rs 474 additions, 86 deletionssubstrate/frame/support/src/generate_genesis_config.rs
- templates/minimal/runtime/src/lib.rs 2 additions, 5 deletionstemplates/minimal/runtime/src/lib.rs
- templates/parachain/runtime/src/genesis_config_presets.rs 5 additions, 12 deletionstemplates/parachain/runtime/src/genesis_config_presets.rs
- templates/solochain/runtime/src/genesis_config_presets.rs 3 additions, 6 deletionstemplates/solochain/runtime/src/genesis_config_presets.rs
Please register or sign in to comment