Trait pallet_assets::pallet::Config[][src]

pub trait Config<I: 'static = ()>: Config {
Show associated items type Event: From<Event<Self, I>> + IsType<<Self as Config>::Event>; type Balance: Member + Parameter + AtLeast32BitUnsigned + Default + Copy + MaxEncodedLen; type AssetId: Member + Parameter + Default + Copy + HasCompact + MaxEncodedLen; type Currency: ReservableCurrency<Self::AccountId>; type ForceOrigin: EnsureOrigin<Self::Origin>; type AssetDeposit: Get<<<Self as Config<I>>::Currency as Currency<<Self as SystemConfig>::AccountId>>::Balance>; type MetadataDepositBase: Get<<<Self as Config<I>>::Currency as Currency<<Self as SystemConfig>::AccountId>>::Balance>; type MetadataDepositPerByte: Get<<<Self as Config<I>>::Currency as Currency<<Self as SystemConfig>::AccountId>>::Balance>; type ApprovalDeposit: Get<<<Self as Config<I>>::Currency as Currency<<Self as SystemConfig>::AccountId>>::Balance>; type StringLimit: Get<u32>; type Freezer: FrozenBalance<Self::AssetId, Self::AccountId, Self::Balance>; type Extra: Member + Parameter + Default + MaxEncodedLen; type WeightInfo: WeightInfo;
}
Expand description

The module configuration trait.

Associated Types

The overarching event type.

The units in which we record balances.

Identifier for the class of asset.

The currency mechanism.

The origin which may forcibly create or destroy an asset or otherwise alter privileged attributes.

The basic amount of funds that must be reserved for an asset.

The basic amount of funds that must be reserved when adding metadata to your asset.

The additional funds that must be reserved for the number of bytes you store in your metadata.

The amount of funds that must be reserved when creating a new approval.

The maximum length of a name or symbol stored on-chain.

A hook to allow a per-asset, per-account minimum balance to be enforced. This must be respected in all permissionless operations.

Additional data to be stored with an account’s asset balance.

Weight information for extrinsics in this pallet.

Implementors