Trait xcm::v2::XcmWeightInfo

source ·
pub trait XcmWeightInfo<RuntimeCall> {
Show 28 methods // Required methods fn withdraw_asset(_0: &MultiAssets) -> Weight; fn reserve_asset_deposited(_0: &MultiAssets) -> Weight; fn receive_teleported_asset(_0: &MultiAssets) -> Weight; fn query_response( query_id: &QueryId, response: &Response, max_weight: &u64 ) -> Weight; fn transfer_asset( assets: &MultiAssets, beneficiary: &MultiLocation ) -> Weight; fn transfer_reserve_asset( assets: &MultiAssets, dest: &MultiLocation, xcm: &Xcm<()> ) -> Weight; fn transact( origin_type: &OriginKind, require_weight_at_most: &u64, call: &DoubleEncoded<RuntimeCall> ) -> 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: &InteriorMultiLocation) -> Weight; fn report_error( query_id: &QueryId, dest: &MultiLocation, max_response_weight: &u64 ) -> Weight; fn deposit_asset( assets: &MultiAssetFilter, max_assets: &u32, beneficiary: &MultiLocation ) -> Weight; fn deposit_reserve_asset( assets: &MultiAssetFilter, max_assets: &u32, dest: &MultiLocation, xcm: &Xcm<()> ) -> Weight; fn exchange_asset(give: &MultiAssetFilter, receive: &MultiAssets) -> Weight; fn initiate_reserve_withdraw( assets: &MultiAssetFilter, reserve: &MultiLocation, xcm: &Xcm<()> ) -> Weight; fn initiate_teleport( assets: &MultiAssetFilter, dest: &MultiLocation, xcm: &Xcm<()> ) -> Weight; fn query_holding( query_id: &QueryId, dest: &MultiLocation, assets: &MultiAssetFilter, max_response_weight: &u64 ) -> Weight; fn buy_execution(fees: &MultiAsset, weight_limit: &WeightLimit) -> Weight; fn refund_surplus() -> Weight; fn set_error_handler(_0: &Xcm<RuntimeCall>) -> Weight; fn set_appendix(_0: &Xcm<RuntimeCall>) -> Weight; fn clear_error() -> Weight; fn claim_asset(assets: &MultiAssets, ticket: &MultiLocation) -> Weight; fn trap(_0: &u64) -> Weight; fn subscribe_version( query_id: &QueryId, max_response_weight: &u64 ) -> Weight; fn unsubscribe_version() -> Weight;
}

Required Methods§

source

fn withdraw_asset(_0: &MultiAssets) -> Weight

source

fn reserve_asset_deposited(_0: &MultiAssets) -> Weight

source

fn receive_teleported_asset(_0: &MultiAssets) -> Weight

source

fn query_response( query_id: &QueryId, response: &Response, max_weight: &u64 ) -> Weight

source

fn transfer_asset(assets: &MultiAssets, beneficiary: &MultiLocation) -> Weight

source

fn transfer_reserve_asset( assets: &MultiAssets, dest: &MultiLocation, xcm: &Xcm<()> ) -> Weight

source

fn transact( origin_type: &OriginKind, require_weight_at_most: &u64, call: &DoubleEncoded<RuntimeCall> ) -> Weight

source

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

source

fn hrmp_channel_accepted(recipient: &u32) -> Weight

source

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

source

fn clear_origin() -> Weight

source

fn descend_origin(_0: &InteriorMultiLocation) -> Weight

source

fn report_error( query_id: &QueryId, dest: &MultiLocation, max_response_weight: &u64 ) -> Weight

source

fn deposit_asset( assets: &MultiAssetFilter, max_assets: &u32, beneficiary: &MultiLocation ) -> Weight

source

fn deposit_reserve_asset( assets: &MultiAssetFilter, max_assets: &u32, dest: &MultiLocation, xcm: &Xcm<()> ) -> Weight

source

fn exchange_asset(give: &MultiAssetFilter, receive: &MultiAssets) -> Weight

source

fn initiate_reserve_withdraw( assets: &MultiAssetFilter, reserve: &MultiLocation, xcm: &Xcm<()> ) -> Weight

source

fn initiate_teleport( assets: &MultiAssetFilter, dest: &MultiLocation, xcm: &Xcm<()> ) -> Weight

source

fn query_holding( query_id: &QueryId, dest: &MultiLocation, assets: &MultiAssetFilter, max_response_weight: &u64 ) -> Weight

source

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

source

fn refund_surplus() -> Weight

source

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

source

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

source

fn clear_error() -> Weight

source

fn claim_asset(assets: &MultiAssets, ticket: &MultiLocation) -> Weight

source

fn trap(_0: &u64) -> Weight

source

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

source

fn unsubscribe_version() -> Weight

Implementors§