Documentation ¶
Index ¶
- type CountFilter
- type ListValidatorBlockCommitmentRow
- type ListValidatorRow
- type ValidatorActivities
- func (validatorActivitiesView *ValidatorActivities) Insert(validatorActivity *ValidatorActivityRow) error
- func (validatorActivitiesView *ValidatorActivities) InsertAll(validatorActivities []ValidatorActivityRow) error
- func (validatorActivitiesView *ValidatorActivities) List(filter ValidatorActivitiesListFilter, order ValidatorActivitiesListOrder, ...) ([]ValidatorActivityRow, *pagination_interface.PaginationResult, error)
- type ValidatorActivitiesListFilter
- type ValidatorActivitiesListOrder
- type ValidatorActivitiesTotal
- type ValidatorActivityRow
- type ValidatorActivityRowData
- type ValidatorBlockCommitmentRow
- type ValidatorBlockCommitments
- func (commitmentsView *ValidatorBlockCommitments) Insert(commitment ValidatorBlockCommitmentRow) error
- func (commitmentsView *ValidatorBlockCommitments) InsertAll(commitments []ValidatorBlockCommitmentRow) error
- func (commitmentsView *ValidatorBlockCommitments) List(filter ValidatorBlockCommitmentsListFilter, ...) ([]ListValidatorBlockCommitmentRow, *pagination.PaginationResult, error)
- type ValidatorBlockCommitmentsListFilter
- type ValidatorBlockCommitmentsTotal
- type ValidatorIdentity
- type ValidatorRow
- type Validators
- func (validatorsView *Validators) Count(filter CountFilter) (int64, error)
- func (validatorsView *Validators) FindBy(identity ValidatorIdentity) (*ValidatorRow, error)
- func (validatorsView *Validators) Insert(validator *ValidatorRow) error
- func (validatorsView *Validators) LastJoinedBlockHeight(operatorAddress string, consensusNodeAddress string) (bool, int64, error)
- func (validatorsView *Validators) List(filter ValidatorsListFilter, order ValidatorsListOrder, ...) ([]ListValidatorRow, *pagination.PaginationResult, error)
- func (validatorsView *Validators) ListAll(filter ValidatorsListFilter, order ValidatorsListOrder) ([]ValidatorRow, error)
- func (validatorsView *Validators) Search(keyword string) ([]ValidatorRow, error)
- func (validatorsView *Validators) Update(validator *ValidatorRow) error
- func (validatorsView *Validators) UpdateAllValidatorUpTime(validators []ValidatorRow) error
- func (validatorsView *Validators) Upsert(validator *ValidatorRow) error
- type ValidatorsListFilter
- type ValidatorsListOrder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountFilter ¶
type CountFilter struct {
MaybeStatus []string
}
type ListValidatorBlockCommitmentRow ¶
type ListValidatorBlockCommitmentRow struct { ValidatorBlockCommitmentRow Moniker string `json:"moniker"` }
type ListValidatorRow ¶
type ListValidatorRow struct { ValidatorRow PowerPercentage string `json:"powerPercentage"` CumulativePowerPercentage string `json:"cumulativePowerPercentage"` }
type ValidatorActivities ¶
type ValidatorActivities struct {
// contains filtered or unexported fields
}
BlockEvents projection view implemented by relational database
func NewValidatorActivities ¶
func NewValidatorActivities(handle *rdb.Handle) *ValidatorActivities
func (*ValidatorActivities) Insert ¶
func (validatorActivitiesView *ValidatorActivities) Insert(validatorActivity *ValidatorActivityRow) error
func (*ValidatorActivities) InsertAll ¶
func (validatorActivitiesView *ValidatorActivities) InsertAll(validatorActivities []ValidatorActivityRow) error
func (*ValidatorActivities) List ¶
func (validatorActivitiesView *ValidatorActivities) List( filter ValidatorActivitiesListFilter, order ValidatorActivitiesListOrder, pagination *pagination_interface.Pagination, ) ([]ValidatorActivityRow, *pagination_interface.PaginationResult, error)
type ValidatorActivitiesTotal ¶
func NewValidatorActivitiesTotal ¶
func NewValidatorActivitiesTotal(rdbHandle *rdb.Handle) *ValidatorActivitiesTotal
type ValidatorActivityRow ¶
type ValidatorActivityRow struct { BlockHeight int64 `json:"blockHeight"` BlockTime utctime.UTCTime `json:"blockTime"` BlockHash string `json:"blockHash"` MaybeTransactionHash *string `json:"transactionHash"` OperatorAddress string `json:"operatorAddress"` Success bool `json:"success"` Data ValidatorActivityRowData `json:"activity"` }
type ValidatorActivityRowData ¶
type ValidatorActivityRowData struct { Type string `json:"type"` Content interface{} `json:"content"` }
type ValidatorBlockCommitments ¶
type ValidatorBlockCommitments struct {
// contains filtered or unexported fields
}
func NewValidatorBlockCommitments ¶
func NewValidatorBlockCommitments(handle *rdb.Handle) *ValidatorBlockCommitments
func (*ValidatorBlockCommitments) Insert ¶
func (commitmentsView *ValidatorBlockCommitments) Insert(commitment ValidatorBlockCommitmentRow) error
func (*ValidatorBlockCommitments) InsertAll ¶
func (commitmentsView *ValidatorBlockCommitments) InsertAll(commitments []ValidatorBlockCommitmentRow) error
func (*ValidatorBlockCommitments) List ¶
func (commitmentsView *ValidatorBlockCommitments) List( filter ValidatorBlockCommitmentsListFilter, pagination *pagination_interface.Pagination, ) ([]ListValidatorBlockCommitmentRow, *pagination.PaginationResult, error)
type ValidatorBlockCommitmentsTotal ¶
func NewValidatorBlockCommitmentsTotal ¶
func NewValidatorBlockCommitmentsTotal(rdbHandle *rdb.Handle) *ValidatorBlockCommitmentsTotal
type ValidatorIdentity ¶
type ValidatorRow ¶
type ValidatorRow struct { MaybeId *int64 `json:"-"` OperatorAddress string `json:"operatorAddress"` ConsensusNodeAddress string `json:"consensusNodeAddress"` InitialDelegatorAddress string `json:"initialDelegatorAddress"` TendermintPubkey string `json:"tendermintPubkey"` TendermintAddress string `json:"tendermintAddress"` Status string `json:"status"` Jailed bool `json:"jailed"` JoinedAtBlockHeight int64 `json:"joinedAtBlockHeight"` Power string `json:"power"` Moniker string `json:"moniker"` Identity string `json:"identity"` Website string `json:"website"` SecurityContact string `json:"securityContact"` Details string `json:"details"` CommissionRate string `json:"commissionRate"` CommissionMaxRate string `json:"commissionMaxRate"` CommissionMaxChangeRate string `json:"commissionMaxChangeRate"` MinSelfDelegation string `json:"minSelfDelegation"` TotalSignedBlock int64 `json:"totalSignedBlock"` TotalActiveBlock int64 `json:"totalActiveBlock"` ImpreciseUpTime *big.Float `json:"impreciseUpTime"` VotedGovProposal *big.Int `json:"votedGovProposal"` }
type Validators ¶
type Validators struct {
// contains filtered or unexported fields
}
func NewValidators ¶
func NewValidators(handle *rdb.Handle) *Validators
func (*Validators) Count ¶
func (validatorsView *Validators) Count(filter CountFilter) (int64, error)
func (*Validators) FindBy ¶
func (validatorsView *Validators) FindBy(identity ValidatorIdentity) (*ValidatorRow, error)
func (*Validators) Insert ¶
func (validatorsView *Validators) Insert(validator *ValidatorRow) error
func (*Validators) LastJoinedBlockHeight ¶
func (*Validators) List ¶
func (validatorsView *Validators) List( filter ValidatorsListFilter, order ValidatorsListOrder, pagination *pagination_interface.Pagination, ) ([]ListValidatorRow, *pagination.PaginationResult, error)
func (*Validators) ListAll ¶
func (validatorsView *Validators) ListAll( filter ValidatorsListFilter, order ValidatorsListOrder, ) ([]ValidatorRow, error)
func (*Validators) Search ¶
func (validatorsView *Validators) Search(keyword string) ([]ValidatorRow, error)
func (*Validators) Update ¶
func (validatorsView *Validators) Update(validator *ValidatorRow) error
func (*Validators) UpdateAllValidatorUpTime ¶ added in v1.0.3
func (validatorsView *Validators) UpdateAllValidatorUpTime(validators []ValidatorRow) error
func (*Validators) Upsert ¶
func (validatorsView *Validators) Upsert(validator *ValidatorRow) error
type ValidatorsListFilter ¶
Click to show internal directories.
Click to hide internal directories.