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)
}
func New ¶
func New(modules []primitives.Module, extra primitives.SignedExtra, mdGenerator *primitives.MetadataTypeGenerator, logger log.DebugLogger) RuntimeExtrinsic
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 ¶
func (v UnsignedValidatorForChecked) ValidateUnsigned(txSource primitives.TransactionSource, call primitives.Call) (primitives.ValidTransaction, error)
ValidateUnsigned returns the validity of the dispatch call. Inherent call is not validated as unsigned
Click to show internal directories.
Click to hide internal directories.