Skip to content
Snippets Groups Projects
  1. Oct 31, 2024
  2. Oct 30, 2024
  3. Oct 29, 2024
  4. Oct 28, 2024
  5. Oct 25, 2024
    • Andrei Sandu's avatar
      Switch node side to v2 candidate receipts (#5679) · 4c618a83
      Andrei Sandu authored
      
      on top of https://github.com/paritytech/polkadot-sdk/pull/5423
      
      This PR implements the plumbing work required for
      https://github.com/paritytech/polkadot-sdk/issues/5047 . I also added
      additional helper methods gated by feature "test" in primitives.
      
      TODO:
      - [x] PRDoc
      
      ---------
      
      Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>
      Co-authored-by: default avatarGitHub Action <action@github.com>
    • Adrian Catangiu's avatar
      asset-hubs: simplify xcm-config (#6222) · a072ce81
      Adrian Catangiu authored
      
      `ForeignCreatorsSovereignAccountOf` is used by `ForeignCreators` filter
      to convert location to `AccountId`, _after_ `ForeignCreators::IsForeign`
      filter passes for an (asset, location) pair.
      
      The `IsForeign` filter is the actual differentiator, so if a location
      passes it, we should support converting it to an `AccountId`.
      
      As such, this commit replaces `ForeignCreatorsSovereignAccountOf`
      converter with the more general `LocationToAccountId` converter.
      
      Signed-off-by: default avatarAdrian Catangiu <adrian@parity.io>
    • Branislav Kontur's avatar
      Fix migrations for pallet-xcm (#6148) · efd66030
      Branislav Kontur authored
      
      Relates to: https://github.com/paritytech/polkadot-sdk/pull/4826
      Relates to: https://github.com/paritytech/polkadot-sdk/issues/3214
      
      ## Description
      
      `pallet-xcm` stores some operational data that uses `Versioned*` XCM
      types. When we add a new XCM version (XV), we deprecate XV-2 and remove
      XV-3. Without proper migration, this can lead to issues with
      [undecodable
      storage](https://github.com/paritytech/polkadot-sdk/actions/runs/11381324568/job/31662577532?pr=6092),
      as was identified on the XCMv5 branch where XCMv2 was removed.
      
      This PR extends the existing `MigrateToLatestXcmVersion` to include
      migration for the `Queries`, `LockedFungibles`, and
      `RemoteLockedFungibles` storage types. Additionally, more checks were
      added to `try_state` for these types.
      
      ## TODO
      - [x] create tracking issue for `polkadot-fellows`
      https://github.com/polkadot-fellows/runtimes/issues/492
      - [x] Add missing `MigrateToLatestXcmVersion` for westend
      - [x] fix pallet-xcm `Queries`
      - fails for Westend
      https://github.com/paritytech/polkadot-sdk/actions/runs/11381324568/job/31662577532?pr=6092
      - `V2` was removed from `Versioned*` stuff, but we have a live data with
      V2 e.g. Queries - e.g. Kusama or Polkadot relay chains
      ```
      VersionNotifier: {
              origin: {
                V2: {
                  parents: 0
                  interior: {
                    X1: {
                      Parachain: 2,124
                    }
                  }
                }
              }
              isActive: true
            } 
      ```
      
      ![image](https://github.com/user-attachments/assets/f59f761b-46a7-4def-8aea-45c4e41c0a00)
      - [x] fix also for `RemoteLockedFungibles` 
      - [x] fix also for `LockedFungibles`
      
      ## Follow-ups
      
      - [ ] deploy on Westend chains before XCMv5
      - [ ] https://github.com/paritytech/polkadot-sdk/issues/6188
      
      ---------
      
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarGitHub Action <action@github.com>
      Co-authored-by: default avatarFrancisco Aguirre <franciscoaguirreperez@gmail.com>
    • Alexander Theißen's avatar
      pallet-revive: Add stateful address mapping (#6096) · 07963262
      Alexander Theißen authored
      
      Fixes #5576
      
      This allows contracts to be used with an AccountId32 through normal
      extrinsics and not only through the eth compat layer. It works by adding
      a new extrinsic `map_account` that lets people register their
      AccountId32.
      
      ---------
      
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarGitHub Action <action@github.com>
      Co-authored-by: default avatarCyrill Leutwiler <cyrill@parity.io>
    • Shoyu Vanilla (Flint)'s avatar
      substrate-offchain: upgrade hyper to v1 (#5919) · 5a142856
      Shoyu Vanilla (Flint) authored
      Closes #4896
    • Michal Kucharczyk's avatar
      `RuntimeGenesiConfig`: json macro added (#5813) · 7e996211
      Michal Kucharczyk authored
      This PR adds `build_struct_json_patch` which helps to generate a JSON
      used for preset.
      
      Here is doc and example:
      
      https://github.com/paritytech/polkadot-sdk/blob/d868b858/substrate/frame/support/src/generate_genesis_config.rs#L168-L266
      
      And real-world usage:
      
      https://github.com/paritytech/polkadot-sdk/blob/d868b858
      
      /cumulus/parachains/runtimes/assets/asset-hub-rococo/src/genesis_config_presets.rs#L37-L61
      
      Closes #5700
      
      ---------
      
      Co-authored-by: default avatarSebastian Kunert <skunert49@gmail.com>
  6. Oct 24, 2024
  7. Oct 23, 2024
    • Kian Paimani's avatar
      Polkadot OmniNode Docs (#6094) · fc486e55
      Kian Paimani authored
      provides low-level documentation on how the omni-node is meant to work.
      This is meant to act as reusable material for other teams (e.g.
      Papermoon and W3F) to use and integrate into the high level Polkadot
      documentation.
      
      Broadly speaking, for omni-node to have great rust-docs, we need to
      focus on the following crates, all of which got a bit of love in this
      PR:
      
      1. `sp-genesis-builder`
      2. `polkadot-omni-node`
      3. `polkadot-omni-node-lib`
      4. `frame-omni-bencher`
      
      On top of this, we have now: 
      
      * `polkadot_sdk_docs::guides` contains two new steps demonstrating the
      most basic version of composing your pallet, putting it into a runtime,
      and putting that runtime into omni-node
      * `polkadot_sdk_docs::reference_docs::omni_node` to explain in more
      detail how omni-node differs from the old-school node.
      * `polkadot_sdk_docs::reference_docs::frame_weight_benchmarking` to
      finally have a minimal reference about weights and benchmarking.
      * It provides tests for some of the steps in
      https://g...