mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 05:11:02 +00:00
Remove SOURCE_PARACHAIN_PARA_ID (#1716)
* Remove SOURCE_PARACHAIN_PARA_ID Remove SubstrateParachainsPipeline::SOURCE_PARACHAIN_PARA_ID * Avoid duplicate ChainBase and ParachainBase implementations * Replace ChainShadow with UnderlyingChainProvider
This commit is contained in:
committed by
Bastian Köcher
parent
7d55a0ffe2
commit
bde1629f86
@@ -18,10 +18,9 @@
|
||||
|
||||
use bp_messages::MessageNonce;
|
||||
use codec::Encode;
|
||||
use frame_support::weights::Weight;
|
||||
use relay_substrate_client::{
|
||||
Chain, ChainBase, ChainWithBalances, ChainWithMessages, ChainWithTransactions,
|
||||
Error as SubstrateError, SignParam, UnsignedTransaction,
|
||||
Chain, ChainWithBalances, ChainWithMessages, ChainWithTransactions, Error as SubstrateError,
|
||||
SignParam, UnderlyingChainProvider, UnsignedTransaction,
|
||||
};
|
||||
use sp_core::{storage::StorageKey, Pair};
|
||||
use sp_runtime::{generic::SignedPayload, traits::IdentifyAccount};
|
||||
@@ -35,24 +34,8 @@ pub type HeaderId =
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct RialtoParachain;
|
||||
|
||||
impl ChainBase for RialtoParachain {
|
||||
type BlockNumber = rialto_parachain_runtime::BlockNumber;
|
||||
type Hash = rialto_parachain_runtime::Hash;
|
||||
type Hasher = rialto_parachain_runtime::Hashing;
|
||||
type Header = rialto_parachain_runtime::Header;
|
||||
|
||||
type AccountId = rialto_parachain_runtime::AccountId;
|
||||
type Balance = rialto_parachain_runtime::Balance;
|
||||
type Index = rialto_parachain_runtime::Index;
|
||||
type Signature = rialto_parachain_runtime::Signature;
|
||||
|
||||
fn max_extrinsic_size() -> u32 {
|
||||
bp_rialto_parachain::RialtoParachain::max_extrinsic_size()
|
||||
}
|
||||
|
||||
fn max_extrinsic_weight() -> Weight {
|
||||
bp_rialto_parachain::RialtoParachain::max_extrinsic_weight()
|
||||
}
|
||||
impl UnderlyingChainProvider for RialtoParachain {
|
||||
type Chain = bp_rialto_parachain::RialtoParachain;
|
||||
}
|
||||
|
||||
impl Chain for RialtoParachain {
|
||||
|
||||
Reference in New Issue
Block a user