referrerpolicy=no-referrer-when-downgrade

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§

source

type RuntimeEvent

The overarching event type.

source

type Balance: Member + Parameter + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + MaxEncodedLen + TypeInfo

The units in which we record balances.

source

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.

source

type AssetId: Member + Parameter + Clone + MaybeSerializeDeserialize + MaxEncodedLen

Identifier for the class of asset.

source

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.

source

type AssetDeposit

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

source

type AssetAccountDeposit

The amount of funds that must be reserved for a non-provider asset account to be maintained.

source

type MetadataDepositBase

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

source

type MetadataDepositPerByte

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

source

type ApprovalDeposit

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

source

type StringLimit: Get<u32>

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

source

type Extra: Member + Parameter + Default + MaxEncodedLen

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

source

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.

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

source

type BenchmarkHelper: BenchmarkHelper<Self::AssetIdParameter>

Helper trait for benchmarks.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl DefaultConfig for TestDefaultConfig

§

type RuntimeEvent = ()

§

type Balance = u64

§

type RemoveItemsLimit = ConstU32<5>

§

type AssetId = u32

§

type AssetIdParameter = u32

§

type AssetDeposit = ConstUint<1>

§

type AssetAccountDeposit = ConstUint<10>

§

type MetadataDepositBase = ConstUint<1>

§

type MetadataDepositPerByte = ConstUint<1>

§

type ApprovalDeposit = ConstUint<1>

§

type StringLimit = ConstU32<50>

§

type Extra = ()

§

type CallbackHandle = ()

§

type WeightInfo = ()

§

type BenchmarkHelper = ()