pub fn force_create<T: Config<I>, I: 'static>(
id: T::AssetIdParameter,
owner: <<T as Config>::Lookup as StaticLookup>::Source,
is_sufficient: bool,
min_balance: T::Balance,
)Expand description
Issue a new class of fungible assets from a privileged origin.
This new asset class has no assets initially.
The origin must conform to ForceOrigin.
Unlike create, no funds are reserved.
Unlike create, the id does not have to be the one required by
Config::AssetIdAllocator: a privileged origin may pick any id, which is then
marked as allocated.
§Warning
Forcing an arbitrary id is dangerous: the pallet only checks that id is not
currently in use, not that it was never used before. Reusing an id can corrupt state,
most severely for bridged assets, where a collision breaks the local/remote mapping.
id: The identifier of the new asset. This must not be currently in use to identify an existing asset, and must never have been in use previously (see warning above).owner: The owner of this class of assets. The owner has full superuser permissions over this asset, but may later change and configure the permissions usingtransfer_ownershipandset_team.min_balance: The minimum balance of this new asset that any single account must have. If an account’s balance is reduced below this, then it collapses to zero.
Emits ForceCreated event when successful.
Weight: O(1)
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::force_create.