Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
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
}
    func NewEventsStore ¶
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) ValidatorPubKeyString ¶
func (re *RewardEvent) ValidatorPubKeyString() string
type SlashEvent ¶
type SlashEvent struct {
	Address         types.Address    `json:"address"`
	Amount          string           `json:"amount"`
	Coin            types.CoinSymbol `json:"coin"`
	ValidatorPubKey types.Pubkey     `json:"validator_pub_key"`
}
    func (*SlashEvent) AddressString ¶
func (se *SlashEvent) AddressString() string
func (*SlashEvent) ValidatorPubKeyString ¶
func (se *SlashEvent) ValidatorPubKeyString() string
type UnbondEvent ¶
type UnbondEvent struct {
	Address         types.Address    `json:"address"`
	Amount          string           `json:"amount"`
	Coin            types.CoinSymbol `json:"coin"`
	ValidatorPubKey types.Pubkey     `json:"validator_pub_key"`
}
    func (*UnbondEvent) AddressString ¶
func (ue *UnbondEvent) AddressString() string
func (*UnbondEvent) ValidatorPubKeyString ¶
func (ue *UnbondEvent) ValidatorPubKeyString() string
 Click to show internal directories. 
   Click to hide internal directories.