Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chain-spec: getting ready for native-runtime-free world #1256

Merged
merged 135 commits into from
Nov 5, 2023

Commits on Aug 29, 2023

  1. sc-chain-spec: getting ready for non-native world

    - adds support for:
      - JSON based GenesisConfig (patch/full-config) to ChainSpec allowing
        interaction with runtime GenesisBuilder API.
      - interacting with arbitrary runtime wasm blob to chain-spec-builder command line util,
      - GenesisBuilder API in kitchensink runtime
    - removes `code` from system_pallet
    - adds `code` to the ChainSpec
    - deprecates ChainSpec::from_genesis, but also changes the signature of
      this method extending it with code argument. ChainSpec::builder()
      should be used instead.
    - implements GenesisBuilder API for node-template-runtime and kitchensink-runtime.
    
    Squash commit of work made in: paritytech/substrate#14562
    michalkucharczyk committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    1446ea3 View commit details
    Browse the repository at this point in the history
  2. polkadot: chain-specs getting ready for non-native world

    - all references to `RuntimeGenesisConfig` in node/service are removed,
    - `RococoGenesisExt` is removed. It was the hack to allow overwriting
      `EpochDurationInBlocks`. Removal of `RococGenesisExt` prevents from
    manipulating the state to change the runtime constants, what allows to
    keep metadata const.
    - all `(kusama|polkadot|versi|rococo|wococo)_(staging|dev)_genesis_config`
    functions now return the JSON patch for default runtime `GenesisConfig`,
    - `ChainSpecBuilder` is used, ChainSpec::from_genesis is removed,
    - rococo-runtime changes:
      -- Explicit building of fast-runtime version of rococo-runtime is no longer done.
      -- Environment variables which control the time::EpochDurationInBlocks value were added:
        `ROCOCO_FAST_RUNTIME` - enables the fast runtime version of
        runtime with default value of EpochDurationInBlocks set to 10. Value of
        env does not matter.
        `ROCOCO_EPOCH_DURATION` - enables the fast runtime version with
        provided value of EpochDurationInBlocks (epoch duration will be set to
        the value of env).
    
        Examples:
        - to build runtime for `versi_staging_testnet_config which had
          EpochDurationInBlocks set to 100:
        ```
        ROCOCO_EPOCH_DURATION=100 cargo build -p rococo
        ```
        - to build runtime for `versi_staging_testnet_config which had
          EpochDurationInBlocks set to 100:
        ```
        ROCOCO_EPOCH_DURATION=100 cargo build -p rococo-runtime
        ```
        - to build runtime for `wococo_development`
        ```
        ROCOCO_EPOCH_DURATION=10 cargo build -p rococo-runtime
        or
        ROCOCO_FAST_RUNTIME=1 cargo build -p rococo-runtime
        ```
    - ChainSpec: tests against legacy added
    michalkucharczyk committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    037c5ae View commit details
    Browse the repository at this point in the history
  3. cumulus: chain-specs getting ready for non-native world

    - integration-tests: storages building migrated to GenesisConfig JSON patches
    - parachain-template: GenesisBuilder implemented + JSON patch in ChainSpec
    - parachains/runtimes: GenesisBuilder API implemented
    - chain-specs: RuntimeGenesisConfig removed, JSON patches added
    - json_vs_legacy_tests: tests for json-based ChainSpecs added
        Copy of current chain_spec files (using deprecated from_genesis) was
        created in order to test json-patching vs old from_genesis version.
    - chain-specs: code moved from pallet_system to ChainSpec
    michalkucharczyk committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    3eb5768 View commit details
    Browse the repository at this point in the history
  4. Cargo.lock updated

    michalkucharczyk committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    a2d2152 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8e4c7ca View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b2bdc55 View commit details
    Browse the repository at this point in the history
  7. fmt

    michalkucharczyk committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    8f46827 View commit details
    Browse the repository at this point in the history
  8. ".git/.scripts/commands/fmt/fmt.sh"

    command-bot committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    bf9bbaf View commit details
    Browse the repository at this point in the history
  9. zepter fmt

    michalkucharczyk committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    21a4fa0 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    141f7cc View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. Configuration menu
    Copy the full SHA
    e499a0b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    65ae3a2 View commit details
    Browse the repository at this point in the history
  3. Cargo.lock updated

    michalkucharczyk committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    125de59 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a247f58 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2023

  1. Configuration menu
    Copy the full SHA
    3de595a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6bfc04d View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2023

  1. Configuration menu
    Copy the full SHA
    fb433fb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a9ab958 View commit details
    Browse the repository at this point in the history
  3. fix

    michalkucharczyk committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    c121b80 View commit details
    Browse the repository at this point in the history
  4. zombienet test fix

    michalkucharczyk committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    cb71977 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    86bacb1 View commit details
    Browse the repository at this point in the history
  6. ...

    michalkucharczyk committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    dcfd2f7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    569cdaa View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2023

  1. Configuration menu
    Copy the full SHA
    72d0c5a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    153ff6e View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2023

  1. Configuration menu
    Copy the full SHA
    dc458e9 View commit details
    Browse the repository at this point in the history
  2. __raw -> _raw

    michalkucharczyk committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    224b0d3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a784a72 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    678cbfa View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a370177 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    76c5574 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2023

  1. Configuration menu
    Copy the full SHA
    d18a393 View commit details
    Browse the repository at this point in the history
  2. Update .gitlab-ci.yml

    Co-authored-by: Javier Viola <javier@parity.io>
    michalkucharczyk and pepoviola authored Sep 5, 2023
    Configuration menu
    Copy the full SHA
    88df79c View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2023

  1. Update substrate/client/chain-spec/src/chain_spec.rs

    Co-authored-by: Davide Galassi <davxy@datawok.net>
    michalkucharczyk and davxy authored Sep 8, 2023
    Configuration menu
    Copy the full SHA
    4b09014 View commit details
    Browse the repository at this point in the history
  2. doc fixed

    michalkucharczyk committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    4f6157e View commit details
    Browse the repository at this point in the history
  3. Apply suggestions from code review

    Co-authored-by: Davide Galassi <davxy@datawok.net>
    michalkucharczyk and davxy authored Sep 8, 2023
    Configuration menu
    Copy the full SHA
    4694e89 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5f953e5 View commit details
    Browse the repository at this point in the history
  5. merge master fixes

    michalkucharczyk committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    4a23546 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2023

  1. Configuration menu
    Copy the full SHA
    bcce94e View commit details
    Browse the repository at this point in the history
  2. Cargo.lock updated

    michalkucharczyk committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    ef77c7a View commit details
    Browse the repository at this point in the history
  3. fixes

    michalkucharczyk committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    21d73f5 View commit details
    Browse the repository at this point in the history
  4. more fixes

    michalkucharczyk committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    7468963 View commit details
    Browse the repository at this point in the history
  5. fix

    michalkucharczyk committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    1459e59 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2023

  1. Configuration menu
    Copy the full SHA
    1163c53 View commit details
    Browse the repository at this point in the history
  2. merge fixes

    michalkucharczyk committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    fbc2b96 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2023

  1. Configuration menu
    Copy the full SHA
    55d9585 View commit details
    Browse the repository at this point in the history
  2. merging fix

    michalkucharczyk committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    992af8f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d663916 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2023

  1. Configuration menu
    Copy the full SHA
    8018987 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2023

  1. Configuration menu
    Copy the full SHA
    ec400d8 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2023

  1. Configuration menu
    Copy the full SHA
    3038707 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2023

  1. Configuration menu
    Copy the full SHA
    e56f1bc View commit details
    Browse the repository at this point in the history
  2. Cargo.lock update

    michalkucharczyk committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    c038d26 View commit details
    Browse the repository at this point in the history
  3. test fixed

    michalkucharczyk committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    37a9701 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2023

  1. Configuration menu
    Copy the full SHA
    fb9b3d5 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2023

  1. Configuration menu
    Copy the full SHA
    ca85b96 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2023

  1. Configuration menu
    Copy the full SHA
    6f8e125 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0687f81 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a654716 View commit details
    Browse the repository at this point in the history
  4. ".git/.scripts/commands/fmt/fmt.sh"

    command-bot committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    6da1de6 View commit details
    Browse the repository at this point in the history
  5. doc improvements

    michalkucharczyk committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    987a8d1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d4010cd View commit details
    Browse the repository at this point in the history
  7. polishing doc

    michalkucharczyk committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    83a3f73 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    074e36a View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2023

  1. doc improvements

    michalkucharczyk committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    b23e073 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    afa6ede View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6f6596e View commit details
    Browse the repository at this point in the history
  4. merging improvements

    michalkucharczyk committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    56ec31c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3ee6fc9 View commit details
    Browse the repository at this point in the history
  6. Cargo.lock udpated

    michalkucharczyk committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    aee8fd8 View commit details
    Browse the repository at this point in the history
  7. fix

    michalkucharczyk committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    5a7e2c1 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b40484a View commit details
    Browse the repository at this point in the history
  9. Cargo.lock

    michalkucharczyk committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    3c62e17 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7a86589 View commit details
    Browse the repository at this point in the history
  11. code review - doc fixes

    Co-authored-by: Kevin Krone <kevin@parity.io>
    michalkucharczyk and wentelteefje authored Oct 18, 2023
    Configuration menu
    Copy the full SHA
    f57a227 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    ce4a355 View commit details
    Browse the repository at this point in the history
  13. ".git/.scripts/commands/fmt/fmt.sh"

    command-bot committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    ddaac44 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2023

  1. Configuration menu
    Copy the full SHA
    454b9e5 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2023

  1. Configuration menu
    Copy the full SHA
    271a642 View commit details
    Browse the repository at this point in the history
  2. prdoc added

    michalkucharczyk committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    8f83e65 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2023

  1. Configuration menu
    Copy the full SHA
    03fe6d2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c821ca View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5754843 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6473b91 View commit details
    Browse the repository at this point in the history
  5. ".git/.scripts/commands/fmt/fmt.sh"

    command-bot committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    b9e850d View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. Configuration menu
    Copy the full SHA
    6a7c717 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2023

  1. Configuration menu
    Copy the full SHA
    4d71564 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2023

  1. Configuration menu
    Copy the full SHA
    dec047a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5f7781f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ea2e1f1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    69f0aeb View commit details
    Browse the repository at this point in the history
  5. Update substrate/client/chain-spec/src/lib.rs

    Co-authored-by: Davide Galassi <davxy@datawok.net>
    michalkucharczyk and davxy authored Oct 30, 2023
    Configuration menu
    Copy the full SHA
    8564093 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    aedaf4f View commit details
    Browse the repository at this point in the history
  7. ".git/.scripts/commands/fmt/fmt.sh"

    command-bot committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    8c7d66f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    69442e3 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2023

  1. Configuration menu
    Copy the full SHA
    f1ad7ba View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2023

  1. Update prdoc/pr_1256.prdoc

    Co-authored-by: Bastian Köcher <git@kchr.de>
    michalkucharczyk and bkchr authored Nov 1, 2023
    Configuration menu
    Copy the full SHA
    3d8347e View commit details
    Browse the repository at this point in the history
  2. Update substrate/client/chain-spec/src/chain_spec.rs

    Co-authored-by: Bastian Köcher <git@kchr.de>
    michalkucharczyk and bkchr authored Nov 1, 2023
    Configuration menu
    Copy the full SHA
    ceb6b16 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    87e60ac View commit details
    Browse the repository at this point in the history
  4. fix

    michalkucharczyk committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    88369c6 View commit details
    Browse the repository at this point in the history
  5. doc fix

    michalkucharczyk committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    fc3cef2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c3b99aa View commit details
    Browse the repository at this point in the history
  7. fmt

    michalkucharczyk committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    2702ef6 View commit details
    Browse the repository at this point in the history
  8. fixes

    michalkucharczyk committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    91bc747 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    60dae23 View commit details
    Browse the repository at this point in the history
  10. doc fix

    michalkucharczyk committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    ffc779e View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2023

  1. Configuration menu
    Copy the full SHA
    8d29feb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    14d8e04 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    54e6ba8 View commit details
    Browse the repository at this point in the history
  4. fixes

    michalkucharczyk committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    2e2c749 View commit details
    Browse the repository at this point in the history
  5. fix reverted

    michalkucharczyk committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    c82e634 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1ca2238 View commit details
    Browse the repository at this point in the history
  7. fixes

    michalkucharczyk committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    ac41e78 View commit details
    Browse the repository at this point in the history
  8. ".git/.scripts/commands/fmt/fmt.sh"

    command-bot committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    f687591 View commit details
    Browse the repository at this point in the history
  9. test + fixes

    michalkucharczyk committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    e6b9866 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    98a53d0 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2023

  1. fixes

    michalkucharczyk committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    8dc196e View commit details
    Browse the repository at this point in the history
  2. fix

    michalkucharczyk committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    ed7b137 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    30ffe7c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    253aabe View commit details
    Browse the repository at this point in the history
  5. some fixes

    michalkucharczyk committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    af239cb View commit details
    Browse the repository at this point in the history
  6. fixes

    michalkucharczyk committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    cbb493e View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2023

  1. Configuration menu
    Copy the full SHA
    e94b476 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c41092a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8e85faf View commit details
    Browse the repository at this point in the history
  4. fix

    michalkucharczyk committed Nov 4, 2023
    Configuration menu
    Copy the full SHA
    00ca55d View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2023

  1. Apply suggestions from code review

    Co-authored-by: Bastian Köcher <git@kchr.de>
    michalkucharczyk and bkchr authored Nov 5, 2023
    Configuration menu
    Copy the full SHA
    670e837 View commit details
    Browse the repository at this point in the history
  2. Apply suggestions from code review

    Co-authored-by: Bastian Köcher <git@kchr.de>
    michalkucharczyk and bkchr authored Nov 5, 2023
    Configuration menu
    Copy the full SHA
    393ce9d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3df6b4d View commit details
    Browse the repository at this point in the history
  4. fmt

    michalkucharczyk committed Nov 5, 2023
    Configuration menu
    Copy the full SHA
    cf70573 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1393fcb View commit details
    Browse the repository at this point in the history
  6. prdoc: updated

    michalkucharczyk committed Nov 5, 2023
    Configuration menu
    Copy the full SHA
    03ae1bc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f4d3f32 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    45a03d6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    09862df View commit details
    Browse the repository at this point in the history