Documentation
¶
Index ¶
- type Config
- type Module
- func (m Module) CheckInherent(call primitives.Call, inherent primitives.InherentData) error
- func (m Module) CreateInherent(inherent primitives.InherentData) (sc.Option[primitives.Call], error)
- func (m Module) Functions() map[sc.U8]primitives.Call
- func (m Module) GetIndex() sc.U8
- func (m Module) InherentIdentifier() [8]byte
- func (m Module) IsInherent(call primitives.Call) bool
- func (m Module) Metadata() primitives.MetadataModule
- func (m Module) OnFinalize(_ sc.U64) error
- func (m Module) PreDispatch(_ primitives.Call) (sc.Empty, error)
- func (m Module) ValidateUnsigned(_ primitives.TransactionSource, _ primitives.Call) (primitives.ValidTransaction, error)
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) InherentIdentifier ¶
func (Module) IsInherent ¶
func (m Module) IsInherent(call primitives.Call) bool
func (Module) Metadata ¶
func (m Module) Metadata() primitives.MetadataModule
func (Module) PreDispatch ¶
func (Module) ValidateUnsigned ¶
func (m Module) ValidateUnsigned(_ primitives.TransactionSource, _ primitives.Call) (primitives.ValidTransaction, error)
Click to show internal directories.
Click to hide internal directories.