extrinsic

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUnsignedValidatorForChecked

func NewUnsignedValidatorForChecked(extrinsic RuntimeExtrinsic) primitives.UnsignedValidator

Types

type RuntimeExtrinsic

type RuntimeExtrinsic interface {
	Module(index sc.U8) (module primitives.Module, isFound bool)
	CreateInherents(inherentData primitives.InherentData) ([]byte, error)
	CheckInherents(data primitives.InherentData, block primitives.Block) (primitives.CheckInherentsResult, error)
	EnsureInherentsAreFirst(block primitives.Block) int
	OnInitialize(n sc.U64) (primitives.Weight, error)
	OnRuntimeUpgrade() primitives.Weight
	OnFinalize(n sc.U64) error
	OnIdle(n sc.U64, remainingWeight primitives.Weight) primitives.Weight
	OffchainWorker(n sc.U64)
	Metadata() (sc.Sequence[primitives.MetadataModuleV14], primitives.MetadataExtrinsicV14)
	MetadataLatest() (sc.Sequence[primitives.MetadataModuleV15], primitives.MetadataExtrinsicV15, primitives.OuterEnums, primitives.CustomMetadata)
}

type UnsignedValidatorForChecked

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

func (UnsignedValidatorForChecked) PreDispatch

func (v UnsignedValidatorForChecked) PreDispatch(call primitives.Call) (sc.Empty, error)

PreDispatch validates the dispatch call before execution. Inherent call is accepted for being dispatched

func (UnsignedValidatorForChecked) ValidateUnsigned

ValidateUnsigned returns the validity of the dispatch call. Inherent call is not validated as unsigned

Jump to

Keyboard shortcuts

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