timestamp

package
v0.0.2-rc-2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	OnTimestampSet hooks.OnTimestampSet[goscale.U64]
	DbWeight       primitives.RuntimeDbWeight
	MinimumPeriod  goscale.U64
}

func NewConfig

func NewConfig(onTsSet hooks.OnTimestampSet[goscale.U64], dbWeight primitives.RuntimeDbWeight, minimumPeriod goscale.U64) *Config

type Module

type Module struct {
	hooks.DefaultDispatchModule
	Index  sc.U8
	Config *Config
	// contains filtered or unexported fields
}

func New

func New(index sc.U8, config *Config, mdGenerator *primitives.MetadataTypeGenerator) Module

func (Module) CheckInherent

func (m Module) CheckInherent(call primitives.Call, inherent primitives.InherentData) error

func (Module) CreateInherent

func (m Module) CreateInherent(inherent primitives.InherentData) (sc.Option[primitives.Call], error)

func (Module) Functions

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

func (Module) GetIndex

func (m Module) GetIndex() sc.U8

func (Module) InherentIdentifier

func (m Module) InherentIdentifier() [8]byte

func (Module) IsInherent

func (m Module) IsInherent(call primitives.Call) bool

func (Module) Metadata

func (m Module) Metadata() primitives.MetadataModule

func (Module) OnFinalize

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

func (Module) PreDispatch

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

Jump to

Keyboard shortcuts

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