Trait pallet_assets::pallet::DefaultConfig
source · pub trait DefaultConfig: DefaultConfig {
Show 15 associated items
type RuntimeEvent;
type Balance: Member + Parameter + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + MaxEncodedLen + TypeInfo;
type RemoveItemsLimit: Get<u32>;
type AssetId: Member + Parameter + Clone + MaybeSerializeDeserialize + MaxEncodedLen;
type AssetIdParameter: Parameter + From<Self::AssetId> + Into<Self::AssetId> + MaxEncodedLen;
type AssetDeposit;
type AssetAccountDeposit;
type MetadataDepositBase;
type MetadataDepositPerByte;
type ApprovalDeposit;
type StringLimit: Get<u32>;
type Extra: Member + Parameter + Default + MaxEncodedLen;
type CallbackHandle: AssetsCallback<Self::AssetId, Self::AccountId>;
type WeightInfo: WeightInfo;
type BenchmarkHelper: BenchmarkHelper<Self::AssetIdParameter>;
}
Expand description
Based on Config
. Auto-generated by
#[pallet::config(with_default)]
.
Can be used in tandem with
#[register_default_config]
and
#[derive_impl]
to derive test config traits
based on existing pallet config traits in a safe and developer-friendly way.
See here for more information and caveats about
the auto-generated DefaultConfig
trait and how it is generated.
Required Associated Types§
sourcetype RuntimeEvent
type RuntimeEvent
The overarching event type.
sourcetype Balance: Member + Parameter + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + MaxEncodedLen + TypeInfo
type Balance: Member + Parameter + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + MaxEncodedLen + TypeInfo
The units in which we record balances.
sourcetype RemoveItemsLimit: Get<u32>
type RemoveItemsLimit: Get<u32>
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.
sourcetype AssetId: Member + Parameter + Clone + MaybeSerializeDeserialize + MaxEncodedLen
type AssetId: Member + Parameter + Clone + MaybeSerializeDeserialize + MaxEncodedLen
Identifier for the class of asset.
sourcetype AssetIdParameter: Parameter + From<Self::AssetId> + Into<Self::AssetId> + MaxEncodedLen
type AssetIdParameter: Parameter + From<Self::AssetId> + Into<Self::AssetId> + MaxEncodedLen
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.
sourcetype AssetDeposit
type AssetDeposit
The basic amount of funds that must be reserved for an asset.
sourcetype AssetAccountDeposit
type AssetAccountDeposit
The amount of funds that must be reserved for a non-provider asset account to be maintained.
sourcetype MetadataDepositBase
type MetadataDepositBase
The basic amount of funds that must be reserved when adding metadata to your asset.
sourcetype MetadataDepositPerByte
type MetadataDepositPerByte
The additional funds that must be reserved for the number of bytes you store in your metadata.
sourcetype ApprovalDeposit
type ApprovalDeposit
The amount of funds that must be reserved when creating a new approval.
sourcetype StringLimit: Get<u32>
type StringLimit: Get<u32>
The maximum length of a name or symbol stored on-chain.
sourcetype Extra: Member + Parameter + Default + MaxEncodedLen
type Extra: Member + Parameter + Default + MaxEncodedLen
Additional data to be stored with an account’s asset balance.
sourcetype CallbackHandle: AssetsCallback<Self::AssetId, Self::AccountId>
type CallbackHandle: AssetsCallback<Self::AssetId, Self::AccountId>
Callback methods for asset state change (e.g. asset created or destroyed)
Types implementing the AssetsCallback
can be chained when listed together as a
tuple.
The AutoIncAssetId
callback, in conjunction with the NextAssetId
, can be
used to set up auto-incrementing asset IDs for this collection.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
sourcetype BenchmarkHelper: BenchmarkHelper<Self::AssetIdParameter>
type BenchmarkHelper: BenchmarkHelper<Self::AssetIdParameter>
Helper trait for benchmarks.