mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 19:11:02 +00:00
Use proper account types (#1591)
* use proper account types * Update primitives/messages/src/source_chain.rs Co-authored-by: Branislav Kontur <bkontur@gmail.com> Co-authored-by: Branislav Kontur <bkontur@gmail.com>
This commit is contained in:
committed by
Bastian Köcher
parent
75d61ff708
commit
4f4200b0eb
@@ -236,7 +236,7 @@ impl messages::BridgedChainWithMessages for Rialto {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TargetHeaderChain<ToRialtoMessagePayload, bp_rialto::AccountId> for Rialto {
|
impl TargetHeaderChain<ToRialtoMessagePayload, bp_millau::AccountId> for Rialto {
|
||||||
type Error = &'static str;
|
type Error = &'static str;
|
||||||
// The proof is:
|
// The proof is:
|
||||||
// - hash of the header this proof has been created with;
|
// - hash of the header this proof has been created with;
|
||||||
|
|||||||
@@ -229,9 +229,7 @@ impl messages::BridgedChainWithMessages for RialtoParachain {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TargetHeaderChain<ToRialtoParachainMessagePayload, bp_rialto_parachain::AccountId>
|
impl TargetHeaderChain<ToRialtoParachainMessagePayload, bp_millau::AccountId> for RialtoParachain {
|
||||||
for RialtoParachain
|
|
||||||
{
|
|
||||||
type Error = &'static str;
|
type Error = &'static str;
|
||||||
// The proof is:
|
// The proof is:
|
||||||
// - hash of the header this proof has been created with;
|
// - hash of the header this proof has been created with;
|
||||||
|
|||||||
@@ -243,7 +243,7 @@ impl messages::BridgedChainWithMessages for Millau {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TargetHeaderChain<ToMillauMessagePayload, bp_millau::AccountId> for Millau {
|
impl TargetHeaderChain<ToMillauMessagePayload, bp_rialto_parachain::AccountId> for Millau {
|
||||||
type Error = &'static str;
|
type Error = &'static str;
|
||||||
// The proof is:
|
// The proof is:
|
||||||
// - hash of the header this proof has been created with;
|
// - hash of the header this proof has been created with;
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ impl messages::BridgedChainWithMessages for Millau {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TargetHeaderChain<ToMillauMessagePayload, bp_millau::AccountId> for Millau {
|
impl TargetHeaderChain<ToMillauMessagePayload, bp_rialto::AccountId> for Millau {
|
||||||
type Error = &'static str;
|
type Error = &'static str;
|
||||||
// The proof is:
|
// The proof is:
|
||||||
// - hash of the header this proof has been created with;
|
// - hash of the header this proof has been created with;
|
||||||
|
|||||||
@@ -61,6 +61,10 @@ pub struct RelayerRewards<Balance> {
|
|||||||
/// All implementations of this trait should only work with finalized data that
|
/// All implementations of this trait should only work with finalized data that
|
||||||
/// can't change. Wrong implementation may lead to invalid lane states (i.e. lane
|
/// can't change. Wrong implementation may lead to invalid lane states (i.e. lane
|
||||||
/// that's stuck) and/or processing messages without paying fees.
|
/// that's stuck) and/or processing messages without paying fees.
|
||||||
|
///
|
||||||
|
/// The `Payload` type here means the payload of the message that is sent from the
|
||||||
|
/// source chain to the target chain. The `AccountId` type here means the account
|
||||||
|
/// type used by the source chain.
|
||||||
pub trait TargetHeaderChain<Payload, AccountId> {
|
pub trait TargetHeaderChain<Payload, AccountId> {
|
||||||
/// Error type.
|
/// Error type.
|
||||||
type Error: Debug + Into<&'static str>;
|
type Error: Debug + Into<&'static str>;
|
||||||
|
|||||||
Reference in New Issue
Block a user