Documentation
¶
Index ¶
- type BlockExecutor
- type Config
- type FixedVelocityConsensusHook
- type Module
- func (m Module) BuildConfig(_ []byte) error
- func (m Module) CreateDefaultConfig() ([]byte, error)
- func (m Module) Functions() map[sc.U8]primitives.Call
- func (m Module) GetIndex() sc.U8
- func (m Module) Metadata() primitives.MetadataModule
- func (m Module) OnFinalize(_ sc.U64) error
- func (m Module) OnInitialize(_ sc.U64) (primitives.Weight, error)
- func (m Module) PreDispatch(_ primitives.Call) (sc.Empty, error)
- func (m Module) ValidateUnsigned(_ primitives.TransactionSource, _ primitives.Call) (primitives.ValidTransaction, error)
- type SlotInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockExecutor ¶
type BlockExecutor interface {
ExecuteBlock(block primitives.Block) error
}
func NewBlockExecutor ¶
func NewBlockExecutor(module Module, executiveModule executive.Module) BlockExecutor
type FixedVelocityConsensusHook ¶
type FixedVelocityConsensusHook struct { RelayChainSlotDurationMillis sc.U32 BlockProcessingVelocity sc.U32 NotIncludedSegmentCapacity sc.U32 // contains filtered or unexported fields }
func NewFixedVelocityConsensusHook ¶
func NewFixedVelocityConsensusHook(relayChainSlotDurationMillis, blockProcessingVelocity, notIncludedSegmentCapacity sc.U32, DbWeight primitives.RuntimeDbWeight, module Module, logger log.RuntimeLogger) FixedVelocityConsensusHook
func (FixedVelocityConsensusHook) OnStateProof ¶
func (fvch FixedVelocityConsensusHook) OnStateProof(stateProof parachain.RelayChainStateProof) (primitives.Weight, parachain.UnincludedSegmentCapacity, error)
type Module ¶
type Module struct { primitives.DefaultInherentProvider hooks.DefaultDispatchModule // contains filtered or unexported fields }
func New ¶
func New(index sc.U8, config Config, aura aura.AuraModule, logger log.RuntimeLogger) Module
func (Module) BuildConfig ¶
func (Module) CreateDefaultConfig ¶
func (Module) Metadata ¶
func (m Module) Metadata() primitives.MetadataModule
func (Module) OnInitialize ¶
func (Module) PreDispatch ¶
func (Module) ValidateUnsigned ¶
func (m Module) ValidateUnsigned(_ primitives.TransactionSource, _ primitives.Call) (primitives.ValidTransaction, error)
Click to show internal directories.
Click to hide internal directories.