referrerpolicy=no-referrer-when-downgrade
asset_hub_westend_runtime

Type Alias ForeignAssetsConfig

Source
pub type ForeignAssetsConfig = GenesisConfig<Runtime, Instance2>;

Aliased Type§

struct ForeignAssetsConfig {
    pub assets: Vec<(Location, AccountId32, bool, u128)>,
    pub metadata: Vec<(Location, Vec<u8>, Vec<u8>, u8)>,
    pub accounts: Vec<(Location, AccountId32, u128)>,
    pub next_asset_id: Option<Location>,
}

Fields§

§assets: Vec<(Location, AccountId32, bool, u128)>

Genesis assets: id, owner, is_sufficient, min_balance

§metadata: Vec<(Location, Vec<u8>, Vec<u8>, u8)>

Genesis metadata: id, name, symbol, decimals

§accounts: Vec<(Location, AccountId32, u128)>

Genesis accounts: id, account_id, balance

§next_asset_id: Option<Location>

Genesis [NextAssetId].

Refer to the [NextAssetId] item for more information.

This does not enforce the asset ID for the assets within the genesis config. It sets the [NextAssetId] after they have been created.

Trait Implementations

Source§

impl<T, I> BuildGenesisConfig for GenesisConfig<T, I>
where T: Config<I>, I: 'static,

Source§

fn build(&self)

The build function puts initial GenesisConfig keys/values pairs into the storage.
Source§

impl<T, I> BuildStorage for GenesisConfig<T, I>
where T: Config<I>, I: 'static,

Source§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

Assimilate the storage for this module into pre-existing overlays.
Source§

fn build_storage(&self) -> Result<Storage, String>

Build the storage out of this builder.
Source§

impl<T, I> Default for GenesisConfig<T, I>
where T: Config<I>, I: 'static,

Source§

fn default() -> GenesisConfig<T, I>

Returns the “default value” for a type. Read more
Source§

impl<'de, T, I> Deserialize<'de> for GenesisConfig<T, I>
where T: Config<I>, I: 'static,

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<GenesisConfig<T, I>, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<T, I> Serialize for GenesisConfig<T, I>
where T: Config<I>, I: 'static,

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more