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

[Pools] Refactors and runtime apis for DelegateStake #4537

Merged
merged 351 commits into from
Jun 3, 2024
Merged
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Apr 9, 2024

  1. fix imports

    Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    a48b651 View commit details
    Browse the repository at this point in the history
  2. Revert log level changes (#3913)

    Closes: #3906
    bkchr authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    8df0f0f View commit details
    Browse the repository at this point in the history
  3. Fix two typos (#3812)

    Co-authored-by: Bastian Köcher <git@kchr.de>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    8cd50d0 View commit details
    Browse the repository at this point in the history
  4. Removed pallet::getter usage from pallet-alliance (#3738)

    Part of #3326 
    
    cc @kianenigma @ggwpez @liamaharon 
    
    polkadot address: 12poSUQPtcF1HUPQGY3zZu2P8emuW9YnsPduA4XG3oCEfJVp
    
    ---------
    
    Signed-off-by: Matteo Muraca <mmuraca247@gmail.com>
    Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
    Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
    3 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    398eb18 View commit details
    Browse the repository at this point in the history
  5. network:bridge: fix peer_count metric (#3711)

    The metric records the current protocol_version of the validator that
    just connected with the peer_map.len(), which contains all peers that
    connected, that has the effect the metric will be wrong since it won't
    tell us how many peers we have connected per version because it will
    always record the total number of peers
    
    Fix this by counting by version inside peer_map, additionally because
    that might be a bit heavier than len(), publish it only on-active
    leaves.
    
    ---------
    
    Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
    alexggh authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    140b0f5 View commit details
    Browse the repository at this point in the history
  6. [parachain-template] pallet configurations into mod configs (#3809)

    This PR introduces a refactor of the parachain runtime configuration by
    consolidating all pallet configurations into a new module named
    `configs`. This change aims to improve the readability and
    maintainability of the runtime configuration by centralizing all
    configuration parameters.
    
    ## Changes
    - **Creation of `configs.rs`**: A new file `configs.rs` has been added
    under `templates/parachain/runtime/src/`, containing all the runtime
    configurations previously scattered across `lib.rs`.
    - **Refactoring of `lib.rs`**: The `lib.rs` file has been significantly
    slimmed down by removing the inline pallet configurations and importing
    them from `configs.rs` instead.
    - **Optimization of Import Statements**: Reorganized import statements
    to clarify the runtime's dependency structure.
    
    ### Benefits
    - **Improved Readability**: With configurations being centralized,
    developers can now easily locate and review runtime parameters without
    navigating through the `lib.rs` file.
    
    This refactor does not introduce any changes to the runtime logic but
    improves the project structure for better development experience.
    
    ---------
    
    Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    01d0b52 View commit details
    Browse the repository at this point in the history
  7. Improve HostConfiguration consistency check (#3897)

    fixes #3886
    
    ---------
    
    Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
    sandreim authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    c861b78 View commit details
    Browse the repository at this point in the history
  8. Pools: Make PermissionlessWithdraw the default claim permission (#3438

    )
    
    Related Issue #3398
    
    This PR makes permissionless withdrawing the default option, giving any
    network participant access to claim pool rewards on member's behalf. Of
    course, members can still opt out of this by setting a `Permissioned`
    claim permission.
    
    Permissionless claiming has been a part of the nomination pool pallet
    for around 9 months now, with very limited uptake (~4% of total pool
    members). 1.6% of pool members are using `PermissionlessAll`, strongly
    suggesting it is not wanted - it is too ambiguous and doesn't provide
    guidance to claimers.
    
    Stakers expect rewards to be claimed on their behalf by default - I have
    expanded upon this in detail within the [accompanying issue's
    discussion](#3398).
    Other protocols have this behaviour, whereby staking rewards are
    received without the staker having to take any action. From this
    perspective, permissionless claiming is not intuitive for pool members.
    As evidence of this, over 150,000 DOT is currently unclaimed on
    Polkadot, and is growing at a non-linear rate.
    Ross Bulat authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    2d82d2b View commit details
    Browse the repository at this point in the history
  9. Fix 0007-dispute-freshly-finalized.zndsl failing (#3893)

    Test started failing after
    66051ad
    which enabled approval coalescing, that was expected to happen because
    the test required an polkadot_parachain_approval_checking_finality_lag
    of 0, which can't happen with max_approval_coalesce_count greater than 1
    because we always delay the approval for no_show_duration_ticks/2 in
    case we can coalesce it with other approvals.
    
    
    So relax a bit the restrictions, since we don't actually care that the
    lags are 0, but the fact the finalities are progressing and are not
    stuck.
    
    Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
    alexggh authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    780e29d View commit details
    Browse the repository at this point in the history
  10. primitives: Move out of staging released APIs (#3925)

    Runtime release 1.2 includes bumping of the ParachainHost APIs up to
    v10, so let's move all the released APIs out of vstaging folder, this PR
    does not include any logic changes only renaming of the modules and some
    moving around.
    
    Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
    alexggh authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    5a8f14b View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    b4cb8d1 View commit details
    Browse the repository at this point in the history
  12. pallet-scheduler: fix test (#3923)

    fix #3921
    
    ---------
    
    Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
    sandreim authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    be8bd2d View commit details
    Browse the repository at this point in the history
  13. im-online removal final cleanup (#3902)

    Rejoice! Rejoice! The story is nearly over.
    
    This PR removes stale migrations, auxiliary structures, and package
    dependencies, thus making Rococo and Westend totally free from any
    `im-online`-related stuff.
    
    `im-online` still stays a part of the Substrate node and its runtime:
    https://github.com/paritytech/polkadot-sdk/blob/0d9324847391e902bb42f84f0e76096b1f764efe/substrate/bin/node/runtime/src/lib.rs#L2276-L2277
    I'm not sure if it makes sense to remove it from there considering that
    we're not removing `im-online` from FRAME. Please share your opinion.
    s0me0ne-unkn0wn authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    5e3d97e View commit details
    Browse the repository at this point in the history
  14. Update derive syn parse 0.2.0 (+ docify) (#3920)

    derive-syn-parse v0.2.0 came out recently which (finally) adds support
    for syn 2x.
    
    Upgrading to this will remove many of the places where syn 1x was still
    compiling alongside syn 2x in the polkadot-sdk workspace.
    
    This also upgrades `docify` to 0.2.8 which is the version that upgrades
    derive-syn-pasre to 0.2.0.
    
    Additionally, this consolidates the `docify` versions in the repo to all
    use the latest, and in one case upgrades to the 0.2x syntax where 0.1.x
    was still being used.
    
    ---------
    
    Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    8f2e654 View commit details
    Browse the repository at this point in the history
  15. pallet-xcm: fix weights for all XTs and deprecate unlimited weight on…

    …es (#3927)
    
    Fix "double-weights" for extrinsics, use only the ones benchmarked in
    the runtime.
    
    Deprecate extrinsics that don't specify WeightLimit, remove their usage
    across the repo.
    
    ---------
    
    Signed-off-by: Adrian Catangiu <adrian@parity.io>
    Co-authored-by: command-bot <>
    acatangiu authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    00529bc View commit details
    Browse the repository at this point in the history
  16. Fix parachain upgrade scheduling when done by the owner/root (#3341)

    When using `schedule_code_upgrade` to change the code of a parachain in
    the relay chain runtime, we had already fixed to not set the `GoAhead`
    signal. This was done to not brick any parachain after the upgrade,
    because they were seeing the signal without having any upgrade prepared.
    The remaining problem is that the parachain code is only upgraded after
    a parachain header was enacted, aka the parachain made some progress.
    However, this is quite complicated if the parachain is bricked (which is
    the most common scenario why to manually schedule a code upgrade). Thus,
    this pull request replaces `SetGoAhead` with `UpgradeStrategy` to signal
    to the logic kind of strategy want to use. The strategies are either
    `SetGoAheadSignal` or `ApplyAtExpectedBlock`. `SetGoAheadSignal` sets
    the go ahead signal as before and awaits a parachain block.
    `ApplyAtExpectedBlock` schedules the upgrade and applies it directly at
    the `expected_block` without waiting for the parachain to make any kind
    of progress.
    bkchr authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    14603f2 View commit details
    Browse the repository at this point in the history
  17. chore(zombienet): bump version (#3933)

    This version includes:
    
    - Internal metrics of zombienet (used to benchmark with v2).
    pepoviola authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    e43f54f View commit details
    Browse the repository at this point in the history
  18. Update bridges subtree (#3938)

    Pulling the latest changes from `parity-bridges-common`
    serban300 authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    ff1007e View commit details
    Browse the repository at this point in the history
  19. beefy: error logs for validators with dummy keys (#3939)

    This outputs:
    ```
    2024-04-02 14:36:02.135 ERROR tokio-runtime-worker beefy: 🥩 for session starting at block 21990151
    no BEEFY authority key found in store, you must generate valid session keys
    (https://wiki.polkadot.network/docs/maintain-guides-how-to-validate-polkadot#generating-the-session-keys)
    ```
    error log entry, once every session, for nodes running with
    `Role::Authority` that have no public BEEFY key in their keystore
    
    ---------
    
    Co-authored-by: Bastian Köcher <git@kchr.de>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    3021cbc View commit details
    Browse the repository at this point in the history
  20. chainHead: Allow methods to be called from within a single connection…

    … context and limit connections (#3481)
    
    This PR ensures that the chainHead RPC class can be called only from
    within the same connection context.
    
    The chainHead methods are now registered as raw methods. 
    - paritytech/jsonrpsee#1297
    The concept of raw methods is introduced in jsonrpsee, which is an async
    method that exposes the connection ID:
    The raw method doesn't have the concept of a blocking method. Previously
    blocking methods are now spawning a blocking task to handle their
    blocking (ie DB) access. We spawn the same number of tasks as before,
    however we do that explicitly.
    
    Another approach would be implementing a RPC middleware that captures
    and decodes the method parameters:
    - #3343
    However, that approach is prone to errors since the methods are
    hardcoded by name. Performace is affected by the double deserialization
    that needs to happen to extract the subscription ID we'd like to limit.
    Once from the middleware, and once from the methods itself.
    
    This PR paves the way to implement the chainHead connection limiter:
    - #1505
    Registering tokens (subscription ID / operation ID) on the
    `RpcConnections` could be extended to return an error when the maximum
    number of operations is reached.
    
    While at it, have added an integration-test to ensure that chainHead
    methods can be called from within the same connection context.
    
    Before this is merged, a new JsonRPC release should be made to expose
    the `raw-methods`:
    - [x] Use jsonrpsee from crates io (blocked by:
    paritytech/jsonrpsee#1297)
    
    Closes: #3207
    
    
    cc @paritytech/subxt-team
    
    ---------
    
    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    a1e6f04 View commit details
    Browse the repository at this point in the history
  21. Align dependencies with parity-bridges-common (#3937)

    Working towards migrating the `parity-bridges-common` repo inside
    `polkadot-sdk`. This PR upgrades some dependencies in order to align
    them with the versions used in `parity-bridges-common`
    
    Related to
    paritytech/parity-bridges-common#2538
    serban300 authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    8164280 View commit details
    Browse the repository at this point in the history
  22. migrations: prevent accidentally using unversioned migrations instead…

    … of `VersionedMigration` (#3835)
    
    closes #1324 
    
    #### Problem
    Currently, it is possible to accidentally use inner unversioned
    migration instead of `VersionedMigration` since both implement
    `OnRuntimeUpgrade`.
    
    #### Solution
    
    With this change, we make it clear that value of `Inner` is not intended
    to be used directly. It is achieved by bounding `Inner` to new trait
    `UncheckedOnRuntimeUpgrade`, which has the same interface (except
    `unchecked_` prefix) as `OnRuntimeUpgrade`.
    
    #### `try-runtime` functions
    
    Since developers can implement `try-runtime` for `Inner` value in
    `VersionedMigration` and have custom logic for it, I added the same
    `try-runtime` functions to `UncheckedOnRuntimeUpgrade`. I looked for a
    ways to not duplicate functions, but couldn't find anything that doesn't
    significantly change the codebase. So I would appreciate If you have any
    suggestions to improve this
    
    cc @liamaharon @xlc 
    
    polkadot address: 16FqwPZ8GRC5U5D4Fu7W33nA55ZXzXGWHwmbnE1eT6pxuqcT
    
    ---------
    
    Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    b659b7d View commit details
    Browse the repository at this point in the history
  23. Snowbridge: Synchronize from Snowfork repository (#3761)

    This PR includes the following 2 improvements:
    
    ## Ethereum Client
    
    Author: @yrong 
    ### Original Upstream PRs
    - Snowfork#123
    - Snowfork#125
    
    ### Description
    The Ethereum client syncs beacon headers as they are finalized, and
    imports every execution header. When a message is received, it is
    verified against the import execution header. This is unnecessary, since
    the execution header can be sent with the message as proof. The recent
    Deneb Ethereum upgrade made it easier to locate the relevant beacon
    header from an execution header, and so this improvement was made
    possible. This resolves a concern @svyatonik had in our initial Rococo
    PR:
    #2522 (comment)
    
    ## Inbound Queue
    
    Author: @yrong 
    ### Original Upstream PR
    - Snowfork#118
    
    ### Description
    When the AH sovereign account (who pays relayer rewards) is depleted,
    the inbound message will not fail. The relayer just will not receive
    rewards.
    
    Both these changes were done by @yrong, many thanks. ❤️
    
    ---------
    
    Co-authored-by: claravanstaden <Cats 4 life!>
    Co-authored-by: Ron <yrong1997@gmail.com>
    Co-authored-by: Vincent Geddes <vincent@snowfork.com>
    Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com>
    4 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    0a98610 View commit details
    Browse the repository at this point in the history
  24. sp_runtime: TryFrom<RuntimeString> for &str (#3942)

    Added `TryFrom<&'a RuntimeString> for &'a str`
    michalkucharczyk authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    7d6679e View commit details
    Browse the repository at this point in the history
  25. SortedMembers::add for pallet-membership benchmarks (#3729)

    Adds implementation for `SortedMembers::add` for _pallet-membership_
    benchmarks.
    
    ---------
    
    Co-authored-by: Bastian Köcher <git@kchr.de>
    Co-authored-by: command-bot <>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    67de6ed View commit details
    Browse the repository at this point in the history
  26. Remove nextest filtration (#3885)

    Fixes
    #3884 (comment)
    
    After moving regression tests to benchmarks
    (#3741) we don't need to
    filter tests anymore.
    
    ---------
    
    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
    Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com>
    Co-authored-by: Alin Dima <alin@parity.io>
    Co-authored-by: Andrei Sandu <andrei-mihail@parity.io>
    Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
    Co-authored-by: Javier Viola <363911+pepoviola@users.noreply.github.com>
    Co-authored-by: Serban Iorga <serban@parity.io>
    Co-authored-by: Adrian Catangiu <adrian@parity.io>
    Co-authored-by: Bastian Köcher <git@kchr.de>
    Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com>
    Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
    Co-authored-by: Dastan <88332432+dastansam@users.noreply.github.com>
    Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
    Co-authored-by: Clara van Staden <claravanstaden64@gmail.com>
    Co-authored-by: Ron <yrong1997@gmail.com>
    Co-authored-by: Vincent Geddes <vincent@snowfork.com>
    Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com>
    Co-authored-by: Bastian Köcher <info@kchr.de>
    18 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    c47d5f4 View commit details
    Browse the repository at this point in the history
  27. statement-distribution: fix filtering of statements for elastic parac…

    …hains (#3879)
    
    fixes #3775
    
    Additionally moves the claim queue fetch utilities into
    `subsystem-util`.
    
    TODO:
    - [x] fix tests
    - [x] add elastic scaling tests
    
    ---------
    
    Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
    sandreim authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    e4cd533 View commit details
    Browse the repository at this point in the history
  28. sp-wasm-interface: wasmtime should not be enabled by std (#3954)

    Closes: #3909
    bkchr authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    5536d86 View commit details
    Browse the repository at this point in the history
  29. Added tests for XCM barriers: AllowSubscriptions, WithUniqueTopic

    … and `TrailingSetTopicAsId` (#3955)
    
    Closes: #1756
    bkontur authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    7e437ad View commit details
    Browse the repository at this point in the history
  30. chainHead: Ensure reasonable distance between leaf and finalized block (

    #3562)
    
    This PR ensure that the distance between any leaf and the finalized
    block is within a reasonable distance.
    
    For a new subscription, the chainHead has to provide all blocks between
    the leaves of the chain and the finalized block.
     When the distance between a leaf and the finalized block is large:
     - The tree route is costly to compute
     - We could deliver an unbounded number of blocks (potentially millions)
    (For more details see
    #3445 (comment))
    
    The configuration of the ChainHead is extended with:
    - suspend on lagging distance: When the distance between any leaf and
    the finalized block is greater than this number, the subscriptions are
    suspended for a given duration.
    - All active subscriptions are terminated with the `Stop` event, all
    blocks are unpinned and data discarded.
    - For incoming subscriptions, until the suspended period expires the
    subscriptions will immediately receive the `Stop` event.
        - Defaults to 128 blocks
    - suspended duration: The amount of time for which subscriptions are
    suspended
        - Defaults to 30 seconds
     
     
     cc @paritytech/subxt-team
    
    ---------
    
    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    Co-authored-by: Sebastian Kunert <skunert49@gmail.com>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    743cfee View commit details
    Browse the repository at this point in the history
  31. Enable pov-reclaim on rococo and westend parachains (#3858)

    Enables pov-reclaim on the rococo/westend parachains, part of
    #3622
    skunert authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    c5a043f View commit details
    Browse the repository at this point in the history
  32. Add ClaimQueue wrapper (#3950)

    Remove `fetch_next_scheduled_on_core` in favor of new wrapper and
    methods for accessing it.
    
    ---------
    
    Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
    sandreim authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    5a1b92d View commit details
    Browse the repository at this point in the history
  33. Renames frame crate to polkadot-sdk-frame (#3813)

    Step in #3155
    
    Needed for paritytech/eng-automation#6
    
    This PR renames `frame` crate to `polkadot-sdk-frame` as `frame` is not
    available on crates.io
    
    ---------
    
    Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    8518593 View commit details
    Browse the repository at this point in the history
  34. Convince GitLab not to crop collapsed multiline strings (#3971)

    Use of `- >` instead of `- |` workarounds GitLab quirk when it crops
    collapsed multiline `script:` section commands in its CI job logs.
    This PR also fixes `- |` based `script:` steps to behave properly after
    `- >` conversion.
    
    Resolves paritytech/ci_cd#972.
    rcny authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    23860fc View commit details
    Browse the repository at this point in the history
  35. Use 0.1.0 as minimum version for crates (#3941)

    CI will be enforcing this with next parity-publish release
    Morganamilo authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    73fdff8 View commit details
    Browse the repository at this point in the history
  36. Fix Mermaid diagram rendering (#3875)

    Closes #2977
    
    The issue appears to stem from the `aquamarine` crate failing to render
    diagrams in re-exported crates.
    
    e.g. as raised
    [here](#2977), diagrams
    would render at `frame_support::traits::Hooks` but not the re-exported
    doc `frame::traits::Hooks`, even if I added `aquamarine` as a `frame`
    crate dependency.
    
    To resolve this, I followed advice in
    mersinvald/aquamarine#20 to instead render
    mermaid diagrams directly using JS by adding an `after-content.js`.
    
    ---
    
    Also fixes compile warnings, enables `--all-features` and disallows
    future warnings in CI.
    
    ---------
    
    Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
    Co-authored-by: Bastian Köcher <git@kchr.de>
    3 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    63064e6 View commit details
    Browse the repository at this point in the history
  37. [doc] Example MBM pallet (#2119)

    ## Basic example showcasing a migration using the MBM framework
    
    This PR has been built on top of
    #1781 and adds two new
    example crates to the `examples` pallet
    
    ### Changes Made:
    
    Added the `pallet-example-mbm` crate: This crate provides a minimal
    example of a pallet that uses MBM. It showcases a storage migration
    where values are migrated from a `u32` to a `u64`.
    
    ---------
    
    Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
    Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
    Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
    3 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    2f49bf6 View commit details
    Browse the repository at this point in the history
  38. XCM builder pattern improvement - Accept impl Into<T> instead of ju…

    …st `T` (#3708)
    
    The XCM builder pattern lets you build xcms like so:
    
    ```rust
    let xcm = Xcm::builder()
        .withdraw_asset((Parent, 100u128).into())
        .buy_execution((Parent, 1u128).into())
        .deposit_asset(All.into(), AccountId32 { id: [0u8; 32], network: None }.into())
        .build();
    ```
    
    All the `.into()` become quite annoying to have to write.
    I accepted `impl Into<T>` instead of `T` in the generated methods from
    the macro.
    Now the previous example can be simplified as follows:
    
    ```rust
    let xcm = Xcm::builder()
        .withdraw_asset((Parent, 100u128))
        .buy_execution((Parent, 1u128))
        .deposit_asset(All, [0u8; 32])
        .build();
    ```
    
    ---------
    
    Co-authored-by: Bastian Köcher <git@kchr.de>
    Co-authored-by: command-bot <>
    Co-authored-by: Adrian Catangiu <adrian@parity.io>
    3 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    fa02ada View commit details
    Browse the repository at this point in the history
  39. Migrate fee payment from Currency to fungible (#2292)

    Part of #226 
    Related #1833
    
    - Deprecate `CurrencyAdapter` and introduce `FungibleAdapter`
    - Deprecate `ToStakingPot` and replace usage with `ResolveTo`
    - Required creating a new `StakingPotAccountId` struct that implements
    `TypedGet` for the staking pot account ID
    - Update parachain common utils `DealWithFees`, `ToAuthor` and
    `AssetsToBlockAuthor` implementations to use `fungible`
    - Update runtime XCM Weight Traders to use `ResolveTo` instead of
    `ToStakingPot`
    - Update runtime Transaction Payment pallets to use `FungibleAdapter`
    instead of `CurrencyAdapter`
    - [x] Blocked by #1296,
    needs the `Unbalanced::decrease_balance` fix
    liamaharon authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    d199fd3 View commit details
    Browse the repository at this point in the history
  40. Added support for coretime-kusama/polkadot and people-kusama/polkadot (

    …#3961)
    
    ## Running  `./polkadot-parachain --chain coretime-kusama` works now:
    
    **Parachain genesis state and header** match expected ones from
    https://gist.github.com/bkontur/f74fc00fd726d09bc7f0f3a9f51ec113?permalink_comment_id=5009857#gistcomment-5009857
    ```
    2024-04-03 12:03:58 [Parachain] 🔨 Initializing Genesis block/state (state: 0xc418…889c, header-hash: 0x638c…d050) 
    ...
    2024-04-03 12:04:04 [Parachain] 💤 Idle (0 peers), best: #0 (0x638c…d050), finalized #0 (0x638c…d050)
    ```
    
    **Relaychain genesis state and header** match expected ones:
    https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkusama-rpc.polkadot.io#/explorer/query/0
    
    ```
    2024-04-03 12:03:59 [Relaychain] 🔨 Initializing Genesis block/state (state: 0xb000…ef6b, header-hash: 0xb0a8…dafe)    
    ```
    
    
    
    
    
    **Full logs:**
    ```
    bparity@bkontur-ThinkPad-P14s-Gen-2i:~/parity/polkadot-sdk$ ./target/debug/polkadot-parachain --chain coretime-kusama
    2024-04-03 12:03:52 Polkadot parachain    
    2024-04-03 12:03:52 ✌️  version 4.0.0-665e3654cec    
    2024-04-03 12:03:52 ❤️  by Parity Technologies <admin@parity.io>, 2017-2024    
    2024-04-03 12:03:52 📋 Chain specification: Kusama Coretime    
    2024-04-03 12:03:52 🏷  Node name: subsequent-quicksand-2382    
    2024-04-03 12:03:52 👤 Role: FULL    
    2024-04-03 12:03:52 💾 Database: RocksDb at /home/bparity/.local/share/polkadot-parachain/chains/coretime-kusama/db/full    
    2024-04-03 12:03:54 Parachain id: Id(1005)    
    2024-04-03 12:03:54 Parachain Account: 5Ec4AhPakEiNWFbAd26nRrREnaGQZo3uukPDC5xLr6314Dwg    
    2024-04-03 12:03:54 Is collating: no    
    2024-04-03 12:03:58 [Parachain] 🔨 Initializing Genesis block/state (state: 0xc418…889c, header-hash: 0x638c…d050)    
    2024-04-03 12:03:59 [Relaychain] 🔨 Initializing Genesis block/state (state: 0xb000…ef6b, header-hash: 0xb0a8…dafe)    
    2024-04-03 12:03:59 [Relaychain] 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.    
    2024-04-03 12:03:59 [Relaychain] 👶 Creating empty BABE epoch changes on what appears to be first startup.    
    2024-04-03 12:03:59 [Relaychain] 🏷  Local node identity is: 12D3KooWSfXNBZYimwSKBqfKf7F1X6adNQQD5HVQbdnvSyBFn8Wd    
    2024-04-03 12:03:59 [Relaychain] 💻 Operating system: linux    
    2024-04-03 12:03:59 [Relaychain] 💻 CPU architecture: x86_64    
    2024-04-03 12:03:59 [Relaychain] 💻 Target environment: gnu    
    2024-04-03 12:03:59 [Relaychain] 💻 CPU: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz    
    2024-04-03 12:03:59 [Relaychain] 💻 CPU cores: 4    
    2024-04-03 12:03:59 [Relaychain] 💻 Memory: 31797MB    
    2024-04-03 12:03:59 [Relaychain] 💻 Kernel: 5.15.0-101-generic    
    2024-04-03 12:03:59 [Relaychain] 💻 Linux distribution: Ubuntu 20.04.6 LTS    
    2024-04-03 12:03:59 [Relaychain] 💻 Virtual machine: no    
    2024-04-03 12:03:59 [Relaychain] 📦 Highest known block at #0    
    2024-04-03 12:03:59 [Relaychain] 〽️ Prometheus exporter started at 127.0.0.1:9616    
    2024-04-03 12:03:59 [Relaychain] Running JSON-RPC server: addr=127.0.0.1:9945, allowed origins=["http://localhost:*", "http://127.0.0.1:*", "https://localhost:*", "https://127.0.0.1:*", "https://polkadot.js.org"]    
    2024-04-03 12:03:59 [Relaychain] 🏁 CPU score: 1.40 GiBs    
    2024-04-03 12:03:59 [Relaychain] 🏁 Memory score: 15.42 GiBs    
    2024-04-03 12:03:59 [Relaychain] 🏁 Disk score (seq. writes): 1.39 GiBs    
    2024-04-03 12:03:59 [Relaychain] 🏁 Disk score (rand. writes): 690.56 MiBs    
    2024-04-03 12:03:59 [Parachain] Using default protocol ID "sup" because none is configured in the chain specs    
    2024-04-03 12:03:59 [Parachain] 🏷  Local node identity is: 12D3KooWAAvNqXn8WPmvnEj36j7HsdbtpRpmWDPT9xtp4CuphvxW    
    2024-04-03 12:03:59 [Parachain] 💻 Operating system: linux    
    2024-04-03 12:03:59 [Parachain] 💻 CPU architecture: x86_64    
    2024-04-03 12:03:59 [Parachain] 💻 Target environment: gnu    
    2024-04-03 12:03:59 [Parachain] 💻 CPU: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz    
    2024-04-03 12:03:59 [Parachain] 💻 CPU cores: 4    
    2024-04-03 12:03:59 [Parachain] 💻 Memory: 31797MB    
    2024-04-03 12:03:59 [Parachain] 💻 Kernel: 5.15.0-101-generic    
    2024-04-03 12:03:59 [Parachain] 💻 Linux distribution: Ubuntu 20.04.6 LTS    
    2024-04-03 12:03:59 [Parachain] 💻 Virtual machine: no    
    2024-04-03 12:03:59 [Parachain] 📦 Highest known block at #0    
    2024-04-03 12:03:59 [Parachain] 〽️ Prometheus exporter started at 127.0.0.1:9615    
    2024-04-03 12:03:59 [Parachain] Running JSON-RPC server: addr=127.0.0.1:9944, allowed origins=["http://localhost:*", "http://127.0.0.1:*", "https://localhost:*", "https://127.0.0.1:*", "https://polkadot.js.org"]    
    2024-04-03 12:03:59 [Parachain] 🏁 CPU score: 1.40 GiBs    
    2024-04-03 12:03:59 [Parachain] 🏁 Memory score: 15.42 GiBs    
    2024-04-03 12:03:59 [Parachain] 🏁 Disk score (seq. writes): 1.39 GiBs    
    2024-04-03 12:03:59 [Parachain] 🏁 Disk score (rand. writes): 690.56 MiBs    
    2024-04-03 12:03:59 [Parachain] discovered: 12D3KooWSfXNBZYimwSKBqfKf7F1X6adNQQD5HVQbdnvSyBFn8Wd /ip4/192.168.1.100/tcp/30334/ws    
    2024-04-03 12:03:59 [Relaychain] discovered: 12D3KooWAAvNqXn8WPmvnEj36j7HsdbtpRpmWDPT9xtp4CuphvxW /ip4/192.168.1.100/tcp/30333/ws    
    2024-04-03 12:03:59 [Relaychain] discovered: 12D3KooWAAvNqXn8WPmvnEj36j7HsdbtpRpmWDPT9xtp4CuphvxW /ip4/172.18.0.1/tcp/30333/ws    
    2024-04-03 12:03:59 [Parachain] discovered: 12D3KooWSfXNBZYimwSKBqfKf7F1X6adNQQD5HVQbdnvSyBFn8Wd /ip4/172.17.0.1/tcp/30334/ws    
    2024-04-03 12:03:59 [Relaychain] discovered: 12D3KooWAAvNqXn8WPmvnEj36j7HsdbtpRpmWDPT9xtp4CuphvxW /ip4/172.17.0.1/tcp/30333/ws    
    2024-04-03 12:03:59 [Parachain] discovered: 12D3KooWSfXNBZYimwSKBqfKf7F1X6adNQQD5HVQbdnvSyBFn8Wd /ip4/172.18.0.1/tcp/30334/ws    
    2024-04-03 12:04:00 [Relaychain] 🔍 Discovered new external address for our node: /ip4/178.41.176.246/tcp/30334/ws/p2p/12D3KooWSfXNBZYimwSKBqfKf7F1X6adNQQD5HVQbdnvSyBFn8Wd    
    2024-04-03 12:04:00 [Relaychain] Sending fatal alert BadCertificate    
    2024-04-03 12:04:00 [Relaychain] Sending fatal alert BadCertificate    
    2024-04-03 12:04:04 [Relaychain] ⚙️  Syncing, target=#22575321 (7 peers), best: #738 (0x1803…bbef), finalized #512 (0xb9b6…7014), ⬇ 328.5kiB/s ⬆ 102.9kiB/s    
    2024-04-03 12:04:04 [Parachain] 💤 Idle (0 peers), best: #0 (0x638c…d050), finalized #0 (0x638c…d050), ⬇ 0 ⬆ 0    
    2024-04-03 12:04:09 [Relaychain] ⚙️  Syncing 169.5 bps, target=#22575322 (8 peers), best: #1586 (0x405b…a8aa), finalized #1536 (0x55d1…fb04), ⬇ 232.3kiB/s ⬆ 55.9kiB/s    
    2024-04-03 12:04:09 [Parachain] 💤 Idle (0 peers), best: #0 (0x638c…d050), finalized #0 (0x638c…d050), ⬇ 0 ⬆ 0    
    2024-04-03 12:04:14 [Relaychain] ⚙️  Syncing 168.0 bps, target=#22575323 (8 peers), best: #2426 (0x155f…d083), finalized #2048 (0xede6…f879), ⬇ 235.8kiB/s ⬆ 67.2kiB/s    
    2024-04-03 12:04:14 [Parachain] 💤 Idle (0 peers), best: #0 (0x638c…d050), finalized #0 (0x638c…d050), ⬇ 0 ⬆ 0    
    2024-04-03 12:04:19 [Relaychain] ⚙️  Syncing 170.0 bps, target=#22575324 (8 peers), best: #3276 (0x94d8…097e), finalized #3072 (0x0e4c…f587), ⬇ 129.0kiB/s ⬆ 34.0kiB/s
    ...
    ```
    
    ## Running  `./polkadot-parachain --chain people-kusama` works now:
    
    **Parachain genesis state and header** match expected ones from
    https://gist.github.com/bkontur/f74fc00fd726d09bc7f0f3a9f51ec113?permalink_comment_id=5011798#gistcomment-5011798
    ```
    2024-04-04 10:26:24 [Parachain] 🔨 Initializing Genesis block/state (state: 0x023a…2733, header-hash: 0x07b8…2645)    
    ...
    2024-04-04 10:26:30 [Parachain] 💤 Idle (0 peers), best: #0 (0x07b8…2645), finalized #0 (0x07b8…2645), ⬇ 0 ⬆ 0    
    ```
    
    **Relaychain genesis state and header** match expected ones:
    https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkusama-rpc.polkadot.io#/explorer/query/0
    
    ```
    2024-04-04 10:26:25 [Relaychain] 🔨 Initializing Genesis block/state (state: 0xb000…ef6b, header-hash: 0xb0a8…dafe)  
    ```
    
    
    
    
    
    **Full logs:**
    ```
    bparity@bkontur-ThinkPad-P14s-Gen-2i:~/parity/aaa/polkadot-sdk$ ./target/debug/polkadot-parachain --chain people-kusama
    2024-04-04 10:26:18 Polkadot parachain    
    2024-04-04 10:26:18 ✌️  version 4.0.0-39274bb75fc    
    2024-04-04 10:26:18 ❤️  by Parity Technologies <admin@parity.io>, 2017-2024    
    2024-04-04 10:26:18 📋 Chain specification: Kusama People    
    2024-04-04 10:26:18 🏷  Node name: knotty-flight-5398    
    2024-04-04 10:26:18 👤 Role: FULL    
    2024-04-04 10:26:18 💾 Database: RocksDb at /home/bparity/.local/share/polkadot-parachain/chains/people-kusama/db/full    
    2024-04-04 10:26:21 Parachain id: Id(1004)    
    2024-04-04 10:26:21 Parachain Account: 5Ec4AhPaYcfBz8fMoPd4EfnAgwbzRS7np3APZUnnFo12qEYk    
    2024-04-04 10:26:21 Is collating: no    
    2024-04-04 10:26:24 [Parachain] 🔨 Initializing Genesis block/state (state: 0x023a…2733, header-hash: 0x07b8…2645)    
    2024-04-04 10:26:25 [Relaychain] 🔨 Initializing Genesis block/state (state: 0xb000…ef6b, header-hash: 0xb0a8…dafe)    
    2024-04-04 10:26:25 [Relaychain] 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.    
    2024-04-04 10:26:25 [Relaychain] 👶 Creating empty BABE epoch changes on what appears to be first startup.    
    2024-04-04 10:26:25 [Relaychain] 🏷  Local node identity is: 12D3KooWPoTVhnrFNzVYJPR42HE9rYjXhkKHFDL9ut5nafDqJHKB    
    2024-04-04 10:26:25 [Relaychain] 💻 Operating system: linux    
    2024-04-04 10:26:25 [Relaychain] 💻 CPU architecture: x86_64    
    2024-04-04 10:26:25 [Relaychain] 💻 Target environment: gnu    
    2024-04-04 10:26:25 [Relaychain] 💻 CPU: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz    
    2024-04-04 10:26:25 [Relaychain] 💻 CPU cores: 4    
    2024-04-04 10:26:25 [Relaychain] 💻 Memory: 31797MB    
    2024-04-04 10:26:25 [Relaychain] 💻 Kernel: 5.15.0-101-generic    
    2024-04-04 10:26:25 [Relaychain] 💻 Linux distribution: Ubuntu 20.04.6 LTS    
    2024-04-04 10:26:25 [Relaychain] 💻 Virtual machine: no    
    2024-04-04 10:26:25 [Relaychain] 📦 Highest known block at #0    
    2024-04-04 10:26:25 [Relaychain] 〽️ Prometheus exporter started at 127.0.0.1:9616    
    2024-04-04 10:26:25 [Relaychain] Running JSON-RPC server: addr=127.0.0.1:9945, allowed origins=["http://localhost:*", "http://127.0.0.1:*", "https://localhost:*", "https://127.0.0.1:*", "https://polkadot.js.org"]    
    2024-04-04 10:26:25 [Relaychain] 🏁 CPU score: 1.18 GiBs    
    2024-04-04 10:26:25 [Relaychain] 🏁 Memory score: 15.61 GiBs    
    2024-04-04 10:26:25 [Relaychain] 🏁 Disk score (seq. writes): 1.49 GiBs    
    2024-04-04 10:26:25 [Relaychain] 🏁 Disk score (rand. writes): 650.01 MiBs    
    2024-04-04 10:26:25 [Parachain] Using default protocol ID "sup" because none is configured in the chain specs    
    2024-04-04 10:26:25 [Parachain] 🏷  Local node identity is: 12D3KooWS2WPQgtiZZYT6bLGjwGcJU7QVd5EeQvb4jHN3NVSWDdj    
    2024-04-04 10:26:25 [Parachain] 💻 Operating system: linux    
    2024-04-04 10:26:25 [Parachain] 💻 CPU architecture: x86_64    
    2024-04-04 10:26:25 [Parachain] 💻 Target environment: gnu    
    2024-04-04 10:26:25 [Parachain] 💻 CPU: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz    
    2024-04-04 10:26:25 [Parachain] 💻 CPU cores: 4    
    2024-04-04 10:26:25 [Parachain] 💻 Memory: 31797MB    
    2024-04-04 10:26:25 [Parachain] 💻 Kernel: 5.15.0-101-generic    
    2024-04-04 10:26:25 [Parachain] 💻 Linux distribution: Ubuntu 20.04.6 LTS    
    2024-04-04 10:26:25 [Parachain] 💻 Virtual machine: no    
    2024-04-04 10:26:25 [Parachain] 📦 Highest known block at #0    
    2024-04-04 10:26:25 [Parachain] 〽️ Prometheus exporter started at 127.0.0.1:9615    
    2024-04-04 10:26:25 [Parachain] Running JSON-RPC server: addr=127.0.0.1:9944, allowed origins=["http://localhost:*", "http://127.0.0.1:*", "https://localhost:*", "https://127.0.0.1:*", "https://polkadot.js.org"]    
    2024-04-04 10:26:25 [Parachain] 🏁 CPU score: 1.18 GiBs    
    2024-04-04 10:26:25 [Parachain] 🏁 Memory score: 15.61 GiBs    
    2024-04-04 10:26:25 [Parachain] 🏁 Disk score (seq. writes): 1.49 GiBs    
    2024-04-04 10:26:25 [Parachain] 🏁 Disk score (rand. writes): 650.01 MiBs    
    2024-04-04 10:26:25 [Parachain] discovered: 12D3KooWPoTVhnrFNzVYJPR42HE9rYjXhkKHFDL9ut5nafDqJHKB /ip4/172.17.0.1/tcp/30334/ws    
    2024-04-04 10:26:25 [Relaychain] discovered: 12D3KooWS2WPQgtiZZYT6bLGjwGcJU7QVd5EeQvb4jHN3NVSWDdj /ip4/172.18.0.1/tcp/30333/ws    
    2024-04-04 10:26:25 [Relaychain] discovered: 12D3KooWS2WPQgtiZZYT6bLGjwGcJU7QVd5EeQvb4jHN3NVSWDdj /ip4/192.168.1.100/tcp/30333/ws    
    2024-04-04 10:26:25 [Parachain] discovered: 12D3KooWPoTVhnrFNzVYJPR42HE9rYjXhkKHFDL9ut5nafDqJHKB /ip4/172.18.0.1/tcp/30334/ws    
    2024-04-04 10:26:25 [Relaychain] discovered: 12D3KooWS2WPQgtiZZYT6bLGjwGcJU7QVd5EeQvb4jHN3NVSWDdj /ip4/172.17.0.1/tcp/30333/ws    
    2024-04-04 10:26:25 [Parachain] discovered: 12D3KooWPoTVhnrFNzVYJPR42HE9rYjXhkKHFDL9ut5nafDqJHKB /ip4/192.168.1.100/tcp/30334/ws    
    2024-04-04 10:26:26 [Relaychain] 🔍 Discovered new external address for our node: /ip4/178.41.176.246/tcp/30334/ws/p2p/12D3KooWPoTVhnrFNzVYJPR42HE9rYjXhkKHFDL9ut5nafDqJHKB    
    2024-04-04 10:26:27 [Relaychain] Sending fatal alert BadCertificate    
    2024-04-04 10:26:27 [Relaychain] Sending fatal alert BadCertificate    
    2024-04-04 10:26:30 [Relaychain] ⚙️  Syncing, target=#22588722 (8 peers), best: #638 (0xa9cd…7c30), finalized #512 (0xb9b6…7014), ⬇ 345.6kiB/s ⬆ 108.7kiB/s    
    2024-04-04 10:26:30 [Parachain] 💤 Idle (0 peers), best: #0 (0x07b8…2645), finalized #0 (0x07b8…2645), ⬇ 0 ⬆ 0    
    2024-04-04 10:26:35 [Relaychain] ⚙️  Syncing 174.4 bps, target=#22588722 (9 peers), best: #1510 (0xec0b…72f0), finalized #1024 (0x3f17…fd7f), ⬇ 203.1kiB/s ⬆ 45.0kiB/s    
    2024-04-04 10:26:35 [Parachain] 💤 Idle (0 peers), best: #0 (0x07b8…2645), finalized #0 (0x07b8…2645), ⬇ 0 ⬆ 0    
    2024-04-04 10:26:40 [Relaychain] ⚙️  Syncing 168.9 bps, target=#22588723 (9 peers), best: #2355 (0xa68b…3a64), finalized #2048 (0xede6…f879), ⬇ 201.6kiB/s ⬆ 47.4kiB/s    
    2024-04-04 10:26:40 [Parachain] 💤 Idle (0 peers), best: #0 (0x07b8…2645), finalized #0 (0x07b8…2645), ⬇ 0 ⬆ 0    
    
    ```
    
    ## TODO
    - [x] double check
    `cumulus/polkadot-parachain/chain-specs/coretime-kusama.json`
    (safeXcmVersion=3) see
    [comment](#3961 (comment))
    - [x] check if ~~`start_generic_aura_node`~~ or
    `start_generic_aura_lookahead_node`
    - [x] generate chain-spec for `people-kusama`
    
    ---------
    
    Co-authored-by: Dónal Murray <donal.murray@parity.io>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    e8db4e2 View commit details
    Browse the repository at this point in the history
  41. Make BlockNumberProvider::set_block_number available in tests / std (

    …#3974)
    
    This function is currently only exposed to runtime-benchmarks, where it
    should be available in all tests.
    
    Also made it available in `std` because this is how `set_block_number`
    works in FRAME System, however, not sure if it is needed in the latest
    std/no_std paradigm.
    
    ---------
    
    Co-authored-by: Bastian Köcher <git@kchr.de>
    Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
    3 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    569a318 View commit details
    Browse the repository at this point in the history
  42. GenesisConfig presets for runtime (#2714)

    The runtime now can provide a number of predefined presets of
    `RuntimeGenesisConfig` struct. This presets are intended to be used in
    different deployments, e.g.: `local`, `staging`, etc, and should be
    included into the corresponding chain-specs.
    
    Having `GenesisConfig` presets in runtime allows to fully decouple node
    from runtime types (the problem is described in #1984).
    
    **Summary of changes:**
    - The `GenesisBuilder` API was adjusted to enable this functionality
    (and provide better naming - #150):
       ```rust
        fn preset_names() -> Vec<PresetId>;
    fn get_preset(id: Option<PresetId>) -> Option<serde_json::Value>;
    //`None` means default
        fn build_state(value: serde_json::Value);
        pub struct PresetId(Vec<u8>);
       ```
    
    - **Breaking change**: Old `create_default_config` method was removed,
    `build_config` was renamed to `build_state`. As a consequence a node
    won't be able to interact with genesis config for older runtimes. The
    cleanup was made for sake of API simplicity. Also IMO maintaining
    compatibility with old API is not so crucial.
    - Reference implementation was provided for `substrate-test-runtime` and
    `rococo` runtimes. For rococo new
    [`genesis_configs_presets`](https://github.com/paritytech/polkadot-sdk/blob/3b41d66b97c5ff0ec4a1989da5ffd8b9f3f588e3/polkadot/runtime/rococo/src/genesis_config_presets.rs#L530)
    module was added and is used in `GenesisBuilder`
    [_presets-related_](https://github.com/paritytech/polkadot-sdk/blob/3b41d66b97c5ff0ec4a1989da5ffd8b9f3f588e3/polkadot/runtime/rococo/src/lib.rs#L2462-L2485)
    methods.
    
    - The `chain-spec-builder` util was also improved and allows to
    ([_doc_](https://github.com/paritytech/polkadot-sdk/blob/3b41d66b97c5ff0ec4a1989da5ffd8b9f3f588e3/substrate/bin/utils/chain-spec-builder/src/lib.rs#L19)):
       - list presets provided by given runtime (`list-presets`),
    - display preset or default config provided by the runtime
    (`display-preset`),
       - build chain-spec using named preset (`create ... named-preset`),
    
    
    - The `ChainSpecBuilder` is extended with
    [`with_genesis_config_preset_name`](https://github.com/paritytech/polkadot-sdk/blob/3b41d66b97c5ff0ec4a1989da5ffd8b9f3f588e3/substrate/client/chain-spec/src/chain_spec.rs#L447)
    method which allows to build chain-spec using named preset provided by
    the runtime. Sample usage on the node side
    [here](https://github.com/paritytech/polkadot-sdk/blob/2caffaae803e08a3d5b46c860e8016da023ff4ce/polkadot/node/service/src/chain_spec.rs#L404).
    
    Implementation of #1984.
    fixes: #150
    part of: #25
    
    ---------
    
    Co-authored-by: Sebastian Kunert <skunert49@gmail.com>
    Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
    Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
    4 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    b159df1 View commit details
    Browse the repository at this point in the history
  43. Add Helikon boot nodes for Coretime Westend and People Westend. (#3922)

    ## Verify
    
    Coretime Westend:
    ```
    polkadot-parachain --chain=coretime-westend --tmp --relay-chain-rpc-url wss://rpc.ibp.network/westend  --reserved-only --reserved-nodes /dns/boot-node.helikon.io/tcp/9420/p2p/12D3KooWFBPartM873MNm1AmVK3etUz34cAE9A9rwPztPno2epQ3
    polkadot-parachain --chain=coretime-westend --tmp --relay-chain-rpc-url wss://rpc.ibp.network/westend  --reserved-only --reserved-nodes /dns/boot-node.helikon.io/tcp/9422/wss/p2p/12D3KooWFBPartM873MNm1AmVK3etUz34cAE9A9rwPztPno2epQ3
    ```
    
    People Westend:
    
    ```
    polkadot-parachain --chain=/path/to/people-westend.json --tmp --relay-chain-rpc-url wss://rpc.ibp.network/westend  --reserved-only --reserved-nodes /dns/boot-node.helikon.io/tcp/9520/p2p/12D3KooWHhZk21Wzvsd3Un1Cp63diXqr6idbG1MEiUWaitUZuX4c
    polkadot-parachain --chain=/path/to/people-westend.json --tmp --relay-chain-rpc-url wss://rpc.ibp.network/westend  --reserved-only --reserved-nodes /dns/boot-node.helikon.io/tcp/9522/wss/p2p/12D3KooWHhZk21Wzvsd3Un1Cp63diXqr6idbG1MEiUWaitUZuX4c
    ```
    
    Thanks.
    kukabi authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    bb373ea View commit details
    Browse the repository at this point in the history
  44. Update pr_3844.prdoc (#3988)

    ermalkaleci authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    1ae6ec0 View commit details
    Browse the repository at this point in the history
  45. Elastic scaling: add e2e test (#3929)

    On top of #3879
    
    I've also moved the previous test where we ensure multiple cores per
    para doesn't break non elastic parachains.
    
    ---------
    
    Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
    Co-authored-by: Javier Viola <363911+pepoviola@users.noreply.github.com>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    bfd7ae2 View commit details
    Browse the repository at this point in the history
  46. Revert "[prdoc] Require SemVer bump level" (#3987)

    Reverts #3816
    ggwpez authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    04119b3 View commit details
    Browse the repository at this point in the history
  47. Update pr_3302.prdoc (#3985)

    Properly account for #3302, cc #3984.
    ordian authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    76f0ce7 View commit details
    Browse the repository at this point in the history
  48. [prdoc] Support multiple audiences (#3990)

    Closes #3986
    
    ---------
    
    Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
    ggwpez authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    047cfa8 View commit details
    Browse the repository at this point in the history
  49. [pallet-broker] Fix claim revenue behaviour for zero timeslices (#3997)

    This PR adds a check that `max_timeslices > 0` and errors if not. It
    also adds a test for this behaviour and cleans up some misleading docs.
    seadanda authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    a961eb0 View commit details
    Browse the repository at this point in the history
  50. [parachain-template] benchmarks into mod benchmarks (#3818)

    This PR introduces a dedicated module for benchmarks within the
    parachain runtime. By segregating benchmarks into their own module, we
    achieve a cleaner project structure and improved readability,
    facilitating easier maintenance and updates.
    
    ### Key Changes:
    - **New Benchmarks Module**: A new file `benchmarks.rs` is added,
    encapsulating the benchmarking code for various pallets.
    - **Refactoring `lib.rs`**: The main runtime library file (`lib.rs`) has
    been updated to reflect the extraction of benchmark definitions. By
    moving these definitions to `benchmarks.rs`, we reduce clutter in
    `lib.rs`, streamlining the runtime's core logic and configuration.
    
    ### Benefits of This Refactoring:
    - **Focused Benchmarking**: Developers can now easily locate and modify
    benchmarks without navigating through the core runtime logic, enabling
    targeted performance improvements.
    - **Cleaner Codebase**: Segregating benchmarks from the main runtime
    logic helps maintain a clean, well-organized codebase, simplifying
    navigation and maintenance.
    - **Scalability**: As the parachain evolves, adding or updating
    benchmarks becomes more straightforward, supporting scalability and
    adaptability of the runtime.
    
    ### Summary of Changes:
    - Created `benchmarks.rs` to house the benchmarking suite.
    - Streamlined `lib.rs` by removing the inlined benchmark definitions and
    linking to the new benchmarks module.
    
    ---------
    
    Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    9d0a455 View commit details
    Browse the repository at this point in the history
  51. Rococo/Westend: publish claim_queue Runtime API (#4005)

    Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
    sandreim authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    03ca23d View commit details
    Browse the repository at this point in the history
  52. chore: fix some comments (#4004)

    Signed-off-by: divdeploy <chenguangxue@outlook.com>
    divdeploy authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    a03040f View commit details
    Browse the repository at this point in the history
  53. Bump h2 from 0.3.24 to 0.3.26 (#4008)

    Bumps [h2](https://github.com/hyperium/h2) from 0.3.24 to 0.3.26.
    <details>
    <summary>Release notes</summary>
    <p><em>Sourced from <a
    href="https://github.com/hyperium/h2/releases">h2's
    releases</a>.</em></p>
    <blockquote>
    <h2>v0.3.26</h2>
    <h2>What's Changed</h2>
    <ul>
    <li>Limit number of CONTINUATION frames for misbehaving
    connections.</li>
    </ul>
    <p>See <a
    href="https://seanmonstar.com/blog/hyper-http2-continuation-flood/">https://seanmonstar.com/blog/hyper-http2-continuation-flood/</a>
    for more info.</p>
    <h2>v0.3.25</h2>
    <h2>What's Changed</h2>
    <ul>
    <li>perf: optimize header list size calculations by <a
    href="https://github.com/Noah-Kennedy"><code>@​Noah-Kennedy</code></a>
    in <a
    href="https://redirect.github.com/hyperium/h2/pull/750">hyperium/h2#750</a></li>
    </ul>
    <p><strong>Full Changelog</strong>: <a
    href="https://github.com/hyperium/h2/compare/v0.3.24...v0.3.25">https://github.com/hyperium/h2/compare/v0.3.24...v0.3.25</a></p>
    </blockquote>
    </details>
    <details>
    <summary>Changelog</summary>
    <p><em>Sourced from <a
    href="https://github.com/hyperium/h2/blob/v0.3.26/CHANGELOG.md">h2's
    changelog</a>.</em></p>
    <blockquote>
    <h1>0.3.26 (April 3, 2024)</h1>
    <ul>
    <li>Limit number of CONTINUATION frames for misbehaving
    connections.</li>
    </ul>
    <h1>0.3.25 (March 15, 2024)</h1>
    <ul>
    <li>Improve performance decoding many headers.</li>
    </ul>
    </blockquote>
    </details>
    <details>
    <summary>Commits</summary>
    <ul>
    <li><a
    href="https://github.com/hyperium/h2/commit/357127e279c06935830fe2140378312eac801494"><code>357127e</code></a>
    v0.3.26</li>
    <li><a
    href="https://github.com/hyperium/h2/commit/1a357aaefc7243fdfa9442f45d90be17794a4004"><code>1a357aa</code></a>
    fix: limit number of CONTINUATION frames allowed</li>
    <li><a
    href="https://github.com/hyperium/h2/commit/5b6c9e0da092728d702dff3607626aafb7809d77"><code>5b6c9e0</code></a>
    refactor: cleanup new unused warnings (<a
    href="https://redirect.github.com/hyperium/h2/issues/757">#757</a>)</li>
    <li><a
    href="https://github.com/hyperium/h2/commit/3a798327211345b9b2bf797e2e4f3aca4e0ddfee"><code>3a79832</code></a>
    v0.3.25</li>
    <li><a
    href="https://github.com/hyperium/h2/commit/94e80b1c72bec282bb5d13596803e6fb341fec4c"><code>94e80b1</code></a>
    perf: optimize header list size calculations (<a
    href="https://redirect.github.com/hyperium/h2/issues/750">#750</a>)</li>
    <li>See full diff in <a
    href="https://github.com/hyperium/h2/compare/v0.3.24...v0.3.26">compare
    view</a></li>
    </ul>
    </details>
    <br />
    
    
    [![Dependabot compatibility
    score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=h2&package-manager=cargo&previous-version=0.3.24&new-version=0.3.26)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    
    Dependabot will resolve any conflicts with this PR as long as you don't
    alter it yourself. You can also trigger a rebase manually by commenting
    `@dependabot rebase`.
    
    [//]: # (dependabot-automerge-start)
    [//]: # (dependabot-automerge-end)
    
    ---
    
    <details>
    <summary>Dependabot commands and options</summary>
    <br />
    
    You can trigger Dependabot actions by commenting on this PR:
    - `@dependabot rebase` will rebase this PR
    - `@dependabot recreate` will recreate this PR, overwriting any edits
    that have been made to it
    - `@dependabot merge` will merge this PR after your CI passes on it
    - `@dependabot squash and merge` will squash and merge this PR after
    your CI passes on it
    - `@dependabot cancel merge` will cancel a previously requested merge
    and block automerging
    - `@dependabot reopen` will reopen this PR if it is closed
    - `@dependabot close` will close this PR and stop Dependabot recreating
    it. You can achieve the same result by closing it manually
    - `@dependabot show <dependency name> ignore conditions` will show all
    of the ignore conditions of the specified dependency
    - `@dependabot ignore this major version` will close this PR and stop
    Dependabot creating any more for this major version (unless you reopen
    the PR or upgrade to it yourself)
    - `@dependabot ignore this minor version` will close this PR and stop
    Dependabot creating any more for this minor version (unless you reopen
    the PR or upgrade to it yourself)
    - `@dependabot ignore this dependency` will close this PR and stop
    Dependabot creating any more for this dependency (unless you reopen the
    PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the
    [Security Alerts
    page](https://github.com/paritytech/polkadot-sdk/network/alerts).
    
    </details>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    ac4cd56 View commit details
    Browse the repository at this point in the history
  54. Broker: sale price runtime api (#3485)

    Defines a runtime api for `pallet-broker` for getting the current price
    of a core if there is an ongoing sale.
    
    Closes: #3413
    
    ---------
    
    Co-authored-by: Bastian Köcher <git@kchr.de>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    65d1bb5 View commit details
    Browse the repository at this point in the history
  55. pallet-uniques: decrement total_deposit when clearing collection …

    …metadata (#3976)
    
    Decrements `total_deposit` when collection metadata is cleared in
    `pallet-nfts` and `pallet-uniques`.
    liamaharon authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    d9d4250 View commit details
    Browse the repository at this point in the history
  56. Improve frame umbrella crate doc experience (#4007)

    1. Add `#[doc(no_inline)]` to frame umbrella crate re-exports that
    eventually resolve to `frame_support_procedural` so docs don't look like
    the screenshot below and instead link to the proper `frame-support`
    docs.
    <img width="1512" alt="Screenshot 2024-04-05 at 20 05 01"
    src="https://github.com/paritytech/polkadot-sdk/assets/16665596/a41daa4c-ebca-44a4-9fea-f9f336314e13">
    
    
    2. Remove `"Rust-Analyzer Users: "` prefix from
    `frame_support_procedural` doc comments, since these doc comments are
    visible in the web documentation and possible to stumble upon especially
    when navigating from the frame umbrella crate.
    
    Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    c405c93 View commit details
    Browse the repository at this point in the history
  57. Major bump of tracing-subscriber version (#3891)

    I don't think there are any more releases to the 0.2.x versions, so best
    we're on the 0.3.x release.
    
    No change on the benchmarks, fast local time is still just as fast as
    before:
    
    new version bench:
    ```
    fast_local_time         time:   [30.551 ns 30.595 ns 30.668 ns]
    ```
    
    old version bench:
    ```
    fast_local_time         time:   [30.598 ns 30.646 ns 30.723 ns]
    ```
    
    ---------
    
    Co-authored-by: Bastian Köcher <git@kchr.de>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    b7342b3 View commit details
    Browse the repository at this point in the history
  58. Fix some typos (#4018)

    Signed-off-by: hongkuang <liurenhong@outlook.com>
    HongKuang authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    b95e605 View commit details
    Browse the repository at this point in the history
  59. Deprecate para_id() from CoreState in polkadot primitives (#3979)

    With Coretime enabled we can no longer assume there is a static 1:1
    mapping between core index and para id. This mapping should be obtained
    from the scheduler/claimqueue on block by block basis.
    
    This PR modifies `para_id()` (from `CoreState`) to return the scheduled
    `ParaId` for occupied cores and removes its usages in the code.
    
    Closes #3948
    
    ---------
    
    Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    7daeaca View commit details
    Browse the repository at this point in the history
  60. sc-beefy-consensus: Remove unneeded stream. (#4015)

    The stream was just used to communicate from the validator the peer
    reports back to the gossip engine. Internally the gossip engine just
    forwards these reports to the networking engine. So, we can just do this
    directly.
    
    The reporting stream was also pumped [in the worker behind the
    engine](https://github.com/paritytech/polkadot-sdk/blob/9d6261892814fa27c97881c0321c008d7340b54b/substrate/client/consensus/beefy/src/worker.rs#L939).
    This means if there was a lot of data incoming over the engine, the
    reporting stream was almost never processed and thus, it could have
    started to grow and we have seen issues around this.
    
    Partly Closes: #3945
    bkchr authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    70fc335 View commit details
    Browse the repository at this point in the history
  61. adder-collator: add velocity measurement and make elastic scaling tes…

    …t more robust (#4016)
    
    Improves `adder-collator` to also compute the parachain velocity. The
    velocity is defined as number of parachain blocks progressing per relay
    chain block.
    
    In this test we're asserting that the elastic parachain always
    progresses by 3 blocks per RCB, while the non-elastic parachain
    progresses normally - 1 block per RCB.
    
    ---------
    
    Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
    Co-authored-by: ordian <write@reusable.software>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    7f2a59b View commit details
    Browse the repository at this point in the history
  62. Add best block indicator to informant message + print parent block on…

    … import message (#4021)
    
    Sometimes you need to debug some issues just by the logs and reconstruct
    what happened.
    In these scenarios it would be nice to know if a block was imported as
    best block, and what it parent was.
    So here I propose to change the output of the informant to this:
    
    ```
    2024-04-05 20:38:22.004  INFO ⋮substrate: [Parachain] ✨ Imported #18 (0xe7b3…4555 -> 0xbd6f…ced7)    
    2024-04-05 20:38:24.005  INFO ⋮substrate: [Parachain] ✨ Imported #19 (0xbd6f…ced7 -> 0x4dd0…d81f)    
    2024-04-05 20:38:24.011  INFO ⋮substrate: [jobless-children-5352] 🌟 Imported #42 (0xed2e…27fc -> 0x718f…f30e)    
    2024-04-05 20:38:26.005  INFO ⋮substrate: [Parachain] ✨ Imported #20 (0x4dd0…d81f -> 0x6e85…e2b8)    
    2024-04-05 20:38:28.004  INFO ⋮substrate: [Parachain] 🌟 Imported #21 (0x6e85…e2b8 -> 0xad53…2a97)    
    2024-04-05 20:38:30.004  INFO ⋮substrate: [Parachain] 🌟 Imported #22 (0xad53…2a97 -> 0xa874…890f)    
    ```
    
    ---------
    
    Co-authored-by: Bastian Köcher <git@kchr.de>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    4db2dca View commit details
    Browse the repository at this point in the history
  63. Github workflow to automate release draft creation (#3978)

    This PR introduces the github flow which will create a release draft
    automatically when the rc tag is pushed. The flow contains the following
    steps:
    
    - Gets the info about rust version used to build the node
    - Builds the runtimes using `srtool`
    - Extracts the info about each runtime 
    - Aggregates the changelog from the prdocs
    - Creates the release draft containing all the info related to the
    release (changelog, runtimes, rust versions)
    - Attaches the runtimes to the draft
    - Posts the message to the RelEng internal channel to inform that the
    build is done.
    
    Related to the #3295
    
    ---------
    
    Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    561bfdd View commit details
    Browse the repository at this point in the history
  64. [FRAME] Runtime Omni Bencher (#3512)

    This MR contains two major changes and some maintenance cleanup.  
    
    ## 1. Free Standing Pallet Benchmark Runner
    
    Closes #3045, depends
    on your runtime exposing the `GenesisBuilderApi` (like
    #1492).
    
    Introduces a new binary crate: `frame-omni-bencher`.  
    It allows to directly benchmark a WASM blob - without needing a node or
    chain spec.
    
    This makes it much easier to generate pallet weights and should allow us
    to remove bloaty code from the node.
    It should work for all FRAME runtimes that dont use 3rd party host calls
    or non `BlakeTwo256` block hashing (basically all polkadot parachains
    should work).
    
    It is 100% backwards compatible with the old CLI args, when the `v1`
    compatibility command is used. This is done to allow for forwards
    compatible addition of new commands.
    
    ### Example (full example in the Rust docs)
    
    Installing the CLI:
    ```sh
    cargo install --locked --path substrate/utils/frame/omni-bencher
    frame-omni-bencher --help
    ```
    
    Building the Westend runtime:
    ```sh
    cargo build -p westend-runtime --release --features runtime-benchmarks
    ```
    
    Benchmarking the runtime:
    ```sh
    frame-omni-bencher v1 benchmark pallet --runtime target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm --all
    ```
    
    ## 2. Building the Benchmark Genesis State in the Runtime
    
    Closes #2664
    
    This adds `--runtime` and `--genesis-builder=none|runtime|spec`
    arguments to the `benchmark pallet` command to make it possible to
    generate the genesis storage by the runtime. This can be used with both
    the node and the freestanding benchmark runners. It utilizes the new
    `GenesisBuilder` RA and depends on having
    #3412 deployed.
    
    ## 3. Simpler args for `PalletCmd::run`
    
    You can do three things here to integrate the changes into your node:
    - nothing: old code keeps working as before but emits a deprecated
    warning
    - delete: remove the pallet benchmarking code from your node and use the
    omni-bencher instead
    - patch: apply the patch below and keep using as currently. This emits a
    deprecated warning at runtime, since it uses the old way to generate a
    genesis state, but is the smallest change.
    
    ```patch
    runner.sync_run(|config| cmd
    -    .run::<HashingFor<Block>, ReclaimHostFunctions>(config)
    +    .run_with_spec::<HashingFor<Block>, ReclaimHostFunctions>(Some(config.chain_spec))
    )
    ```
    
    ## 4. Maintenance Change
    - `pallet-nis` get a `BenchmarkSetup` config item to prepare its
    counterparty asset.
    - Add percent progress print when running benchmarks.
    - Dont immediately exit on benchmark error but try to run as many as
    possible and print errors last.
    
    ---------
    
    Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
    Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
    2 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    65a5d7b View commit details
    Browse the repository at this point in the history
  65. Integrate litep2p into Polkadot SDK (#2944)

    [litep2p](https://github.com/altonen/litep2p) is a libp2p-compatible P2P
    networking library. It supports all of the features of `rust-libp2p`
    that are currently being utilized by Polkadot SDK.
    
    Compared to `rust-libp2p`, `litep2p` has a quite different architecture
    which is why the new `litep2p` network backend is only able to use a
    little of the existing code in `sc-network`. The design has been mainly
    influenced by how we'd wish to structure our networking-related code in
    Polkadot SDK: independent higher-levels protocols directly communicating
    with the network over links that support bidirectional backpressure. A
    good example would be `NotificationHandle`/`RequestResponseHandle`
    abstractions which allow, e.g., `SyncingEngine` to directly communicate
    with peers to announce/request blocks.
    
    I've tried running `polkadot --network-backend litep2p` with a few
    different peer configurations and there is a noticeable reduction in
    networking CPU usage. For high load (`--out-peers 200`), networking CPU
    usage goes down from ~110% to ~30% (80 pp) and for normal load
    (`--out-peers 40`), the usage goes down from ~55% to ~18% (37 pp).
    
    These should not be taken as final numbers because:
    
    a) there are still some low-hanging optimization fruits, such as
    enabling [receive window
    auto-tuning](libp2p/rust-yamux#176), integrating
    `Peerset` more closely with `litep2p` or improving memory usage of the
    WebSocket transport
    b) fixing bugs/instabilities that incorrectly cause `litep2p` to do less
    work will increase the networking CPU usage
    c) verification in a more diverse set of tests/conditions is needed
    
    Nevertheless, these numbers should give an early estimate for CPU usage
    of the new networking backend.
    
    This PR consists of three separate changes:
    * introduce a generic `PeerId` (wrapper around `Multihash`) so that we
    don't have use `NetworkService::PeerId` in every part of the code that
    uses a `PeerId`
    * introduce `NetworkBackend` trait, implement it for the libp2p network
    stack and make Polkadot SDK generic over `NetworkBackend`
      * implement `NetworkBackend` for litep2p
    
    The new library should be considered experimental which is why
    `rust-libp2p` will remain as the default option for the time being. This
    PR currently depends on the master branch of `litep2p` but I'll cut a
    new release for the library once all review comments have been
    addresses.
    
    ---------
    
    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    Co-authored-by: Dmitry Markin <dmitry@markin.tech>
    Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com>
    Co-authored-by: Alexandru Vasile <alexandru.vasile@parity.io>
    4 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    527e039 View commit details
    Browse the repository at this point in the history
  66. Adapt RemoteExternalities and its related types to be used with gen…

    …eric hash parameters (#3953)
    
    Closes  #3737
    
    ---------
    
    Co-authored-by: command-bot <>
    Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
    Co-authored-by: Bastian Köcher <git@kchr.de>
    3 people authored and Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    0cc0af3 View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    6284289 View commit details
    Browse the repository at this point in the history
  68. add prdoc

    Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    d0d7977 View commit details
    Browse the repository at this point in the history
  69. prdoc

    Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    765278a View commit details
    Browse the repository at this point in the history
  70. prdoc

    Ank4n committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    e46b01b View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    0376db7 View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    3ee339a View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. Configuration menu
    Copy the full SHA
    0e41b01 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'ankan/01-prep-staking-for-delegation' into ankan/02-pal…

    …let-delegated-staking
    Ank4n committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    67a541c View commit details
    Browse the repository at this point in the history
  3. Merge branch 'ankan/02-pallet-delegated-staking' into ankan/03-np-del…

    …egation-integration
    Ank4n committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    5457c40 View commit details
    Browse the repository at this point in the history
  4. bench apply slash

    Ank4n committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    17a4cf1 View commit details
    Browse the repository at this point in the history
  5. weights

    Ank4n committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    4d48232 View commit details
    Browse the repository at this point in the history
  6. fmt

    Ank4n committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    b9bd68a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    09b85b3 View commit details
    Browse the repository at this point in the history
  8. fmt

    Ank4n committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    6bf7432 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    92c9ef4 View commit details
    Browse the repository at this point in the history
  10. fix delegated staking

    Ank4n committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    5886704 View commit details
    Browse the repository at this point in the history
  11. add dummy weights

    Ank4n committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    b8d9739 View commit details
    Browse the repository at this point in the history
  12. todo test

    Ank4n committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    82f4a00 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2024

  1. fix bench

    Ank4n committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    49fb272 View commit details
    Browse the repository at this point in the history
  2. bench pool migration

    Ank4n committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    87d0bce View commit details
    Browse the repository at this point in the history
  3. claim delegation bench

    Ank4n committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    749b729 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c6771ab View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    444dc76 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'ankan/01-prep-staking-for-delegation' into ankan/02-pal…

    …let-delegated-staking
    Ank4n committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    9e5bdfa View commit details
    Browse the repository at this point in the history
  7. minor refactor

    Ank4n committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    b1312d7 View commit details
    Browse the repository at this point in the history
  8. Merge branch 'ankan/02-pallet-delegated-staking' into ankan/03-np-del…

    …egation-integration
    Ank4n committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    49cfce1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9079d82 View commit details
    Browse the repository at this point in the history
  10. doc comment

    Ank4n committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    616dfa7 View commit details
    Browse the repository at this point in the history
  11. Merge branch 'ankan/01-prep-staking-for-delegation' into ankan/02-pal…

    …let-delegated-staking
    Ank4n committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    6bcf0ab View commit details
    Browse the repository at this point in the history
  12. Merge branch 'ankan/02-pallet-delegated-staking' into ankan/03-np-del…

    …egation-integration
    Ank4n committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    c07a473 View commit details
    Browse the repository at this point in the history
  13. fix import

    Ank4n committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    3579a88 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    84dd24f View commit details
    Browse the repository at this point in the history
  15. fix compile

    Ank4n committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    99d34a2 View commit details
    Browse the repository at this point in the history
  16. pr feedback

    Ank4n committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    afe8c87 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    e7d65e2 View commit details
    Browse the repository at this point in the history
  18. fmt

    Ank4n committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    474c1de View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2024

  1. Update substrate/frame/delegated-staking/src/lib.rs

    Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com>
    kianenigma and gpestana committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    6a019d6 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Apply suggestions from code review

    Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
    Co-authored-by: georgepisaltu <52418509+georgepisaltu@users.noreply.github.com>
    3 people committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    8d481a6 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2024

  1. Configuration menu
    Copy the full SHA
    6940f88 View commit details
    Browse the repository at this point in the history
  2. safe maths

    Ank4n committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    a884846 View commit details
    Browse the repository at this point in the history
  3. fix docs based on feedback

    Ank4n committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    d4633c2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c013cde View commit details
    Browse the repository at this point in the history
  5. Merge branch 'ankan/01-prep-staking-for-delegation' into ankan/02-pal…

    …let-delegated-staking
    Ank4n committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    b2588a5 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'ankan/02-pallet-delegated-staking' into ankan/03-np-del…

    …egation-integration
    Ank4n committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    22594af View commit details
    Browse the repository at this point in the history
  7. use static mutate

    Ank4n committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    ac3cadf View commit details
    Browse the repository at this point in the history
  8. Merge branch 'ankan/01-prep-staking-for-delegation' into ankan/02-pal…

    …let-delegated-staking
    Ank4n committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    8cee25c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0537e9c View commit details
    Browse the repository at this point in the history
  10. pr feedbacks

    Ank4n committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    fb5d64c View commit details
    Browse the repository at this point in the history
  11. pr feedbacks

    Ank4n committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    bb93c8c View commit details
    Browse the repository at this point in the history
  12. feedbacks

    Ank4n committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    cba250e View commit details
    Browse the repository at this point in the history
  13. feedback

    Ank4n committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    9897437 View commit details
    Browse the repository at this point in the history
  14. use static mutate

    Ank4n committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    43d06b0 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    abbc24d View commit details
    Browse the repository at this point in the history
  16. pr feedbacks

    Ank4n committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    b5fcc2f View commit details
    Browse the repository at this point in the history
  17. pr feedbacks

    Ank4n committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    839e294 View commit details
    Browse the repository at this point in the history
  18. feedbacks

    Ank4n committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    53fab5b View commit details
    Browse the repository at this point in the history
  19. feedback

    Ank4n committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    3bb99b2 View commit details
    Browse the repository at this point in the history
  20. Merge branch 'ankan/02-pallet-delegated-staking' into ankan/03-np-del…

    …egation-integration
    Ank4n committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    b430f63 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2024

  1. fix tests

    Ank4n committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    5895afb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    09d3359 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'ankan/01-prep-staking-for-delegation' into ankan/02-pal…

    …let-delegated-staking
    Ank4n committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    e75c2e6 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'ankan/02-pallet-delegated-staking' into ankan/03-np-del…

    …egation-integration
    Ank4n committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    383593c View commit details
    Browse the repository at this point in the history
  5. add license to inner

    Ank4n committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    9bcfb17 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2024

  1. adapters tested separately

    Ank4n committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    8fe83ca View commit details
    Browse the repository at this point in the history
  2. add migration for westend

    Ank4n committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    9409c74 View commit details
    Browse the repository at this point in the history
  3. add apply slash test to NP

    Ank4n committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    5a3b8b2 View commit details
    Browse the repository at this point in the history
  4. inline locking

    Ank4n committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    e31866e View commit details
    Browse the repository at this point in the history
  5. optimize stash kill

    Ank4n committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    078cf5f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3790a40 View commit details
    Browse the repository at this point in the history
  7. Merge branch 'ankan/01-prep-staking-for-delegation' into ankan/02-pal…

    …let-delegated-staking
    Ank4n committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    796c848 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2024

  1. Configuration menu
    Copy the full SHA
    666be52 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'ankan/02-pallet-delegated-staking' into ankan/03-np-del…

    …egation-integration
    Ank4n committed Apr 20, 2024
    Configuration menu
    Copy the full SHA
    ca232cd View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2024

  1. pr feedbacks

    Ank4n committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    be76a6b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c6070d8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    886a1a7 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'ankan/02-pallet-delegated-staking' into ankan/03-np-del…

    …egation-integration
    Ank4n committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    7ca660d View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. Configuration menu
    Copy the full SHA
    a69d620 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'ankan/02-pallet-delegated-staking' into ankan/03-np-del…

    …egation-integration
    Ank4n committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    b511a30 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4b2daa2 View commit details
    Browse the repository at this point in the history
  4. separate trait for migration

    Ank4n committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    0e17037 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4e3b8cd View commit details
    Browse the repository at this point in the history
  6. Merge branch 'ankan/02-pallet-delegated-staking' into ankan/03-np-del…

    …egation-integration
    Ank4n committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    ef10f48 View commit details
    Browse the repository at this point in the history
  7. fix compile

    Ank4n committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    804fa95 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2024

  1. store only migration status

    Ank4n committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    d3cf1b8 View commit details
    Browse the repository at this point in the history
  2. remove default strategy type

    Ank4n committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    a12f4c3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b444c0e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a4ddc76 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b09f8fb View commit details
    Browse the repository at this point in the history
  6. pr feedbacks

    Ank4n committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    e848d8d View commit details
    Browse the repository at this point in the history
  7. fix pool weight westend

    Ank4n committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    2a0b5c2 View commit details
    Browse the repository at this point in the history
  8. better docs pr feedback

    Ank4n committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    b1b1e1d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1e6cdad View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3cef018 View commit details
    Browse the repository at this point in the history
  11. ".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…

    …=westend --target_dir=polkadot --pallet=pallet_nomination_pools
    command-bot committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    44503ba View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    619858d View commit details
    Browse the repository at this point in the history
  13. ".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…

    …=dev --target_dir=substrate --pallet=pallet_nomination_pools
    command-bot committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    2f65014 View commit details
    Browse the repository at this point in the history
  14. fix docs

    Ank4n committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    24d05ad View commit details
    Browse the repository at this point in the history
  15. Merge branch 'ankan/02-pallet-delegated-staking' into ankan/03-np-del…

    …egation-integration
    Ank4n committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    72b50da View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2024

  1. Configuration menu
    Copy the full SHA
    495aa24 View commit details
    Browse the repository at this point in the history
  2. fix test

    Ank4n committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    732569a View commit details
    Browse the repository at this point in the history
  3. full slash test

    Ank4n committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    142e3c7 View commit details
    Browse the repository at this point in the history
  4. not passing yet

    Ank4n committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    7dacae3 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2024

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

Commits on May 7, 2024

  1. Configuration menu
    Copy the full SHA
    d4ef271 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fe0b657 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ca77189 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0f6a3a0 View commit details
    Browse the repository at this point in the history
  5. fix imports

    Ank4n committed May 7, 2024
    Configuration menu
    Copy the full SHA
    36e9972 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6bf808a View commit details
    Browse the repository at this point in the history
  7. assert against right err

    Ank4n committed May 7, 2024
    Configuration menu
    Copy the full SHA
    a1c5698 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. Configuration menu
    Copy the full SHA
    464cea0 View commit details
    Browse the repository at this point in the history
  2. pr feedbacks

    Ank4n committed May 13, 2024
    Configuration menu
    Copy the full SHA
    7782cab View commit details
    Browse the repository at this point in the history
  3. use system events for pallet

    Ank4n committed May 13, 2024
    Configuration menu
    Copy the full SHA
    6e3045f View commit details
    Browse the repository at this point in the history
  4. Merge branch 'ankan/02-pallet-delegated-staking' into ankan/03-np-del…

    …egation-integration
    Ank4n committed May 13, 2024
    Configuration menu
    Copy the full SHA
    0ff52fd View commit details
    Browse the repository at this point in the history
  5. fix mock config

    Ank4n committed May 13, 2024
    Configuration menu
    Copy the full SHA
    70e9b1f View commit details
    Browse the repository at this point in the history
  6. run try state for staking

    Ank4n committed May 13, 2024
    Configuration menu
    Copy the full SHA
    159d1bf View commit details
    Browse the repository at this point in the history
  7. Merge branch 'ankan/02-pallet-delegated-staking' into ankan/03-np-del…

    …egation-integration
    Ank4n committed May 13, 2024
    Configuration menu
    Copy the full SHA
    4b5e4fe View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

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

    Ank4n committed May 15, 2024
    Configuration menu
    Copy the full SHA
    587a2f1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    978c02c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    31d4c6a View commit details
    Browse the repository at this point in the history

Commits on May 16, 2024

  1. pr feedbacks

    Ank4n committed May 16, 2024
    Configuration menu
    Copy the full SHA
    2d5fd2e View commit details
    Browse the repository at this point in the history
  2. fmt

    Ank4n committed May 16, 2024
    Configuration menu
    Copy the full SHA
    c6d6f0f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f9db499 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2024

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

    Ank4n committed May 17, 2024
    Configuration menu
    Copy the full SHA
    1634110 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Configuration menu
    Copy the full SHA
    62df281 View commit details
    Browse the repository at this point in the history
  2. chore: fix typos (#4515)

    Co-authored-by: jimwfs <169986508+jimwfs@users.noreply.github.com>
    2 people authored and Ank4n committed May 21, 2024
    Configuration menu
    Copy the full SHA
    a1a6c2e View commit details
    Browse the repository at this point in the history
  3. remote-externalities: rpc_child_get_keys to use paged scraping (#…

    …4512)
    
    Replace usage of deprecated
    `substrate_rpc_client::ChildStateApi::storage_keys` with
    `substrate_rpc_client::ChildStateApi::storage_keys_paged`.
    
    Required for successful scraping of Aleph Zero state.
    liamaharon authored and Ank4n committed May 21, 2024
    Configuration menu
    Copy the full SHA
    ead90d1 View commit details
    Browse the repository at this point in the history
  4. Remove usage of the pallet::getter macro from pallet-fast-unstake (#4514

    )
    
    As per #3326, removes pallet::getter macro usage from
    pallet-fast-unstake. The syntax `StorageItem::<T, I>::get()` should be
    used instead.
    
    cc @muraca
    
    ---------
    
    Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
    2 people authored and Ank4n committed May 21, 2024
    Configuration menu
    Copy the full SHA
    c7e9b9b View commit details
    Browse the repository at this point in the history
  5. Remove the prospective-parachains subsystem from collators (#4471)

    Implements #4429
    
    Collators only need to maintain the implicit view for the paraid they
    are collating on.
    In this case, bypass prospective-parachains entirely. It's still useful
    to use the GetMinimumRelayParents message from prospective-parachains
    for validators, because the data is already present there.
    
    This enables us to entirely remove the subsystem from collators, which
    consumed resources needlessly
    
    Aims to resolve #4167 
    
    TODO:
    - [x] fix unit tests
    alindima authored and Ank4n committed May 21, 2024
    Configuration menu
    Copy the full SHA
    a771851 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bd35913 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a2f984e View commit details
    Browse the repository at this point in the history
  8. fmt

    Ank4n committed May 21, 2024
    Configuration menu
    Copy the full SHA
    7a06567 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9e89aa0 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    318d1a7 View commit details
    Browse the repository at this point in the history
  11. add extrinsic to migrate pool

    Ank4n committed May 21, 2024
    Configuration menu
    Copy the full SHA
    d0a9393 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    20bbf18 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a66beff View commit details
    Browse the repository at this point in the history
  14. some more gate tests

    Ank4n committed May 21, 2024
    Configuration menu
    Copy the full SHA
    5eb6cfb View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. fix bench

    Ank4n committed May 22, 2024
    Configuration menu
    Copy the full SHA
    7efdbf7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b9a7236 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9bc3998 View commit details
    Browse the repository at this point in the history
  4. make field pub

    Ank4n committed May 22, 2024
    Configuration menu
    Copy the full SHA
    7813afe View commit details
    Browse the repository at this point in the history
  5. fmt

    Ank4n committed May 22, 2024
    Configuration menu
    Copy the full SHA
    c58300d View commit details
    Browse the repository at this point in the history
  6. wip

    Ank4n committed May 22, 2024
    Configuration menu
    Copy the full SHA
    452314f View commit details
    Browse the repository at this point in the history
  7. tests run

    Ank4n committed May 22, 2024
    Configuration menu
    Copy the full SHA
    8cf6896 View commit details
    Browse the repository at this point in the history
  8. seems to compile everything

    Ank4n committed May 22, 2024
    Configuration menu
    Copy the full SHA
    3759ba7 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

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

    Ank4n committed May 23, 2024
    Configuration menu
    Copy the full SHA
    eb7292c View commit details
    Browse the repository at this point in the history
  3. revert bad merge changes

    Ank4n committed May 23, 2024
    Configuration menu
    Copy the full SHA
    0e61f5a View commit details
    Browse the repository at this point in the history
  4. clippy fix

    Ank4n committed May 23, 2024
    Configuration menu
    Copy the full SHA
    11792ce View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    508bc82 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. Configuration menu
    Copy the full SHA
    967f73f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a9dc3ae View commit details
    Browse the repository at this point in the history
  3. fix clippy errors

    Ank4n committed May 24, 2024
    Configuration menu
    Copy the full SHA
    35a16cf View commit details
    Browse the repository at this point in the history
  4. add runtime apis

    Ank4n committed May 24, 2024
    Configuration menu
    Copy the full SHA
    14d5f5e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4d37e2a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    dd3cbf7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    121cbdd View commit details
    Browse the repository at this point in the history
  8. hope everything passes now

    Ank4n committed May 24, 2024
    Configuration menu
    Copy the full SHA
    9e47b75 View commit details
    Browse the repository at this point in the history
  9. second hope ;)

    Ank4n committed May 24, 2024
    Configuration menu
    Copy the full SHA
    31ca372 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    91ed77f View commit details
    Browse the repository at this point in the history
  11. rust doc

    Ank4n committed May 24, 2024
    Configuration menu
    Copy the full SHA
    4817861 View commit details
    Browse the repository at this point in the history
  12. small cleanup

    Ank4n committed May 24, 2024
    Configuration menu
    Copy the full SHA
    c7deb30 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2024

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

Commits on May 27, 2024

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

Commits on May 28, 2024

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

Commits on May 29, 2024

  1. add prdoc

    Ank4n committed May 29, 2024
    Configuration menu
    Copy the full SHA
    27e8081 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a9916f3 View commit details
    Browse the repository at this point in the history
  3. fix prdoc

    Ank4n committed May 29, 2024
    Configuration menu
    Copy the full SHA
    d01d737 View commit details
    Browse the repository at this point in the history
  4. Update substrate/frame/nomination-pools/src/lib.rs

    Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com>
    Ank4n and gpestana committed May 29, 2024
    Configuration menu
    Copy the full SHA
    85242bc View commit details
    Browse the repository at this point in the history
  5. Update prdoc/pr_4537.prdoc

    Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com>
    Ank4n and gpestana committed May 29, 2024
    Configuration menu
    Copy the full SHA
    256098e View commit details
    Browse the repository at this point in the history
  6. use T for type param

    Ank4n committed May 29, 2024
    Configuration menu
    Copy the full SHA
    6f4e49b View commit details
    Browse the repository at this point in the history
  7. update prdoc

    Ank4n committed May 29, 2024
    Configuration menu
    Copy the full SHA
    c265024 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2024

  1. Configuration menu
    Copy the full SHA
    005f522 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f437436 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5eb311a View commit details
    Browse the repository at this point in the history
  4. fmt

    Ank4n committed May 30, 2024
    Configuration menu
    Copy the full SHA
    9c3a4ac View commit details
    Browse the repository at this point in the history
  5. make inner type private

    Ank4n committed May 30, 2024
    Configuration menu
    Copy the full SHA
    c5bd9e7 View commit details
    Browse the repository at this point in the history
  6. minor

    Ank4n committed May 30, 2024
    Configuration menu
    Copy the full SHA
    92a17ac View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9c5712c View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2024

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