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 units in which we record balances.
Identifier for the class of asset.
type Currency: ReservableCurrency<Self::AccountId>
type Currency: ReservableCurrency<Self::AccountId>
The currency mechanism.
type ForceOrigin: EnsureOrigin<Self::Origin>
type ForceOrigin: EnsureOrigin<Self::Origin>
The origin which may forcibly create or destroy an asset or otherwise alter privileged attributes.
type AssetDeposit: Get<<<Self as Config<I>>::Currency as Currency<<Self as SystemConfig>::AccountId>>::Balance>
type AssetDeposit: Get<<<Self as Config<I>>::Currency as Currency<<Self as SystemConfig>::AccountId>>::Balance>
The basic amount of funds that must be reserved for an asset.
type MetadataDepositBase: 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>
The basic amount of funds that must be reserved when adding metadata to your asset.
type MetadataDepositPerByte: 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>
The additional funds that must be reserved for the number of bytes you store in your metadata.
type ApprovalDeposit: 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>
The amount of funds that must be reserved when creating a new approval.
type StringLimit: Get<u32>
type StringLimit: Get<u32>
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.
type WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.