referrerpolicy=no-referrer-when-downgrade
snowbridge_router_primitives::inbound

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§

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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>,

Source§

type Balance = Balance

Source§

type AccountId = AccountId