parachain_system

package
v0.0.3-rc-1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorOverlappingUpgrades sc.U8 = iota
	ErrorProhibitedByPolkadot
	ErrorTooBig
	ErrorValidationDataNotAvailable
	ErrorHostConfigurationNotAvailable
	ErrorNotScheduled
	ErrorNothingAuthorized
	ErrorUnauthorized
)
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

func NewSetCode(m Module) hooks.OnSetCode

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)

type SetCode

type SetCode struct {
	// contains filtered or unexported fields
}

func (SetCode) SetCode

func (s SetCode) SetCode(code sc.Sequence[sc.U8]) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL