authorship

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: 9 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 {
	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

Jump to

Keyboard shortcuts

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