Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Storage io.Storage FindAuthor primitives.FindAuthor[primitives.AccountId] EventHandler EventHandler SystemModule system.Module }
func NewConfig ¶
func NewConfig(storage io.Storage, findAuthor primitives.FindAuthor[primitives.AccountId], eventHandler EventHandler, systemModule system.Module) *Config
type DefaulthEventHandler ¶
type DefaulthEventHandler struct{}
func (DefaulthEventHandler) NoteAuthor ¶
func (d DefaulthEventHandler) NoteAuthor(author primitives.AccountId)
type EventHandler ¶
type EventHandler interface {
NoteAuthor(author primitives.AccountId)
}
type Module ¶
type Module interface { primitives.Module Author() (sc.Option[primitives.AccountId], error) }
func New ¶
func New(index sc.U8, config *Config, mdGenerator *primitives.MetadataTypeGenerator, logger log.RuntimeLogger) Module
Click to show internal directories.
Click to hide internal directories.