mapper

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MapperName = "guardian"
)

Variables

This section is empty.

Functions

func KeyGuardian

func KeyGuardian(address btypes.Address) []byte

func KeyGuardiansSubspace

func KeyGuardiansSubspace() []byte

Types

type Mapper

type Mapper struct {
	*mapper.BaseMapper
}

func GetMapper

func GetMapper(ctx context.Context) *Mapper

func NewMapper

func NewMapper() *Mapper

func (Mapper) AddGuardian

func (mapper Mapper) AddGuardian(guardian types.Guardian)

func (*Mapper) Copy

func (mapper *Mapper) Copy() mapper.IMapper

func (Mapper) DeleteGuardian

func (mapper Mapper) DeleteGuardian(address btypes.Address)

func (Mapper) GetGuardian

func (mapper Mapper) GetGuardian(address btypes.Address) (guardian types.Guardian, exists bool)

func (Mapper) GuardiansIterator

func (mapper Mapper) GuardiansIterator() store.Iterator

func (Mapper) NeedHalt

func (mapper Mapper) NeedHalt(height uint64) bool

func (Mapper) SetHalt

func (mapper Mapper) SetHalt(halt string)

Jump to

Keyboard shortcuts

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