Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeRewardEvent = "minter/RewardEvent" TypeSlashEvent = "minter/SlashEvent" TypeUnbondEvent = "minter/UnbondEvent" TypeStakeKickEvent = "minter/StakeKickEvent" )
Event type names
Variables ¶
This section is empty.
Functions ¶
func RegisterAminoEvents ¶
func RegisterAminoEvents(codec *amino.Codec)
Types ¶
type IEventsDB ¶
type IEventsDB interface {
AddEvent(height uint32, event Event)
LoadEvents(height uint32) Events
CommitEvents() error
}
IEventsDB is an interface of Events
func NewEventsStore ¶
NewEventsStore creates new events store in given DB
type RewardEvent ¶
type RewardEvent struct {
Role string `json:"role"`
Address types.Address `json:"address"`
Amount string `json:"amount"`
ValidatorPubKey types.Pubkey `json:"validator_pub_key"`
}
func (*RewardEvent) AddressString ¶
func (re *RewardEvent) AddressString() string
func (*RewardEvent) Type ¶
func (re *RewardEvent) Type() string
func (*RewardEvent) ValidatorPubKeyString ¶
func (re *RewardEvent) ValidatorPubKeyString() string
type SlashEvent ¶
type SlashEvent struct {
Address types.Address `json:"address"`
Amount string `json:"amount"`
Coin uint64 `json:"coin"`
ValidatorPubKey types.Pubkey `json:"validator_pub_key"`
}
func (*SlashEvent) AddressString ¶
func (se *SlashEvent) AddressString() string
func (*SlashEvent) Type ¶
func (se *SlashEvent) Type() string
func (*SlashEvent) ValidatorPubKeyString ¶
func (se *SlashEvent) ValidatorPubKeyString() string
type StakeKickEvent ¶
type StakeKickEvent struct {
Address types.Address `json:"address"`
Amount string `json:"amount"`
Coin uint64 `json:"coin"`
ValidatorPubKey types.Pubkey `json:"validator_pub_key"`
}
func (*StakeKickEvent) AddressString ¶
func (ue *StakeKickEvent) AddressString() string
func (*StakeKickEvent) Type ¶
func (ue *StakeKickEvent) Type() string
func (*StakeKickEvent) ValidatorPubKeyString ¶
func (ue *StakeKickEvent) ValidatorPubKeyString() string
type UnbondEvent ¶
type UnbondEvent struct {
Address types.Address `json:"address"`
Amount string `json:"amount"`
Coin uint64 `json:"coin"`
ValidatorPubKey types.Pubkey `json:"validator_pub_key"`
}
func (*UnbondEvent) AddressString ¶
func (ue *UnbondEvent) AddressString() string
func (*UnbondEvent) Type ¶
func (ue *UnbondEvent) Type() string
func (*UnbondEvent) ValidatorPubKeyString ¶
func (ue *UnbondEvent) ValidatorPubKeyString() string
Click to show internal directories.
Click to hide internal directories.