mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 19:51:02 +00:00
Reduce the number of macros used for SignedExtensions
Reduce the number of macros used for SignedExtensions Signed-off-by: Serban Iorga <serban@parity.io>
This commit is contained in:
committed by
Bastian Köcher
parent
057fd6cab2
commit
5d9bd1d0b5
@@ -78,7 +78,7 @@ pub use frame_support::{
|
||||
constants::WEIGHT_PER_SECOND, ConstantMultiplier, DispatchClass, IdentityFee,
|
||||
RuntimeDbWeight, Weight,
|
||||
},
|
||||
StorageValue,
|
||||
RuntimeDebug, StorageValue,
|
||||
};
|
||||
|
||||
pub use frame_system::Call as SystemCall;
|
||||
@@ -89,6 +89,7 @@ pub use pallet_bridge_parachains::Call as BridgeParachainsCall;
|
||||
pub use pallet_sudo::Call as SudoCall;
|
||||
pub use pallet_timestamp::Call as TimestampCall;
|
||||
|
||||
use bridge_runtime_common::generate_bridge_reject_obsolete_headers_and_messages;
|
||||
#[cfg(any(feature = "std", test))]
|
||||
pub use sp_runtime::BuildStorage;
|
||||
pub use sp_runtime::{Perbill, Permill};
|
||||
@@ -592,21 +593,14 @@ construct_runtime!(
|
||||
}
|
||||
);
|
||||
|
||||
pallet_bridge_grandpa::declare_bridge_reject_obsolete_grandpa_header! {
|
||||
Runtime,
|
||||
Call::BridgeRialtoGrandpa => RialtoGrandpaInstance,
|
||||
Call::BridgeWestendGrandpa => WestendGrandpaInstance
|
||||
}
|
||||
|
||||
pallet_bridge_parachains::declare_bridge_reject_obsolete_parachain_header! {
|
||||
Runtime,
|
||||
Call::BridgeRialtoParachains => WithRialtoParachainsInstance
|
||||
}
|
||||
|
||||
bridge_runtime_common::declare_bridge_reject_obsolete_messages! {
|
||||
Runtime,
|
||||
Call::BridgeRialtoMessages => WithRialtoMessagesInstance,
|
||||
Call::BridgeRialtoParachainMessages => WithRialtoParachainMessagesInstance
|
||||
generate_bridge_reject_obsolete_headers_and_messages! {
|
||||
Call, AccountId,
|
||||
// Grandpa
|
||||
BridgeRialtoGrandpa, BridgeWestendGrandpa,
|
||||
// Parachains
|
||||
BridgeRialtoParachains,
|
||||
//Messages
|
||||
BridgeRialtoMessages, BridgeRialtoParachainMessages
|
||||
}
|
||||
|
||||
/// The address format for describing accounts.
|
||||
@@ -629,9 +623,7 @@ pub type SignedExtra = (
|
||||
frame_system::CheckNonce<Runtime>,
|
||||
frame_system::CheckWeight<Runtime>,
|
||||
pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
|
||||
BridgeRejectObsoleteGrandpaHeader,
|
||||
BridgeRejectObsoleteParachainHeader,
|
||||
BridgeRejectObsoleteMessages,
|
||||
BridgeRejectObsoleteHeadersAndMessages,
|
||||
);
|
||||
/// The payload being signed in transactions.
|
||||
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
||||
|
||||
Reference in New Issue
Block a user