Trait pallet_3vm::pallet::Config
source · pub trait Config: Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type CircuitTargetId: Get<ChainId>;
type SignalBounceThreshold: Get<u32>;
type ContractsRegistry: ContractsRegistry<Self, Self::Currency>;
type Currency: Currency<Self::AccountId>;
type EscrowAccount: Get<Self::AccountId>;
type AssetId;
type AccountManager: AccountManager<Self::AccountId, BalanceOf<Self>, Self::Hash, BlockNumberFor<Self>, Self::AssetId>;
type AddressMapping: AddressMapping<Self::AccountId>;
type VacuumEVMApi: VacuumAccess<Self>;
type OnLocalTrigger: OnLocalTrigger<Self, BalanceOf<Self>>;
type Portal: Portal<Self>;
}
Expand description
Configuration trait of this pallet.
The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.
Consequently, a runtime that wants to include this pallet must implement this trait.
Required Associated Types§
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
sourcetype CircuitTargetId: Get<ChainId>
type CircuitTargetId: Get<ChainId>
The ID of the circuit
sourcetype SignalBounceThreshold: Get<u32>
type SignalBounceThreshold: Get<u32>
Determines the tolerance of debouncing signal requests that have already been sent.
sourcetype ContractsRegistry: ContractsRegistry<Self, Self::Currency>
type ContractsRegistry: ContractsRegistry<Self, Self::Currency>
The pallet that handles the contracts registry, used to fetch contracts
type Currency: Currency<Self::AccountId>
sourcetype EscrowAccount: Get<Self::AccountId>
type EscrowAccount: Get<Self::AccountId>
The address of the escrow account
sourcetype AccountManager: AccountManager<Self::AccountId, BalanceOf<Self>, Self::Hash, BlockNumberFor<Self>, Self::AssetId>
type AccountManager: AccountManager<Self::AccountId, BalanceOf<Self>, Self::Hash, BlockNumberFor<Self>, Self::AssetId>
The account manager that handles the escrow pool
type AddressMapping: AddressMapping<Self::AccountId>
type VacuumEVMApi: VacuumAccess<Self>
sourcetype OnLocalTrigger: OnLocalTrigger<Self, BalanceOf<Self>>
type OnLocalTrigger: OnLocalTrigger<Self, BalanceOf<Self>>
A provider that will give us access to on_local_trigger