Trait pallet_asset_index::pallet::Config[][src]

pub trait Config: Config + MaybeAssetIdConvert<u8, Self::AssetId> {
Show 23 associated items type AdminOrigin: EnsureOrigin<Self::Origin, Success = <Self as Config>::AccountId>; type IndexToken: LockableCurrency<Self::AccountId, Balance = Self::Balance>; type Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + Into<u128> + BaseFee; type LockupPeriod: Get<Self::BlockNumber>; type LockupPeriodRange: LockupPeriodRange<Self::BlockNumber>; type IndexTokenLockIdentifier: Get<LockIdentifier>; type MinimumRedemption: Get<Self::Balance>; type WithdrawalPeriod: Get<Self::BlockNumber>; type RemoteAssetManager: RemoteAssetManager<Self::AccountId, Self::AssetId, Self::Balance>; type AssetId: Parameter + Member + Copy + MaybeSerializeDeserialize; type MaxActiveDeposits: Get<u32>; type MaxDecimals: Get<u8>; type RedemptionFee: Get<RedemptionFeeRange<Self::BlockNumber>>; type SelfAssetId: Get<Self::AssetId>; type Currency: MultiReservableCurrency<Self::AccountId, CurrencyId = Self::AssetId, Balance = Self::Balance>; type PriceFeed: PriceFeed<Self::AssetId>; type PriceFeedBenchmarks: PriceFeedBenchmarks<Self::AccountId, Self::AssetId>; type SaftRegistry: SaftRegistry<Self::AssetId, Self::Balance>; type BaseWithdrawalFee: Get<FeeRate>; type TreasuryPalletId: Get<PalletId>; type Event: From<Event<Self>> + IsType<<Self as Config>::Event>; type StringLimit: Get<u32>; type WeightInfo: WeightInfo;
}
Expand description

Configuration trait of this pallet.

Implement this type for a runtime in order to customize this pallet.

Associated Types

Origin that is allowed to administer the index

Currency implementation to use as the index token

The balance type used within this pallet

Period after the minting of the index token for which 100% is locked up. Only applies to users contributing assets directly to index

Range of the lockup period

The identifier for the index token lock. Used to lock up deposits for T::LockupPeriod.

The minimum amount of the index token that can be redeemed for the underlying asset in the index

Minimum amount of time between redeeming index tokens and being able to withdraw the awarded assets

Type that handles cross chain transfers

Type used to identify assets

Restricts how many deposits can be active

Restricts the max limit of decimals in metadata

Determines the redemption fee in complete_withdraw

The native asset id

Currency type for deposit/withdraw assets to/from the user’s sovereign account

The types that provides the necessary asset price pairs

The type that provides benchmark features of pallet_price_feed

The type registry that stores all NAV for non liquid assets

The basic fees that apply when a withdrawal is executed

The treasury’s pallet id, used for deriving its sovereign account ID.

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

The weight for this pallet’s extrinsics.

Implementors