diff --git a/.maintain/frame-weight-template.hbs b/.maintain/frame-weight-template.hbs index d3aa26183f..8c35b2e3c4 100644 --- a/.maintain/frame-weight-template.hbs +++ b/.maintain/frame-weight-template.hbs @@ -127,6 +127,7 @@ mod tests { use common_runtime::constants::{MAXIMUM_BLOCK_WEIGHT, NORMAL_DISPATCH_RATIO}; use common_runtime::weights::extrinsic_weights::ExtrinsicBaseWeight; + #[allow(dead_code)] struct BlockWeights; impl Get for BlockWeights { fn get() -> frame_system::limits::BlockWeights { diff --git a/common/primitives/Cargo.toml b/common/primitives/Cargo.toml index 4c7c870bb9..94b4cdef51 100644 --- a/common/primitives/Cargo.toml +++ b/common/primitives/Cargo.toml @@ -47,3 +47,4 @@ std = [ 'sp-externalities/std', 'sp-runtime-interface/std' ] +test = [] \ No newline at end of file diff --git a/pallets/capacity/Cargo.toml b/pallets/capacity/Cargo.toml index f16524d48e..5a1f49a8f5 100644 --- a/pallets/capacity/Cargo.toml +++ b/pallets/capacity/Cargo.toml @@ -9,6 +9,7 @@ publish = false repository = "https://github.com/frequency-chain/frequency/" version = "0.0.0" + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] @@ -53,3 +54,4 @@ std = [ "sp-io/std", ] try-runtime = ["frame-support/try-runtime"] +test = [] diff --git a/pallets/frequency-tx-payment/Cargo.toml b/pallets/frequency-tx-payment/Cargo.toml index 0b4380c135..bdff0cd081 100644 --- a/pallets/frequency-tx-payment/Cargo.toml +++ b/pallets/frequency-tx-payment/Cargo.toml @@ -61,3 +61,4 @@ std = [ "sp-io/std", ] try-runtime = ["frame-support/try-runtime"] +test = [] diff --git a/pallets/handles/Cargo.toml b/pallets/handles/Cargo.toml index 732d6e1a38..dbc72a4f38 100644 --- a/pallets/handles/Cargo.toml +++ b/pallets/handles/Cargo.toml @@ -58,3 +58,4 @@ std = [ 'common-runtime/std', ] try-runtime = ['frame-support/try-runtime'] +test = [] \ No newline at end of file diff --git a/pallets/messages/Cargo.toml b/pallets/messages/Cargo.toml index 1fb9e861ae..88972257cf 100644 --- a/pallets/messages/Cargo.toml +++ b/pallets/messages/Cargo.toml @@ -60,3 +60,4 @@ std = [ 'common-runtime/std', ] try-runtime = ['frame-support/try-runtime'] +test = [] \ No newline at end of file diff --git a/pallets/msa/Cargo.toml b/pallets/msa/Cargo.toml index be978fcae7..d4c69c7d3f 100644 --- a/pallets/msa/Cargo.toml +++ b/pallets/msa/Cargo.toml @@ -68,3 +68,4 @@ std = [ "sp-io/std", ] try-runtime = ["frame-support/try-runtime"] +test = [] \ No newline at end of file diff --git a/pallets/msa/src/runtime-api/Cargo.toml b/pallets/msa/src/runtime-api/Cargo.toml index cd2c6e1eff..6f1349d6fb 100644 --- a/pallets/msa/src/runtime-api/Cargo.toml +++ b/pallets/msa/src/runtime-api/Cargo.toml @@ -27,3 +27,4 @@ std = [ "frame-support/std", 'common-primitives/std', ] +test = [] \ No newline at end of file diff --git a/pallets/passkey/Cargo.toml b/pallets/passkey/Cargo.toml index 2d2e8d6c10..0f74a98f42 100644 --- a/pallets/passkey/Cargo.toml +++ b/pallets/passkey/Cargo.toml @@ -59,3 +59,4 @@ runtime-benchmarks = [ "common-runtime/runtime-benchmarks", ] try-runtime = ["frame-support/try-runtime", "frame-system/try-runtime"] +test = [] \ No newline at end of file diff --git a/pallets/schemas/Cargo.toml b/pallets/schemas/Cargo.toml index b9e88e7b60..5276563f07 100644 --- a/pallets/schemas/Cargo.toml +++ b/pallets/schemas/Cargo.toml @@ -61,3 +61,4 @@ std = [ 'sp-io/std', ] try-runtime = ["frame-support/try-runtime"] +test = [] \ No newline at end of file diff --git a/pallets/stateful-storage/Cargo.toml b/pallets/stateful-storage/Cargo.toml index 099a85702d..d67bead33f 100644 --- a/pallets/stateful-storage/Cargo.toml +++ b/pallets/stateful-storage/Cargo.toml @@ -57,3 +57,4 @@ std = [ "common-runtime/std", ] try-runtime = ['frame-support/try-runtime'] +test = [] \ No newline at end of file diff --git a/pallets/time-release/Cargo.toml b/pallets/time-release/Cargo.toml index 8c651950b3..78619a4f42 100644 --- a/pallets/time-release/Cargo.toml +++ b/pallets/time-release/Cargo.toml @@ -53,3 +53,4 @@ runtime-benchmarks = [ "common-runtime/runtime-benchmarks", ] try-runtime = ["frame-support/try-runtime", "frame-system/try-runtime"] +test = [] \ No newline at end of file diff --git a/runtime/common/src/weights/pallet_utility.rs b/runtime/common/src/weights/pallet_utility.rs index 68a5f7df44..f9456d920b 100644 --- a/runtime/common/src/weights/pallet_utility.rs +++ b/runtime/common/src/weights/pallet_utility.rs @@ -86,7 +86,8 @@ mod tests { use crate::constants::{MAXIMUM_BLOCK_WEIGHT, NORMAL_DISPATCH_RATIO}; use crate::weights::extrinsic_weights::ExtrinsicBaseWeight; - struct BlockWeights; +#[allow(dead_code)] +struct BlockWeights; impl Get for BlockWeights { fn get() -> frame_system::limits::BlockWeights { frame_system::limits::BlockWeights::builder() diff --git a/runtime/frequency/Cargo.toml b/runtime/frequency/Cargo.toml index bf6a88a904..71e31e896a 100644 --- a/runtime/frequency/Cargo.toml +++ b/runtime/frequency/Cargo.toml @@ -253,3 +253,6 @@ on-chain-release-build = ["metadata-hash", "sp-api/disable-logging"] # `RUNTIME_METADATA_HASH` environment variable set for the `CheckMetadataHash` # extension. metadata-hash = ["substrate-wasm-builder/metadata-hash"] +frequency-lint-check = [] +test = [] +parameterized-consensus-hook = [] diff --git a/runtime/frequency/src/lib.rs b/runtime/frequency/src/lib.rs index 601b467f96..2a690bdd80 100644 --- a/runtime/frequency/src/lib.rs +++ b/runtime/frequency/src/lib.rs @@ -360,7 +360,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("frequency"), impl_name: create_runtime_str!("frequency"), authoring_version: 1, - spec_version: 106, + spec_version: 107, impl_version: 0, apis: apis::RUNTIME_API_VERSIONS, transaction_version: 1, @@ -374,7 +374,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("frequency-testnet"), impl_name: create_runtime_str!("frequency"), authoring_version: 1, - spec_version: 106, + spec_version: 107, impl_version: 0, apis: apis::RUNTIME_API_VERSIONS, transaction_version: 1,