token

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: CC0-1.0 Imports: 10 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 {
	Tokens []types.Token `yaml:"tokens"`
}

Config contains the configuration about the token and pricefeed module

func NewConfig

func NewConfig(tokens []types.Token) *Config

NewConfig returns a new Config instance

func ParseConfig

func ParseConfig(bz []byte) (*Config, error)

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module represents the token module

func NewModule

func NewModule(cfg config.Config, cdc codec.Marshaler, db database.Database, logger logging.Logger, source source.Node) *Module

func (*Module) Name

func (m *Module) Name() string

Name implements modules.Module

func (*Module) RunAdditionalOperations

func (m *Module) RunAdditionalOperations() error

RunAdditionalOperations implements modules.AdditionalOperationsModule

Jump to

Keyboard shortcuts

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