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ยง
fn withdraw_asset(_0: &MultiAssets) -> Weight
๐Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
fn reserve_asset_deposited(_0: &MultiAssets) -> Weight
๐Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
fn receive_teleported_asset(_0: &MultiAssets) -> Weight
๐Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
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.
fn transfer_asset(assets: &MultiAssets, beneficiary: &MultiLocation) -> Weight
๐Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
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.
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.
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.
fn hrmp_channel_accepted(recipient: &u32) -> Weight
๐Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
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.
fn clear_origin() -> Weight
๐Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
fn descend_origin(_0: &InteriorMultiLocation) -> Weight
๐Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
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.
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.
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.
fn exchange_asset(give: &MultiAssetFilter, receive: &MultiAssets) -> Weight
๐Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
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.
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.
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.
fn buy_execution(fees: &MultiAsset, weight_limit: &WeightLimit) -> Weight
๐Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
fn refund_surplus() -> Weight
๐Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
fn set_error_handler(_0: &Xcm<RuntimeCall>) -> Weight
๐Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
fn set_appendix(_0: &Xcm<RuntimeCall>) -> Weight
๐Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
fn clear_error() -> Weight
๐Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
fn claim_asset(assets: &MultiAssets, ticket: &MultiLocation) -> Weight
๐Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
fn trap(_0: &u64) -> Weight
๐Deprecated: XCMv2 will be removed once XCMv5 is released. Please use XCMv3 or XCMv4 instead.
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.
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.