aura_ext

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: 15 Imported by: 0

Documentation

Index

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 Config

type Config struct {
	Storage  io.Storage
	DbWeight types.RuntimeDbWeight
}

func NewConfig

func NewConfig(storage io.Storage, dbWeight types.RuntimeDbWeight) Config

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

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 (m Module) BuildConfig(_ []byte) error

func (Module) CreateDefaultConfig

func (m Module) CreateDefaultConfig() ([]byte, error)

func (Module) Functions

func (m Module) Functions() map[sc.U8]primitives.Call

func (Module) GetIndex

func (m Module) GetIndex() sc.U8

func (Module) Metadata

func (m Module) Metadata() primitives.MetadataModule

func (Module) OnFinalize

func (m Module) OnFinalize(_ sc.U64) error

func (Module) OnInitialize

func (m Module) OnInitialize(_ sc.U64) (primitives.Weight, error)

func (Module) PreDispatch

func (m Module) PreDispatch(_ primitives.Call) (sc.Empty, error)

type SlotInfo

type SlotInfo struct {
	Slot     sc.U64
	Authored sc.U32
}

func DecodeSlotInfo

func DecodeSlotInfo(buffer *bytes.Buffer) (SlotInfo, error)

func (SlotInfo) Bytes

func (si SlotInfo) Bytes() []byte

func (SlotInfo) Encode

func (si SlotInfo) Encode(buffer *bytes.Buffer) error

Jump to

Keyboard shortcuts

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