validator

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetByEntityUidHttpHandler

func NewGetByEntityUidHttpHandler(db *store.Store, c *client.Client) *getByEntityUidHttpHandler

func NewGetByEntityUidUseCase

func NewGetByEntityUidUseCase(db *store.Store) *getByEntityUidUseCase

func NewGetByHeightHttpHandler

func NewGetByHeightHttpHandler(db *store.Store, c *client.Client) *getByHeightHttpHandler

func NewGetByHeightUseCase

func NewGetByHeightUseCase(db *store.Store) *getByHeightUseCase

func NewGetForMinHeightHttpHandler

func NewGetForMinHeightHttpHandler(db *store.Store, c *client.Client) *getForMinHeightHttpHandler

func NewGetForMinHeightUseCase

func NewGetForMinHeightUseCase(db *store.Store) *getForMinHeightUseCase

func NewGetSharesForAllHttpHandler

func NewGetSharesForAllHttpHandler(db *store.Store, c *client.Client) *getSharesForAllHttpHandler

func NewGetSharesForAllUseCase

func NewGetSharesForAllUseCase(db *store.Store) *getSharesForAllUseCase

func NewGetSharesHttpHandler

func NewGetSharesHttpHandler(db *store.Store, c *client.Client) *getSharesHttpHandler

func NewGetSharesUseCase

func NewGetSharesUseCase(db *store.Store) *getSharesUseCase

func NewGetUptimeHttpHandler

func NewGetUptimeHttpHandler(db *store.Store, c *client.Client) *getUptimeHttpHandler

func NewGetUptimeUseCase

func NewGetUptimeUseCase(db *store.Store) *getUptimeUseCase

func NewGetVotingPowerForAllHttpHandler

func NewGetVotingPowerForAllHttpHandler(db *store.Store, c *client.Client) *getVotingPowerForAllHttpHandler

func NewGetVotingPowerForAllUseCase

func NewGetVotingPowerForAllUseCase(db *store.Store) *getVotingPowerForAllUseCase

func NewGetVotingPowerHttpHandler

func NewGetVotingPowerHttpHandler(db *store.Store, c *client.Client) *getVotingPowerHttpHandler

func NewGetVotingPowerUseCase

func NewGetVotingPowerUseCase(db *store.Store) *getVotingPowerUseCase

Types

type AggDetailsView

type AggDetailsView struct {
	*model.Model
	*model.Aggregate

	EntityUID                string         `json:"entity_uid"`
	RecentAddress            string         `json:"recent_address"`
	RecentVotingPower        int64          `json:"recent_voting_power"`
	RecentTotalShares        types.Quantity `json:"recent_total_shares"`
	RecentAsValidatorHeight  int64          `json:"recent_as_validator_height"`
	RecentProposedHeight     int64          `json:"recent_proposed_height"`
	AccumulatedProposedCount int64          `json:"accumulated_proposed_count"`
	Uptime                   float64        `json:"uptime"`

	RecentDelegations          []model.DelegationSeq          `json:"recent_delegations"`
	RecentDebondingDelegations []model.DebondingDelegationSeq `json:"recent_debonding_delegations"`
}

type AggListView

type AggListView struct {
	Items []model.ValidatorAgg `json:"items"`
}

func ToAggListView

func ToAggListView(ms []model.ValidatorAgg) *AggListView

type GetByEntityUidRequest

type GetByEntityUidRequest struct {
	EntityUID string `form:"entity_uid" binding:"required"`
}

type GetByHeightRequest

type GetByHeightRequest struct {
	Height *int64 `form:"height" binding:"-"`
}

type GetForMinHeightRequest

type GetForMinHeightRequest struct {
	Height *int64 `uri:"height" binding:"required"`
}

type GetSharesForAllRequest

type GetSharesForAllRequest struct {
	Interval string `form:"interval" binding:"required"`
	Period   string `form:"period" binding:"required"`
}

type GetSharesRequest

type GetSharesRequest struct {
	EntityUID string `form:"entity_uid" binding:"required"`
	Interval  string `form:"interval" binding:"required"`
	Period    string `form:"period" binding:"required"`
}

type GetUptimeRequest

type GetUptimeRequest struct {
	EntityUID string `form:"entity_uid" binding:"required"`
	Interval  string `form:"interval" binding:"required"`
	Period    string `form:"period" binding:"required"`
}

type GetVotingPowerForAllRequest

type GetVotingPowerForAllRequest struct {
	Interval string `form:"interval" binding:"required"`
	Period   string `form:"period" binding:"required"`
}

type Request

type Request struct {
	EntityUID string `form:"entity_uid" binding:"required"`
	Interval  string `form:"interval" binding:"required"`
	Period    string `form:"period" binding:"required"`
}

type SeqListView

type SeqListView struct {
	Items []model.ValidatorSeq `json:"items"`
}

func ToSeqListView

func ToSeqListView(ms []model.ValidatorSeq) *SeqListView

Jump to

Keyboard shortcuts

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