Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountAgg ¶
type AccountAgg struct { *Model *Aggregate PublicKey string `json:"public_key"` RecentGeneralBalance types.Quantity `json:"recent_general_balance"` RecentGeneralNonce uint64 `json:"recent_general_nonce"` RecentEscrowActiveBalance types.Quantity `json:"recent_escrow_active_balance"` RecentEscrowDebondingBalance types.Quantity `json:"recent_escrow_debonding_balance"` }
func (*AccountAgg) Equal ¶
func (aa *AccountAgg) Equal(m AccountAgg) bool
func (*AccountAgg) UpdateAggAttrs ¶
func (aa *AccountAgg) UpdateAggAttrs(u *AccountAgg)
func (*AccountAgg) Valid ¶
func (aa *AccountAgg) Valid() bool
type Aggregate ¶
type BlockSeq ¶
type DebondingDelegationSeq ¶
type DebondingDelegationSeq struct { *Model *Sequence ValidatorUID string `json:"validator_uid"` DelegatorUID string `json:"delegator_uid"` DebondEnd uint64 `json:"debond_end"` }
func (*DebondingDelegationSeq) Equal ¶
func (d *DebondingDelegationSeq) Equal(m DebondingDelegationSeq) bool
func (DebondingDelegationSeq) TableName ¶
func (DebondingDelegationSeq) TableName() string
- METHODS
func (*DebondingDelegationSeq) Valid ¶
func (d *DebondingDelegationSeq) Valid() bool
type DelegationSeq ¶
type DelegationSeq struct { *Model *Sequence ValidatorUID string `json:"validator_uid"` DelegatorUID string `json:"delegator_uid"` }
func (*DelegationSeq) Equal ¶
func (d *DelegationSeq) Equal(m DelegationSeq) bool
func (*DelegationSeq) Valid ¶
func (d *DelegationSeq) Valid() bool
type Model ¶
type Report ¶
type Report struct { *Model StartHeight int64 EndHeight int64 SuccessCount *int64 ErrorCount *int64 ErrorMsg *string Duration time.Duration Details types.Jsonb CompletedAt *types.Time }
type StakingSeq ¶
type StakingSeq struct { *Model *Sequence TotalSupply types.Quantity `json:"total_supply"` CommonPool types.Quantity `json:"common_pool"` DebondingInterval uint64 `json:"debonding_interval"` MinDelegationAmount types.Quantity `json:"min_delegation_amount"` }
func (*StakingSeq) Equal ¶
func (ss *StakingSeq) Equal(m StakingSeq) bool
func (*StakingSeq) Valid ¶
func (ss *StakingSeq) Valid() bool
type Syncable ¶
type Syncable struct { *Model Height int64 `json:"height"` Time types.Time `json:"time"` AppVersion uint64 `json:"app_version"` BlockVersion uint64 `json:"block_version"` Status SyncableStatus `json:"status"` ReportID types.ID `json:"report_id"` StartedAt types.Time `json:"started_at"` ProcessedAt *types.Time `json:"processed_at"` Duration time.Duration `json:"duration"` Details types.Jsonb `json:"details"` }
func (*Syncable) MarkProcessed ¶
func (s *Syncable) MarkProcessed()
func (*Syncable) SetStatus ¶
func (s *Syncable) SetStatus(newStatus SyncableStatus)
type SyncableStatus ¶
type SyncableStatus int
const ( SyncableStatusRunning SyncableStatus = iota SyncableStatusCompleted )
type TransactionSeq ¶
type TransactionSeq struct { *Model *Sequence PublicKey string `json:"public_key"` Hash string `json:"hash"` Nonce uint64 `json:"nonce"` Fee types.Quantity `json:"fee"` GasLimit uint64 `json:"gas_limit"` GasPrice types.Quantity `json:"gas_price"` Method string `json:"method"` }
func (*TransactionSeq) Equal ¶
func (ts *TransactionSeq) Equal(m TransactionSeq) bool
func (*TransactionSeq) Valid ¶
func (ts *TransactionSeq) Valid() bool
type ValidatorAgg ¶
type ValidatorAgg struct { *Model *Aggregate EntityUID string `json:"entity_uid"` RecentAddress string `json:"recent_address"` RecentVotingPower int64 `json:"recent_voting_power"` RecentAsValidatorHeight int64 `json:"recent_as_validator_height"` RecentProposedHeight int64 `json:"recent_proposed_height"` AccumulatedProposedCount int64 `json:"accumulated_proposed_count"` AccumulatedUptime int64 `json:"accumulated_uptime"` AccumulatedUptimeCount int64 `json:"accumulated_uptime_count"` }
func (*ValidatorAgg) Equal ¶
func (aa *ValidatorAgg) Equal(m ValidatorAgg) bool
func (*ValidatorAgg) UpdateAggAttrs ¶
func (aa *ValidatorAgg) UpdateAggAttrs(entity ValidatorAgg)
func (*ValidatorAgg) Valid ¶
func (aa *ValidatorAgg) Valid() bool
type ValidatorSeq ¶
type ValidatorSeq struct { *Model *Sequence EntityUID string `json:"entity_uid"` NodeUID string `json:"node_uid"` ConsensusUID string `json:"consensus_uid"` Address string `json:"address"` Proposed bool `json:"proposed"` VotingPower int64 `json:"voting_power"` // When precommit_validated is null it means that validator did not have chance to validate the block PrecommitValidated *bool `json:"precommit_validated"` PrecommitBlockIDFlag int64 `json:"precommit_block_id_flag"` PrecommitIndex int64 `json:"precommit_index"` }
func (*ValidatorSeq) Equal ¶
func (vs *ValidatorSeq) Equal(m ValidatorSeq) bool
func (*ValidatorSeq) Valid ¶
func (vs *ValidatorSeq) Valid() bool
Click to show internal directories.
Click to hide internal directories.