Type Alias local_runtime::AssetsConfig
source · pub type AssetsConfig = GenesisConfig<Runtime>;Aliased Type§
struct AssetsConfig {
pub assets: Vec<(u128, AccountId32, bool, u128)>,
pub metadata: Vec<(u128, Vec<u8>, Vec<u8>, u8)>,
pub accounts: Vec<(u128, AccountId32, u128)>,
pub next_asset_id: Option<u128>,
}Fields§
§assets: Vec<(u128, AccountId32, bool, u128)>Genesis assets: id, owner, is_sufficient, min_balance
metadata: Vec<(u128, Vec<u8>, Vec<u8>, u8)>Genesis metadata: id, name, symbol, decimals
accounts: Vec<(u128, AccountId32, u128)>Genesis accounts: id, account_id, balance
next_asset_id: Option<u128>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.