referrerpolicy=no-referrer-when-downgrade

Trait staging_xcm_builder::test_utils::XcmWeightInfo

pub trait XcmWeightInfo<Call> {
Show 52 methods // Required methods fn withdraw_asset(_0: &Assets) -> Weight; fn reserve_asset_deposited(_0: &Assets) -> Weight; fn receive_teleported_asset(_0: &Assets) -> Weight; fn query_response( query_id: &u64, response: &Response, max_weight: &Weight, querier: &Option<Location>, ) -> Weight; fn transfer_asset(assets: &Assets, beneficiary: &Location) -> Weight; fn transfer_reserve_asset( assets: &Assets, dest: &Location, xcm: &Xcm<()>, ) -> Weight; fn transact( origin_kind: &OriginKind, fallback_max_weight: &Option<Weight>, call: &DoubleEncoded<Call>, ) -> Weight; fn hrmp_new_channel_open_request( sender: &u32, max_message_size: &u32, max_capacity: &u32, ) -> Weight; fn hrmp_channel_accepted(recipient: &u32) -> Weight; fn hrmp_channel_closing( initiator: &u32, sender: &u32, recipient: &u32, ) -> Weight; fn clear_origin() -> Weight; fn descend_origin(_0: &Junctions) -> Weight; fn report_error(_0: &QueryResponseInfo) -> Weight; fn deposit_asset(assets: &AssetFilter, beneficiary: &Location) -> Weight; fn deposit_reserve_asset( assets: &AssetFilter, dest: &Location, xcm: &Xcm<()>, ) -> Weight; fn exchange_asset( give: &AssetFilter, want: &Assets, maximal: &bool, ) -> Weight; fn initiate_reserve_withdraw( assets: &AssetFilter, reserve: &Location, xcm: &Xcm<()>, ) -> Weight; fn initiate_teleport( assets: &AssetFilter, dest: &Location, xcm: &Xcm<()>, ) -> Weight; fn report_holding( response_info: &QueryResponseInfo, assets: &AssetFilter, ) -> Weight; fn buy_execution(fees: &Asset, weight_limit: &WeightLimit) -> Weight; fn refund_surplus() -> Weight; fn set_error_handler(_0: &Xcm<Call>) -> Weight; fn set_appendix(_0: &Xcm<Call>) -> Weight; fn clear_error() -> Weight; fn claim_asset(assets: &Assets, ticket: &Location) -> Weight; fn trap(_0: &u64) -> Weight; fn subscribe_version(query_id: &u64, max_response_weight: &Weight) -> Weight; fn unsubscribe_version() -> Weight; fn burn_asset(_0: &Assets) -> Weight; fn expect_asset(_0: &Assets) -> Weight; fn expect_origin(_0: &Option<Location>) -> Weight; fn expect_error(_0: &Option<(u32, Error)>) -> Weight; fn expect_transact_status(_0: &MaybeErrorCode) -> Weight; fn query_pallet( module_name: &Vec<u8>, response_info: &QueryResponseInfo, ) -> Weight; fn expect_pallet( index: &u32, name: &Vec<u8>, module_name: &Vec<u8>, crate_major: &u32, min_crate_minor: &u32, ) -> Weight; fn report_transact_status(_0: &QueryResponseInfo) -> Weight; fn clear_transact_status() -> Weight; fn universal_origin(_0: &Junction) -> Weight; fn export_message( network: &NetworkId, destination: &Junctions, xcm: &Xcm<()>, ) -> Weight; fn lock_asset(asset: &Asset, unlocker: &Location) -> Weight; fn unlock_asset(asset: &Asset, target: &Location) -> Weight; fn note_unlockable(asset: &Asset, owner: &Location) -> Weight; fn request_unlock(asset: &Asset, locker: &Location) -> Weight; fn set_fees_mode(jit_withdraw: &bool) -> Weight; fn set_topic(_0: &[u8; 32]) -> Weight; fn clear_topic() -> Weight; fn alias_origin(_0: &Location) -> Weight; fn unpaid_execution( weight_limit: &WeightLimit, check_origin: &Option<Location>, ) -> Weight; fn pay_fees(asset: &Asset) -> Weight; fn initiate_transfer( destination: &Location, remote_fees: &Option<AssetTransferFilter>, preserve_origin: &bool, assets: &Vec<AssetTransferFilter>, remote_xcm: &Xcm<()>, ) -> Weight; fn execute_with_origin( descendant_origin: &Option<Junctions>, xcm: &Xcm<Call>, ) -> Weight; fn set_hints(hints: &BoundedVec<Hint, HintNumVariants>) -> Weight;
}

Required Methods§

fn withdraw_asset(_0: &Assets) -> Weight

fn reserve_asset_deposited(_0: &Assets) -> Weight

fn receive_teleported_asset(_0: &Assets) -> Weight

fn query_response( query_id: &u64, response: &Response, max_weight: &Weight, querier: &Option<Location>, ) -> Weight

fn transfer_asset(assets: &Assets, beneficiary: &Location) -> Weight

fn transfer_reserve_asset( assets: &Assets, dest: &Location, xcm: &Xcm<()>, ) -> Weight

fn transact( origin_kind: &OriginKind, fallback_max_weight: &Option<Weight>, call: &DoubleEncoded<Call>, ) -> Weight

fn hrmp_new_channel_open_request( sender: &u32, max_message_size: &u32, max_capacity: &u32, ) -> Weight

fn hrmp_channel_accepted(recipient: &u32) -> Weight

fn hrmp_channel_closing( initiator: &u32, sender: &u32, recipient: &u32, ) -> Weight

fn clear_origin() -> Weight

fn descend_origin(_0: &Junctions) -> Weight

fn report_error(_0: &QueryResponseInfo) -> Weight

fn deposit_asset(assets: &AssetFilter, beneficiary: &Location) -> Weight

fn deposit_reserve_asset( assets: &AssetFilter, dest: &Location, xcm: &Xcm<()>, ) -> Weight

fn exchange_asset(give: &AssetFilter, want: &Assets, maximal: &bool) -> Weight

fn initiate_reserve_withdraw( assets: &AssetFilter, reserve: &Location, xcm: &Xcm<()>, ) -> Weight

fn initiate_teleport( assets: &AssetFilter, dest: &Location, xcm: &Xcm<()>, ) -> Weight

fn report_holding( response_info: &QueryResponseInfo, assets: &AssetFilter, ) -> Weight

fn buy_execution(fees: &Asset, weight_limit: &WeightLimit) -> Weight

fn refund_surplus() -> Weight

fn set_error_handler(_0: &Xcm<Call>) -> Weight

fn set_appendix(_0: &Xcm<Call>) -> Weight

fn clear_error() -> Weight

fn claim_asset(assets: &Assets, ticket: &Location) -> Weight

fn trap(_0: &u64) -> Weight

fn subscribe_version(query_id: &u64, max_response_weight: &Weight) -> Weight

fn unsubscribe_version() -> Weight

fn burn_asset(_0: &Assets) -> Weight

fn expect_asset(_0: &Assets) -> Weight

fn expect_origin(_0: &Option<Location>) -> Weight

fn expect_error(_0: &Option<(u32, Error)>) -> Weight

fn expect_transact_status(_0: &MaybeErrorCode) -> Weight

fn query_pallet( module_name: &Vec<u8>, response_info: &QueryResponseInfo, ) -> Weight

fn expect_pallet( index: &u32, name: &Vec<u8>, module_name: &Vec<u8>, crate_major: &u32, min_crate_minor: &u32, ) -> Weight

fn report_transact_status(_0: &QueryResponseInfo) -> Weight

fn clear_transact_status() -> Weight

fn universal_origin(_0: &Junction) -> Weight

fn export_message( network: &NetworkId, destination: &Junctions, xcm: &Xcm<()>, ) -> Weight

fn lock_asset(asset: &Asset, unlocker: &Location) -> Weight

fn unlock_asset(asset: &Asset, target: &Location) -> Weight

fn note_unlockable(asset: &Asset, owner: &Location) -> Weight

fn request_unlock(asset: &Asset, locker: &Location) -> Weight

fn set_fees_mode(jit_withdraw: &bool) -> Weight

fn set_topic(_0: &[u8; 32]) -> Weight

fn clear_topic() -> Weight

fn alias_origin(_0: &Location) -> Weight

fn unpaid_execution( weight_limit: &WeightLimit, check_origin: &Option<Location>, ) -> Weight

fn pay_fees(asset: &Asset) -> Weight

fn initiate_transfer( destination: &Location, remote_fees: &Option<AssetTransferFilter>, preserve_origin: &bool, assets: &Vec<AssetTransferFilter>, remote_xcm: &Xcm<()>, ) -> Weight

fn execute_with_origin( descendant_origin: &Option<Junctions>, xcm: &Xcm<Call>, ) -> Weight

fn set_hints(hints: &BoundedVec<Hint, HintNumVariants>) -> Weight

Object Safety§

This trait is not object safe.

Implementors§