Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing issue in integration of this pallet #66

Closed
Aideepakchaudhary opened this issue Feb 29, 2024 · 1 comment
Closed

Facing issue in integration of this pallet #66

Aideepakchaudhary opened this issue Feb 29, 2024 · 1 comment

Comments

@Aideepakchaudhary
Copy link

Aideepakchaudhary commented Feb 29, 2024

I'm getting error while integrating this pallet:

error[E0433]: failed to resolve: could not find `__private` in `frame_support`
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:398:1
      |
  398 | / construct_runtime!(
  399 | |     pub struct Runtime {
  400 | |         System: frame_system,
  401 | |         Timestamp: pallet_timestamp,
  ...   |
  415 | |     }
  416 | | );
      | |_^ could not find `__private` in `frame_support`
      |
      = note: this error originates in the macro `validator_set::tt_default_parts` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)

  error[E0412]: cannot find type `Grandpa` in this scope
    --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:90:17
     |
  90 |             pub grandpa: Grandpa,
     |                          ^^^^^^^ help: a type alias with a similar name exists: `GrandpaId`
     |
    ::: /Users/deepak/.cargo/git/checkouts/substrate-7e08433d4c370a21/948fbd2/primitives/consensus/grandpa/src/lib.rs:57:1
     |
  57 | pub type AuthorityId = app::Public;
     | -------------------- similarly named type alias `GrandpaId` defined here

  error[E0412]: cannot find type `Grandpa` in this scope
    --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:90:17
     |
  90 |             pub grandpa: Grandpa,
     |                          ^^^^^^^
     |
    ::: /Users/deepak/.cargo/git/checkouts/substrate-7e08433d4c370a21/948fbd2/primitives/consensus/grandpa/src/lib.rs:57:1
     |
  57 | pub type AuthorityId = app::Public;
     | -------------------- similarly named type alias `GrandpaId` defined here
     |
  help: a type alias with a similar name exists
     |
  90 |             pub grandpa: GrandpaId,
     |                          ~~~~~~~~~
  help: you might be missing a type parameter
    --> /Users/deepak/.cargo/git/checkouts/substrate-7e08433d4c370a21/948fbd2/primitives/runtime/src/traits.rs:1997:19
     |
  199|         pub struct $name<Grandpa> {
     |                         +++++++++

  error[E0412]: cannot find type `Grandpa` in this scope
    --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:90:17
     |
  90 |             pub grandpa: Grandpa,
     |                          ^^^^^^^
     |
    ::: /Users/deepak/.cargo/git/checkouts/substrate-7e08433d4c370a21/948fbd2/primitives/consensus/grandpa/src/lib.rs:57:1
     |
  57 | pub type AuthorityId = app::Public;
     | -------------------- similarly named type alias `GrandpaId` defined here
     |
  help: a type alias with a similar name exists
     |
  90 |             pub grandpa: GrandpaId,
     |                          ~~~~~~~~~
  help: you might be missing a type parameter
    --> /Users/deepak/.cargo/git/checkouts/substrate-7e08433d4c370a21/948fbd2/primitives/runtime/src/traits.rs:1994:32
     |
  199|             $crate::scale_info::TypeInfo<Grandpa>,
     |                                         +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:164:31
      |
  164 | impl frame_system::Config for Runtime {
      |                               ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:176:21
      |
  176 |     type RuntimeCall = RuntimeCall;
      |                        ^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  176 |     type RuntimeCall = Self::RuntimeCall;
      |                        ++++++

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:186:22
      |
  186 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  186 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `RuntimeOrigin` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:188:23
      |
  188 |     type RuntimeOrigin = RuntimeOrigin;
      |                          ^^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  188 |     type RuntimeOrigin = Self::RuntimeOrigin;
      |                          ++++++

  error[E0412]: cannot find type `PalletInfo` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:198:20
      |
  198 |     type PalletInfo = PalletInfo;
      |                       ^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  198 |     type PalletInfo = Self::PalletInfo;
      |                       ++++++
  help: consider importing this trait
      |
  9   + use frame_support::traits::PalletInfo;
      |

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:214:33
      |
  214 | impl pallet_grandpa::Config for Runtime {
      |                                 ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:215:22
      |
  215 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  215 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:225:35
      |
  225 | impl pallet_timestamp::Config for Runtime {
      |                                   ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:234:29
      |
  234 | impl difficulty::Config for Runtime {
      |                             ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Timestamp` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:235:22
      |
  235 |     type TimeProvider = Timestamp;
      |                         ^^^^^^^^^ not found in this scope
      |
  help: consider importing one of these items
      |
  9   + use sp_api::offchain::Timestamp;
      |
  9   + use sp_core::offchain::Timestamp;
      |
  9   + use sp_runtime::offchain::Timestamp;
      |

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:247:34
      |
  247 | impl pallet_balances::Config for Runtime {
      |                                  ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:254:22
      |
  254 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  254 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `System` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:257:22
      |
  257 |     type AccountStore = System;
      |                         ^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:258:62
      |
  258 |     type WeightInfo = pallet_balances::weights::SubstrateWeight<Runtime>;
      |                                                                 ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  247 | impl<Runtime> pallet_balances::Config for Runtime {
      |     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:269:45
      |
  269 | impl pallet_transaction_payment::Config for Runtime {
      |                                             ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:270:22
      |
  270 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  270 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `Balances` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:271:45
      |
  64  | pub type Balance = u128;
      | ------------------------ similarly named type alias `Balance` defined here
  ...
  271 |     type OnChargeTransaction = CurrencyAdapter<Balances, ()>;
      |                                                ^^^^^^^^
      |
  help: a type alias with a similar name exists
      |
  271 |     type OnChargeTransaction = CurrencyAdapter<Balance, ()>;
      |                                                ~~~~~~~
  help: you might be missing a type parameter
      |
  269 | impl<Balances> pallet_transaction_payment::Config for Runtime {
      |     ++++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:278:30
      |
  278 | impl pallet_sudo::Config for Runtime {
      |                              ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:279:22
      |
  279 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  279 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:280:21
      |
  280 |     type RuntimeCall = RuntimeCall;
      |                        ^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  280 |     type RuntimeCall = Self::RuntimeCall;
      |                        ++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:281:58
      |
  281 |     type WeightInfo = pallet_sudo::weights::SubstrateWeight<Runtime>;
      |                                                             ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  278 | impl<Runtime> pallet_sudo::Config for Runtime {
      |     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:288:32
      |
  288 | impl validator_set::Config for Runtime {
      |                                ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:289:22
      |
  289 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  289 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:300:33
      |
  300 | impl pallet_session::Config for Runtime {
      |                                 ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:301:22
      |
  301 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  301 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:313:34
      |
  313 | impl pallet_template::Config for Runtime {
      |                                  ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:315:22
      |
  315 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  315 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:320:32
      |
  320 | impl pallet_miners::Config for Runtime {
      |                                ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:321:22
      |
  321 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  321 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:325:31
      |
  325 | impl block_author::Config for Runtime {
      |                               ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:339:80
      |
  339 | impl<LocalCall> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |                                                                                ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:341:2
      |
  341 |     RuntimeCall: From<LocalCall>,
      |     ^^^^^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:344:9
      |
  344 |         call: RuntimeCall,
      |               ^^^^^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:349:3
      |
  349 |         RuntimeCall,
      |         ^^^^^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, RuntimeCall> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:363:39
      |
  363 |             frame_system::CheckNonZeroSender::<Runtime>::new(),
      |                                                ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, Runtime> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:364:37
      |
  364 |             frame_system::CheckSpecVersion::<Runtime>::new(),
      |                                              ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, Runtime> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:365:35
      |
  365 |             frame_system::CheckTxVersion::<Runtime>::new(),
      |                                            ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, Runtime> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:366:33
      |
  366 |             frame_system::CheckGenesis::<Runtime>::new(),
      |                                          ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, Runtime> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:367:29
      |
  367 |             frame_system::CheckEra::<Runtime>::from(era),
      |                                      ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, Runtime> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:368:31
      |
  368 |             frame_system::CheckNonce::<Runtime>::from(nonce),
      |                                        ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, Runtime> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:369:32
      |
  369 |             frame_system::CheckWeight::<Runtime>::new(),
      |                                         ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, Runtime> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:370:59
      |
  370 |             pallet_transaction_payment::ChargeTransactionPayment::<Runtime>::from(tip),
      |                                                                    ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, Runtime> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:384:47
      |
  384 | impl frame_system::offchain::SigningTypes for Runtime {
      |                                               ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:389:61
      |
  389 | impl<C> frame_system::offchain::SendTransactionTypes<C> for Runtime
      |                                                             ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:391:2
      |
  391 |     RuntimeCall: From<C>,
      |     ^^^^^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:394:25
      |
  394 |     type OverarchingCall = RuntimeCall;
      |                            ^^^^^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:432:35
      |
  432 |     frame_system::CheckNonZeroSender<Runtime>,
      |                                      ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  431 | pub type SignedExtra<Runtime> = (
      |                     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:433:33
      |
  433 |     frame_system::CheckSpecVersion<Runtime>,
      |                                    ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  431 | pub type SignedExtra<Runtime> = (
      |                     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:434:31
      |
  434 |     frame_system::CheckTxVersion<Runtime>,
      |                                  ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  431 | pub type SignedExtra<Runtime> = (
      |                     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:435:29
      |
  435 |     frame_system::CheckGenesis<Runtime>,
      |                                ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  431 | pub type SignedExtra<Runtime> = (
      |                     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:436:25
      |
  436 |     frame_system::CheckEra<Runtime>,
      |                            ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  431 | pub type SignedExtra<Runtime> = (
      |                     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:437:27
      |
  437 |     frame_system::CheckNonce<Runtime>,
      |                              ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  431 | pub type SignedExtra<Runtime> = (
      |                     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:438:28
      |
  438 |     frame_system::CheckWeight<Runtime>,
      |                               ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  431 | pub type SignedExtra<Runtime> = (
      |                     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:439:55
      |
  439 |     pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
      |                                                          ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  431 | pub type SignedExtra<Runtime> = (
      |                     +++++++++

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:444:39
      |
  444 |     generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
      |                                          ^^^^^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  443 | pub type UncheckedExtrinsic<RuntimeCall> =
      |                            +++++++++++++

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:446:49
      |
  446 | pub type SignedPayload = generic::SignedPayload<RuntimeCall, SignedExtra>;
      |                                                 ^^^^^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  446 | pub type SignedPayload<RuntimeCall> = generic::SignedPayload<RuntimeCall, SignedExtra>;
      |                       +++++++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:449:2
      |
  449 |     Runtime,
      |     ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  448 | pub type Executive<Runtime> = frame_executive::Executive<
      |                   +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:451:29
      |
  451 |     frame_system::ChainContext<Runtime>,
      |                                ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  448 | pub type Executive<Runtime> = frame_executive::Executive<
      |                   +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:452:2
      |
  452 |     Runtime,
      |     ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  448 | pub type Executive<Runtime> = frame_executive::Executive<
      |                   +++++++++

  error[E0412]: cannot find type `AllPalletsWithSystem` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:453:2
      |
  453 |     AllPalletsWithSystem,
      |     ^^^^^^^^^^^^^^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  448 | pub type Executive<AllPalletsWithSystem> = frame_executive::Executive<
      |                   ++++++++++++++++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:473:31
      |
  473 |     impl sp_api::Core<Block> for Runtime {
      |                                  ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:487:47
      |
  487 |     impl runtime_api::StorageQueryApi<Block> for Runtime {
      |                                                  ^^^^^^^ not found in this scope

  error[E0433]: failed to resolve: use of undeclared type `Miners`
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:490:4
      |
  490 |             Miners::get_all_miners()
      |             ^^^^^^ use of undeclared type `Miners`
      |
  help: consider importing this type alias
      |
  9   + use pallet_miners::Miners;
      |

  error[E0433]: failed to resolve: use of undeclared type `Miners`
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:493:4
      |
  493 |             Miners::get_discount_value(miner_id)
      |             ^^^^^^ use of undeclared type `Miners`
      |
  help: consider importing this type alias
      |
  9   + use pallet_miners::Miners;
      |

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:497:35
      |
  497 |     impl sp_api::Metadata<Block> for Runtime {
      |                                      ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:511:49
      |
  511 |     impl sp_block_builder::BlockBuilder<Block> for Runtime {
      |                                                    ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:532:75
      |
  532 |     impl sp_transaction_pool::runtime_api::TaggedTransactionQueue<Block> for Runtime {
      |                                                                              ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:542:49
      |
  542 |     impl sp_offchain::OffchainWorkerApi<Block> for Runtime {
      |                                                    ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:549:42
      |
  549 |     impl sp_session::SessionKeys<Block> for Runtime {
      |                                             ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:562:56
      |
  562 |     impl sp_consensus_pow::DifficultyApi<Block, U256> for Runtime {
      |                                                           ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:571:51
      |
  571 |     impl sp_consensus_grandpa::GrandpaApi<Block> for Runtime {
      |                                                      ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:601:82
      |
  601 |     impl frame_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Nonce> for Runtime {
      |                                                                                     ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:607:93
      |
  607 |     impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi<Block, Balance> for Runtime {
      |                                                                                                ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:628:93
      |
  628 |     impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentCallApi<Block, Balance, RuntimeCall>
      |                                                                                                ^^^^^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  628 |     impl<RuntimeCall> pallet_transaction_payment_rpc_runtime_api::TransactionPaymentCallApi<Block, Balance, RuntimeCall>
      |         +++++++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:629:7
      |
  629 |         for Runtime
      |             ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:632:10
      |
  632 |             call: RuntimeCall,
      |                   ^^^^^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:638:10
      |
  638 |             call: RuntimeCall,
      |                   ^^^^^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:628:93
      |
  628 |     impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentCallApi<Block, Balance, RuntimeCall>
      |                                                                                                ^^^^^^^^^^^ not found in this scope

  error[E0152]: duplicate lang item in crate `sp_io` (which `frame_support` depends on): `panic_impl`.
    |
    = note: the lang item is first defined in crate `sp_io` (which `sp_application_crypto` depends on)
    = note: first definition in `sp_io` loaded from /Users/deepak/Desktop/hybrid-consensus-v0/target/release/wbuild/node-template-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-e0f97b9c4107d16e.rmeta
    = note: second definition in `sp_io` loaded from /Users/deepak/Desktop/hybrid-consexnsus-v0/target/release/wbuild/node-template-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-47f6c6b6be8c1faa.rmeta

  error[E0433]: failed to resolve: use of undeclared type `System`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:356:23
      |
  356 |         let current_block = System::block_number()
      |                             ^^^^^^ use of undeclared type `System`

  error[E0433]: failed to resolve: use of undeclared type `Runtime`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:499:24
      |
  499 |             OpaqueMetadata::new(Runtime::metadata().into())
      |                                 ^^^^^^^ use of undeclared type `Runtime`

  error[E0433]: failed to resolve: use of undeclared type `Runtime`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:503:4
      |
  503 |             Runtime::metadata_at_version(version)
      |             ^^^^^^^ use of undeclared type `Runtime`

  error[E0433]: failed to resolve: use of undeclared type `Runtime`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:507:4
      |
  507 |             Runtime::metadata_versions()
      |             ^^^^^^^ use of undeclared type `Runtime`

  error[E0433]: failed to resolve: use of undeclared type `DifficultyAdjustment`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:565:4
      |
  565 |             DifficultyAdjustment::difficulty()
      |             ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `DifficultyAdjustment`

  error[E0433]: failed to resolve: use of undeclared type `Grandpa`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:573:4
      |
  573 |             Grandpa::grandpa_authorities()
      |             ^^^^^^^
      |             |
      |             use of undeclared type `Grandpa`
      |             help: a type alias with a similar name exists: `GrandpaId`

  error[E0433]: failed to resolve: use of undeclared type `Grandpa`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:577:4
      |
  577 |             Grandpa::current_set_id()
      |             ^^^^^^^
      |             |
      |             use of undeclared type `Grandpa`
      |             help: a type alias with a similar name exists: `GrandpaId`

  error[E0433]: failed to resolve: use of undeclared type `System`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:603:4
      |
  603 |             System::account_nonce(account)
      |             ^^^^^^ use of undeclared type `System`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:612:4
      |
  612 |             TransactionPayment::query_info(uxt, len)
      |             ^^^^^^^^^^^^^^^^^^
      |             |
      |             use of undeclared type `TransactionPayment`
      |             help: a type alias with a similar name exists: `TransactionValidity`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:618:4
      |
  618 |             TransactionPayment::query_fee_details(uxt, len)
      |             ^^^^^^^^^^^^^^^^^^
      |             |
      |             use of undeclared type `TransactionPayment`
      |             help: a type alias with a similar name exists: `TransactionValidity`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:621:4
      |
  621 |             TransactionPayment::weight_to_fee(weight)
      |             ^^^^^^^^^^^^^^^^^^
      |             |
      |             use of undeclared type `TransactionPayment`
      |             help: a type alias with a similar name exists: `TransactionValidity`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:624:4
      |
  624 |             TransactionPayment::length_to_fee(length)
      |             ^^^^^^^^^^^^^^^^^^
      |             |
      |             use of undeclared type `TransactionPayment`
      |             help: a type alias with a similar name exists: `TransactionValidity`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:635:4
      |
  635 |             TransactionPayment::query_call_info(call, len)
      |             ^^^^^^^^^^^^^^^^^^
      |             |
      |             use of undeclared type `TransactionPayment`
      |             help: a type alias with a similar name exists: `TransactionValidity`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:641:4
      |
  641 |             TransactionPayment::query_call_fee_details(call, len)
      |             ^^^^^^^^^^^^^^^^^^
      |             |
      |             use of undeclared type `TransactionPayment`
      |             help: a type alias with a similar name exists: `TransactionValidity`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:644:4
      |
  644 |             TransactionPayment::weight_to_fee(weight)
      |             ^^^^^^^^^^^^^^^^^^
      |             |
      |             use of undeclared type `TransactionPayment`
      |             help: a type alias with a similar name exists: `TransactionValidity`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:647:4
      |
  647 |             TransactionPayment::length_to_fee(length)
      |             ^^^^^^^^^^^^^^^^^^
      |             |
      |             use of undeclared type `TransactionPayment`
      |             help: a type alias with a similar name exists: `TransactionValidity`

  Some errors have detailed explanations: E0152, E0412, E0433.
  For more information about an error, try `rustc --explain E0152`.
  error: could not compile `node-template-runtime` (lib) due to 99 previous errors 

runtime/cargo.toml:

pallet-sudo = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" }
pallet-session = { default-features = false,git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" }
validator-set = {version = "1.0.0",package = "substrate-validator-set",default-features = false, git = "https://github.com/gautamdhameja/substrate-validator-set.git"}
.
.
"validator-set/std",
'pallet-session/std',

runtime/lib.rs

parameter_types! {
	pub const MinAuthorities: u32 = 2;
}

impl validator_set::Config for Runtime {
	type RuntimeEvent = RuntimeEvent;
	type AddRemoveOrigin = EnsureRoot<AccountId>;
	type MinAuthorities = MinAuthorities;
	type WeightInfo = validator_set::weights::SubstrateWeight<Runtime>;
}

parameter_types! {
	pub const Period: u32 = 2 * MINUTES;
	pub const Offset: u32 = 0;
}

impl pallet_session::Config for Runtime {
	type RuntimeEvent = RuntimeEvent;
	type ValidatorId = <Self as frame_system::Config>::AccountId;
	type ValidatorIdOf = validator_set::ValidatorOf<Self>;
	type ShouldEndSession = pallet_session::PeriodicSessions<Period, Offset>;
	type NextSessionRotation = pallet_session::PeriodicSessions<Period, Offset>;
	type SessionManager = ValidatorSet;
	type SessionHandler = <opaque::SessionKeys as OpaqueKeys>::KeyTypeIdProviders;
	type Keys = opaque::SessionKeys;
	type WeightInfo = ();
}
.
.
.
.
Sudo: pallet_sudo,
	ValidatorSet: validator_set,
		Session: pallet_session,
@Aideepakchaudhary
Copy link
Author

Need to match the version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant