parachain

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

Documentation

Index

Constants

View Source
const (
	ApiModuleName = "Parachain"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

Module implements the Parachain `validate_block` Runtime API function

func New

func New(
	parachainSystem parachain_system.Module,
	blockExecutor aura_ext.BlockExecutor,
	runtimeDecoder types.RuntimeDecoder,
	hostEnvironment pvf.HostEnvironment,
	logger log.RuntimeLogger) Module

func (Module) Item

func (m Module) Item() primitives.ApiItem

Item returns the first 8 bytes of the Blake2b hash of the name and version of the api module.

func (Module) Name

func (m Module) Name() string

Name returns the name of the api module

func (Module) ValidateBlock

func (m Module) ValidateBlock(dataPtr int32, dataLen int32) int64

Jump to

Keyboard shortcuts

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