pub trait ConvertMessage {
type Balance: BalanceT + From<u128>;
type AccountId;
// Required method
fn convert(
message_id: H256,
message: VersionedMessage,
) -> Result<(Xcm<()>, Self::Balance), ConvertMessageError>;
}
Expand description
convert the inbound message to xcm which will be forwarded to the destination chain
Required Associated Types§
Required Methods§
sourcefn convert(
message_id: H256,
message: VersionedMessage,
) -> Result<(Xcm<()>, Self::Balance), ConvertMessageError>
fn convert( message_id: H256, message: VersionedMessage, ) -> Result<(Xcm<()>, Self::Balance), ConvertMessageError>
Converts a versioned message into an XCM message and an optional topicID
Object Safety§
This trait is not object safe.