referrerpolicy=no-referrer-when-downgrade
collectives_westend_integration_tests

Type Alias Westend

Source
pub type Westend = Westend<WestendMockNet>;

Aliased Type§

struct Westend(/* private fields */);

Implementations

§

impl<N> Westend<N>
where N: Network,

pub fn assert_xcm_pallet_attempted_complete(expected_weight: Option<Weight>)

Asserts a dispatchable is completely executed and XCM sent

pub fn assert_xcm_pallet_attempted_incomplete( expected_weight: Option<Weight>, expected_error: Option<Error>, )

Asserts a dispatchable is incompletely executed and XCM sent

pub fn assert_xcm_pallet_sent()

Asserts an XCM program is sent.

pub fn assert_ump_queue_processed( expected_success: bool, expected_id: Option<Id>, expected_weight: Option<Weight>, )

Asserts an XCM program from a System Parachain is successfully received and processed within expectations.

§

impl<N> Westend<N>
where N: Network,

pub fn fund_accounts( accounts: Vec<(<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128)>, )

Fund a set of accounts with a balance

pub fn fund_para_sovereign(amount: u128, para_id: Id) -> AccountId32

Fund a sovereign account based on its Parachain Id

§

impl<N> Westend<N>
where N: Network,

pub fn init_open_channel_call( recipient_para_id: Id, max_capacity: u32, max_message_size: u32, ) -> DoubleEncoded<()>

Init open channel request with another Parachain

pub fn accept_open_channel_call(sender_para_id: Id) -> DoubleEncoded<()>

Recipient Parachain accept the open request from another Parachain

pub fn force_process_hrmp_open(sender: Id, recipient: Id)

A root origin force to open a channel between two Parachains

§

impl<N> Westend<N>
where N: Network,

pub fn send_unpaid_transact_to_parachain_as_root( recipient: Id, call: DoubleEncoded<()>, )

A root origin (as governance) sends xcm::Transact with UnpaidExecution and encoded call to child parachain.

Trait Implementations

§

impl<N> Chain for Westend<N>
where N: Network,

§

impl<N, Origin, Destination, Hops, Args> CheckAssertion<Origin, Destination, Hops, Args> for Westend<N>
where N: Network, Origin: Chain + Clone, Destination: Chain + Clone, <Origin as Chain>::RuntimeOrigin: OriginTrait<AccountId = <<Origin as Chain>::Runtime as Config>::AccountId> + Clone, <Destination as Chain>::RuntimeOrigin: OriginTrait<AccountId = <<Destination as Chain>::Runtime as Config>::AccountId> + Clone, Hops: Clone, Args: Clone,

§

fn check_assertion(test: Test<Origin, Destination, Hops, Args>)

§

impl<N> Clone for Westend<N>
where N: Clone,

§

fn clone(&self) -> Westend<N>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<N> RelayChain for Westend<N>
where N: Network,

§

impl<N> TestExt for Westend<N>
where N: Network,

§

fn build_new_ext(storage: Storage) -> TestExternalities<Blake2Hasher>

§

fn new_ext() -> TestExternalities<Blake2Hasher>

§

fn move_ext_out(id: &'static str)

§

fn move_ext_in(id: &'static str)

§

fn reset_ext()

§

fn execute_with<R>(execute: impl FnOnce() -> R) -> R

§

fn ext_wrapper<R>(func: impl FnOnce() -> R) -> R

§

impl<N> WestendRelayPallet for Westend<N>
where N: Network,