Documentation ¶
Index ¶
- type Store
- func (s *Store) GetAccountRewards(ctx context.Context, account common.Address, limit int, cursor string) ([]*types.AccountRewardHistory, string, error)
- func (s *Store) GetAccountRewardsAt(ctx context.Context, account common.Address, at time.Time) (*types.AccountRewardHistory, error)
- func (s *Store) GetAccountRewardsBetween(ctx context.Context, account common.Address, start, end time.Time) ([]*types.AccountRewardHistory, error)
- func (s *Store) GetAllAccountRewardsAt(ctx context.Context, at time.Time) ([]*types.AccountRewardHistory, error)
- func (s *Store) GetGatewayRewards(ctx context.Context, gatewayID types.ID, limit int, cursor string) ([]*types.GatewayRewardHistory, string, error)
- func (*Store) GetGatewayRewardsAt(ctx context.Context, gatewayID types.ID, at time.Time) (*types.GatewayRewardHistory, error)
- func (s *Store) GetGatewayRewardsBetween(ctx context.Context, gatewayID types.ID, start, end time.Time) ([]*types.GatewayRewardHistory, error)
- func (s *Store) GetLatestRewardsDate(ctx context.Context) (time.Time, error)
- func (s *Store) GetLatestRewardsDateCached(ctx context.Context) (time.Time, error)
- func (s *Store) GetLatestSignedAccountReward(ctx context.Context, account common.Address) (*types.AccountRewardHistory, error)
- func (s *Store) GetMapperRewards(ctx context.Context, mapperID types.ID, limit int, cursor string) ([]*types.MapperRewardHistory, string, error)
- func (*Store) GetMapperRewardsAt(ctx context.Context, mapperID types.ID, at time.Time) (*types.MapperRewardHistory, error)
- func (s *Store) GetMapperRewardsBetween(ctx context.Context, mapperID types.ID, start, end time.Time) ([]*types.MapperRewardHistory, error)
- func (s *Store) GetMinMaxRewardsDates(ctx context.Context) (time.Time, time.Time, error)
- func (s *Store) StoreAccountRewards(ctx context.Context, accountRewardHistories []*types.AccountRewardHistory) error
- func (s *Store) StoreGatewayRewards(ctx context.Context, gatewayRewardHistories []*types.GatewayRewardHistory) error
- func (s *Store) StoreMapperRewards(ctx context.Context, mapperRewardHistories []*types.MapperRewardHistory) error
- func (s *Store) StoreRewardHistory(ctx context.Context, rewardHistory *types.RewardHistory) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) GetAccountRewards ¶
func (*Store) GetAccountRewardsAt ¶
func (s *Store) GetAccountRewardsAt(ctx context.Context, account common.Address, at time.Time) (*types.AccountRewardHistory, error)
GetAccountRewardsAt implements store.Store
func (*Store) GetAccountRewardsBetween ¶
func (*Store) GetAllAccountRewardsAt ¶
func (s *Store) GetAllAccountRewardsAt(ctx context.Context, at time.Time) ([]*types.AccountRewardHistory, error)
GetAllAccountRewardsAt implements store.Store
func (*Store) GetGatewayRewards ¶
func (*Store) GetGatewayRewardsAt ¶
func (*Store) GetGatewayRewardsAt(ctx context.Context, gatewayID types.ID, at time.Time) (*types.GatewayRewardHistory, error)
GetGatewayRewardsAt implements store.Store
func (*Store) GetGatewayRewardsBetween ¶
func (*Store) GetLatestRewardsDate ¶
GetLatestRewardsDate implements store.Store
func (*Store) GetLatestRewardsDateCached ¶
func (*Store) GetLatestSignedAccountReward ¶
func (s *Store) GetLatestSignedAccountReward(ctx context.Context, account common.Address) (*types.AccountRewardHistory, error)
GetLatestSignedAccountReward implements store.Store
func (*Store) GetMapperRewards ¶
func (*Store) GetMapperRewardsAt ¶
func (*Store) GetMapperRewardsAt(ctx context.Context, mapperID types.ID, at time.Time) (*types.MapperRewardHistory, error)
GetMapperRewardsAt implements store.Store
func (*Store) GetMapperRewardsBetween ¶
func (*Store) GetMinMaxRewardsDates ¶
func (*Store) StoreAccountRewards ¶
func (s *Store) StoreAccountRewards(ctx context.Context, accountRewardHistories []*types.AccountRewardHistory) error
StoreAccountRewards implements store.Store
func (*Store) StoreGatewayRewards ¶
func (s *Store) StoreGatewayRewards(ctx context.Context, gatewayRewardHistories []*types.GatewayRewardHistory) error
StoreGatewayRewards implements store.Store
func (*Store) StoreMapperRewards ¶
func (s *Store) StoreMapperRewards(ctx context.Context, mapperRewardHistories []*types.MapperRewardHistory) error
StoreMapperRewards implements store.Store
func (*Store) StoreRewardHistory ¶
Click to show internal directories.
Click to hide internal directories.