chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -19,14 +19,16 @@
|
||||
//! checks.
|
||||
|
||||
use bp_relayers::ExplicitOrAccountParams;
|
||||
use pezbp_runtime::Teyrchain;
|
||||
use bp_teyrchains::SubmitTeyrchainHeadsInfo;
|
||||
use pezbp_runtime::Teyrchain;
|
||||
use pezpallet_bridge_grandpa::{
|
||||
BridgedBlockNumber, CallSubType as GrandpaCallSubType, SubmitFinalityProofHelper,
|
||||
};
|
||||
use pezpallet_bridge_messages::CallSubType as MessagesCallSubType;
|
||||
use pezpallet_bridge_relayers::Pezpallet as RelayersPallet;
|
||||
use pezpallet_bridge_teyrchains::{CallSubType as TeyrchainsCallSubtype, SubmitTeyrchainHeadsHelper};
|
||||
use pezpallet_bridge_teyrchains::{
|
||||
CallSubType as TeyrchainsCallSubtype, SubmitTeyrchainHeadsHelper,
|
||||
};
|
||||
use pezsp_runtime::{
|
||||
traits::{Get, UniqueSaturatedInto},
|
||||
transaction_validity::{TransactionPriority, TransactionValidity, ValidTransactionBuilder},
|
||||
@@ -220,7 +222,8 @@ where
|
||||
}
|
||||
|
||||
impl<T: pezpallet_bridge_messages::Config<I>, I: 'static>
|
||||
BridgeRuntimeFilterCall<T::AccountId, T::RuntimeCall> for pezpallet_bridge_messages::Pezpallet<T, I>
|
||||
BridgeRuntimeFilterCall<T::AccountId, T::RuntimeCall>
|
||||
for pezpallet_bridge_messages::Pezpallet<T, I>
|
||||
where
|
||||
T::RuntimeCall: MessagesCallSubType<T, I>,
|
||||
{
|
||||
@@ -378,14 +381,13 @@ mod tests {
|
||||
use bp_messages::{InboundLaneData, MessageNonce, OutboundLaneData};
|
||||
use bp_pezkuwi_core::teyrchains::{ParaHeadsProof, ParaId};
|
||||
use bp_relayers::{RewardsAccountOwner, RewardsAccountParams};
|
||||
use pezbp_runtime::HeaderId;
|
||||
use bp_test_utils::{make_default_justification, test_keyring, TEST_GRANDPA_SET_ID};
|
||||
use bp_teyrchains::{BestParaHeadHash, ParaInfo};
|
||||
use codec::{Decode, Encode, MaxEncodedLen};
|
||||
use pezbp_runtime::HeaderId;
|
||||
use pezframe_support::{assert_err, assert_ok, traits::fungible::Mutate};
|
||||
use pezpallet_bridge_grandpa::{Call as GrandpaCall, StoredAuthoritySet};
|
||||
use pezpallet_bridge_teyrchains::Call as TeyrchainsCall;
|
||||
use scale_info::TypeInfo;
|
||||
use pezsp_runtime::{
|
||||
traits::{
|
||||
parameter_types, AsSystemOriginSigner, AsTransactionAuthorizedOrigin, ConstU64,
|
||||
@@ -396,6 +398,7 @@ mod tests {
|
||||
},
|
||||
DispatchError,
|
||||
};
|
||||
use scale_info::TypeInfo;
|
||||
|
||||
parameter_types! {
|
||||
pub MsgProofsRewardsAccount: RewardsAccountParams<TestLaneIdType> = RewardsAccountParams::new(
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
|
||||
use bp_header_pez_chain::ChainWithGrandpa;
|
||||
use bp_messages::{ChainWithMessages, InboundLaneData, MessageNonce};
|
||||
use pezbp_runtime::{AccountIdOf, Chain};
|
||||
use codec::Encode;
|
||||
use pezbp_runtime::{AccountIdOf, Chain};
|
||||
use pezframe_support::{storage::generator::StorageValue, traits::Get, weights::Weight};
|
||||
use pezframe_system::limits;
|
||||
use pezpallet_bridge_messages::{ThisChainOf, WeightInfoExt as _};
|
||||
@@ -56,8 +56,8 @@ macro_rules! assert_chain_types(
|
||||
}
|
||||
);
|
||||
|
||||
/// Macro that ensures that the bridge messages pezpallet is configured properly to bridge using given
|
||||
/// configuration.
|
||||
/// Macro that ensures that the bridge messages pezpallet is configured properly to bridge using
|
||||
/// given configuration.
|
||||
#[macro_export]
|
||||
macro_rules! assert_bridge_messages_pallet_types(
|
||||
(
|
||||
@@ -193,8 +193,8 @@ struct AssertBridgeGrandpaPalletNames<'a> {
|
||||
pub with_bridged_chain_grandpa_pallet_name: &'a str,
|
||||
}
|
||||
|
||||
/// Tests that bridge pezpallet names used in `construct_runtime!()` macro call are matching constants
|
||||
/// from chain primitives crates.
|
||||
/// Tests that bridge pezpallet names used in `construct_runtime!()` macro call are matching
|
||||
/// constants from chain primitives crates.
|
||||
fn assert_bridge_grandpa_pallet_names<R, GI>(params: AssertBridgeGrandpaPalletNames)
|
||||
where
|
||||
R: pezpallet_bridge_grandpa::Config<GI>,
|
||||
@@ -202,13 +202,13 @@ where
|
||||
{
|
||||
// check that the bridge GRANDPA pezpallet has required name
|
||||
assert_eq!(
|
||||
pezpallet_bridge_grandpa::PalletOwner::<R, GI>::storage_value_final_key().to_vec(),
|
||||
pezbp_runtime::storage_value_key(
|
||||
params.with_bridged_chain_grandpa_pallet_name,
|
||||
"PalletOwner",
|
||||
)
|
||||
.0,
|
||||
);
|
||||
pezpallet_bridge_grandpa::PalletOwner::<R, GI>::storage_value_final_key().to_vec(),
|
||||
pezbp_runtime::storage_value_key(
|
||||
params.with_bridged_chain_grandpa_pallet_name,
|
||||
"PalletOwner",
|
||||
)
|
||||
.0,
|
||||
);
|
||||
assert_eq!(
|
||||
pezpallet_bridge_grandpa::PalletOperatingMode::<R, GI>::storage_value_final_key().to_vec(),
|
||||
pezbp_runtime::storage_value_key(
|
||||
@@ -227,8 +227,8 @@ struct AssertBridgeMessagesPalletNames<'a> {
|
||||
pub with_bridged_chain_messages_pallet_name: &'a str,
|
||||
}
|
||||
|
||||
/// Tests that bridge pezpallet names used in `construct_runtime!()` macro call are matching constants
|
||||
/// from chain primitives crates.
|
||||
/// Tests that bridge pezpallet names used in `construct_runtime!()` macro call are matching
|
||||
/// constants from chain primitives crates.
|
||||
fn assert_bridge_messages_pallet_names<R, MI>(params: AssertBridgeMessagesPalletNames)
|
||||
where
|
||||
R: pezpallet_bridge_messages::Config<MI>,
|
||||
@@ -292,7 +292,9 @@ pub fn assert_complete_with_teyrchain_bridge_constants<R, PI, MI>(
|
||||
R: pezframe_system::Config
|
||||
+ pezpallet_bridge_teyrchains::Config<PI>
|
||||
+ pezpallet_bridge_messages::Config<MI>,
|
||||
<R as pezpallet_bridge_teyrchains::BoundedBridgeGrandpaConfig<R::BridgesGrandpaPalletInstance>>::BridgedRelayChain: ChainWithGrandpa,
|
||||
<R as pezpallet_bridge_teyrchains::BoundedBridgeGrandpaConfig<
|
||||
R::BridgesGrandpaPalletInstance,
|
||||
>>::BridgedRelayChain: ChainWithGrandpa,
|
||||
PI: 'static,
|
||||
MI: 'static,
|
||||
{
|
||||
@@ -370,7 +372,9 @@ pub fn check_message_lane_weights<
|
||||
>::encoded_size_hint_u32(
|
||||
this_chain_max_unrewarded_relayers as _
|
||||
);
|
||||
pezpallet_bridge_messages::ensure_able_to_receive_confirmation::<Weights<T, MessagesPalletInstance>>(
|
||||
pezpallet_bridge_messages::ensure_able_to_receive_confirmation::<
|
||||
Weights<T, MessagesPalletInstance>,
|
||||
>(
|
||||
C::max_extrinsic_size(),
|
||||
C::max_extrinsic_weight(),
|
||||
max_incoming_inbound_lane_data_proof_size,
|
||||
|
||||
@@ -31,12 +31,14 @@ where
|
||||
{
|
||||
(begin..=end)
|
||||
.filter_map(|nonce| {
|
||||
let message_data =
|
||||
pezpallet_bridge_messages::Pezpallet::<Runtime, MessagesPalletInstance>::outbound_message_data(lane, nonce)?;
|
||||
let message_data = pezpallet_bridge_messages::Pezpallet::<
|
||||
Runtime,
|
||||
MessagesPalletInstance,
|
||||
>::outbound_message_data(lane, nonce)?;
|
||||
Some(OutboundMessageDetails {
|
||||
nonce,
|
||||
// dispatch message weight is always zero at the source chain, since we're paying for
|
||||
// dispatch at the target chain
|
||||
// dispatch message weight is always zero at the source chain, since we're paying
|
||||
// for dispatch at the target chain
|
||||
dispatch_weight: pezframe_support::weights::Weight::zero(),
|
||||
size: message_data.len() as _,
|
||||
})
|
||||
|
||||
@@ -24,8 +24,8 @@ use bp_messages::{
|
||||
target_chain::FromBridgedChainMessagesProof, MessagePayload,
|
||||
};
|
||||
use bp_pezkuwi_core::teyrchains::ParaHash;
|
||||
use pezbp_runtime::{AccountIdOf, Chain, HashOf, Teyrchain};
|
||||
use codec::Encode;
|
||||
use pezbp_runtime::{AccountIdOf, Chain, HashOf, Teyrchain};
|
||||
use pezframe_support::weights::Weight;
|
||||
use pezpallet_bridge_messages::{
|
||||
benchmarking::{MessageDeliveryProofParams, MessageProofParams},
|
||||
|
||||
@@ -24,9 +24,9 @@ use bp_messages::{
|
||||
ChainWithMessages, HashedLaneId, LaneIdType, MessageNonce,
|
||||
};
|
||||
use bp_relayers::{PayRewardFromAccount, RewardsAccountParams};
|
||||
use pezbp_runtime::{messages::MessageDispatchResult, Chain, ChainId, Teyrchain};
|
||||
use bp_teyrchains::SingleParaStoredHeaderDataBuilder;
|
||||
use codec::Encode;
|
||||
use pezbp_runtime::{messages::MessageDispatchResult, Chain, ChainId, Teyrchain};
|
||||
use pezframe_support::{
|
||||
derive_impl, parameter_types,
|
||||
weights::{ConstantMultiplier, IdentityFee, RuntimeDbWeight, Weight},
|
||||
@@ -197,12 +197,13 @@ impl pezpallet_bridge_messages::Config for TestRuntime {
|
||||
type LaneId = TestLaneIdType;
|
||||
|
||||
type DeliveryPayments = ();
|
||||
type DeliveryConfirmationPayments = pezpallet_bridge_relayers::DeliveryConfirmationPaymentsAdapter<
|
||||
TestRuntime,
|
||||
(),
|
||||
(),
|
||||
ConstU32<100_000>,
|
||||
>;
|
||||
type DeliveryConfirmationPayments =
|
||||
pezpallet_bridge_relayers::DeliveryConfirmationPaymentsAdapter<
|
||||
TestRuntime,
|
||||
(),
|
||||
(),
|
||||
ConstU32<100_000>,
|
||||
>;
|
||||
type OnMessagesDelivered = ();
|
||||
|
||||
type MessageDispatch = DummyMessageDispatch;
|
||||
|
||||
@@ -21,11 +21,13 @@
|
||||
use crate::messages_benchmarking::insert_header_to_grandpa_pallet;
|
||||
|
||||
use bp_pezkuwi_core::teyrchains::{ParaHash, ParaHead, ParaHeadsProof, ParaId};
|
||||
use pezbp_runtime::{grow_storage_value, record_all_trie_keys, Chain, UnverifiedStorageProofParams};
|
||||
use bp_teyrchains::{
|
||||
teyrchain_head_storage_key_at_source, RelayBlockHash, RelayBlockHasher, RelayBlockNumber,
|
||||
};
|
||||
use codec::Encode;
|
||||
use pezbp_runtime::{
|
||||
grow_storage_value, record_all_trie_keys, Chain, UnverifiedStorageProofParams,
|
||||
};
|
||||
use pezframe_support::traits::Get;
|
||||
use pezsp_std::prelude::*;
|
||||
use pezsp_trie::{trie_types::TrieDBMutBuilderV1, LayoutV1, MemoryDB, TrieMut};
|
||||
|
||||
Reference in New Issue
Block a user