Documentation ¶
Index ¶
- type BankModule
- type Config
- type Module
- func (m *Module) HandleBlock(b *tmctypes.ResultBlock, _ *tmctypes.ResultBlockResults, _ []*juno.Tx, ...) error
- func (m *Module) HandleGenesis(doc *tmtypes.GenesisDoc, appState map[string]json.RawMessage) error
- func (m *Module) HandleMsg(_ int, msg sdk.Msg, tx *juno.Tx) error
- func (m *Module) Name() string
- func (m *Module) RefreshDelegatorRewards(height int64, delegator string) error
- func (m *Module) RegisterPeriodicOperations(scheduler *gocron.Scheduler) error
- func (m *Module) RunAdditionalOperations() error
- func (m *Module) UpdateParams(height int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BankModule ¶
BankModule represents the bank module we expect
type Config ¶
type Config struct {
RewardsFrequency int64 `yaml:"rewards_frequency,omitempty"`
}
Config contains the configuration about distribution frequency
func ParseConfig ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module represents the x/distr module
func NewModule ¶
func NewModule(cfg config.Config, source distrsource.Source, bankModule BankModule, cdc codec.Marshaler, db *database.Db) *Module
NewModule returns a new Module instance
func (*Module) HandleBlock ¶
func (m *Module) HandleBlock( b *tmctypes.ResultBlock, _ *tmctypes.ResultBlockResults, _ []*juno.Tx, _ *tmctypes.ResultValidators, ) error
HandleBlock implements modules.BlockModule
func (*Module) HandleGenesis ¶
func (m *Module) HandleGenesis(doc *tmtypes.GenesisDoc, appState map[string]json.RawMessage) error
HandleGenesis implements modules.Module
func (*Module) RefreshDelegatorRewards ¶
RefreshDelegatorRewards refreshes the rewards associated to the given delegator for the given height, deleting the ones existing and downloading them from scratch.
func (*Module) RegisterPeriodicOperations ¶
RegisterPeriodicOperations implements modules.PeriodicOperationsModule
func (*Module) RunAdditionalOperations ¶
RunAdditionalOperations implements modules.AdditionalOperationsModule
func (*Module) UpdateParams ¶
UpdateParams gets the updated params and stores them inside the database