mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 20:21:03 +00:00
Deduplicate pallet call structs used for indirect runtime calls (#1744)
* Small changes * Define generic bridge pallets call structs * polkadot-core SignedExtension simplifications - we don't seem to need to pass the Call as a generic param - we can use codec(skip) instead of implementing Encode and Decode * Split BridgeHubRococo and BridgeHubWococo calls * code review fixes
This commit is contained in:
committed by
Bastian Köcher
parent
a21617082e
commit
63a538a9bb
@@ -21,8 +21,8 @@
|
||||
pub use bp_header_chain::StoredHeaderData;
|
||||
|
||||
use bp_polkadot_core::{
|
||||
parachains::{ParaHash, ParaHead, ParaId},
|
||||
BlockNumber as RelayBlockNumber,
|
||||
parachains::{ParaHash, ParaHead, ParaHeadsProof, ParaId},
|
||||
BlockNumber as RelayBlockNumber, Hash as RelayBlockHash,
|
||||
};
|
||||
use bp_runtime::{
|
||||
BlockNumberOf, Chain, HashOf, HeaderOf, Parachain, StorageDoubleMapKeyProvider,
|
||||
@@ -150,3 +150,16 @@ impl ParaStoredHeaderDataBuilder for C {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
/// A minimized version of `pallet-bridge-parachains::Call` that can be used without a runtime.
|
||||
#[derive(Encode, Decode, Debug, PartialEq, Eq, Clone, TypeInfo)]
|
||||
#[allow(non_camel_case_types)]
|
||||
pub enum BridgeParachainCall {
|
||||
/// `pallet-bridge-parachains::Call::submit_parachain_heads`
|
||||
#[codec(index = 0)]
|
||||
submit_parachain_heads(
|
||||
(RelayBlockNumber, RelayBlockHash),
|
||||
Vec<(ParaId, ParaHash)>,
|
||||
ParaHeadsProof,
|
||||
),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user