Skip to content

Instantly share code, notes, and snippets.

@vivekvpandya
Created November 28, 2022 13:58
Show Gist options
  • Save vivekvpandya/69d09d47d0da83f95a04fe57fbbddf99 to your computer and use it in GitHub Desktop.
Save vivekvpandya/69d09d47d0da83f95a04fe57fbbddf99 to your computer and use it in GitHub Desktop.
Here is my work in progress PR https://github.com/zeitgeistpm/zeitgeist/pull/887
I am getting following errors,
**cargo build --features=try-runtime,parachain**
error[E0599]: the function or associated item `try_runtime_upgrade` exists for struct `frame_executive::Executive<Runtime, sp_runtime::generic::Block<sp_runtime::generic::Header<u64, sp_runtime::traits::BlakeTwo256>, sp_runtime::generic::UncheckedExtrinsic<MultiAddress<sp_runtime::AccountId32, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckEra<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, ChainContext<Runtime>, Runtime, (frame_system::Pallet<Runtime>, pallet_timestamp::Pallet<Runtime>, pallet_randomness_collective_flip::Pallet<Runtime>, pallet_scheduler::Pallet<Runtime>, pallet_preimage::Pallet<Runtime>, pallet_balances::Pallet<Runtime>, pallet_transaction_payment::Pallet<Runtime>, pallet_treasury::Pallet<Runtime>, pallet_vesting::Pallet<Runtime>, pallet_multisig::Pallet<Runtime>, pallet_bounties::Pallet<Runtime>, pallet_democracy::Pallet<Runtime>, pallet_collective::Pallet<Runtime, Instance1>, pallet_membership::Pallet<Runtime, Instance1>, pallet_collective::Pallet<Runtime, Instance2>, pallet_membership::Pallet<Runtime, Instance2>, pallet_collective::Pallet<Runtime, Instance3>, pallet_membership::Pallet<Runtime, Instance3>, pallet_identity::Pallet<Runtime>, pallet_utility::Pallet<Runtime>, pallet_proxy::Pallet<Runtime>, orml_currencies::Pallet<Runtime>, orml_tokens::Pallet<Runtime>, zrml_market_commons::Pallet<Runtime>, zrml_authorized::Pallet<Runtime>, zrml_court::Pallet<Runtime>, zrml_liquidity_mining::Pallet<Runtime>, zrml_rikiddo::Pallet<Runtime, Instance1>, zrml_simple_disputes::Pallet<Runtime>, zrml_swaps::Pallet<Runtime>, zrml_prediction_markets::Pallet<Runtime>, zrml_styx::Pallet<Runtime>, cumulus_pallet_parachain_system::Pallet<Runtime>, parachain_info::Pallet<Runtime>, pallet_parachain_staking::Pallet<Runtime>, pallet_author_inherent::Pallet<Runtime>, pallet_author_slot_filter::Pallet<Runtime>, pallet_author_mapping::Pallet<Runtime>, cumulus_pallet_xcm::Pallet<Runtime>, cumulus_pallet_dmp_queue::Pallet<Runtime>, pallet_xcm::Pallet<Runtime>, cumulus_pallet_xcmp_queue::Pallet<Runtime>, pallet_crowdloan_rewards::Pallet<Runtime>), (UpdateMarketsForAuthorizedMDM<Runtime>, TransformScalarMarketsToFixedPoint<Runtime>)>`, but its trait bounds were not satisfied
--> /home/vivek/dev/zeitgeist/runtime/zeitgeist/src/lib.rs:196:1
|
196 | create_runtime_api!();
| ^^^^^^^^^^^^^^^^^^^^^ function or associated item cannot be called on `frame_executive::Executive<Runtime, sp_runtime::generic::Block<sp_runtime::generic::Header<u64, sp_runtime::traits::BlakeTwo256>, sp_runtime::generic::UncheckedExtrinsic<MultiAddress<sp_runtime::AccountId32, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckEra<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, ChainContext<Runtime>, Runtime, (frame_system::Pallet<Runtime>, pallet_timestamp::Pallet<Runtime>, pallet_randomness_collective_flip::Pallet<Runtime>, pallet_scheduler::Pallet<Runtime>, pallet_preimage::Pallet<Runtime>, pallet_balances::Pallet<Runtime>, pallet_transaction_payment::Pallet<Runtime>, pallet_treasury::Pallet<Runtime>, pallet_vesting::Pallet<Runtime>, pallet_multisig::Pallet<Runtime>, pallet_bounties::Pallet<Runtime>, pallet_democracy::Pallet<Runtime>, pallet_collective::Pallet<Runtime, Instance1>, pallet_membership::Pallet<Runtime, Instance1>, pallet_collective::Pallet<Runtime, Instance2>, pallet_membership::Pallet<Runtime, Instance2>, pallet_collective::Pallet<Runtime, Instance3>, pallet_membership::Pallet<Runtime, Instance3>, pallet_identity::Pallet<Runtime>, pallet_utility::Pallet<Runtime>, pallet_proxy::Pallet<Runtime>, orml_currencies::Pallet<Runtime>, orml_tokens::Pallet<Runtime>, zrml_market_commons::Pallet<Runtime>, zrml_authorized::Pallet<Runtime>, zrml_court::Pallet<Runtime>, zrml_liquidity_mining::Pallet<Runtime>, zrml_rikiddo::Pallet<Runtime, Instance1>, zrml_simple_disputes::Pallet<Runtime>, zrml_swaps::Pallet<Runtime>, zrml_prediction_markets::Pallet<Runtime>, zrml_styx::Pallet<Runtime>, cumulus_pallet_parachain_system::Pallet<Runtime>, parachain_info::Pallet<Runtime>, pallet_parachain_staking::Pallet<Runtime>, pallet_author_inherent::Pallet<Runtime>, pallet_author_slot_filter::Pallet<Runtime>, pallet_author_mapping::Pallet<Runtime>, cumulus_pallet_xcm::Pallet<Runtime>, cumulus_pallet_dmp_queue::Pallet<Runtime>, pallet_xcm::Pallet<Runtime>, cumulus_pallet_xcmp_queue::Pallet<Runtime>, pallet_crowdloan_rewards::Pallet<Runtime>), (UpdateMarketsForAuthorizedMDM<Runtime>, TransformScalarMarketsToFixedPoint<Runtime>)>` due to unsatisfied trait bounds
|
= note: the following trait bounds were not satisfied:
`(frame_system::Pallet<Runtime>, pallet_timestamp::Pallet<Runtime>, pallet_randomness_collective_flip::Pallet<Runtime>, pallet_scheduler::Pallet<Runtime>, pallet_preimage::Pallet<Runtime>, pallet_balances::Pallet<Runtime>, pallet_transaction_payment::Pallet<Runtime>, pallet_treasury::Pallet<Runtime>, pallet_vesting::Pallet<Runtime>, pallet_multisig::Pallet<Runtime>, pallet_bounties::Pallet<Runtime>, pallet_democracy::Pallet<Runtime>, pallet_collective::Pallet<Runtime, Instance1>, pallet_membership::Pallet<Runtime, Instance1>, pallet_collective::Pallet<Runtime, Instance2>, pallet_membership::Pallet<Runtime, Instance2>, pallet_collective::Pallet<Runtime, Instance3>, pallet_membership::Pallet<Runtime, Instance3>, pallet_identity::Pallet<Runtime>, pallet_utility::Pallet<Runtime>, pallet_proxy::Pallet<Runtime>, orml_currencies::Pallet<Runtime>, orml_tokens::Pallet<Runtime>, zrml_market_commons::Pallet<Runtime>, zrml_authorized::Pallet<Runtime>, zrml_court::Pallet<Runtime>, zrml_liquidity_mining::Pallet<Runtime>, zrml_rikiddo::Pallet<Runtime, Instance1>, zrml_simple_disputes::Pallet<Runtime>, zrml_swaps::Pallet<Runtime>, zrml_prediction_markets::Pallet<Runtime>, zrml_styx::Pallet<Runtime>, cumulus_pallet_parachain_system::Pallet<Runtime>, parachain_info::Pallet<Runtime>, pallet_parachain_staking::Pallet<Runtime>, pallet_author_inherent::Pallet<Runtime>, pallet_author_slot_filter::Pallet<Runtime>, pallet_author_mapping::Pallet<Runtime>, cumulus_pallet_xcm::Pallet<Runtime>, cumulus_pallet_dmp_queue::Pallet<Runtime>, pallet_xcm::Pallet<Runtime>, cumulus_pallet_xcmp_queue::Pallet<Runtime>, pallet_crowdloan_rewards::Pallet<Runtime>): TryState<u64>`
= note: this error originates in the macro `create_runtime_api` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `TransformScalarMarketsToFixedPoint<Runtime>: OnFinalize<u64>` is not satisfied
--> /home/vivek/dev/zeitgeist/runtime/battery-station/src/lib.rs:143:1
|
143 | create_runtime_api!();
| ^^^^^^^^^^^^^^^^^^^^^ the trait `OnFinalize<u64>` is not implemented for `TransformScalarMarketsToFixedPoint<Runtime>`
|
= help: the following other types implement trait `OnFinalize<BlockNumber>`:
<() as OnFinalize<BlockNumber>>
<(TupleElement0, TupleElement1) as OnFinalize<BlockNumber>>
<(TupleElement0, TupleElement1, TupleElement2) as OnFinalize<BlockNumber>>
<(TupleElement0, TupleElement1, TupleElement2, TupleElement3) as OnFinalize<BlockNumber>>
<(TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4) as OnFinalize<BlockNumber>>
<(TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5) as OnFinalize<BlockNumber>>
<(TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6) as OnFinalize<BlockNumber>>
<(TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7) as OnFinalize<BlockNumber>>
and 97 others
= note: required for `(UpdateMarketsForAuthorizedMDM<Runtime>, TransformScalarMarketsToFixedPoint<Runtime>)` to implement `OnFinalize<u64>`
= note: required for `frame_executive::Executive<Runtime, sp_runtime::generic::Block<sp_runtime::generic::Header<u64, sp_runtime::traits::BlakeTwo256>, sp_runtime::generic::UncheckedExtrinsic<MultiAddress<sp_runtime::AccountId32, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckEra<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, ChainContext<Runtime>, Runtime, (UpdateMarketsForAuthorizedMDM<Runtime>, TransformScalarMarketsToFixedPoint<Runtime>)>` to implement `ExecuteBlock<sp_runtime::generic::Block<sp_runtime::generic::Header<u64, sp_runtime::traits::BlakeTwo256>, sp_runtime::generic::UncheckedExtrinsic<MultiAddress<sp_runtime::AccountId32, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckEra<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>>`
= note: 1 redundant requirement hidden
= note: required for `BlockExecutor<Runtime, frame_executive::Executive<Runtime, sp_runtime::generic::Block<sp_runtime::generic::Header<u64, sp_runtime::traits::BlakeTwo256>, sp_runtime::generic::UncheckedExtrinsic<MultiAddress<sp_runtime::AccountId32, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckEra<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, ChainContext<Runtime>, Runtime, (UpdateMarketsForAuthorizedMDM<Runtime>, TransformScalarMarketsToFixedPoint<Runtime>)>>` to implement `ExecuteBlock<sp_runtime::generic::Block<sp_runtime::generic::Header<u64, sp_runtime::traits::BlakeTwo256>, sp_runtime::generic::UncheckedExtrinsic<MultiAddress<sp_runtime::AccountId32, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckEra<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>>`
note: required by a bound in `cumulus_pallet_parachain_system::validate_block::implementation::validate_block`
--> /home/vivek/.cargo/git/checkouts/cumulus-a92b011ec2b4c70b/35a3f86/pallets/parachain-system/src/validate_block/implementation.rs:45:5
**cargo build --features=try-runtime**
error[E0599]: the function or associated item `try_execute_block` exists for struct `frame_executive::Executive<Runtime, sp_runtime::generic::Block<sp_runtime::generic::Header<u64, sp_runtime::traits::BlakeTwo256>, sp_runtime::generic::UncheckedExtrinsic<MultiAddress<AccountId32, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckEra<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, ChainContext<Runtime>, Runtime, (UpdateMarketsForAuthorizedMDM<Runtime>, TransformScalarMarketsToFixedPoint<Runtime>)>`, but its trait bounds were not satisfied
--> /home/vivek/dev/zeitgeist/runtime/battery-station/src/lib.rs:143:1
|
143 | create_runtime_api!();
| ^^^^^^^^^^^^^^^^^^^^^ function or associated item cannot be called on `frame_executive::Executive<Runtime, sp_runtime::generic::Block<sp_runtime::generic::Header<u64, sp_runtime::traits::BlakeTwo256>, sp_runtime::generic::UncheckedExtrinsic<MultiAddress<AccountId32, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckEra<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, ChainContext<Runtime>, Runtime, (UpdateMarketsForAuthorizedMDM<Runtime>, TransformScalarMarketsToFixedPoint<Runtime>)>` due to unsatisfied trait bounds
|
= note: the following trait bounds were not satisfied:
`(UpdateMarketsForAuthorizedMDM<Runtime>, TransformScalarMarketsToFixedPoint<Runtime>): OnInitialize<u64>`
`(UpdateMarketsForAuthorizedMDM<Runtime>, TransformScalarMarketsToFixedPoint<Runtime>): OnIdle<u64>`
`(UpdateMarketsForAuthorizedMDM<Runtime>, TransformScalarMarketsToFixedPoint<Runtime>): OnFinalize<u64>`
`(UpdateMarketsForAuthorizedMDM<Runtime>, TransformScalarMarketsToFixedPoint<Runtime>): OffchainWorker<u64>`
`(UpdateMarketsForAuthorizedMDM<Runtime>, TransformScalarMarketsToFixedPoint<Runtime>): TryState<u64>`
= note: this error originates in the macro `create_runtime_api` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: the function or associated item `try_execute_block` exists for struct `frame_executive::Executive<Runtime, sp_runtime::generic::Block<sp_runtime::generic::Header<u64, sp_runtime::traits::BlakeTwo256>, sp_runtime::generic::UncheckedExtrinsic<MultiAddress<AccountId32, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckEra<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, ChainContext<Runtime>, Runtime, (frame_system::Pallet<Runtime>, pallet_timestamp::Pallet<Runtime>, pallet_randomness_collective_flip::Pallet<Runtime>, pallet_scheduler::Pallet<Runtime>, pallet_preimage::Pallet<Runtime>, pallet_balances::Pallet<Runtime>, pallet_transaction_payment::Pallet<Runtime>, pallet_treasury::Pallet<Runtime>, pallet_vesting::Pallet<Runtime>, pallet_multisig::Pallet<Runtime>, pallet_bounties::Pallet<Runtime>, pallet_democracy::Pallet<Runtime>, pallet_collective::Pallet<Runtime, Instance1>, pallet_membership::Pallet<Runtime, Instance1>, pallet_collective::Pallet<Runtime, Instance2>, pallet_membership::Pallet<Runtime, Instance2>, pallet_collective::Pallet<Runtime, Instance3>, pallet_membership::Pallet<Runtime, Instance3>, pallet_identity::Pallet<Runtime>, pallet_utility::Pallet<Runtime>, pallet_proxy::Pallet<Runtime>, orml_currencies::Pallet<Runtime>, orml_tokens::Pallet<Runtime>, zrml_market_commons::Pallet<Runtime>, zrml_authorized::Pallet<Runtime>, zrml_court::Pallet<Runtime>, zrml_liquidity_mining::Pallet<Runtime>, zrml_rikiddo::Pallet<Runtime, Instance1>, zrml_simple_disputes::Pallet<Runtime>, zrml_swaps::Pallet<Runtime>, zrml_prediction_markets::Pallet<Runtime>, zrml_styx::Pallet<Runtime>, pallet_aura::Pallet<Runtime>, pallet_grandpa::Pallet<Runtime>, pallet_sudo::Pallet<Runtime>), (UpdateMarketsForAuthorizedMDM<Runtime>, TransformScalarMarketsToFixedPoint<Runtime>)>`, but its trait bounds were not satisfied
--> /home/vivek/dev/zeitgeist/runtime/battery-station/src/lib.rs:143:1
|
143 | create_runtime_api!();
| ^^^^^^^^^^^^^^^^^^^^^ function or associated item cannot be called on `frame_executive::Executive<Runtime, sp_runtime::generic::Block<sp_runtime::generic::Header<u64, sp_runtime::traits::BlakeTwo256>, sp_runtime::generic::UncheckedExtrinsic<MultiAddress<AccountId32, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckEra<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, ChainContext<Runtime>, Runtime, (frame_system::Pallet<Runtime>, pallet_timestamp::Pallet<Runtime>, pallet_randomness_collective_flip::Pallet<Runtime>, pallet_scheduler::Pallet<Runtime>, pallet_preimage::Pallet<Runtime>, pallet_balances::Pallet<Runtime>, pallet_transaction_payment::Pallet<Runtime>, pallet_treasury::Pallet<Runtime>, pallet_vesting::Pallet<Runtime>, pallet_multisig::Pallet<Runtime>, pallet_bounties::Pallet<Runtime>, pallet_democracy::Pallet<Runtime>, pallet_collective::Pallet<Runtime, Instance1>, pallet_membership::Pallet<Runtime, Instance1>, pallet_collective::Pallet<Runtime, Instance2>, pallet_membership::Pallet<Runtime, Instance2>, pallet_collective::Pallet<Runtime, Instance3>, pallet_membership::Pallet<Runtime, Instance3>, pallet_identity::Pallet<Runtime>, pallet_utility::Pallet<Runtime>, pallet_proxy::Pallet<Runtime>, orml_currencies::Pallet<Runtime>, orml_tokens::Pallet<Runtime>, zrml_market_commons::Pallet<Runtime>, zrml_authorized::Pallet<Runtime>, zrml_court::Pallet<Runtime>, zrml_liquidity_mining::Pallet<Runtime>, zrml_rikiddo::Pallet<Runtime, Instance1>, zrml_simple_disputes::Pallet<Runtime>, zrml_swaps::Pallet<Runtime>, zrml_prediction_markets::Pallet<Runtime>, zrml_styx::Pallet<Runtime>, pallet_aura::Pallet<Runtime>, pallet_grandpa::Pallet<Runtime>, pallet_sudo::Pallet<Runtime>), (UpdateMarketsForAuthorizedMDM<Runtime>, TransformScalarMarketsToFixedPoint<Runtime>)>` due to unsatisfied trait bounds
|
= note: the following trait bounds were not satisfied:
`(frame_system::Pallet<Runtime>, pallet_timestamp::Pallet<Runtime>, pallet_randomness_collective_flip::Pallet<Runtime>, pallet_scheduler::Pallet<Runtime>, pallet_preimage::Pallet<Runtime>, pallet_balances::Pallet<Runtime>, pallet_transaction_payment::Pallet<Runtime>, pallet_treasury::Pallet<Runtime>, pallet_vesting::Pallet<Runtime>, pallet_multisig::Pallet<Runtime>, pallet_bounties::Pallet<Runtime>, pallet_democracy::Pallet<Runtime>, pallet_collective::Pallet<Runtime, Instance1>, pallet_membership::Pallet<Runtime, Instance1>, pallet_collective::Pallet<Runtime, Instance2>, pallet_membership::Pallet<Runtime, Instance2>, pallet_collective::Pallet<Runtime, Instance3>, pallet_membership::Pallet<Runtime, Instance3>, pallet_identity::Pallet<Runtime>, pallet_utility::Pallet<Runtime>, pallet_proxy::Pallet<Runtime>, orml_currencies::Pallet<Runtime>, orml_tokens::Pallet<Runtime>, zrml_market_commons::Pallet<Runtime>, zrml_authorized::Pallet<Runtime>, zrml_court::Pallet<Runtime>, zrml_liquidity_mining::Pallet<Runtime>, zrml_rikiddo::Pallet<Runtime, Instance1>, zrml_simple_disputes::Pallet<Runtime>, zrml_swaps::Pallet<Runtime>, zrml_prediction_markets::Pallet<Runtime>, zrml_styx::Pallet<Runtime>, pallet_aura::Pallet<Runtime>, pallet_grandpa::Pallet<Runtime>, pallet_sudo::Pallet<Runtime>): TryState<u64>`
Kindly help me understand what is missing in my PR?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment