Skip to main content

ConvertMessage

Trait ConvertMessage 

Source
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§

Source

fn convert( message_id: H256, message: VersionedMessage, ) -> Result<(Xcm<()>, Self::Balance), ConvertMessageError>

Converts a versioned message into an XCM message and an optional topicID

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<CreateAssetCall, CreateAssetDeposit, InboundQueuePalletInstance, AccountId, Balance, ConvertAssetId, EthereumUniversalLocation, GlobalAssetHubLocation> ConvertMessage for MessageToXcm<CreateAssetCall, CreateAssetDeposit, InboundQueuePalletInstance, AccountId, Balance, ConvertAssetId, EthereumUniversalLocation, GlobalAssetHubLocation>
where CreateAssetCall: Get<CallIndex>, CreateAssetDeposit: Get<u128>, InboundQueuePalletInstance: Get<u8>, Balance: BalanceT + From<u128>, AccountId: Into<[u8; 32]>, ConvertAssetId: MaybeConvert<TokenId, Location>, EthereumUniversalLocation: Get<InteriorLocation>, GlobalAssetHubLocation: Get<Location>,

Source§

type Balance = Balance

Source§

type AccountId = AccountId