Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorOverlappingUpgrades sc.U8 = iota ErrorProhibitedByPolkadot ErrorTooBig ErrorValidationDataNotAvailable ErrorHostConfigurationNotAvailable ErrorNotScheduled ErrorNothingAuthorized )
View Source
const ( EventValidationFunctionStored sc.U8 = iota EventValidationFunctionApplied EventValidationFunctionDiscarded EventDownwardMessagesReceived EventDownwardMessagesProcessed EventUpwardMessageSent )
View Source
const (
FunctionSetValidationData = iota
)
View Source
const (
InherentErrorInvalid sc.U8 = iota
)
Variables ¶
This section is empty.
Functions ¶
func NewSetCode ¶
Types ¶
type CheckAssociatedRelayNumber ¶
type CheckAssociatedRelayNumber interface {
CheckAssociatedRelayNumber(current parachain.RelayChainBlockNumber, previous parachain.RelayChainBlockNumber)
}
type Config ¶
type Config struct { Storage io.Storage DbWeight primitives.RuntimeDbWeight CheckAssociatedRelayNumber CheckAssociatedRelayNumber SelfParaId parachain_info.Module ConsensusHook ConsensusHook // contains filtered or unexported fields }
func NewConfig ¶
func NewConfig(storage io.Storage, dbWeight primitives.RuntimeDbWeight, checkAssociatedRelayNumber CheckAssociatedRelayNumber, selfParaId parachain_info.Module, systemModule system.Module, consensusHook ConsensusHook) Config
type ConsensusHook ¶
type ConsensusHook interface {
OnStateProof(proof parachain.RelayChainStateProof) (primitives.Weight, parachain.UnincludedSegmentCapacity, error)
}
type InherentError ¶
type InherentError struct {
sc.VaryingData
}
func NewInherentErrorInvalid ¶
func NewInherentErrorInvalid() InherentError
func (InherentError) Error ¶
func (ie InherentError) Error() string
func (InherentError) IsFatal ¶
func (ie InherentError) IsFatal() sc.Bool
type Module ¶
type Module interface { primitives.Module StorageNewValidationCodeBytes() (sc.Option[sc.Sequence[sc.U8]], error) ScheduleCodeUpgrade(code sc.Sequence[sc.U8]) error CollectCollationInfo(header primitives.Header) (parachain.CollationInfo, error) }
func New ¶
func New(index sc.U8, config Config, mdGenerator *primitives.MetadataTypeGenerator, logger log.RuntimeLogger) Module
type RelayNumberStrictlyIncreases ¶
type RelayNumberStrictlyIncreases struct {
// contains filtered or unexported fields
}
func NewRelayNumberStrictlyIncreases ¶
func NewRelayNumberStrictlyIncreases(logger log.RuntimeLogger) RelayNumberStrictlyIncreases
func (RelayNumberStrictlyIncreases) CheckAssociatedRelayNumber ¶
func (rnsi RelayNumberStrictlyIncreases) CheckAssociatedRelayNumber(current parachain.RelayChainBlockNumber, previous parachain.RelayChainBlockNumber)
Click to show internal directories.
Click to hide internal directories.