Trait pallet_payment::pallet::Config
source · pub trait Config: Config {
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
type Currency: Currency<Self::AccountId> + ReservableCurrency<Self::AccountId>;
type DisputeResolver: DisputeResolver<Self::AccountId>;
type FeeHandler: FeeHandler<Self>;
type IncentivePercentage: Get<Percent>;
type MaxRemarkLength: Get<u32>;
type CancelBufferBlockLength: Get<Self::BlockNumber>;
type MaxScheduledTaskListLength: Get<u32>;
type WeightInfo: WeightInfo;
}
Expand description
Configure the pallet by specifying the parameters and types on which it depends.
Required Associated Types§
sourcetype Event: From<Event<Self>> + IsType<<Self as Config>::Event>
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>
Because this pallet emits events, it depends on the runtime’s definition of an event.
type Currency: Currency<Self::AccountId> + ReservableCurrency<Self::AccountId>
sourcetype DisputeResolver: DisputeResolver<Self::AccountId>
type DisputeResolver: DisputeResolver<Self::AccountId>
Dispute resolution account
sourcetype FeeHandler: FeeHandler<Self>
type FeeHandler: FeeHandler<Self>
Fee handler trait
sourcetype IncentivePercentage: Get<Percent>
type IncentivePercentage: Get<Percent>
Incentive percentage - amount witheld from sender
sourcetype MaxRemarkLength: Get<u32>
type MaxRemarkLength: Get<u32>
Maximum permitted size of Remark
sourcetype CancelBufferBlockLength: Get<Self::BlockNumber>
type CancelBufferBlockLength: Get<Self::BlockNumber>
Buffer period - number of blocks to wait before user can claim canceled payment
sourcetype MaxScheduledTaskListLength: Get<u32>
type MaxScheduledTaskListLength: Get<u32>
Buffer period - number of blocks to wait before user can claim canceled payment