mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-09 21:08:01 +00:00
Polkadot companion (XCM-simulator) (#560)
* Use definitions from polkadot. * Remove unused imports. * Rerun CI.
This commit is contained in:
@@ -34,7 +34,7 @@ mod tests;
|
||||
use codec::{Decode, Encode};
|
||||
use cumulus_primitives_core::{
|
||||
relay_chain::BlockNumber as RelayBlockNumber, ChannelStatus, GetChannelInfo, MessageSendError,
|
||||
ParaId, XcmpMessageHandler, XcmpMessageSource,
|
||||
ParaId, XcmpMessageHandler, XcmpMessageSource, XcmpMessageFormat,
|
||||
};
|
||||
use frame_support::weights::Weight;
|
||||
use rand_chacha::{
|
||||
@@ -208,18 +208,6 @@ pub enum ChannelSignal {
|
||||
Resume,
|
||||
}
|
||||
|
||||
/// The aggregate XCMP message format.
|
||||
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Encode, Decode, RuntimeDebug)]
|
||||
pub enum XcmpMessageFormat {
|
||||
/// Encoded `VersionedXcm` messages, all concatenated.
|
||||
ConcatenatedVersionedXcm,
|
||||
/// Encoded `Vec<u8>` messages, all concatenated.
|
||||
ConcatenatedEncodedBlob,
|
||||
/// One or more channel control signals; these should be interpreted immediately upon receipt
|
||||
/// from the relay-chain.
|
||||
Signals,
|
||||
}
|
||||
|
||||
impl<T: Config> Pallet<T> {
|
||||
/// Place a message `fragment` on the outgoing XCMP queue for `recipient`.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user