State
Genesis state defines the initial state of the module to be used to setup the module.
// GenesisState defines the OCR module's genesis state.
type GenesisState struct {
// params defines all the parameters of related to OCR.
Params Params
// feed_configs stores all of the supported OCR feeds
FeedConfigs []*FeedConfig
// latest_epoch_and_rounds stores the latest epoch and round for each feedId
LatestEpochAndRounds []*FeedEpochAndRound
// feed_transmissions stores the last transmission for each feed
FeedTransmissions []*FeedTransmission
// latest_aggregator_round_ids stores the latest aggregator round ID for each feedId
LatestAggregatorRoundIds []*FeedLatestAggregatorRoundIDs
// reward_pools stores the reward pools
RewardPools []*RewardPool
// feed_observation_counts stores the feed observation counts
FeedObservationCounts []*FeedCounts
// feed_transmission_counts stores the feed transmission counts
FeedTransmissionCounts []*FeedCounts
// pending_payeeships stores the pending payeeships
PendingPayeeships []*PendingPayeeship
}Params
Params is a module-wide configuration that stores system parameters and defines overall functioning of the ocr module.
This module is modifiable by governance using params update proposal natively supported by gov module.
Struct for the ocr module params store.
FeedConfig
FeedConfig is to manage the configurations of feed and it exists one per feed.
FeedConfigInfo
FeedConfigInfo is storing the information that needs to be updated more often for each transmission event.
Transmission
Transmission is the unit to save transition information on the store.
Report
Report is the unit to save report information on the store.
ReportToSign saves the information that needs to be signed by observers.
OnchainConfig
OnchainConfig saves the configuration that needs to be managed on-chain for feed config.
ContractConfig
ContractConfig saves the configuration that is related to contract to store OCR.
FeedProperties
FeedProperties is a unit to store the properties of feed by id.
PendingPayeeship
PendingPayeeship is a record that is stored when a person is delegating payeeship to another address.
When proposed payee accept this, this record is removed.
Last updated
