Documentation ¶
Index ¶
- Constants
- func BuildQueryAppliedPath() string
- func BuildQueryPhrasesPath() string
- func BuildQueryTotalPath() string
- func Query(ctx context.Context, route []string, req abci.RequestQuery) (res []byte, err btypes.Error)
- func TotalAppliedInvariant(module string) qtypes.Invariant
- type Mapper
- func (mapper *Mapper) AddAllTotalMintQOSAmount(amount uint64)
- func (mapper *Mapper) Copy() mapper.IMapper
- func (mapper *Mapper) DelAllTotalMintQOSAmount()
- func (mapper *Mapper) GetAllTotalMintQOSAmount() (amount uint64)
- func (mapper *Mapper) GetFirstBlockTime() (t int64)
- func (mapper *Mapper) GetInflationPhrases() (phrases types.InflationPhrases, exists bool)
- func (mapper *Mapper) GetTotalQOSAmount() (amount uint64)
- func (mapper *Mapper) MustGetInflationPhrases() types.InflationPhrases
- func (mapper *Mapper) SetAllTotalMintQOSAmount(amount uint64)
- func (mapper *Mapper) SetFirstBlockTime(t int64)
- func (mapper *Mapper) SetInflationPhrases(phrases types.InflationPhrases)
- func (mapper *Mapper) SetTotalQOSAmount(amount uint64)
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 BuildQueryTotalPath ¶
func BuildQueryTotalPath() string
func Query ¶
func Query(ctx context.Context, route []string, req abci.RequestQuery) (res []byte, err btypes.Error)
nolint
func TotalAppliedInvariant ¶
Types ¶
type Mapper ¶
type Mapper struct {
*mapper.BaseMapper
}
func (*Mapper) AddAllTotalMintQOSAmount ¶
增加总分配的QOS总数
func (*Mapper) DelAllTotalMintQOSAmount ¶
func (mapper *Mapper) DelAllTotalMintQOSAmount()
func (*Mapper) GetAllTotalMintQOSAmount ¶
获取总分配的QOS总数
func (*Mapper) GetFirstBlockTime ¶
func (*Mapper) GetInflationPhrases ¶
func (mapper *Mapper) GetInflationPhrases() (phrases types.InflationPhrases, exists bool)
func (*Mapper) GetTotalQOSAmount ¶
获取QOS发行总量(已发行+待发行)
func (*Mapper) MustGetInflationPhrases ¶
func (mapper *Mapper) MustGetInflationPhrases() types.InflationPhrases
func (*Mapper) SetAllTotalMintQOSAmount ¶
设置总分配的QOS总数
func (*Mapper) SetFirstBlockTime ¶
func (*Mapper) SetInflationPhrases ¶
func (mapper *Mapper) SetInflationPhrases(phrases types.InflationPhrases)
Click to show internal directories.
Click to hide internal directories.