models

package
v0.0.0-...-1196ed7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBAccountRewardHistory

type DBAccountRewardHistory struct {
	Account      string
	Rewards      string
	TotalRewards string
	Processor    string
	Signature    hexutil.Bytes
	Date         time.Time
}

func (*DBAccountRewardHistory) AccountRewardHistory

func (m *DBAccountRewardHistory) AccountRewardHistory() (*types.AccountRewardHistory, error)

func (*DBAccountRewardHistory) Entity

func (m *DBAccountRewardHistory) Entity() string

func (*DBAccountRewardHistory) Key

func (m *DBAccountRewardHistory) Key() string

type DBGatewayRewardHistory

type DBGatewayRewardHistory struct {

	// ID of the gateway
	GatewayID string

	// Date these rewards where issued
	Date time.Time

	// The total amount of Coverage Share Units this gateway has a the date.
	AssumedCoverageShareUnits string

	// The reward in THIX "gweis" for this gateway
	Rewards string
}

func (*DBGatewayRewardHistory) Entity

func (m *DBGatewayRewardHistory) Entity() string

func (DBGatewayRewardHistory) GatewayRewardHistory

func (m DBGatewayRewardHistory) GatewayRewardHistory() (*types.GatewayRewardHistory, error)

func (*DBGatewayRewardHistory) Key

func (m *DBGatewayRewardHistory) Key() string

type DBMapperRewardHistory

type DBMapperRewardHistory struct {

	// ID of the mapper
	MapperID string

	// Date these rewards where issued
	Date time.Time

	// The total amount of Coverage Share Units this mapper has a the date.
	MappingUnits string

	// The reward in THIX "gweis" for this mapper
	Rewards string
}

func (*DBMapperRewardHistory) Entity

func (m *DBMapperRewardHistory) Entity() string

func (*DBMapperRewardHistory) Key

func (m *DBMapperRewardHistory) Key() string

func (DBMapperRewardHistory) MapperRewardHistory

func (m DBMapperRewardHistory) MapperRewardHistory() (*types.MapperRewardHistory, error)

type DBRewardHistory

type DBRewardHistory struct {
	// Date these rewards where issued
	Date time.Time

	// The total amount of Coverage Share Units issued
	TotalAssumedCoverageShareUnits string

	// The total amount of MappingUnits the mapper got rewards for
	TotalMappingUnits string

	// The total rewards issued in THIX "gweis"
	TotalRewards string
}

func NewDBRewardHistory

func NewDBRewardHistory(e *types.RewardHistory) *DBRewardHistory

func (*DBRewardHistory) Entity

func (m *DBRewardHistory) Entity() string

func (*DBRewardHistory) Key

func (m *DBRewardHistory) Key() string

func (*DBRewardHistory) RewardHistory

func (m *DBRewardHistory) RewardHistory() (*types.RewardHistory, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL