pub type AssetHubRococoPara = AssetHubRococo<RococoMockNet>;
Aliased Type§
struct AssetHubRococoPara(/* private fields */);
Implementations
§impl<N> AssetHubRococo<N>where
N: Network,
impl<N> AssetHubRococo<N>where
N: Network,
pub fn assert_xcm_pallet_attempted_complete(expected_weight: Option<Weight>)
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>,
)
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_attempted_error(expected_error: Option<Error>)
pub fn assert_xcm_pallet_attempted_error(expected_error: Option<Error>)
Asserts a dispatchable throws and error when trying to be sent
pub fn assert_xcm_pallet_sent()
pub fn assert_xcm_pallet_sent()
Asserts a XCM message is sent
pub fn assert_parachain_system_ump_sent()
pub fn assert_parachain_system_ump_sent()
Asserts a XCM message is sent to Relay Chain
pub fn assert_dmp_queue_complete(expected_weight: Option<Weight>)
pub fn assert_dmp_queue_complete(expected_weight: Option<Weight>)
Asserts a XCM from Relay Chain is completely executed
pub fn assert_dmp_queue_incomplete(expected_weight: Option<Weight>)
pub fn assert_dmp_queue_incomplete(expected_weight: Option<Weight>)
Asserts a XCM from Relay Chain is incompletely executed
pub fn assert_dmp_queue_error()
pub fn assert_dmp_queue_error()
Asserts a XCM from Relay Chain is executed with error
pub fn assert_xcmp_queue_success(expected_weight: Option<Weight>)
pub fn assert_xcmp_queue_success(expected_weight: Option<Weight>)
Asserts a XCM from another Parachain is completely executed
§impl<N> AssetHubRococo<N>where
N: Network,
impl<N> AssetHubRococo<N>where
N: Network,
pub fn force_create_asset(
id: u32,
owner: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId,
is_sufficient: bool,
min_balance: u128,
prefund_accounts: Vec<(<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128)>,
)
pub fn force_create_asset( id: u32, owner: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, is_sufficient: bool, min_balance: u128, prefund_accounts: Vec<(<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128)>, )
Create assets using sudo Assets::force_create()
pub fn mint_asset(
signed_origin: <AssetHubRococo<N> as Chain>::RuntimeOrigin,
id: u32,
beneficiary: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId,
amount_to_mint: u128,
)
pub fn mint_asset( signed_origin: <AssetHubRococo<N> as Chain>::RuntimeOrigin, id: u32, beneficiary: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, amount_to_mint: u128, )
Mint assets making use of the assets pallet
pub fn create_asset_call(
asset_id: u32,
min_balance: u128,
admin: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId,
) -> DoubleEncoded<()>
pub fn create_asset_call( asset_id: u32, min_balance: u128, admin: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ) -> DoubleEncoded<()>
Returns the encoded call for create
from the assets pallet
§impl<N> AssetHubRococo<N>where
N: Network,
impl<N> AssetHubRococo<N>where
N: Network,
pub fn force_create_asset_call(
asset_id: u32,
owner: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId,
is_sufficient: bool,
min_balance: u128,
) -> DoubleEncoded<()>
pub fn force_create_asset_call( asset_id: u32, owner: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, is_sufficient: bool, min_balance: u128, ) -> DoubleEncoded<()>
Returns the encoded call for force_create
from the assets pallet
pub fn force_create_asset_xcm(
origin_kind: OriginKind,
asset_id: u32,
owner: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId,
is_sufficient: bool,
min_balance: u128,
) -> VersionedXcm<()>
pub fn force_create_asset_xcm( origin_kind: OriginKind, asset_id: u32, owner: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, is_sufficient: bool, min_balance: u128, ) -> VersionedXcm<()>
Returns a VersionedXcm
for force_create
from the assets pallet
pub fn force_create_and_mint_asset(
id: u32,
min_balance: u128,
is_sufficient: bool,
asset_owner: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId,
dmp_weight_threshold: Option<Weight>,
amount_to_mint: u128,
)
pub fn force_create_and_mint_asset( id: u32, min_balance: u128, is_sufficient: bool, asset_owner: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, dmp_weight_threshold: Option<Weight>, amount_to_mint: u128, )
Force create and mint assets making use of the assets pallet
pub fn force_create_asset_from_relay_as_root(
id: u32,
min_balance: u128,
is_sufficient: bool,
asset_owner: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId,
dmp_weight_threshold: Option<Weight>,
)
pub fn force_create_asset_from_relay_as_root( id: u32, min_balance: u128, is_sufficient: bool, asset_owner: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, dmp_weight_threshold: Option<Weight>, )
Relay Chain sends Transact
instruction with force_create_asset
to Parachain with Assets
instance of pallet_assets
.
§impl<N> AssetHubRococo<N>where
N: Network,
impl<N> AssetHubRococo<N>where
N: Network,
pub fn force_create_foreign_asset(
id: Location,
owner: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId,
is_sufficient: bool,
min_balance: u128,
prefund_accounts: Vec<(<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128)>,
)
pub fn force_create_foreign_asset( id: Location, owner: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, is_sufficient: bool, min_balance: u128, prefund_accounts: Vec<(<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128)>, )
Create foreign assets using sudo ForeignAssets::force_create()
pub fn mint_foreign_asset(
signed_origin: <AssetHubRococo<N> as Chain>::RuntimeOrigin,
id: Location,
beneficiary: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId,
amount_to_mint: u128,
)
pub fn mint_foreign_asset( signed_origin: <AssetHubRococo<N> as Chain>::RuntimeOrigin, id: Location, beneficiary: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, amount_to_mint: u128, )
Mint assets making use of the ForeignAssets pallet-assets instance
pub fn create_foreign_asset_call(
asset_id: Location,
min_balance: u128,
admin: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId,
) -> DoubleEncoded<()>
pub fn create_foreign_asset_call( asset_id: Location, min_balance: u128, admin: <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ) -> DoubleEncoded<()>
Returns the encoded call for create
from the foreign assets pallet
§impl<N> AssetHubRococo<N>where
N: Network,
impl<N> AssetHubRococo<N>where
N: Network,
pub fn force_xcm_version(dest: Location, version: u32)
pub fn force_xcm_version(dest: Location, version: u32)
Set XCM version for destination.
pub fn force_default_xcm_version(version: Option<u32>)
pub fn force_default_xcm_version(version: Option<u32>)
Set default/safe XCM version for runtime.
§impl<N> AssetHubRococo<N>where
N: Network,
impl<N> AssetHubRococo<N>where
N: Network,
pub fn fund_accounts(
accounts: Vec<(<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128)>,
)
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(sibling_para_id: Id, balance: u128)
pub fn fund_para_sovereign(sibling_para_id: Id, balance: u128)
Fund a sovereign account of sibling para.
pub fn sovereign_account_of_parachain_on_other_global_consensus(
network_id: NetworkId,
para_id: Id,
) -> <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
pub fn sovereign_account_of_parachain_on_other_global_consensus( network_id: NetworkId, para_id: Id, ) -> <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
Return local sovereign account of para_id
on other network_id
§impl<N> AssetHubRococo<N>where
N: Network,
impl<N> AssetHubRococo<N>where
N: Network,
pub fn open_bridge(
bridge_location: Location,
bridge_destination_universal_location: Junctions,
maybe_paid: Option<(Asset, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId)>,
)
pub fn open_bridge( bridge_location: Location, bridge_destination_universal_location: Junctions, maybe_paid: Option<(Asset, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId)>, )
Open bridge with dest
.