Skip to content

feat: messaging precompiles - #584

Merged
Daanvdplas merged 90 commits into
fungibles-precompilesfrom
messaging-precompiles
Aug 26, 2025
Merged

feat: messaging precompiles#584
Daanvdplas merged 90 commits into
fungibles-precompilesfrom
messaging-precompiles

docs(pallets/api): add diagrams to messaging readme

9af7734
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / clippy succeeded Aug 11, 2025 in 6s

clippy

382 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 382
Note 0
Help 0

Versions

  • rustc 1.89.0 (29483883e 2025-08-04)
  • cargo 1.89.0 (c24e10642 2025-06-23)
  • clippy 0.1.89 (29483883ee 2025-08-04)

Annotations

Check warning on line 100 in pop-api/integration-tests/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for the crate

warning: missing documentation for the crate
   --> pop-api/integration-tests/src/lib.rs:1:1
    |
1   | / #![cfg(test)]
2   | |
3   | | use frame_support::{
4   | |     assert_ok,
...   |
99  | |     result.account_id
100 | | }
    | |_^
    |
    = note: requested on the command line with `-W missing-docs`

Check warning on line 11 in node/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
  --> node/src/main.rs:11:14
   |
11 | fn main() -> sc_cli::Result<()> {
   |              ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 176 bytes
   |
   = help: try reducing the size of `sc_cli::Error`, for example by boxing large elements or replacing it with `Box<sc_cli::Error>`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 410 in node/src/service.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> node/src/service.rs:410:6
    |
410 | ) -> Result<(), sc_service::Error>
    |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 176 bytes
    |
    = help: try reducing the size of `sc_service::Error`, for example by boxing large elements or replacing it with `Box<sc_service::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 73 in node/src/service.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
  --> node/src/service.rs:73:6
   |
73 | ) -> Result<Service<RuntimeApi>, sc_service::Error>
   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 176 bytes
   |
   = help: try reducing the size of `sc_service::Error`, for example by boxing large elements or replacing it with `Box<sc_service::Error>`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 228 in node/src/command.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> node/src/command.rs:228:17
    |
228 | pub fn run() -> Result<()> {
    |                 ^^^^^^^^^^ the `Err`-variant is at least 176 bytes
    |
    = help: try reducing the size of `sc_cli::Error`, for example by boxing large elements or replacing it with `Box<sc_cli::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
    = note: `#[warn(clippy::result_large_err)]` on by default

Check warning on line 44 in node/src/cli.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

large size difference between variants

warning: large size difference between variants
  --> node/src/cli.rs:5:1
   |
5  | / pub enum Subcommand {
6  | |     /// Build a chain specification.
7  | |     BuildSpec(sc_cli::BuildSpecCmd),
...  |
39 | |     Benchmark(frame_benchmarking_cli::BenchmarkCmd),
   | |     ----------------------------------------------- the largest variant contains at least 616 bytes
...  |
43 | |     Key(sc_cli::KeySubcommand),
   | |     -------------------------- the second-largest variant contains at least 240 bytes
44 | | }
   | |_^ the entire enum is at least 616 bytes
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
   = note: `#[warn(clippy::large_enum_variant)]` on by default
help: consider boxing the large fields to reduce the total size of the enum
   |
39 -     Benchmark(frame_benchmarking_cli::BenchmarkCmd),
39 +     Benchmark(Box<frame_benchmarking_cli::BenchmarkCmd>),
   |

Check warning on line 179 in pop-api-vnext/integration-tests/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for the crate

warning: missing documentation for the crate
   --> pop-api-vnext/integration-tests/src/lib.rs:1:1
    |
1   | / #![cfg(test)]
2   | |
3   | | use std::path::Path;
...   |
178 | |     assert_eq!(hex::encode(keccak_selector("balanceOf(address)")), "70a08231");
179 | | }
    | |_^
    |
    = note: requested on the command line with `-W missing-docs`

Check warning on line 282 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
   --> runtime/mainnet/src/config/xcm.rs:164:1
    |
164 | / parameter_types! {
165 | |     // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
166 | |     pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
167 | |     pub const MaxInstructions: u32 = 100;
168 | |     pub const MaxAssetsIntoHolding: u32 = 64;
169 | | }
    | |_^
    |
    = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 282 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
   --> runtime/mainnet/src/config/xcm.rs:164:1
    |
164 | / parameter_types! {
165 | |     // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
166 | |     pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
167 | |     pub const MaxInstructions: u32 = 100;
168 | |     pub const MaxAssetsIntoHolding: u32 = 64;
169 | | }
    | |_^
    |
    = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 294 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
   --> runtime/mainnet/src/config/xcm.rs:164:1
    |
164 | / parameter_types! {
165 | |     // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
166 | |     pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
167 | |     pub const MaxInstructions: u32 = 100;
168 | |     pub const MaxAssetsIntoHolding: u32 = 64;
169 | | }
    | |_^
    |
    = note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 282 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/mainnet/src/config/xcm.rs:47:1
   |
47 | / parameter_types! {
48 | |     pub const AuthorizeAliasHoldReason: RuntimeHoldReason = RuntimeHoldReason::PolkadotXcm(pallet_xcm::HoldReason::AuthorizeAlias);
49 | |     pub const RelayLocation: Location = Location::parent();
50 | |     pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
...  |
56 | |     pub const BaseDeliveryFee: u128 = CENTS.saturating_mul(3);
57 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 294 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/mainnet/src/config/xcm.rs:47:1
   |
47 | / parameter_types! {
48 | |     pub const AuthorizeAliasHoldReason: RuntimeHoldReason = RuntimeHoldReason::PolkadotXcm(pallet_xcm::HoldReason::AuthorizeAlias);
49 | |     pub const RelayLocation: Location = Location::parent();
50 | |     pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
...  |
56 | |     pub const BaseDeliveryFee: u128 = CENTS.saturating_mul(3);
57 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 294 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/mainnet/src/config/xcm.rs:47:1
   |
47 | / parameter_types! {
48 | |     pub const AuthorizeAliasHoldReason: RuntimeHoldReason = RuntimeHoldReason::PolkadotXcm(pallet_xcm::HoldReason::AuthorizeAlias);
49 | |     pub const RelayLocation: Location = Location::parent();
50 | |     pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
...  |
56 | |     pub const BaseDeliveryFee: u128 = CENTS.saturating_mul(3);
57 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 294 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/mainnet/src/config/xcm.rs:47:1
   |
47 | / parameter_types! {
48 | |     pub const AuthorizeAliasHoldReason: RuntimeHoldReason = RuntimeHoldReason::PolkadotXcm(pallet_xcm::HoldReason::AuthorizeAlias);
49 | |     pub const RelayLocation: Location = Location::parent();
50 | |     pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
...  |
56 | |     pub const BaseDeliveryFee: u128 = CENTS.saturating_mul(3);
57 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 282 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/mainnet/src/config/xcm.rs:47:1
   |
47 | / parameter_types! {
48 | |     pub const AuthorizeAliasHoldReason: RuntimeHoldReason = RuntimeHoldReason::PolkadotXcm(pallet_xcm::HoldReason::AuthorizeAlias);
49 | |     pub const RelayLocation: Location = Location::parent();
50 | |     pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
...  |
56 | |     pub const BaseDeliveryFee: u128 = CENTS.saturating_mul(3);
57 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 294 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/mainnet/src/config/xcm.rs:47:1
   |
47 | / parameter_types! {
48 | |     pub const AuthorizeAliasHoldReason: RuntimeHoldReason = RuntimeHoldReason::PolkadotXcm(pallet_xcm::HoldReason::AuthorizeAlias);
49 | |     pub const RelayLocation: Location = Location::parent();
50 | |     pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
...  |
56 | |     pub const BaseDeliveryFee: u128 = CENTS.saturating_mul(3);
57 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 282 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/mainnet/src/config/xcm.rs:47:1
   |
47 | / parameter_types! {
48 | |     pub const AuthorizeAliasHoldReason: RuntimeHoldReason = RuntimeHoldReason::PolkadotXcm(pallet_xcm::HoldReason::AuthorizeAlias);
49 | |     pub const RelayLocation: Location = Location::parent();
50 | |     pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
...  |
56 | |     pub const BaseDeliveryFee: u128 = CENTS.saturating_mul(3);
57 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 282 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/mainnet/src/config/xcm.rs:47:1
   |
47 | / parameter_types! {
48 | |     pub const AuthorizeAliasHoldReason: RuntimeHoldReason = RuntimeHoldReason::PolkadotXcm(pallet_xcm::HoldReason::AuthorizeAlias);
49 | |     pub const RelayLocation: Location = Location::parent();
50 | |     pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
...  |
56 | |     pub const BaseDeliveryFee: u128 = CENTS.saturating_mul(3);
57 | | }
   | |_^
   |
   = note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 282 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
   --> runtime/mainnet/src/config/system.rs:130:1
    |
130 | / parameter_types! {
131 | |     pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
132 | |     pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
133 | |     pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
134 | | }
    | |_^
    |
    = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 282 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
   --> runtime/mainnet/src/config/system.rs:130:1
    |
130 | / parameter_types! {
131 | |     pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
132 | |     pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
133 | |     pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
134 | | }
    | |_^
    |
    = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 282 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
   --> runtime/mainnet/src/config/system.rs:130:1
    |
130 | / parameter_types! {
131 | |     pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
132 | |     pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
133 | |     pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
134 | | }
    | |_^
    |
    = note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 282 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/mainnet/src/config/system.rs:26:1
   |
26 | / parameter_types! {
27 | |     pub const Version: RuntimeVersion = VERSION;
28 | |     pub const SS58Prefix: u16 = 0;
...  |
53 | |         .build_or_panic();
54 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 282 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/mainnet/src/config/system.rs:26:1
   |
26 | / parameter_types! {
27 | |     pub const Version: RuntimeVersion = VERSION;
28 | |     pub const SS58Prefix: u16 = 0;
...  |
53 | |         .build_or_panic();
54 | | }
   | |_^
   |
   = note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 294 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/mainnet/src/config/governance.rs:33:1
   |
33 | / parameter_types! {
34 | |     pub CouncilMotionDuration: BlockNumber = 7 * DAYS;
35 | |     pub const CouncilMaxProposals: u32 = 100;
36 | |     pub const CouncilMaxMembers: u32 = 100;
37 | |     pub MaxProposalWeight: Weight = sp_runtime::Perbill::from_percent(80) * RuntimeBlockWeights::get().max_block;
38 | |     pub SudoAddress: AccountId = AccountId::from_ss58check(SUDO_ADDRESS).expect("sudo address is valid SS58");
39 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 294 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/6fd693e/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/mainnet/src/config/governance.rs:33:1
   |
33 | / parameter_types! {
34 | |     pub CouncilMotionDuration: BlockNumber = 7 * DAYS;
35 | |     pub const CouncilMaxProposals: u32 = 100;
36 | |     pub const CouncilMaxMembers: u32 = 100;
37 | |     pub MaxProposalWeight: Weight = sp_runtime::Perbill::from_percent(80) * RuntimeBlockWeights::get().max_block;
38 | |     pub SudoAddress: AccountId = AccountId::from_ss58check(SUDO_ADDRESS).expect("sudo address is valid SS58");
39 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)