pub trait Config<I: 'static = ()>: Config {
Show 18 associated items type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>; type Balance: Member + Parameter + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + MaxEncodedLen + TypeInfo; type RemoveItemsLimit: Get<u32>; type AssetId: Member + Parameter + Copy + MaybeSerializeDeserialize + MaxEncodedLen; type AssetIdParameter: Parameter + Copy + From<Self::AssetId> + Into<Self::AssetId> + MaxEncodedLen; type Currency: ReservableCurrency<Self::AccountId>; type CreateOrigin: EnsureOriginWithArg<Self::RuntimeOrigin, Self::AssetId, Success = Self::AccountId>; type ForceOrigin: EnsureOrigin<Self::RuntimeOrigin>; type AssetDeposit: Get<<<Self as Config<I>>::Currency as Currency<<Self as SystemConfig>::AccountId>>::Balance>; type AssetAccountDeposit: 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 CallbackHandle: AssetsCallback<Self::AssetId, Self::AccountId>; type WeightInfo: WeightInfo;
}
Expand description

The module configuration trait.

Required Associated Types§

The overarching event type.

The units in which we record balances.

Max number of items to destroy per destroy_accounts and destroy_approvals call.

Must be configured to result in a weight that makes each call fit in a block.

Identifier for the class of asset.

Wrapper around Self::AssetId to use in dispatchable call signatures. Allows the use of compact encoding in instances of the pallet, which will prevent breaking changes resulting from the removal of HasCompact from Self::AssetId.

This type includes the From<Self::AssetId> bound, since tightly coupled pallets may want to convert an AssetId into a parameter for calling dispatchable functions directly.

The currency mechanism.

Standard asset class creation is only allowed if the origin attempting it and the asset class are in this set.

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 amount of funds that must be reserved for a non-provider asset account to be maintained.

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.

Callback methods for asset state change (e.g. asset created or destroyed)

Weight information for extrinsics in this pallet.

Implementors§