Documentation ¶
Index ¶
- type Module
- func (m *Module) HandleGenesis(doc *tmtypes.GenesisDoc, _ 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) RegisterPeriodicOperations(scheduler *gocron.Scheduler) error
- func (m *Module) UpdateAccountBalanceHistory(address string) error
- func (m *Module) UpdateAccountBalanceHistoryWithTime(address string, time time.Time) error
- func (m *Module) UpdatePricesHistory(prices []types.TokenPrice) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module represents the module that allows to store historic information
func NewModule ¶
func NewModule(cfg config.ChainConfig, messagesParser messages.MessageAddressesParser, cdc codec.Marshaler, db *database.Db) *Module
NewModule allows to build a new Module instance
func (*Module) HandleGenesis ¶
func (m *Module) HandleGenesis(doc *tmtypes.GenesisDoc, _ map[string]json.RawMessage) error
HandleGenesis implements modules.GenesisModule
func (*Module) RegisterPeriodicOperations ¶
RegisterPeriodicOperations implements modules.PeriodicOperationsModule
func (*Module) UpdateAccountBalanceHistory ¶
UpdateAccountBalanceHistory updates the historic balance for the user having the given address
func (*Module) UpdateAccountBalanceHistoryWithTime ¶
UpdateAccountBalanceHistoryWithTime updates the historic balance for the user having the given address storing it associated to the given time
func (*Module) UpdatePricesHistory ¶
func (m *Module) UpdatePricesHistory(prices []types.TokenPrice) error
UpdatePricesHistory stores the given prices inside the price history table
Click to show internal directories.
Click to hide internal directories.