mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 05:11:02 +00:00
move signed extension stuff from prolkadot-core primitives to bridge-hub-cumulus-primitives (#1968)
This commit is contained in:
committed by
Bastian Köcher
parent
74b0eca59c
commit
62480cf9db
@@ -16,7 +16,7 @@
|
||||
|
||||
//! Types used to connect to the BridgeHub-Wococo-Substrate parachain.
|
||||
|
||||
use bp_bridge_hub_wococo::AVERAGE_BLOCK_INTERVAL;
|
||||
use bp_bridge_hub_wococo::{BridgeHubSignedExtension, AVERAGE_BLOCK_INTERVAL};
|
||||
use bp_messages::MessageNonce;
|
||||
use bp_runtime::ChainId;
|
||||
use codec::Encode;
|
||||
@@ -73,7 +73,7 @@ impl ChainWithTransactions for BridgeHubWococo {
|
||||
) -> Result<Self::SignedTransaction, SubstrateError> {
|
||||
let raw_payload = SignedPayload::new(
|
||||
unsigned.call,
|
||||
runtime::rewarding_bridge_signed_extension::from_params(
|
||||
runtime::SignedExtension::from_params(
|
||||
param.spec_version,
|
||||
param.transaction_version,
|
||||
unsigned.era,
|
||||
@@ -110,13 +110,7 @@ impl ChainWithTransactions for BridgeHubWococo {
|
||||
|
||||
fn parse_transaction(tx: Self::SignedTransaction) -> Option<UnsignedTransaction<Self>> {
|
||||
let extra = &tx.signature.as_ref()?.2;
|
||||
Some(
|
||||
UnsignedTransaction::new(
|
||||
tx.function,
|
||||
runtime::rewarding_bridge_signed_extension::nonce(extra),
|
||||
)
|
||||
.tip(runtime::rewarding_bridge_signed_extension::tip(extra)),
|
||||
)
|
||||
Some(UnsignedTransaction::new(tx.function, extra.nonce()).tip(extra.tip()))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -19,17 +19,14 @@
|
||||
use codec::{Decode, Encode};
|
||||
use scale_info::TypeInfo;
|
||||
|
||||
pub use bp_bridge_hub_wococo::rewarding_bridge_signed_extension;
|
||||
pub use bp_bridge_hub_wococo::SignedExtension;
|
||||
pub use bp_header_chain::BridgeGrandpaCallOf;
|
||||
pub use bp_parachains::BridgeParachainCall;
|
||||
pub use bridge_runtime_common::messages::BridgeMessagesCallOf;
|
||||
pub use relay_substrate_client::calls::{SystemCall, UtilityCall};
|
||||
|
||||
/// Unchecked BridgeHubWococo extrinsic.
|
||||
pub type UncheckedExtrinsic = bp_bridge_hub_wococo::UncheckedExtrinsic<
|
||||
Call,
|
||||
rewarding_bridge_signed_extension::RewardingBridgeSignedExtension,
|
||||
>;
|
||||
pub type UncheckedExtrinsic = bp_bridge_hub_wococo::UncheckedExtrinsic<Call, SignedExtension>;
|
||||
|
||||
// The indirect pallet call used to sync `Rococo` GRANDPA finality to `BHWococo`.
|
||||
pub type BridgeRococoGrandpaCall = BridgeGrandpaCallOf<bp_rococo::Rococo>;
|
||||
|
||||
Reference in New Issue
Block a user