mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 19:51:02 +00:00
Rename MessageId -> BridgeMessageId (#1152)
This commit is contained in:
committed by
Bastian Köcher
parent
084da4343d
commit
eaf519dc1b
@@ -34,7 +34,7 @@ pub type Weight = u64;
|
||||
pub type SpecVersion = u32;
|
||||
|
||||
/// A generic trait to dispatch arbitrary messages delivered over the bridge.
|
||||
pub trait MessageDispatch<AccountId, MessageId> {
|
||||
pub trait MessageDispatch<AccountId, BridgeMessageId> {
|
||||
/// A type of the message to be dispatched.
|
||||
type Message: codec::Decode;
|
||||
|
||||
@@ -60,7 +60,7 @@ pub trait MessageDispatch<AccountId, MessageId> {
|
||||
fn dispatch<P: FnOnce(&AccountId, Weight) -> Result<(), ()>>(
|
||||
source_chain: ChainId,
|
||||
target_chain: ChainId,
|
||||
id: MessageId,
|
||||
id: BridgeMessageId,
|
||||
message: Result<Self::Message, ()>,
|
||||
pay_dispatch_fee: P,
|
||||
) -> MessageDispatchResult;
|
||||
|
||||
@@ -75,7 +75,7 @@ pub type LaneId = [u8; 4];
|
||||
pub type MessageNonce = u64;
|
||||
|
||||
/// Message id as a tuple.
|
||||
pub type MessageId = (LaneId, MessageNonce);
|
||||
pub type BridgeMessageId = (LaneId, MessageNonce);
|
||||
|
||||
/// Opaque message payload. We only decode this payload when it is dispatched.
|
||||
pub type MessagePayload = Vec<u8>;
|
||||
|
||||
Reference in New Issue
Block a user