From 2901e6c277b942ed4e024ae2f231521b00ba3606 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Thu, 14 Nov 2024 11:25:16 +0530 Subject: [PATCH 1/2] remove: serde feature from frame-system --- pallets/system/Cargo.toml | 6 ++---- pallets/system/src/limits.rs | 11 ++--------- runtime/Cargo.toml | 2 +- runtime/fuzz/Cargo.toml | 4 +--- 4 files changed, 6 insertions(+), 17 deletions(-) diff --git a/pallets/system/Cargo.toml b/pallets/system/Cargo.toml index 483250663..718c3bd93 100644 --- a/pallets/system/Cargo.toml +++ b/pallets/system/Cargo.toml @@ -33,8 +33,8 @@ thiserror-no-std.workspace = true # Substrate codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = [ "derive"] } -scale-info = { workspace = true, default-features = false } -serde = { workspace = true, default-features = false, optional = true } +scale-info = { workspace = true, default-features = false, features = ["derive", "serde"] } +serde = { workspace = true, default-features = false, features = ["alloc", "derive"] } frame-support = { workspace = true, default-features = false } sp-core = { workspace = true, default-features = false, features = ["serde"] } sp-io = { workspace = true, default-features = false } @@ -76,7 +76,6 @@ std = [ ] runtime-benchmarks = [ "frame-support/runtime-benchmarks", - "serde", "sp-runtime/runtime-benchmarks", ] try-runtime = [ @@ -85,7 +84,6 @@ try-runtime = [ "sp-runtime/try-runtime", ] experimental = [ "frame-support/experimental" ] -serde = [ "dep:serde" ] # It enables the corruption of header extensions where block number is greater than 20. # NOTE: Only for testing and development purposes. diff --git a/pallets/system/src/limits.rs b/pallets/system/src/limits.rs index 8fb18e01c..8156ddb0d 100644 --- a/pallets/system/src/limits.rs +++ b/pallets/system/src/limits.rs @@ -36,7 +36,6 @@ use frame_support::{ }; use kate::config::{MAX_BLOCK_COLUMNS, MAX_BLOCK_ROWS}; use scale_info::{build::Fields, Path, Type, TypeInfo}; -#[cfg(feature = "serde")] use serde::{Deserialize, Serialize}; use sp_runtime::{traits::Bounded, Perbill, RuntimeDebug}; use sp_runtime_interface::pass_by::PassByCodec; @@ -44,18 +43,13 @@ use sp_std::vec::Vec; use static_assertions::const_assert; /// Block length limit configuration. -#[cfg_attr( - feature = "serde", - derive(Serialize, Deserialize), - serde(rename_all = "camelCase") -)] -#[derive(RuntimeDebug, PartialEq, Clone, PassByCodec, MaxEncodedLen)] +#[derive(RuntimeDebug, PartialEq, Clone, PassByCodec, MaxEncodedLen, Serialize, Deserialize)] pub struct BlockLength { /// Maximal total length in bytes for each extrinsic class. /// /// In the worst case, the total block length is going to be: /// `MAX(max)` - #[cfg_attr(feature = "serde", serde(with = "per_dispatch_class_serde"))] + #[serde(with = "per_dispatch_class_serde")] pub max: PerDispatchClass, pub cols: BlockLengthColumns, pub rows: BlockLengthRows, @@ -162,7 +156,6 @@ impl Decode for BlockLength { } /// This module adds serialization support to `BlockLength::max` field. -#[cfg(feature = "serde")] mod per_dispatch_class_serde { use serde::{Deserializer, Serializer}; diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 45bcb3788..8b98d4408 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -58,7 +58,7 @@ sp-storage = { workspace = true, default-features = false } ## frame dependencies frame-support = { workspace = true, default-features = false } -frame-system = { workspace = true, default-features = false, features = ["serde"] } +frame-system = { workspace = true, default-features = false } frame-executive = { workspace = true, default-features = false } frame-try-runtime = { workspace = true, default-features = false, optional = true } diff --git a/runtime/fuzz/Cargo.toml b/runtime/fuzz/Cargo.toml index c5a4bf70f..e60ffd4ef 100644 --- a/runtime/fuzz/Cargo.toml +++ b/runtime/fuzz/Cargo.toml @@ -26,9 +26,7 @@ codec = { package = "parity-scale-codec", version = "3", default-features = fals "derive", ] } frame-support = { workspace = true, default-features = false } -frame-system = { path = "../../pallets/system", default-features = false, features = [ - "serde", -] } +frame-system = { path = "../../pallets/system", default-features = false } pallet-transaction-payment = { workspace = true, default-features = false } pallet-babe = { workspace = true, default-features = false } pallet-balances = { workspace = true, default-features = false } From 146c44797abf1f471f8c34e087af7d072c300372 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 27 Nov 2024 15:49:22 +0530 Subject: [PATCH 2/2] fix e2e --- e2e/Cargo.lock | 213 ++++++++++++++--------------------- pallets/system/src/limits.rs | 1 + 2 files changed, 87 insertions(+), 127 deletions(-) diff --git a/e2e/Cargo.lock b/e2e/Cargo.lock index 16aa8f664..55b9e1da0 100644 --- a/e2e/Cargo.lock +++ b/e2e/Cargo.lock @@ -52,17 +52,6 @@ version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0453232ace82dee0dd0b4c87a59bd90f7b53b314f3e0f61fe2ee7c8a16482289" -[[package]] -name = "ahash" -version = "0.7.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" -dependencies = [ - "getrandom 0.2.15", - "once_cell", - "version_check", -] - [[package]] name = "ahash" version = "0.8.11" @@ -700,15 +689,15 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-runtime-interface 24.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-runtime-interface 24.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "substrate-prometheus-endpoint", ] [[package]] name = "avail-core" version = "0.6.2" -source = "git+https://github.com/availproject/avail-core?branch=toufeeq/fix-fee-payment#df2d0c34366323d465ca344d3bc0275a630bbe6c" +source = "git+https://github.com/availproject/avail-core?tag=core-node-3#99e37cf1329d42c118a91b8ccd6d9f8538f89dfe" dependencies = [ "binary-merkle-tree", "bounded-collections", @@ -725,8 +714,8 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-runtime-interface 24.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-runtime-interface 24.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "sp-trie", "static_assertions", "thiserror-no-std", @@ -847,7 +836,7 @@ dependencies = [ [[package]] name = "binary-merkle-tree" version = "13.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "array-bytes", "hash-db", @@ -1374,19 +1363,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "curve25519-dalek" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61" -dependencies = [ - "byteorder", - "digest 0.9.0", - "rand_core 0.5.1", - "subtle", - "zeroize", -] - [[package]] name = "curve25519-dalek" version = "4.1.2" @@ -1782,20 +1758,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "ed25519-zebra" -version = "3.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c24f403d068ad0b359e577a77f92392118be3f3c927538f2bb544a5ecd828c6" -dependencies = [ - "curve25519-dalek 3.2.0", - "hashbrown 0.12.3", - "hex", - "rand_core 0.6.4", - "sha2 0.9.9", - "zeroize", -] - [[package]] name = "ed25519-zebra" version = "4.0.3" @@ -2073,7 +2035,7 @@ dependencies = [ [[package]] name = "frame-support" version = "28.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "aquamarine", "array-bytes", @@ -2096,7 +2058,7 @@ dependencies = [ "sp-arithmetic", "sp-core", "sp-crypto-hashing-proc-macro", - "sp-debug-derive 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-debug-derive 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "sp-genesis-builder", "sp-inherents", "sp-io", @@ -2104,8 +2066,8 @@ dependencies = [ "sp-runtime", "sp-staking", "sp-state-machine", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-tracing 16.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-tracing 16.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "sp-weights", "static_assertions", "tt-call", @@ -2114,7 +2076,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "23.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "Inflector", "cfg-expr", @@ -2133,7 +2095,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "10.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 3.1.0", @@ -2145,7 +2107,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "11.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "proc-macro2", "quote", @@ -2460,9 +2422,6 @@ name = "hashbrown" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" -dependencies = [ - "ahash 0.7.8", -] [[package]] name = "hashbrown" @@ -3096,7 +3055,7 @@ dependencies = [ [[package]] name = "kate" version = "0.9.2" -source = "git+https://github.com/availproject/avail-core?branch=toufeeq/fix-fee-payment#df2d0c34366323d465ca344d3bc0275a630bbe6c" +source = "git+https://github.com/availproject/avail-core?tag=core-node-3#99e37cf1329d42c118a91b8ccd6d9f8538f89dfe" dependencies = [ "avail-core", "derive_more", @@ -3124,7 +3083,7 @@ dependencies = [ [[package]] name = "kate-recovery" version = "0.10.0" -source = "git+https://github.com/availproject/avail-core?branch=toufeeq/fix-fee-payment#df2d0c34366323d465ca344d3bc0275a630bbe6c" +source = "git+https://github.com/availproject/avail-core?tag=core-node-3#99e37cf1329d42c118a91b8ccd6d9f8538f89dfe" dependencies = [ "avail-core", "derive_more", @@ -3136,7 +3095,7 @@ dependencies = [ "rand_chacha 0.3.1", "serde", "sp-arithmetic", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "static_assertions", "thiserror-no-std", ] @@ -4913,7 +4872,7 @@ dependencies = [ "chacha20", "crossbeam-queue", "derive_more", - "ed25519-zebra 4.0.3", + "ed25519-zebra", "either", "event-listener 4.0.3", "fnv", @@ -5016,7 +4975,7 @@ dependencies = [ [[package]] name = "sp-api" version = "26.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "hash-db", "log", @@ -5024,11 +4983,11 @@ dependencies = [ "scale-info", "sp-api-proc-macro", "sp-core", - "sp-externalities 0.25.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-externalities 0.25.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "sp-metadata-ir", "sp-runtime", "sp-state-machine", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "sp-trie", "sp-version", "thiserror", @@ -5037,7 +4996,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "15.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "Inflector", "blake2", @@ -5051,27 +5010,27 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "30.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "parity-scale-codec", "scale-info", "serde", "sp-core", "sp-io", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", ] [[package]] name = "sp-arithmetic" version = "23.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "scale-info", "serde", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "static_assertions", ] @@ -5096,7 +5055,7 @@ dependencies = [ [[package]] name = "sp-core" version = "28.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "array-bytes", "bandersnatch_vrfs", @@ -5106,7 +5065,7 @@ dependencies = [ "bounded-collections", "bs58", "dyn-clonable", - "ed25519-zebra 3.1.0", + "ed25519-zebra", "futures", "hash-db", "hash256-std-hasher", @@ -5126,11 +5085,11 @@ dependencies = [ "secrecy", "serde", "sp-crypto-hashing", - "sp-debug-derive 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-externalities 0.25.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-runtime-interface 24.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-storage 19.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-debug-derive 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-externalities 0.25.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-runtime-interface 24.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-storage 19.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "ss58-registry", "substrate-bip39", "thiserror", @@ -5176,7 +5135,7 @@ dependencies = [ [[package]] name = "sp-crypto-hashing" version = "0.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "blake2b_simd", "byteorder", @@ -5189,7 +5148,7 @@ dependencies = [ [[package]] name = "sp-crypto-hashing-proc-macro" version = "0.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "quote", "sp-crypto-hashing", @@ -5199,7 +5158,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "14.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "proc-macro2", "quote", @@ -5219,12 +5178,12 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.25.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-storage 19.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-storage 19.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", ] [[package]] @@ -5240,32 +5199,32 @@ dependencies = [ [[package]] name = "sp-genesis-builder" version = "0.7.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "serde_json", "sp-api", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", ] [[package]] name = "sp-inherents" version = "26.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "async-trait", "impl-trait-for-tuples", "parity-scale-codec", "scale-info", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "thiserror", ] [[package]] name = "sp-io" version = "30.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "bytes", "ed25519-dalek", @@ -5276,12 +5235,12 @@ dependencies = [ "secp256k1", "sp-core", "sp-crypto-hashing", - "sp-externalities 0.25.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-externalities 0.25.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "sp-keystore", - "sp-runtime-interface 24.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-runtime-interface 24.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "sp-state-machine", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-tracing 16.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-tracing 16.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "sp-trie", "tracing", "tracing-core", @@ -5290,7 +5249,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "31.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "sp-core", "sp-runtime", @@ -5300,30 +5259,30 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.34.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "parity-scale-codec", "parking_lot", "sp-core", - "sp-externalities 0.25.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-externalities 0.25.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "thiserror", ] [[package]] name = "sp-metadata-ir" version = "0.6.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "frame-metadata 16.0.0", "parity-scale-codec", "scale-info", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", ] [[package]] name = "sp-panic-handler" version = "13.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "backtrace", "lazy_static", @@ -5333,7 +5292,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "31.0.1" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "docify", "either", @@ -5350,25 +5309,25 @@ dependencies = [ "sp-arithmetic", "sp-core", "sp-io", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "sp-weights", ] [[package]] name = "sp-runtime-interface" version = "24.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "bytes", "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.25.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-runtime-interface-proc-macro 17.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-storage 19.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-tracing 16.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-wasm-interface 20.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-externalities 0.25.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-runtime-interface-proc-macro 17.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-storage 19.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-tracing 16.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-wasm-interface 20.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "static_assertions", ] @@ -5394,7 +5353,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "17.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "Inflector", "expander", @@ -5420,7 +5379,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "26.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -5428,13 +5387,13 @@ dependencies = [ "serde", "sp-core", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", ] [[package]] name = "sp-state-machine" version = "0.35.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "hash-db", "log", @@ -5443,9 +5402,9 @@ dependencies = [ "rand 0.8.5", "smallvec 1.13.2", "sp-core", - "sp-externalities 0.25.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-externalities 0.25.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "sp-panic-handler", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "sp-trie", "thiserror", "tracing", @@ -5455,7 +5414,7 @@ dependencies = [ [[package]] name = "sp-std" version = "14.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" [[package]] name = "sp-std" @@ -5465,14 +5424,14 @@ source = "git+https://github.com/paritytech/polkadot-sdk#efdc1e9b1615c5502ed63ff [[package]] name = "sp-storage" version = "19.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-debug-derive 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", ] [[package]] @@ -5490,10 +5449,10 @@ dependencies = [ [[package]] name = "sp-tracing" version = "16.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "parity-scale-codec", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "tracing", "tracing-core", "tracing-subscriber 0.2.25", @@ -5513,7 +5472,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "29.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "ahash 0.8.11", "hash-db", @@ -5526,8 +5485,8 @@ dependencies = [ "scale-info", "schnellru", "sp-core", - "sp-externalities 0.25.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-externalities 0.25.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "thiserror", "tracing", "trie-db", @@ -5537,7 +5496,7 @@ dependencies = [ [[package]] name = "sp-version" version = "29.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "impl-serde", "parity-scale-codec", @@ -5546,7 +5505,7 @@ dependencies = [ "serde", "sp-crypto-hashing-proc-macro", "sp-runtime", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "sp-version-proc-macro", "thiserror", ] @@ -5554,7 +5513,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "13.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -5565,13 +5524,13 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "20.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", "wasmtime", ] @@ -5588,7 +5547,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "27.0.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "bounded-collections", "parity-scale-codec", @@ -5596,8 +5555,8 @@ dependencies = [ "serde", "smallvec 1.13.2", "sp-arithmetic", - "sp-debug-derive 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", - "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment)", + "sp-debug-derive 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", + "sp-std 14.0.0 (git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10)", ] [[package]] @@ -5717,7 +5676,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.17.0" -source = "git+https://github.com/availproject/polkadot-sdk.git?branch=toufeeq/fix-fee-payment#1fa0daead3fc95a7116e377467e1891576172169" +source = "git+https://github.com/availproject/polkadot-sdk.git?tag=polkadot-1.7.1-patch-10#f5587b380ee596f90482d402844c49aa140781d8" dependencies = [ "hyper", "log", diff --git a/pallets/system/src/limits.rs b/pallets/system/src/limits.rs index 8156ddb0d..6ee95f95c 100644 --- a/pallets/system/src/limits.rs +++ b/pallets/system/src/limits.rs @@ -44,6 +44,7 @@ use static_assertions::const_assert; /// Block length limit configuration. #[derive(RuntimeDebug, PartialEq, Clone, PassByCodec, MaxEncodedLen, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] pub struct BlockLength { /// Maximal total length in bytes for each extrinsic class. ///