fix(ci): resolve all quick-checks failures
- Remove missing cli crate from workspace members - Fix TOML array syntax errors in pvf and benchmarking-cli Cargo.toml - Fix Rust import ordering with cargo fmt - Fix feature propagation with zepter (try-runtime, runtime-benchmarks, std)
This commit is contained in:
@@ -40,10 +40,10 @@ pezsp-io = { workspace = true, default-features = true }
|
||||
rand = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"pezbp-beefy/std",
|
||||
"codec/std",
|
||||
"pezbp-beefy/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system/std",
|
||||
@@ -63,8 +63,8 @@ try-runtime = [
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezbp-beefy/runtime-benchmarks",
|
||||
"pezbp-test-utils/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbp-test-utils/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezpallet-beefy-mmr/runtime-benchmarks",
|
||||
|
||||
@@ -59,15 +59,18 @@ pub type BridgedBlockHash<T, I> = pezbp_runtime::HashOf<BridgedChain<T, I>>;
|
||||
pub type InitializationDataOf<T, I> =
|
||||
InitializationData<BridgedBlockNumber<T, I>, pezbp_beefy::MmrHashOf<BridgedChain<T, I>>>;
|
||||
/// BEEFY commitment hasher, used by configured bridged chain.
|
||||
pub type BridgedBeefyCommitmentHasher<T, I> = pezbp_beefy::BeefyCommitmentHasher<BridgedChain<T, I>>;
|
||||
pub type BridgedBeefyCommitmentHasher<T, I> =
|
||||
pezbp_beefy::BeefyCommitmentHasher<BridgedChain<T, I>>;
|
||||
/// BEEFY validator id, used by configured bridged chain.
|
||||
pub type BridgedBeefyAuthorityId<T, I> = pezbp_beefy::BeefyAuthorityIdOf<BridgedChain<T, I>>;
|
||||
/// BEEFY validator set, used by configured bridged chain.
|
||||
pub type BridgedBeefyAuthoritySet<T, I> = pezbp_beefy::BeefyAuthoritySetOf<BridgedChain<T, I>>;
|
||||
/// BEEFY authority set, used by configured bridged chain.
|
||||
pub type BridgedBeefyAuthoritySetInfo<T, I> = pezbp_beefy::BeefyAuthoritySetInfoOf<BridgedChain<T, I>>;
|
||||
pub type BridgedBeefyAuthoritySetInfo<T, I> =
|
||||
pezbp_beefy::BeefyAuthoritySetInfoOf<BridgedChain<T, I>>;
|
||||
/// BEEFY signed commitment, used by configured bridged chain.
|
||||
pub type BridgedBeefySignedCommitment<T, I> = pezbp_beefy::BeefySignedCommitmentOf<BridgedChain<T, I>>;
|
||||
pub type BridgedBeefySignedCommitment<T, I> =
|
||||
pezbp_beefy::BeefySignedCommitmentOf<BridgedChain<T, I>>;
|
||||
/// MMR hashing algorithm, used by configured bridged chain.
|
||||
pub type BridgedMmrHashing<T, I> = pezbp_beefy::MmrHashingOf<BridgedChain<T, I>>;
|
||||
/// MMR hashing output type of `BridgedMmrHashing<T, I>`.
|
||||
@@ -415,10 +418,10 @@ pub mod pezpallet {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use pezbp_test_utils::generate_owned_bridge_module_tests;
|
||||
use mock::*;
|
||||
use mock_chain::*;
|
||||
use pezbp_runtime::{BasicOperatingMode, OwnedBridgeModuleError};
|
||||
use pezbp_test_utils::generate_owned_bridge_module_tests;
|
||||
use pezframe_support::{assert_noop, assert_ok, traits::Get};
|
||||
use pezsp_consensus_beefy::mmr::BeefyAuthoritySet;
|
||||
use pezsp_runtime::DispatchError;
|
||||
|
||||
@@ -21,8 +21,8 @@ use crate::{
|
||||
BridgedMmrHash, BridgedMmrHashing, BridgedMmrProof,
|
||||
};
|
||||
|
||||
use pezbp_beefy::{BeefyValidatorSignatureOf, ChainWithBeefy, Commitment, MmrDataOrHash};
|
||||
use codec::Encode;
|
||||
use pezbp_beefy::{BeefyValidatorSignatureOf, ChainWithBeefy, Commitment, MmrDataOrHash};
|
||||
use pezbp_runtime::{BasicOperatingMode, Chain, ChainId};
|
||||
use pezframe_support::{construct_runtime, derive_impl, weights::Weight};
|
||||
use pezsp_core::{sr25519::Signature, Pair};
|
||||
|
||||
@@ -26,8 +26,8 @@ use crate::{
|
||||
utils::get_authorities_mmr_root,
|
||||
};
|
||||
|
||||
use pezbp_beefy::{BeefyPayload, Commitment, ValidatorSetId, MMR_ROOT_PAYLOAD_ID};
|
||||
use codec::Encode;
|
||||
use pezbp_beefy::{BeefyPayload, Commitment, ValidatorSetId, MMR_ROOT_PAYLOAD_ID};
|
||||
use pezpallet_mmr::NodeIndex;
|
||||
use pezsp_consensus_beefy::mmr::{BeefyNextAuthoritySet, MmrLeafVersion};
|
||||
use pezsp_core::Pair;
|
||||
|
||||
@@ -3,8 +3,8 @@ use crate::{
|
||||
BridgedBeefyMmrLeaf, BridgedBeefySignedCommitment, BridgedChain, BridgedMmrHash,
|
||||
BridgedMmrHashing, BridgedMmrProof, Config, Error, LOG_TARGET,
|
||||
};
|
||||
use pezbp_beefy::{merkle_root, verify_mmr_leaves_proof, BeefyAuthorityId, MmrDataOrHash};
|
||||
use codec::Encode;
|
||||
use pezbp_beefy::{merkle_root, verify_mmr_leaves_proof, BeefyAuthorityId, MmrDataOrHash};
|
||||
use pezframe_support::ensure;
|
||||
use pezsp_runtime::traits::{Convert, Hash};
|
||||
use pezsp_std::{vec, vec::Vec};
|
||||
|
||||
@@ -40,12 +40,12 @@ pezsp-core = { workspace = true, default-features = true }
|
||||
pezsp-io = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"pezbp-header-pez-chain/std",
|
||||
"pezbp-test-utils/std",
|
||||
"codec/std",
|
||||
"pezbp-header-pez-chain/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbp-test-utils/std",
|
||||
"pezframe-benchmarking/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system/std",
|
||||
@@ -57,9 +57,9 @@ std = [
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezbp-header-pez-chain/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbp-test-utils",
|
||||
"pezbp-test-utils?/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezframe-benchmarking/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
|
||||
@@ -43,11 +43,11 @@
|
||||
use crate::*;
|
||||
|
||||
use pezbp_header_pez_chain::justification::required_justification_precommits;
|
||||
use pezbp_runtime::BasicOperatingMode;
|
||||
use pezbp_test_utils::{
|
||||
accounts, make_justification_for_header, JustificationGeneratorParams, TEST_GRANDPA_ROUND,
|
||||
TEST_GRANDPA_SET_ID,
|
||||
};
|
||||
use pezbp_runtime::BasicOperatingMode;
|
||||
use pezframe_benchmarking::{benchmarks_instance_pallet, whitelisted_caller};
|
||||
use pezframe_system::RawOrigin;
|
||||
use pezsp_consensus_grandpa::AuthorityId;
|
||||
|
||||
@@ -308,13 +308,13 @@ mod tests {
|
||||
BestFinalized, Config, CurrentAuthoritySet, FreeHeadersRemaining, PalletOperatingMode,
|
||||
StoredAuthoritySet, WeightInfo,
|
||||
};
|
||||
use codec::Encode;
|
||||
use pezbp_header_pez_chain::{ChainWithGrandpa, SubmitFinalityProofInfo};
|
||||
use pezbp_runtime::{BasicOperatingMode, HeaderId};
|
||||
use pezbp_test_utils::{
|
||||
make_default_justification, make_justification_for_header, JustificationGeneratorParams,
|
||||
TEST_GRANDPA_SET_ID,
|
||||
};
|
||||
use codec::Encode;
|
||||
use pezbp_runtime::{BasicOperatingMode, HeaderId};
|
||||
use pezframe_support::weights::Weight;
|
||||
use pezsp_runtime::{testing::DigestItem, traits::Header as _, SaturatedConversion};
|
||||
|
||||
|
||||
@@ -838,14 +838,14 @@ mod tests {
|
||||
run_test, test_header, FreeHeadersInterval, RuntimeEvent as TestEvent, RuntimeOrigin,
|
||||
System, TestBridgedChain, TestHeader, TestNumber, TestRuntime, MAX_BRIDGED_AUTHORITIES,
|
||||
};
|
||||
use codec::Encode;
|
||||
use pezbp_header_pez_chain::BridgeGrandpaCall;
|
||||
use pezbp_runtime::BasicOperatingMode;
|
||||
use pezbp_test_utils::{
|
||||
authority_list, generate_owned_bridge_module_tests, make_default_justification,
|
||||
make_justification_for_header, JustificationGeneratorParams, ALICE, BOB,
|
||||
TEST_GRANDPA_SET_ID,
|
||||
};
|
||||
use codec::Encode;
|
||||
use pezbp_runtime::BasicOperatingMode;
|
||||
use pezframe_support::{
|
||||
assert_err, assert_noop, assert_ok,
|
||||
dispatch::{Pays, PostDispatchInfo},
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
|
||||
use crate::{Config, Error};
|
||||
|
||||
use pezbp_header_pez_chain::{AuthoritySet, ChainWithGrandpa};
|
||||
use codec::{Decode, Encode, MaxEncodedLen};
|
||||
use pezbp_header_pez_chain::{AuthoritySet, ChainWithGrandpa};
|
||||
use pezframe_support::{traits::Get, BoundedVec, CloneNoBound, RuntimeDebugNoBound};
|
||||
use pezsp_consensus_grandpa::{AuthorityId, AuthorityList, AuthorityWeight, SetId};
|
||||
use pezsp_std::marker::PhantomData;
|
||||
|
||||
@@ -39,13 +39,13 @@ pezsp-core = { workspace = true }
|
||||
pezsp-io = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezbp-header-pez-chain/std",
|
||||
"pezbp-messages/std",
|
||||
"pezbp-test-utils/std",
|
||||
"codec/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbp-test-utils/std",
|
||||
"pezframe-benchmarking/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system/std",
|
||||
@@ -62,9 +62,9 @@ std = [
|
||||
runtime-benchmarks = [
|
||||
"pezbp-header-pez-chain/runtime-benchmarks",
|
||||
"pezbp-messages/runtime-benchmarks",
|
||||
"pezbp-test-utils/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbp-runtime/test-helpers",
|
||||
"pezbp-test-utils/runtime-benchmarks",
|
||||
"pezframe-benchmarking/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
@@ -81,4 +81,4 @@ try-runtime = [
|
||||
"pezpallet-bridge-grandpa/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
]
|
||||
test-helpers = ["pezbp-runtime/test-helpers", "pezsp-trie"]
|
||||
test-helpers = [ "pezbp-runtime/test-helpers", "pezsp-trie" ]
|
||||
|
||||
@@ -23,13 +23,13 @@ use crate::{
|
||||
InboundLanes, OutboundLanes,
|
||||
};
|
||||
|
||||
use codec::Decode;
|
||||
use pezbp_messages::{
|
||||
source_chain::FromBridgedChainMessagesDeliveryProof,
|
||||
target_chain::FromBridgedChainMessagesProof, ChainWithMessages, DeliveredMessages,
|
||||
InboundLaneData, LaneState, MessageNonce, OutboundLaneData, UnrewardedRelayer,
|
||||
UnrewardedRelayersState,
|
||||
};
|
||||
use codec::Decode;
|
||||
use pezbp_runtime::{AccountIdOf, HashOf, UnverifiedStorageProofParams};
|
||||
use pezframe_benchmarking::{account, v2::*};
|
||||
use pezframe_support::weights::Weight;
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
|
||||
use crate::{BridgedChainOf, Config};
|
||||
|
||||
use codec::{Decode, Encode, EncodeLike, MaxEncodedLen};
|
||||
use pezbp_messages::{
|
||||
target_chain::{DispatchMessage, DispatchMessageData, MessageDispatch},
|
||||
ChainWithMessages, DeliveredMessages, InboundLaneData, LaneState, MessageKey, MessageNonce,
|
||||
OutboundLaneData, ReceptionResult, UnrewardedRelayer,
|
||||
};
|
||||
use codec::{Decode, Encode, EncodeLike, MaxEncodedLen};
|
||||
use pezbp_runtime::AccountIdOf;
|
||||
use pezsp_runtime::RuntimeDebug;
|
||||
use pezsp_std::prelude::PartialEq;
|
||||
|
||||
@@ -20,11 +20,11 @@ use crate::{
|
||||
StoredMessagePayload,
|
||||
};
|
||||
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use pezbp_messages::{
|
||||
target_chain::MessageDispatch, ChainWithMessages, InboundLaneData, LaneState, MessageKey,
|
||||
MessageNonce, OutboundLaneData,
|
||||
};
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use pezbp_runtime::AccountIdOf;
|
||||
use pezframe_support::{ensure, pezsp_runtime::RuntimeDebug, PalletError};
|
||||
use pezsp_std::marker::PhantomData;
|
||||
|
||||
@@ -50,6 +50,7 @@ pub use weights_ext::{
|
||||
EXPECTED_DEFAULT_MESSAGE_LENGTH, EXTRA_STORAGE_PROOF_SIZE,
|
||||
};
|
||||
|
||||
use codec::{Decode, Encode};
|
||||
use pezbp_header_pez_chain::HeaderChain;
|
||||
use pezbp_messages::{
|
||||
source_chain::{
|
||||
@@ -64,7 +65,6 @@ use pezbp_messages::{
|
||||
MessageNonce, MessagePayload, MessagesOperatingMode, OutboundLaneData, OutboundMessageDetails,
|
||||
UnrewardedRelayersState, VerificationError,
|
||||
};
|
||||
use codec::{Decode, Encode};
|
||||
use pezbp_runtime::{
|
||||
AccountIdOf, BasicOperatingMode, HashOf, OwnedBridgeModule, PreComputedSize, RangeInclusiveExt,
|
||||
Size,
|
||||
|
||||
@@ -30,8 +30,8 @@ pub const STORAGE_VERSION: StorageVersion = StorageVersion::new(1);
|
||||
pub mod v0 {
|
||||
use super::Config;
|
||||
use crate::BridgedChainOf;
|
||||
use pezbp_messages::{MessageNonce, UnrewardedRelayer};
|
||||
use codec::{Decode, Encode};
|
||||
use pezbp_messages::{MessageNonce, UnrewardedRelayer};
|
||||
use pezbp_runtime::AccountIdOf;
|
||||
use pezsp_std::collections::vec_deque::VecDeque;
|
||||
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
|
||||
use crate::{Config, LOG_TARGET};
|
||||
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode};
|
||||
use pezbp_messages::{
|
||||
ChainWithMessages, DeliveredMessages, LaneState, MessageNonce, OutboundLaneData,
|
||||
UnrewardedRelayer,
|
||||
};
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode};
|
||||
use pezframe_support::{traits::Get, BoundedVec, PalletError};
|
||||
use pezsp_runtime::RuntimeDebug;
|
||||
use pezsp_std::{collections::vec_deque::VecDeque, marker::PhantomData, ops::RangeInclusive};
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
use crate::{BridgedChainOf, BridgedHeaderChainOf, Config};
|
||||
|
||||
use codec::Decode;
|
||||
use pezbp_header_pez_chain::{HeaderChain, HeaderChainError};
|
||||
use pezbp_messages::{
|
||||
source_chain::FromBridgedChainMessagesDeliveryProof,
|
||||
@@ -25,7 +26,6 @@ use pezbp_messages::{
|
||||
ChainWithMessages, InboundLaneData, Message, MessageKey, MessageNonce, MessagePayload,
|
||||
OutboundLaneData, VerificationError,
|
||||
};
|
||||
use codec::Decode;
|
||||
use pezbp_runtime::{
|
||||
HashOf, HasherOf, RangeInclusiveExt, RawStorageProof, StorageProofChecker, StorageProofError,
|
||||
};
|
||||
@@ -216,9 +216,9 @@ mod tests {
|
||||
mock::*,
|
||||
};
|
||||
|
||||
use codec::Encode;
|
||||
use pezbp_header_pez_chain::{HeaderChainError, StoredHeaderDataBuilder};
|
||||
use pezbp_messages::LaneState;
|
||||
use codec::Encode;
|
||||
use pezbp_runtime::{HeaderId, StorageProofError};
|
||||
use pezsp_runtime::traits::Header;
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
|
||||
//! Helpers for generating message storage proofs, that are used by tests and by benchmarks.
|
||||
|
||||
use codec::Encode;
|
||||
use pezbp_messages::{
|
||||
storage_keys, ChainWithMessages, InboundLaneData, MessageKey, MessageNonce, MessagePayload,
|
||||
OutboundLaneData,
|
||||
};
|
||||
use codec::Encode;
|
||||
use pezbp_runtime::{
|
||||
grow_storage_value, record_all_trie_keys, AccountIdOf, Chain, HashOf, HasherOf,
|
||||
RawStorageProof, UnverifiedStorageProofParams,
|
||||
|
||||
@@ -25,6 +25,7 @@ use crate::{
|
||||
Config, StoredMessagePayload,
|
||||
};
|
||||
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode};
|
||||
use pezbp_header_pez_chain::{ChainWithGrandpa, StoredHeaderData};
|
||||
use pezbp_messages::{
|
||||
calc_relayers_rewards,
|
||||
@@ -39,7 +40,6 @@ use pezbp_messages::{
|
||||
Message, MessageKey, MessageNonce, OutboundLaneData, UnrewardedRelayer,
|
||||
UnrewardedRelayersState,
|
||||
};
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode};
|
||||
use pezbp_runtime::{
|
||||
messages::MessageDispatchResult, Chain, ChainId, Size, UnverifiedStorageProofParams,
|
||||
};
|
||||
|
||||
@@ -26,6 +26,7 @@ use crate::{
|
||||
PalletOperatingMode, PalletOwner, Pezpallet, StoredInboundLaneData,
|
||||
};
|
||||
|
||||
use codec::Encode;
|
||||
use pezbp_messages::{
|
||||
source_chain::{FromBridgedChainMessagesDeliveryProof, MessagesBridge},
|
||||
target_chain::{FromBridgedChainMessagesProof, MessageDispatch},
|
||||
@@ -34,9 +35,8 @@ use pezbp_messages::{
|
||||
OutboundLaneData, OutboundMessageDetails, UnrewardedRelayer, UnrewardedRelayersState,
|
||||
VerificationError,
|
||||
};
|
||||
use pezbp_test_utils::generate_owned_bridge_module_tests;
|
||||
use codec::Encode;
|
||||
use pezbp_runtime::{BasicOperatingMode, PreComputedSize, RangeInclusiveExt, Size};
|
||||
use pezbp_test_utils::generate_owned_bridge_module_tests;
|
||||
use pezframe_support::{
|
||||
assert_err, assert_noop, assert_ok,
|
||||
dispatch::Pays,
|
||||
|
||||
@@ -44,16 +44,16 @@ pezsp-core = { workspace = true }
|
||||
pezsp-io = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezbp-header-pez-chain/std",
|
||||
"pezbp-messages/std",
|
||||
"pezbp-pezkuwi-core/std",
|
||||
"pezbp-relayers/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbp-test-utils/std",
|
||||
"pezbp-teyrchains/std",
|
||||
"codec/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezframe-benchmarking/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system/std",
|
||||
@@ -74,9 +74,9 @@ runtime-benchmarks = [
|
||||
"pezbp-messages/runtime-benchmarks",
|
||||
"pezbp-pezkuwi-core/runtime-benchmarks",
|
||||
"pezbp-relayers/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbp-test-utils/runtime-benchmarks",
|
||||
"pezbp-teyrchains/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezframe-benchmarking/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
|
||||
@@ -21,8 +21,8 @@ use crate::{
|
||||
extension::verify_messages_call_succeeded, Config as BridgeRelayersConfig, LOG_TARGET,
|
||||
};
|
||||
|
||||
use pezbp_relayers::{BatchCallUnpacker, ExtensionCallData, ExtensionCallInfo, ExtensionConfig};
|
||||
use core::marker::PhantomData;
|
||||
use pezbp_relayers::{BatchCallUnpacker, ExtensionCallData, ExtensionCallInfo, ExtensionConfig};
|
||||
use pezbp_runtime::{Chain, StaticStrProvider};
|
||||
use pezframe_support::dispatch::{DispatchInfo, PostDispatchInfo};
|
||||
use pezframe_system::Config as SystemConfig;
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
|
||||
use crate::{extension::verify_messages_call_succeeded, Config as BridgeRelayersConfig};
|
||||
|
||||
use pezbp_relayers::{ExtensionCallData, ExtensionCallInfo, ExtensionConfig};
|
||||
use core::marker::PhantomData;
|
||||
use pezbp_relayers::{ExtensionCallData, ExtensionCallInfo, ExtensionConfig};
|
||||
use pezbp_runtime::StaticStrProvider;
|
||||
use pezframe_support::dispatch::{DispatchInfo, PostDispatchInfo};
|
||||
use pezpallet_bridge_messages::{
|
||||
|
||||
@@ -24,13 +24,13 @@
|
||||
|
||||
use crate::{Config as RelayersConfig, Pezpallet as RelayersPallet, WeightInfoExt, LOG_TARGET};
|
||||
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode};
|
||||
use core::{fmt::Debug, marker::PhantomData};
|
||||
use pezbp_messages::{ChainWithMessages, MessageNonce};
|
||||
use pezbp_relayers::{
|
||||
ExplicitOrAccountParams, ExtensionCallData, ExtensionCallInfo, ExtensionConfig,
|
||||
RewardsAccountOwner, RewardsAccountParams,
|
||||
};
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode};
|
||||
use core::{fmt::Debug, marker::PhantomData};
|
||||
use pezbp_runtime::{Chain, RangeInclusiveExt, StaticStrProvider};
|
||||
use pezframe_support::{
|
||||
dispatch::{DispatchInfo, PostDispatchInfo},
|
||||
@@ -86,7 +86,8 @@ impl<AccountId, RemoteGrandpaChainBlockNumber: Debug, LaneId: Clone + Copy + Deb
|
||||
#[cfg(test)]
|
||||
pub fn submit_finality_proof_info_mut(
|
||||
&mut self,
|
||||
) -> Option<&mut pezbp_header_pez_chain::SubmitFinalityProofInfo<RemoteGrandpaChainBlockNumber>> {
|
||||
) -> Option<&mut pezbp_header_pez_chain::SubmitFinalityProofInfo<RemoteGrandpaChainBlockNumber>>
|
||||
{
|
||||
match self.call_info {
|
||||
ExtensionCallInfo::AllFinalityAndMsgs(ref mut info, _, _) => Some(info),
|
||||
ExtensionCallInfo::RelayFinalityAndMsgs(ref mut info, _) => Some(info),
|
||||
@@ -465,9 +466,9 @@ mod tests {
|
||||
};
|
||||
use pezbp_pezkuwi_core::teyrchains::{ParaHeadsProof, ParaId};
|
||||
use pezbp_relayers::RuntimeWithUtilityPallet;
|
||||
use pezbp_runtime::{BasicOperatingMode, HeaderId, Teyrchain};
|
||||
use pezbp_test_utils::{make_default_justification, test_keyring, TEST_GRANDPA_SET_ID};
|
||||
use pezbp_teyrchains::{BestParaHeadHash, ParaInfo, SubmitTeyrchainHeadsInfo};
|
||||
use pezbp_runtime::{BasicOperatingMode, HeaderId, Teyrchain};
|
||||
use pezframe_support::{
|
||||
__private::pezsp_tracing,
|
||||
assert_storage_noop, parameter_types,
|
||||
|
||||
@@ -24,8 +24,8 @@ use crate::{
|
||||
Config as BridgeRelayersConfig, LOG_TARGET,
|
||||
};
|
||||
|
||||
use pezbp_relayers::{BatchCallUnpacker, ExtensionCallData, ExtensionCallInfo, ExtensionConfig};
|
||||
use core::marker::PhantomData;
|
||||
use pezbp_relayers::{BatchCallUnpacker, ExtensionCallData, ExtensionCallInfo, ExtensionConfig};
|
||||
use pezbp_runtime::{StaticStrProvider, Teyrchain};
|
||||
use pezframe_support::dispatch::{DispatchInfo, PostDispatchInfo};
|
||||
use pezframe_system::Config as SystemConfig;
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
use core::marker::PhantomData;
|
||||
pub use pezbp_relayers::RewardLedger;
|
||||
use pezbp_relayers::{PaymentProcedure, Registration, RelayerRewardsKeyProvider, StakeAndSlash};
|
||||
use core::marker::PhantomData;
|
||||
use pezbp_runtime::StorageDoubleMapKeyProvider;
|
||||
use pezframe_support::{fail, traits::tokens::Balance};
|
||||
use pezsp_arithmetic::traits::{AtLeast32BitUnsigned, Zero};
|
||||
@@ -637,7 +637,8 @@ mod tests {
|
||||
*b"test",
|
||||
RewardsAccountOwner::ThisChain,
|
||||
);
|
||||
let slash_destination = pezbp_relayers::ExplicitOrAccountParams::Params(slash_destination);
|
||||
let slash_destination =
|
||||
pezbp_relayers::ExplicitOrAccountParams::Params(slash_destination);
|
||||
Pezpallet::<TestRuntime>::slash_and_deregister(®ISTER_RELAYER, slash_destination);
|
||||
// check if event emitted
|
||||
assert_eq!(
|
||||
|
||||
@@ -29,9 +29,9 @@ pub const STORAGE_VERSION: StorageVersion = StorageVersion::new(2);
|
||||
/// (used with v1 migration).
|
||||
pub mod v0 {
|
||||
use crate::{Config, Pezpallet};
|
||||
use pezbp_relayers::RewardsAccountOwner;
|
||||
use codec::{Codec, Decode, Encode, EncodeLike, MaxEncodedLen};
|
||||
use core::marker::PhantomData;
|
||||
use pezbp_relayers::RewardsAccountOwner;
|
||||
use pezbp_runtime::{ChainId, StorageDoubleMapKeyProvider};
|
||||
use pezframe_support::{pezpallet_prelude::OptionQuery, Blake2_128Concat, Identity};
|
||||
use pezsp_runtime::traits::AccountIdConversion;
|
||||
@@ -120,10 +120,10 @@ pub mod v0 {
|
||||
pub mod v1 {
|
||||
use super::*;
|
||||
use crate::{Config, Pezpallet};
|
||||
use pezbp_messages::LaneIdType;
|
||||
use pezbp_relayers::RewardsAccountParams;
|
||||
use codec::{Codec, EncodeLike};
|
||||
use core::marker::PhantomData;
|
||||
use pezbp_messages::LaneIdType;
|
||||
use pezbp_relayers::RewardsAccountParams;
|
||||
use pezbp_runtime::StorageDoubleMapKeyProvider;
|
||||
use pezframe_support::{
|
||||
pezpallet_prelude::OptionQuery, traits::UncheckedOnRuntimeUpgrade, Blake2_128Concat,
|
||||
@@ -329,9 +329,9 @@ pub mod v2 {
|
||||
#[cfg(feature = "try-runtime")]
|
||||
use crate::RelayerRewards;
|
||||
use crate::{Config, Pezpallet};
|
||||
use core::marker::PhantomData;
|
||||
use pezbp_messages::LaneIdType;
|
||||
use pezbp_relayers::RewardsAccountParams;
|
||||
use core::marker::PhantomData;
|
||||
use pezframe_support::traits::UncheckedOnRuntimeUpgrade;
|
||||
|
||||
/// Migrates the pezpallet storage to v2.
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
use crate as pezpallet_bridge_relayers;
|
||||
|
||||
use codec::Encode;
|
||||
use pezbp_header_pez_chain::ChainWithGrandpa;
|
||||
use pezbp_messages::{
|
||||
target_chain::{DispatchMessage, MessageDispatch},
|
||||
@@ -26,9 +27,8 @@ use pezbp_messages::{
|
||||
use pezbp_relayers::{
|
||||
PayRewardFromAccount, PaymentProcedure, RewardsAccountOwner, RewardsAccountParams,
|
||||
};
|
||||
use pezbp_teyrchains::SingleParaStoredHeaderDataBuilder;
|
||||
use codec::Encode;
|
||||
use pezbp_runtime::{messages::MessageDispatchResult, Chain, ChainId, Teyrchain};
|
||||
use pezbp_teyrchains::SingleParaStoredHeaderDataBuilder;
|
||||
use pezframe_support::{
|
||||
derive_impl, parameter_types,
|
||||
traits::fungible::Mutate,
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
use crate::{Config, Pezpallet};
|
||||
|
||||
use alloc::collections::vec_deque::VecDeque;
|
||||
use core::{marker::PhantomData, ops::RangeInclusive};
|
||||
use pezbp_messages::{
|
||||
source_chain::{DeliveryConfirmationPayments, RelayersRewards},
|
||||
MessageNonce,
|
||||
};
|
||||
pub use pezbp_relayers::PayRewardFromAccount;
|
||||
use pezbp_relayers::{RewardsAccountOwner, RewardsAccountParams};
|
||||
use core::{marker::PhantomData, ops::RangeInclusive};
|
||||
use pezbp_runtime::Chain;
|
||||
use pezframe_support::{pezsp_runtime::SaturatedConversion, traits::Get};
|
||||
use pezpallet_bridge_messages::LaneIdOf;
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
//! Code that allows `NamedReservableCurrency` to be used as a `StakeAndSlash`
|
||||
//! mechanism of the relayers pezpallet.
|
||||
|
||||
use pezbp_relayers::StakeAndSlash;
|
||||
use codec::Codec;
|
||||
use core::{fmt::Debug, marker::PhantomData};
|
||||
use pezbp_relayers::StakeAndSlash;
|
||||
use pezframe_support::traits::{tokens::BalanceStatus, NamedReservableCurrency};
|
||||
use pezsp_runtime::{traits::Get, DispatchError, DispatchResult};
|
||||
|
||||
|
||||
@@ -38,13 +38,13 @@ pezsp-core = { workspace = true, default-features = true }
|
||||
pezsp-io = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezbp-header-pez-chain/std",
|
||||
"pezbp-pezkuwi-core/std",
|
||||
"pezbp-teyrchains/std",
|
||||
"codec/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbp-teyrchains/std",
|
||||
"pezframe-benchmarking/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system/std",
|
||||
@@ -57,9 +57,9 @@ std = [
|
||||
runtime-benchmarks = [
|
||||
"pezbp-header-pez-chain/runtime-benchmarks",
|
||||
"pezbp-pezkuwi-core/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbp-test-utils/runtime-benchmarks",
|
||||
"pezbp-teyrchains/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezframe-benchmarking/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
use crate::{Config, GrandpaPalletOf, Pezpallet, RelayBlockNumber};
|
||||
use pezbp_header_pez_chain::HeaderChain;
|
||||
use pezbp_teyrchains::{BestParaHeadHash, SubmitTeyrchainHeadsInfo};
|
||||
use pezbp_runtime::{HeaderId, OwnedBridgeModule};
|
||||
use pezbp_teyrchains::{BestParaHeadHash, SubmitTeyrchainHeadsInfo};
|
||||
use pezframe_support::{
|
||||
dispatch::CallableCallFor,
|
||||
traits::{Get, IsSubType},
|
||||
@@ -261,8 +261,8 @@ mod tests {
|
||||
};
|
||||
use pezbp_header_pez_chain::StoredHeaderData;
|
||||
use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaHeadsProof, ParaId};
|
||||
use pezbp_teyrchains::BestParaHeadHash;
|
||||
use pezbp_runtime::BasicOperatingMode;
|
||||
use pezbp_teyrchains::BestParaHeadHash;
|
||||
|
||||
fn validate_submit_teyrchain_heads(
|
||||
num: RelayBlockNumber,
|
||||
|
||||
@@ -29,22 +29,22 @@ pub use weights_ext::WeightInfoExt;
|
||||
|
||||
use pezbp_header_pez_chain::{HeaderChain, HeaderChainError};
|
||||
use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaHead, ParaHeadsProof, ParaId};
|
||||
use pezbp_runtime::{Chain, HashOf, HeaderId, HeaderIdOf, Teyrchain};
|
||||
use pezbp_teyrchains::{
|
||||
ParaInfo, ParaStoredHeaderData, RelayBlockHash, RelayBlockHasher, RelayBlockNumber,
|
||||
SubmitTeyrchainHeadsInfo,
|
||||
};
|
||||
use pezbp_runtime::{Chain, HashOf, HeaderId, HeaderIdOf, Teyrchain};
|
||||
use pezframe_support::{dispatch::PostDispatchInfo, DefaultNoBound};
|
||||
use pezpallet_bridge_grandpa::SubmitFinalityProofHelper;
|
||||
use pezsp_std::{marker::PhantomData, vec::Vec};
|
||||
use proofs::{StorageProofAdapter, TeyrchainsStorageProofAdapter};
|
||||
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
use pezbp_teyrchains::ParaStoredHeaderDataBuilder;
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
use codec::Encode;
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
use pezbp_runtime::HeaderOf;
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
use pezbp_teyrchains::ParaStoredHeaderDataBuilder;
|
||||
|
||||
// Re-export in crate namespace for `construct_runtime!`.
|
||||
pub use call_ext::*;
|
||||
@@ -75,14 +75,14 @@ struct UpdateTeyrchainHeadArtifacts {
|
||||
#[pezframe_support::pezpallet]
|
||||
pub mod pezpallet {
|
||||
use super::*;
|
||||
use pezbp_teyrchains::{
|
||||
BestParaHeadHash, ImportedParaHeadsKeyProvider, OnNewHead, ParaStoredHeaderDataBuilder,
|
||||
ParasInfoKeyProvider,
|
||||
};
|
||||
use pezbp_runtime::{
|
||||
BasicOperatingMode, BoundedStorageValue, OwnedBridgeModule, StorageDoubleMapKeyProvider,
|
||||
StorageMapKeyProvider,
|
||||
};
|
||||
use pezbp_teyrchains::{
|
||||
BestParaHeadHash, ImportedParaHeadsKeyProvider, OnNewHead, ParaStoredHeaderDataBuilder,
|
||||
ParasInfoKeyProvider,
|
||||
};
|
||||
use pezframe_support::pezpallet_prelude::*;
|
||||
use pezframe_system::pezpallet_prelude::*;
|
||||
|
||||
@@ -842,11 +842,15 @@ pub(crate) mod tests {
|
||||
RegularTeyrchainHasher, RegularTeyrchainHeader, RelayBlockHeader,
|
||||
RuntimeEvent as TestEvent, RuntimeOrigin, TestRuntime, UNTRACKED_TEYRCHAIN_ID,
|
||||
};
|
||||
use pezbp_test_utils::prepare_teyrchain_heads_proof;
|
||||
use codec::Encode;
|
||||
use pezbp_test_utils::prepare_teyrchain_heads_proof;
|
||||
|
||||
use pezbp_header_pez_chain::{justification::GrandpaJustification, StoredHeaderGrandpaInfo};
|
||||
use pezbp_pezkuwi_core::teyrchains::ParaHead;
|
||||
use pezbp_runtime::{
|
||||
BasicOperatingMode, OwnedBridgeModuleError, StorageDoubleMapKeyProvider,
|
||||
StorageMapKeyProvider, StorageProofError,
|
||||
};
|
||||
use pezbp_test_utils::{
|
||||
authority_list, generate_owned_bridge_module_tests, make_default_justification,
|
||||
TEST_GRANDPA_SET_ID,
|
||||
@@ -854,10 +858,6 @@ pub(crate) mod tests {
|
||||
use pezbp_teyrchains::{
|
||||
BestParaHeadHash, BridgeTeyrchainCall, ImportedParaHeadsKeyProvider, ParasInfoKeyProvider,
|
||||
};
|
||||
use pezbp_runtime::{
|
||||
BasicOperatingMode, OwnedBridgeModuleError, StorageDoubleMapKeyProvider,
|
||||
StorageMapKeyProvider, StorageProofError,
|
||||
};
|
||||
use pezframe_support::{
|
||||
assert_noop, assert_ok,
|
||||
dispatch::DispatchResultWithPostInfo,
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
//! Tools for teyrchain head proof verification.
|
||||
|
||||
use crate::{Config, GrandpaPalletOf, RelayBlockHash, RelayBlockHasher};
|
||||
use codec::Decode;
|
||||
use pezbp_header_pez_chain::{HeaderChain, HeaderChainError};
|
||||
use pezbp_pezkuwi_core::teyrchains::{ParaHead, ParaId};
|
||||
use pezbp_teyrchains::teyrchain_head_storage_key_at_source;
|
||||
use codec::Decode;
|
||||
use pezbp_runtime::{RawStorageProof, StorageProofChecker, StorageProofError};
|
||||
use pezbp_teyrchains::teyrchain_head_storage_key_at_source;
|
||||
use pezframe_support::traits::Get;
|
||||
|
||||
/// Abstraction over storage proof manipulation, hiding implementation details of actual storage
|
||||
|
||||
@@ -37,10 +37,10 @@ xcm-builder = { workspace = true }
|
||||
pezsp-io = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"pezbp-xcm-bridge-hub-router/std",
|
||||
"codec/std",
|
||||
"pezbp-xcm-bridge-hub-router/std",
|
||||
"pezframe-benchmarking/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system/std",
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
use codec::Encode;
|
||||
use pezbp_xcm_bridge_hub_router::MINIMAL_DELIVERY_FEE_FACTOR;
|
||||
pub use pezbp_xcm_bridge_hub_router::{BridgeState, XcmChannelStatusProvider};
|
||||
use codec::Encode;
|
||||
use pezframe_support::traits::Get;
|
||||
use pezkuwi_runtime_teyrchains::FeeTracker;
|
||||
use pezsp_core::H256;
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
|
||||
use crate as pezpallet_xcm_bridge_hub_router;
|
||||
|
||||
use pezbp_xcm_bridge_hub_router::XcmChannelStatusProvider;
|
||||
use codec::Encode;
|
||||
use pezbp_xcm_bridge_hub_router::XcmChannelStatusProvider;
|
||||
use pezframe_support::{
|
||||
construct_runtime, derive_impl, parameter_types,
|
||||
traits::{Contains, Equals},
|
||||
|
||||
@@ -44,14 +44,14 @@ pezpallet-xcm-bridge-hub-router = { workspace = true }
|
||||
pezsp-io = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezbp-header-pez-chain/std",
|
||||
"pezbp-messages/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbp-xcm-bridge-hub-router/std",
|
||||
"pezbp-xcm-bridge-hub/std",
|
||||
"codec/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system/std",
|
||||
"pezkuwi-teyrchain-primitives/std",
|
||||
@@ -71,9 +71,9 @@ std = [
|
||||
runtime-benchmarks = [
|
||||
"pezbp-header-pez-chain/runtime-benchmarks",
|
||||
"pezbp-messages/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbp-xcm-bridge-hub-router/runtime-benchmarks",
|
||||
"pezbp-xcm-bridge-hub/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
|
||||
|
||||
@@ -23,10 +23,10 @@
|
||||
|
||||
use crate::{Config, Pezpallet, LOG_TARGET};
|
||||
|
||||
use pezbp_messages::target_chain::{DispatchMessage, MessageDispatch};
|
||||
use pezbp_xcm_bridge_hub::{LocalXcmChannelManager, XcmAsPlainPayload};
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode};
|
||||
use pezbp_messages::target_chain::{DispatchMessage, MessageDispatch};
|
||||
use pezbp_runtime::messages::MessageDispatchResult;
|
||||
use pezbp_xcm_bridge_hub::{LocalXcmChannelManager, XcmAsPlainPayload};
|
||||
use pezframe_support::{weights::Weight, CloneNoBound, EqNoBound, PartialEqNoBound};
|
||||
use pezpallet_bridge_messages::{Config as BridgeMessagesConfig, WeightInfoExt};
|
||||
use pezsp_runtime::SaturatedConversion;
|
||||
|
||||
@@ -371,8 +371,8 @@ mod tests {
|
||||
use super::*;
|
||||
use crate::{mock::*, Bridges, LaneToBridge, LanesManagerOf};
|
||||
|
||||
use pezbp_xcm_bridge_hub::{Bridge, BridgeLocations, BridgeState};
|
||||
use pezbp_runtime::RangeInclusiveExt;
|
||||
use pezbp_xcm_bridge_hub::{Bridge, BridgeLocations, BridgeState};
|
||||
use pezframe_support::{assert_ok, traits::EnsureOrigin};
|
||||
use pezpallet_bridge_messages::InboundLaneStorage;
|
||||
use xcm_builder::{NetworkExportTable, UnpaidRemoteExporter};
|
||||
|
||||
@@ -144,11 +144,11 @@
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
use pezbp_messages::{LaneState, MessageNonce};
|
||||
use pezbp_runtime::{AccountIdOf, BalanceOf, RangeInclusiveExt};
|
||||
use pezbp_xcm_bridge_hub::BridgeLocationsError;
|
||||
pub use pezbp_xcm_bridge_hub::{
|
||||
Bridge, BridgeId, BridgeLocations, BridgeState, LocalXcmChannelManager,
|
||||
};
|
||||
use pezbp_runtime::{AccountIdOf, BalanceOf, RangeInclusiveExt};
|
||||
use pezframe_support::{traits::fungible::MutateHold, DefaultNoBound};
|
||||
use pezframe_system::Config as SystemConfig;
|
||||
use pezpallet_bridge_messages::{Config as BridgeMessagesConfig, LanesManagerError};
|
||||
@@ -158,9 +158,9 @@ use xcm::prelude::*;
|
||||
use xcm_builder::DispatchBlob;
|
||||
use xcm_executor::traits::ConvertLocation;
|
||||
|
||||
pub use pezbp_xcm_bridge_hub::XcmAsPlainPayload;
|
||||
pub use dispatcher::XcmBlobMessageDispatchResult;
|
||||
pub use exporter::PalletAsHaulBlobExporter;
|
||||
pub use pezbp_xcm_bridge_hub::XcmAsPlainPayload;
|
||||
pub use pezpallet::*;
|
||||
|
||||
mod dispatcher;
|
||||
@@ -846,8 +846,8 @@ pub mod pezpallet {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use pezbp_messages::LaneIdType;
|
||||
use mock::*;
|
||||
use pezbp_messages::LaneIdType;
|
||||
|
||||
use pezframe_support::{
|
||||
assert_err, assert_noop, assert_ok, traits::fungible::Mutate, BoundedVec,
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
|
||||
use crate as pezpallet_xcm_bridge_hub;
|
||||
|
||||
use codec::{Decode, Encode};
|
||||
use pezbp_messages::{
|
||||
target_chain::{DispatchMessage, MessageDispatch},
|
||||
ChainWithMessages, HashedLaneId, MessageNonce,
|
||||
};
|
||||
use pezbp_xcm_bridge_hub::{BridgeId, LocalXcmChannelManager};
|
||||
use codec::{Decode, Encode};
|
||||
use pezbp_runtime::{messages::MessageDispatchResult, Chain, ChainId, HashOf};
|
||||
use pezbp_xcm_bridge_hub::{BridgeId, LocalXcmChannelManager};
|
||||
use pezframe_support::{
|
||||
assert_ok, derive_impl, parameter_types,
|
||||
traits::{EnsureOrigin, Equals, Everything, Get, OriginTrait},
|
||||
|
||||
Reference in New Issue
Block a user