Skip to content

Commit 8349c8d

Browse files
authored
Companion: restructure macro related exports (#3015)
* restructure macro related exports * restructure macro related exports * wip * wip * update cargo lock * refactor RuntimeDebug on unincluded segment * fmt * Companion: restructure `benchmarking` macro related exports (#3039) * wip * wip * restructure benchmarking macro related exports * add cargo lock --------- Co-authored-by: parity-processbot <>
1 parent f525c8c commit 8349c8d

File tree

63 files changed

+136
-71
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+136
-71
lines changed

cumulus/Cargo.lock

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cumulus/bridges/bin/runtime-common/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ where
103103
#[macro_export]
104104
macro_rules! generate_bridge_reject_obsolete_headers_and_messages {
105105
($call:ty, $account_id:ty, $($filter_call:ty),*) => {
106-
#[derive(Clone, codec::Decode, Default, codec::Encode, Eq, PartialEq, frame_support::RuntimeDebug, scale_info::TypeInfo)]
106+
#[derive(Clone, codec::Decode, Default, codec::Encode, Eq, PartialEq, sp_runtime::RuntimeDebug, scale_info::TypeInfo)]
107107
pub struct BridgeRejectObsoleteHeadersAndMessages;
108108
impl sp_runtime::traits::SignedExtension for BridgeRejectObsoleteHeadersAndMessages {
109109
const IDENTIFIER: &'static str = "BridgeRejectObsoleteHeadersAndMessages";

cumulus/bridges/bin/runtime-common/src/messages.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ use bp_messages::{
3131
};
3232
use bp_runtime::{Chain, RawStorageProof, Size, StorageProofChecker};
3333
use codec::{Decode, Encode};
34-
use frame_support::{traits::Get, weights::Weight, RuntimeDebug};
34+
use frame_support::{traits::Get, weights::Weight};
3535
use hash_db::Hasher;
3636
use scale_info::TypeInfo;
37+
use sp_runtime::RuntimeDebug;
3738
use sp_std::{convert::TryFrom, marker::PhantomData, vec::Vec};
3839

3940
/// Bidirectional message bridge.

cumulus/bridges/bin/runtime-common/src/messages_call_ext.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ use bp_messages::{target_chain::MessageDispatch, InboundLaneData, LaneId, Messag
2121
use frame_support::{
2222
dispatch::CallableCallFor,
2323
traits::{Get, IsSubType},
24-
RuntimeDebug,
2524
};
2625
use pallet_bridge_messages::{Config, Pallet};
27-
use sp_runtime::transaction_validity::TransactionValidity;
26+
use sp_runtime::{transaction_validity::TransactionValidity, RuntimeDebug};
2827
use sp_std::ops::RangeInclusive;
2928

3029
/// Generic info about a messages delivery/confirmation proof.

cumulus/bridges/bin/runtime-common/src/refund_relayer_extension.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use frame_support::{
3030
dispatch::{CallableCallFor, DispatchInfo, Dispatchable, PostDispatchInfo},
3131
traits::IsSubType,
3232
weights::Weight,
33-
CloneNoBound, DefaultNoBound, EqNoBound, PartialEqNoBound, RuntimeDebug, RuntimeDebugNoBound,
33+
CloneNoBound, DefaultNoBound, EqNoBound, PartialEqNoBound, RuntimeDebugNoBound,
3434
};
3535
use pallet_bridge_grandpa::{
3636
CallSubType as GrandpaCallSubType, SubmitFinalityProofHelper, SubmitFinalityProofInfo,
@@ -51,7 +51,7 @@ use sp_runtime::{
5151
transaction_validity::{
5252
TransactionPriority, TransactionValidity, TransactionValidityError, ValidTransactionBuilder,
5353
},
54-
DispatchResult, FixedPointOperand,
54+
DispatchResult, FixedPointOperand, RuntimeDebug,
5555
};
5656
use sp_std::{marker::PhantomData, vec, vec::Vec};
5757

cumulus/bridges/modules/grandpa/src/call_ext.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ use crate::{weights::WeightInfo, BridgedBlockNumber, BridgedHeader, Config, Erro
1818
use bp_header_chain::{justification::GrandpaJustification, ChainWithGrandpa};
1919
use bp_runtime::BlockNumberOf;
2020
use codec::Encode;
21-
use frame_support::{dispatch::CallableCallFor, traits::IsSubType, weights::Weight, RuntimeDebug};
21+
use frame_support::{dispatch::CallableCallFor, traits::IsSubType, weights::Weight};
2222
use sp_runtime::{
2323
traits::{Header, Zero},
2424
transaction_validity::{InvalidTransaction, TransactionValidity, ValidTransaction},
25-
SaturatedConversion,
25+
RuntimeDebug, SaturatedConversion,
2626
};
2727

2828
/// Info about a `SubmitParachainHeads` call which tries to update a single parachain.

cumulus/bridges/modules/messages/src/inbound_lane.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ use bp_messages::{
2424
ReceivalResult, UnrewardedRelayer,
2525
};
2626
use codec::{Decode, Encode, EncodeLike, MaxEncodedLen};
27-
use frame_support::{traits::Get, RuntimeDebug};
27+
use frame_support::traits::Get;
2828
use scale_info::{Type, TypeInfo};
29+
use sp_runtime::RuntimeDebug;
2930
use sp_std::prelude::PartialEq;
3031

3132
/// Inbound lane storage.

cumulus/bridges/modules/messages/src/outbound_lane.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ use bp_messages::{
2525
use codec::{Decode, Encode};
2626
use frame_support::{
2727
weights::{RuntimeDbWeight, Weight},
28-
BoundedVec, PalletError, RuntimeDebug,
28+
BoundedVec, PalletError,
2929
};
3030
use num_traits::Zero;
3131
use scale_info::TypeInfo;
32+
use sp_runtime::RuntimeDebug;
3233
use sp_std::collections::vec_deque::VecDeque;
3334

3435
/// Outbound lane storage.

cumulus/bridges/modules/parachains/src/call_ext.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717
use crate::{Config, Pallet, RelayBlockNumber};
1818
use bp_parachains::BestParaHeadHash;
1919
use bp_polkadot_core::parachains::{ParaHash, ParaId};
20-
use frame_support::{dispatch::CallableCallFor, traits::IsSubType, RuntimeDebug};
21-
use sp_runtime::transaction_validity::{InvalidTransaction, TransactionValidity, ValidTransaction};
20+
use frame_support::{dispatch::CallableCallFor, traits::IsSubType};
21+
use sp_runtime::{
22+
transaction_validity::{InvalidTransaction, TransactionValidity, ValidTransaction},
23+
RuntimeDebug,
24+
};
2225

2326
/// Info about a `SubmitParachainHeads` call which tries to update a single parachain.
2427
#[derive(PartialEq, RuntimeDebug)]

cumulus/bridges/primitives/chain-bridge-hub-kusama/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ use bp_runtime::{
2727
use frame_support::{
2828
dispatch::DispatchClass,
2929
sp_runtime::{MultiAddress, MultiSigner},
30-
RuntimeDebug,
3130
};
31+
use sp_runtime::RuntimeDebug;
3232
use sp_std::prelude::Vec;
3333

3434
/// BridgeHubKusama parachain.

0 commit comments

Comments
 (0)