Skip to content

feat: set emission recycling percentage to 81% and Treasury emission … #538

feat: set emission recycling percentage to 81% and Treasury emission …

feat: set emission recycling percentage to 81% and Treasury emission … #538

GitHub Actions / clippy failed Jan 30, 2025 in 0s

clippy

14 errors

Details

Results

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

Versions

  • rustc 1.82.0 (f6e511eec 2024-10-15)
  • cargo 1.82.0 (8f40fc59f 2024-08-21)
  • clippy 0.1.82 (f6e511e 2024-10-15)

Annotations

Check failure on line 454 in runtime/src/apis.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the function or associated item `initialize_block` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied

error[E0599]: the function or associated item `initialize_block` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied
   --> runtime/src/apis.rs:454:31
    |
454 |             RuntimeExecutive::initialize_block(header);
    |                               ^^^^^^^^^^^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds
    |
   ::: /home/runner/work/torus-substrate/torus-substrate/pallets/emission0/src/lib.rs:103:5
    |
103 |     pub struct Pallet<T>(_);
    |     -------------------- doesn't satisfy `<_ as GetStorageVersion>::InCodeStorageVersion = StorageVersion`
    |
    = note: the full type name has been written to '/home/runner/work/torus-substrate/torus-substrate/target/debug/deps/torus_runtime-056fb220525120dc.long-type-10601928692490190711.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: the following trait bounds were not satisfied:
            `<pallet_emission0::Pallet<Runtime> as polkadot_sdk::frame_support::traits::GetStorageVersion>::InCodeStorageVersion = polkadot_sdk::frame_support::traits::StorageVersion`
            which is required by `(polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_governance::migrations::v1::MigrateToV1<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<1, 2, pallet_governance::migrations::v2::MigrateToV2<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_emission0::migrations::v1::MigrateToV1<Runtime>, pallet_emission0::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>): polkadot_sdk::frame_support::traits::OnRuntimeUpgrade`

Check failure on line 454 in runtime/src/apis.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the function or associated item `initialize_block` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied

error[E0599]: the function or associated item `initialize_block` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied
   --> runtime/src/apis.rs:454:31
    |
454 |             RuntimeExecutive::initialize_block(header);
    |                               ^^^^^^^^^^^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds
    |
   ::: /home/runner/work/torus-substrate/torus-substrate/pallets/emission0/src/lib.rs:103:5
    |
103 |     pub struct Pallet<T>(_);
    |     -------------------- doesn't satisfy `<_ as GetStorageVersion>::InCodeStorageVersion = StorageVersion`
    |
    = note: the full type name has been written to '/home/runner/work/torus-substrate/torus-substrate/target/debug/deps/torus_runtime-df9f1c4ff63fc35e.long-type-11313713610289917953.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: the following trait bounds were not satisfied:
            `<pallet_emission0::Pallet<Runtime> as polkadot_sdk::frame_support::traits::GetStorageVersion>::InCodeStorageVersion = polkadot_sdk::frame_support::traits::StorageVersion`
            which is required by `(polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_governance::migrations::v1::MigrateToV1<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<1, 2, pallet_governance::migrations::v2::MigrateToV2<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_emission0::migrations::v1::MigrateToV1<Runtime>, pallet_emission0::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>): polkadot_sdk::frame_support::traits::OnRuntimeUpgrade`

Check failure on line 442 in runtime/src/apis.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the function or associated item `apply_extrinsic` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied

error[E0599]: the function or associated item `apply_extrinsic` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied
   --> runtime/src/apis.rs:442:43
    |
442 |                 let _ = RuntimeExecutive::apply_extrinsic(ext);
    |                                           ^^^^^^^^^^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds
    |
   ::: /home/runner/work/torus-substrate/torus-substrate/pallets/emission0/src/lib.rs:103:5
    |
103 |     pub struct Pallet<T>(_);
    |     -------------------- doesn't satisfy `<_ as GetStorageVersion>::InCodeStorageVersion = StorageVersion`
    |
    = note: the full type name has been written to '/home/runner/work/torus-substrate/torus-substrate/target/debug/deps/torus_runtime-df9f1c4ff63fc35e.long-type-11313713610289917953.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: the following trait bounds were not satisfied:
            `<pallet_emission0::Pallet<Runtime> as polkadot_sdk::frame_support::traits::GetStorageVersion>::InCodeStorageVersion = polkadot_sdk::frame_support::traits::StorageVersion`
            which is required by `(polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_governance::migrations::v1::MigrateToV1<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<1, 2, pallet_governance::migrations::v2::MigrateToV2<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_emission0::migrations::v1::MigrateToV1<Runtime>, pallet_emission0::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>): polkadot_sdk::frame_support::traits::OnRuntimeUpgrade`

Check failure on line 442 in runtime/src/apis.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the function or associated item `apply_extrinsic` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied

error[E0599]: the function or associated item `apply_extrinsic` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied
   --> runtime/src/apis.rs:442:43
    |
442 |                 let _ = RuntimeExecutive::apply_extrinsic(ext);
    |                                           ^^^^^^^^^^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds
    |
   ::: /home/runner/work/torus-substrate/torus-substrate/pallets/emission0/src/lib.rs:103:5
    |
103 |     pub struct Pallet<T>(_);
    |     -------------------- doesn't satisfy `<_ as GetStorageVersion>::InCodeStorageVersion = StorageVersion`
    |
    = note: the full type name has been written to '/home/runner/work/torus-substrate/torus-substrate/target/debug/deps/torus_runtime-056fb220525120dc.long-type-10601928692490190711.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: the following trait bounds were not satisfied:
            `<pallet_emission0::Pallet<Runtime> as polkadot_sdk::frame_support::traits::GetStorageVersion>::InCodeStorageVersion = polkadot_sdk::frame_support::traits::StorageVersion`
            which is required by `(polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_governance::migrations::v1::MigrateToV1<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<1, 2, pallet_governance::migrations::v2::MigrateToV2<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_emission0::migrations::v1::MigrateToV1<Runtime>, pallet_emission0::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>): polkadot_sdk::frame_support::traits::OnRuntimeUpgrade`

Check failure on line 81 in runtime/src/apis.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the function or associated item `offchain_worker` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied

error[E0599]: the function or associated item `offchain_worker` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied
   --> runtime/src/apis.rs:81:31
    |
81  |             RuntimeExecutive::offchain_worker(header)
    |                               ^^^^^^^^^^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds
    |
   ::: /home/runner/work/torus-substrate/torus-substrate/pallets/emission0/src/lib.rs:103:5
    |
103 |     pub struct Pallet<T>(_);
    |     -------------------- doesn't satisfy `<_ as GetStorageVersion>::InCodeStorageVersion = StorageVersion`
    |
    = note: the full type name has been written to '/home/runner/work/torus-substrate/torus-substrate/target/debug/deps/torus_runtime-df9f1c4ff63fc35e.long-type-11313713610289917953.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: the following trait bounds were not satisfied:
            `<pallet_emission0::Pallet<Runtime> as polkadot_sdk::frame_support::traits::GetStorageVersion>::InCodeStorageVersion = polkadot_sdk::frame_support::traits::StorageVersion`
            which is required by `(polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_governance::migrations::v1::MigrateToV1<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<1, 2, pallet_governance::migrations::v2::MigrateToV2<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_emission0::migrations::v1::MigrateToV1<Runtime>, pallet_emission0::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>): polkadot_sdk::frame_support::traits::OnRuntimeUpgrade`

Check failure on line 81 in runtime/src/apis.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the function or associated item `offchain_worker` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied

error[E0599]: the function or associated item `offchain_worker` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied
   --> runtime/src/apis.rs:81:31
    |
81  |             RuntimeExecutive::offchain_worker(header)
    |                               ^^^^^^^^^^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds
    |
   ::: /home/runner/work/torus-substrate/torus-substrate/pallets/emission0/src/lib.rs:103:5
    |
103 |     pub struct Pallet<T>(_);
    |     -------------------- doesn't satisfy `<_ as GetStorageVersion>::InCodeStorageVersion = StorageVersion`
    |
    = note: the full type name has been written to '/home/runner/work/torus-substrate/torus-substrate/target/debug/deps/torus_runtime-056fb220525120dc.long-type-10601928692490190711.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: the following trait bounds were not satisfied:
            `<pallet_emission0::Pallet<Runtime> as polkadot_sdk::frame_support::traits::GetStorageVersion>::InCodeStorageVersion = polkadot_sdk::frame_support::traits::StorageVersion`
            which is required by `(polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_governance::migrations::v1::MigrateToV1<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<1, 2, pallet_governance::migrations::v2::MigrateToV2<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_emission0::migrations::v1::MigrateToV1<Runtime>, pallet_emission0::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>): polkadot_sdk::frame_support::traits::OnRuntimeUpgrade`

Check failure on line 75 in runtime/src/apis.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the function or associated item `validate_transaction` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied

error[E0599]: the function or associated item `validate_transaction` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied
   --> runtime/src/apis.rs:75:31
    |
75  |             RuntimeExecutive::validate_transaction(source, tx, block_hash)
    |                               ^^^^^^^^^^^^^^^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds
    |
   ::: /home/runner/work/torus-substrate/torus-substrate/pallets/emission0/src/lib.rs:103:5
    |
103 |     pub struct Pallet<T>(_);
    |     -------------------- doesn't satisfy `<_ as GetStorageVersion>::InCodeStorageVersion = StorageVersion`
    |
    = note: the full type name has been written to '/home/runner/work/torus-substrate/torus-substrate/target/debug/deps/torus_runtime-056fb220525120dc.long-type-10601928692490190711.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: the following trait bounds were not satisfied:
            `<pallet_emission0::Pallet<Runtime> as polkadot_sdk::frame_support::traits::GetStorageVersion>::InCodeStorageVersion = polkadot_sdk::frame_support::traits::StorageVersion`
            which is required by `(polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_governance::migrations::v1::MigrateToV1<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<1, 2, pallet_governance::migrations::v2::MigrateToV2<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_emission0::migrations::v1::MigrateToV1<Runtime>, pallet_emission0::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>): polkadot_sdk::frame_support::traits::OnRuntimeUpgrade`

Check failure on line 54 in runtime/src/apis.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the function or associated item `finalize_block` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied

error[E0599]: the function or associated item `finalize_block` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied
   --> runtime/src/apis.rs:54:31
    |
54  |             RuntimeExecutive::finalize_block()
    |                               ^^^^^^^^^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds
    |
   ::: /home/runner/work/torus-substrate/torus-substrate/pallets/emission0/src/lib.rs:103:5
    |
103 |     pub struct Pallet<T>(_);
    |     -------------------- doesn't satisfy `<_ as GetStorageVersion>::InCodeStorageVersion = StorageVersion`
    |
    = note: the full type name has been written to '/home/runner/work/torus-substrate/torus-substrate/target/debug/deps/torus_runtime-056fb220525120dc.long-type-10601928692490190711.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: the following trait bounds were not satisfied:
            `<pallet_emission0::Pallet<Runtime> as polkadot_sdk::frame_support::traits::GetStorageVersion>::InCodeStorageVersion = polkadot_sdk::frame_support::traits::StorageVersion`
            which is required by `(polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_governance::migrations::v1::MigrateToV1<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<1, 2, pallet_governance::migrations::v2::MigrateToV2<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_emission0::migrations::v1::MigrateToV1<Runtime>, pallet_emission0::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>): polkadot_sdk::frame_support::traits::OnRuntimeUpgrade`

Check failure on line 50 in runtime/src/apis.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the function or associated item `apply_extrinsic` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied

error[E0599]: the function or associated item `apply_extrinsic` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied
   --> runtime/src/apis.rs:50:31
    |
50  |             RuntimeExecutive::apply_extrinsic(extrinsic)
    |                               ^^^^^^^^^^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds
    |
   ::: /home/runner/work/torus-substrate/torus-substrate/pallets/emission0/src/lib.rs:103:5
    |
103 |     pub struct Pallet<T>(_);
    |     -------------------- doesn't satisfy `<_ as GetStorageVersion>::InCodeStorageVersion = StorageVersion`
    |
    = note: the full type name has been written to '/home/runner/work/torus-substrate/torus-substrate/target/debug/deps/torus_runtime-df9f1c4ff63fc35e.long-type-11313713610289917953.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: the following trait bounds were not satisfied:
            `<pallet_emission0::Pallet<Runtime> as polkadot_sdk::frame_support::traits::GetStorageVersion>::InCodeStorageVersion = polkadot_sdk::frame_support::traits::StorageVersion`
            which is required by `(polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_governance::migrations::v1::MigrateToV1<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<1, 2, pallet_governance::migrations::v2::MigrateToV2<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_emission0::migrations::v1::MigrateToV1<Runtime>, pallet_emission0::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>): polkadot_sdk::frame_support::traits::OnRuntimeUpgrade`

Check failure on line 50 in runtime/src/apis.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the function or associated item `apply_extrinsic` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied

error[E0599]: the function or associated item `apply_extrinsic` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied
   --> runtime/src/apis.rs:50:31
    |
50  |             RuntimeExecutive::apply_extrinsic(extrinsic)
    |                               ^^^^^^^^^^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds
    |
   ::: /home/runner/work/torus-substrate/torus-substrate/pallets/emission0/src/lib.rs:103:5
    |
103 |     pub struct Pallet<T>(_);
    |     -------------------- doesn't satisfy `<_ as GetStorageVersion>::InCodeStorageVersion = StorageVersion`
    |
    = note: the full type name has been written to '/home/runner/work/torus-substrate/torus-substrate/target/debug/deps/torus_runtime-056fb220525120dc.long-type-10601928692490190711.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: the following trait bounds were not satisfied:
            `<pallet_emission0::Pallet<Runtime> as polkadot_sdk::frame_support::traits::GetStorageVersion>::InCodeStorageVersion = polkadot_sdk::frame_support::traits::StorageVersion`
            which is required by `(polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_governance::migrations::v1::MigrateToV1<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<1, 2, pallet_governance::migrations::v2::MigrateToV2<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_emission0::migrations::v1::MigrateToV1<Runtime>, pallet_emission0::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>): polkadot_sdk::frame_support::traits::OnRuntimeUpgrade`

Check failure on line 30 in runtime/src/apis.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the function or associated item `initialize_block` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied

error[E0599]: the function or associated item `initialize_block` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied
   --> runtime/src/apis.rs:30:31
    |
30  |             RuntimeExecutive::initialize_block(header)
    |                               ^^^^^^^^^^^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds
    |
   ::: /home/runner/work/torus-substrate/torus-substrate/pallets/emission0/src/lib.rs:103:5
    |
103 |     pub struct Pallet<T>(_);
    |     -------------------- doesn't satisfy `<_ as GetStorageVersion>::InCodeStorageVersion = StorageVersion`
    |
    = note: the full type name has been written to '/home/runner/work/torus-substrate/torus-substrate/target/debug/deps/torus_runtime-df9f1c4ff63fc35e.long-type-11313713610289917953.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: the following trait bounds were not satisfied:
            `<pallet_emission0::Pallet<Runtime> as polkadot_sdk::frame_support::traits::GetStorageVersion>::InCodeStorageVersion = polkadot_sdk::frame_support::traits::StorageVersion`
            which is required by `(polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_governance::migrations::v1::MigrateToV1<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<1, 2, pallet_governance::migrations::v2::MigrateToV2<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_emission0::migrations::v1::MigrateToV1<Runtime>, pallet_emission0::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>): polkadot_sdk::frame_support::traits::OnRuntimeUpgrade`

Check failure on line 30 in runtime/src/apis.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the function or associated item `initialize_block` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied

error[E0599]: the function or associated item `initialize_block` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied
   --> runtime/src/apis.rs:30:31
    |
30  |             RuntimeExecutive::initialize_block(header)
    |                               ^^^^^^^^^^^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds
    |
   ::: /home/runner/work/torus-substrate/torus-substrate/pallets/emission0/src/lib.rs:103:5
    |
103 |     pub struct Pallet<T>(_);
    |     -------------------- doesn't satisfy `<_ as GetStorageVersion>::InCodeStorageVersion = StorageVersion`
    |
    = note: the full type name has been written to '/home/runner/work/torus-substrate/torus-substrate/target/debug/deps/torus_runtime-056fb220525120dc.long-type-10601928692490190711.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: the following trait bounds were not satisfied:
            `<pallet_emission0::Pallet<Runtime> as polkadot_sdk::frame_support::traits::GetStorageVersion>::InCodeStorageVersion = polkadot_sdk::frame_support::traits::StorageVersion`
            which is required by `(polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_governance::migrations::v1::MigrateToV1<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<1, 2, pallet_governance::migrations::v2::MigrateToV2<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_emission0::migrations::v1::MigrateToV1<Runtime>, pallet_emission0::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>): polkadot_sdk::frame_support::traits::OnRuntimeUpgrade`

Check failure on line 26 in runtime/src/apis.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the function or associated item `execute_block` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied

error[E0599]: the function or associated item `execute_block` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied
   --> runtime/src/apis.rs:26:31
    |
26  |             RuntimeExecutive::execute_block(block);
    |                               ^^^^^^^^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds
    |
   ::: /home/runner/work/torus-substrate/torus-substrate/pallets/emission0/src/lib.rs:103:5
    |
103 |     pub struct Pallet<T>(_);
    |     -------------------- doesn't satisfy `<_ as GetStorageVersion>::InCodeStorageVersion = StorageVersion`
    |
    = note: the full type name has been written to '/home/runner/work/torus-substrate/torus-substrate/target/debug/deps/torus_runtime-df9f1c4ff63fc35e.long-type-11313713610289917953.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: the following trait bounds were not satisfied:
            `<pallet_emission0::Pallet<Runtime> as polkadot_sdk::frame_support::traits::GetStorageVersion>::InCodeStorageVersion = polkadot_sdk::frame_support::traits::StorageVersion`
            which is required by `(polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_governance::migrations::v1::MigrateToV1<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<1, 2, pallet_governance::migrations::v2::MigrateToV2<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_emission0::migrations::v1::MigrateToV1<Runtime>, pallet_emission0::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>): polkadot_sdk::frame_support::traits::OnRuntimeUpgrade`

Check failure on line 26 in runtime/src/apis.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the function or associated item `execute_block` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied

error[E0599]: the function or associated item `execute_block` exists for struct `Executive<Runtime, Block<Header<u64, BlakeTwo256>, ...>, ..., ..., ..., ...>`, but its trait bounds were not satisfied
   --> runtime/src/apis.rs:26:31
    |
26  |             RuntimeExecutive::execute_block(block);
    |                               ^^^^^^^^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds
    |
   ::: /home/runner/work/torus-substrate/torus-substrate/pallets/emission0/src/lib.rs:103:5
    |
103 |     pub struct Pallet<T>(_);
    |     -------------------- doesn't satisfy `<_ as GetStorageVersion>::InCodeStorageVersion = StorageVersion`
    |
    = note: the full type name has been written to '/home/runner/work/torus-substrate/torus-substrate/target/debug/deps/torus_runtime-056fb220525120dc.long-type-10601928692490190711.txt'
    = note: consider using `--verbose` to print the full type name to the console
    = note: the following trait bounds were not satisfied:
            `<pallet_emission0::Pallet<Runtime> as polkadot_sdk::frame_support::traits::GetStorageVersion>::InCodeStorageVersion = polkadot_sdk::frame_support::traits::StorageVersion`
            which is required by `(polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_governance::migrations::v1::MigrateToV1<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<1, 2, pallet_governance::migrations::v2::MigrateToV2<Runtime>, pallet_governance::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>, polkadot_sdk::frame_support::migrations::VersionedMigration<0, 1, pallet_emission0::migrations::v1::MigrateToV1<Runtime>, pallet_emission0::Pallet<Runtime>, polkadot_sdk::frame_support::weights::constants::RocksDbWeight>): polkadot_sdk::frame_support::traits::OnRuntimeUpgrade`