Trait staging_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;
}
๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.

Required Methodsยง

source

fn withdraw_asset(_0: &MultiAssets) -> Weight

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

fn reserve_asset_deposited(_0: &MultiAssets) -> Weight

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

fn receive_teleported_asset(_0: &MultiAssets) -> Weight

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

fn hrmp_channel_accepted(recipient: &u32) -> Weight

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

fn clear_origin() -> Weight

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

fn descend_origin(_0: &InteriorMultiLocation) -> Weight

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

fn refund_surplus() -> Weight

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

fn clear_error() -> Weight

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

fn trap(_0: &u64) -> Weight

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

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

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
source

fn unsubscribe_version() -> Weight

๐Ÿ‘ŽDeprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.

Object Safetyยง

This trait is not object safe.

Implementorsยง