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: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Mint    = "mint"
	Phrases = "phrases"
	Total   = "total"
	Applied = "applied"
)

nolint

Variables

This section is empty.

Functions

func BuildQueryAppliedPath

func BuildQueryAppliedPath() string

func BuildQueryPhrasesPath

func BuildQueryPhrasesPath() string

nolint

func BuildQueryTotalPath

func BuildQueryTotalPath() string

func Query

func Query(ctx context.Context, route []string, req abci.RequestQuery) (res []byte, err btypes.Error)

nolint

func TotalAppliedInvariant

func TotalAppliedInvariant(module string) qtypes.Invariant

Types

type Mapper

type Mapper struct {
	*mapper.BaseMapper
}

func GetMapper

func GetMapper(ctx context.Context) *Mapper

func NewMapper

func NewMapper() *Mapper

func (*Mapper) AddAllTotalMintQOSAmount

func (mapper *Mapper) AddAllTotalMintQOSAmount(amount uint64)

增加总分配的QOS总数

func (*Mapper) Copy

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

func (*Mapper) DelAllTotalMintQOSAmount

func (mapper *Mapper) DelAllTotalMintQOSAmount()

func (*Mapper) GetAllTotalMintQOSAmount

func (mapper *Mapper) GetAllTotalMintQOSAmount() (amount uint64)

获取总分配的QOS总数

func (*Mapper) GetFirstBlockTime

func (mapper *Mapper) GetFirstBlockTime() (t int64)

func (*Mapper) GetInflationPhrases

func (mapper *Mapper) GetInflationPhrases() (phrases types.InflationPhrases, exists bool)

func (*Mapper) GetTotalQOSAmount

func (mapper *Mapper) GetTotalQOSAmount() (amount uint64)

获取QOS发行总量(已发行+待发行)

func (*Mapper) MustGetInflationPhrases

func (mapper *Mapper) MustGetInflationPhrases() types.InflationPhrases

func (*Mapper) SetAllTotalMintQOSAmount

func (mapper *Mapper) SetAllTotalMintQOSAmount(amount uint64)

设置总分配的QOS总数

func (*Mapper) SetFirstBlockTime

func (mapper *Mapper) SetFirstBlockTime(t int64)

func (*Mapper) SetInflationPhrases

func (mapper *Mapper) SetInflationPhrases(phrases types.InflationPhrases)

func (*Mapper) SetTotalQOSAmount

func (mapper *Mapper) SetTotalQOSAmount(amount uint64)

设置QOS发行总量

Jump to

Keyboard shortcuts

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