referrerpolicy=no-referrer-when-downgrade
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§

source

type Balance: BalanceT + From<u128>

source

type AccountId

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

Object Safety§

This trait is not object safe.

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: MaybeEquivalence<TokenId, Location>, EthereumUniversalLocation: Get<InteriorLocation>, GlobalAssetHubLocation: Get<Location>,

§

type Balance = Balance

§

type AccountId = AccountId