Documentation ¶
Index ¶
- type AverageTimeRow
- type BalanceHistoryRow
- type BalanceRow
- type BlockRow
- type BufferAccountRow
- type InstructionRow
- type MissingHeightRow
- type MissingSlotRangeRow
- type MultisigRow
- type NonceAccountRow
- type ParsedValidatorConfig
- type ProgramAccountRow
- type ProgramDataAccountRow
- type StakeAccountRow
- type StakeDelegationRow
- type StakeLockupRow
- type SupplyInfoRow
- type TokenAccountRow
- type TokenDelegationRow
- type TokenPriceRow
- type TokenRow
- type TokenSupplyRow
- type TokenUnitRow
- type TxByAddressRow
- type TxRow
- type ValidatorConfigRow
- type ValidatorSkipRateRow
- type ValidatorStatusRow
- type VoteAccountRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AverageTimeRow ¶
type AverageTimeRow struct { OneRowID bool `db:"one_row_id"` Slot uint64 `db:"slot"` AverageTime float64 `db:"average_time"` }
AverageTimeRow is the average slot time each minute/hour/day
func NewAverageTimeRow ¶
func NewAverageTimeRow(slot uint64, averageTime float64) AverageTimeRow
type BalanceHistoryRow ¶
type BalanceHistoryRow struct { Address string `db:"address"` Timestamp time.Time `db:"timestamp"` Balance uint64 `db:"balance"` }
func NewBalanceHistoryRow ¶
func NewBalanceHistoryRow(address string, timestamp time.Time, balance uint64) BalanceHistoryRow
func (BalanceHistoryRow) Equal ¶
func (b BalanceHistoryRow) Equal(other BalanceHistoryRow) bool
type BalanceRow ¶
type BalanceRow struct { Address string `db:"address"` Slot uint64 `db:"slot"` Balance uint64 `db:"balance"` }
func NewBalanceRow ¶
func NewBalanceRow(address string, slot uint64, balance uint64) BalanceRow
type BlockRow ¶
type BlockRow struct { Slot uint64 `db:"slot"` Height uint64 `db:"height"` Hash string `db:"hash"` Leader string `db:"leader"` Timestamp time.Time `db:"timestamp"` NumTxs int `db:"num_txs"` }
BlockRow represents a single block row stored inside the database
func NewBlockRow ¶
type BufferAccountRow ¶
type BufferAccountRow struct { Address string `db:"address"` Slot uint64 `db:"slot"` Authority string `db:"authority"` }
func NewBufferAccountRow ¶
func NewBufferAccountRow(address string, slot uint64, authority string) BufferAccountRow
type InstructionRow ¶
type InstructionRow struct { TxSignature string `db:"tx_signature"` Slot uint64 `db:"slot"` Index int `db:"index"` InnerIndex int `db:"inner_index"` Program string `db:"program"` InvolvedAccounts interface{} `db:"involved_accounts"` RawData string `db:"raw_data"` Type string `db:"type"` Value interface{} `db:"value"` PartitionId int `db:"partition_id"` }
func NewInstructionRow ¶
func NewInstructionRowFromInstruction ¶
func NewInstructionRowFromInstruction( instruction types.Instruction, ) InstructionRow
type MissingHeightRow ¶
type MissingHeightRow struct {
Height uint64 `db:"height"`
}
type MissingSlotRangeRow ¶
type MissingSlotRangeRow struct {
Slot uint64 `db:"slot"`
}
type MultisigRow ¶
type MultisigRow struct { Address string `db:"address"` Slot uint64 `db:"slot"` Signers pq.StringArray `db:"signers"` Minimum uint8 `db:"minimum"` }
func NewMultisigRow ¶
func NewMultisigRow(address string, slot uint64, signers []string, m uint8) MultisigRow
type NonceAccountRow ¶
type NonceAccountRow struct { Address string `db:"address"` Slot uint64 `db:"slot"` Authority string `db:"authority"` Blockhash string `db:"blockhash"` LamportsPerSignature uint64 `db:"lamports_per_signature"` }
func NewNonceAccountRow ¶
type ParsedValidatorConfig ¶
type ParsedValidatorConfig struct { Name string `json:"name"` KeybaseUsername string `json:"keybaseUsername"` Website string `json:"website"` Details string `json:"details"` }
func NewParsedValidatorConfig ¶
func NewParsedValidatorConfig( name string, keybaseUsername string, website string, details string, ) ParsedValidatorConfig
type ProgramAccountRow ¶
type ProgramAccountRow struct { Address string `db:"address"` Slot uint64 `db:"slot"` ProgramDataAccount string `db:"program_data_account"` }
func NewProgramAccountRow ¶
func NewProgramAccountRow(address string, slot uint64, programDataAccount string) ProgramAccountRow
type ProgramDataAccountRow ¶
type ProgramDataAccountRow struct { Address string `db:"address"` Slot uint64 `db:"slot"` LastModifiedSlot uint64 `db:"last_modified_slot"` UpdateAuthority string `db:"update_authority"` }
func NewProgramDataAccountRow ¶
func NewProgramDataAccountRow(address string, slot uint64, lastModifiedSlot uint64, updateAuthority string) ProgramDataAccountRow
type StakeAccountRow ¶
type StakeAccountRow struct { Address string `db:"address"` Slot uint64 `db:"slot"` Staker string `db:"staker"` Withdrawer string `db:"withdrawer"` }
func NewStakeAccountRow ¶
func NewStakeAccountRow( address string, slot uint64, staker string, withdrawer string, ) StakeAccountRow
type StakeDelegationRow ¶
type StakeDelegationRow struct { Address string `db:"address"` Slot uint64 `db:"slot"` ActivationEpoch uint64 `db:"activation_epoch"` DeactivationEpoch uint64 `db:"deactivation_epoch"` Stake uint64 `db:"stake"` Voter string `db:"voter"` WarmupCooldownRate float64 `db:"warmup_cooldown_rate"` }
func NewStakeDelegationRow ¶
type StakeLockupRow ¶
type StakeLockupRow struct { Address string `db:"address"` Slot uint64 `db:"slot"` Custodian string `db:"custodian"` Epoch uint64 `db:"epoch"` UnixTimestamp time.Time `db:"unix_timestamp"` }
func NewStakeLockupRow ¶
func (StakeLockupRow) Equal ¶
func (lockup StakeLockupRow) Equal(other StakeLockupRow) bool
type SupplyInfoRow ¶
type SupplyInfoRow struct { OneRowID bool `db:"one_row_id"` Epoch uint64 `db:"epoch"` Total uint64 `db:"total"` Circulating uint64 `db:"circulating"` NonCirculating uint64 `db:"non_circulating"` }
func NewSupplyInfoRow ¶
func NewSupplyInfoRow( epoch uint64, total uint64, circulating uint64, nonCirculating uint64, ) SupplyInfoRow
type TokenAccountRow ¶
type TokenAccountRow struct { Address string `db:"address"` Slot uint64 `db:"slot"` Mint string `db:"mint"` Owner string `db:"owner"` }
func NewTokenAccountRow ¶
func NewTokenAccountRow( address string, slot uint64, mint string, owner string, ) TokenAccountRow
type TokenDelegationRow ¶
type TokenDelegationRow struct { Source string `db:"source_address"` Destination string `db:"delegate_address"` Slot uint64 `db:"slot"` Amount uint64 `db:"amount"` }
func NewTokenDelegationRow ¶
func NewTokenDelegationRow(source string, destination string, slot uint64, amount uint64) TokenDelegationRow
type TokenPriceRow ¶
type TokenPriceRow struct { ID string `db:"id"` Price float64 `db:"price"` MarketCap int64 `db:"market_cap"` Symbol string `db:"symbol"` Timestamp time.Time `db:"timestamp"` Volume float64 `db:"volume"` }
func NewTokenPriceRow ¶
type TokenRow ¶
type TokenSupplyRow ¶
type TokenSupplyRow struct { Mint string `db:"mint"` Slot uint64 `db:"slot"` Supply uint64 `db:"supply"` }
func NewTokenSupplyRow ¶
func NewTokenSupplyRow(mint string, slot uint64, supply uint64) TokenSupplyRow
type TokenUnitRow ¶
type TokenUnitRow struct { Mint string `db:"mint"` PriceID string `db:"price_id"` Name string `db:"unit_name"` LogoURI string `db:"logo_uri"` Description string `db:"description"` Website string `db:"website"` }
func NewTokenUnitRow ¶
type TxByAddressRow ¶
type TxRow ¶
type TxRow struct { Signature string `db:"signature"` Slot uint64 `db:"slot"` Index int `db:"index"` InvolvedAccounts pq.StringArray `db:"involved_accounts"` Success bool `db:"success"` Fee uint64 `db:"fee"` Logs interface{} `db:"logs"` NumInstructions int `db:"num_instructions"` PartitionId int `db:"partition_id"` }
func NewTxRowsFromTxs ¶
type ValidatorConfigRow ¶
type ValidatorConfigRow struct { Address string `db:"address"` Slot uint64 `db:"slot"` Owner string `db:"owner"` Name string `db:"name"` KeybaseUsername string `db:"keybase_username"` Website string `db:"website"` Details string `db:"details"` AvatarURL string `db:"avatar_url"` }
func NewValidatorConfigRow ¶
func NewValidatorConfigRow( address string, slot uint64, owner string, config ParsedValidatorConfig, avatarUrl string, ) ValidatorConfigRow
type ValidatorSkipRateRow ¶
type ValidatorSkipRateRow struct { Address string `db:"address"` Epoch uint64 `db:"epoch"` SkipRate float64 `db:"skip_rate"` Total int `db:"total"` Skip int `db:"skip"` }
func NewValidatorSkipRateRow ¶
type ValidatorStatusRow ¶
type ValidatorStatusRow struct { Address string `db:"address"` Slot uint64 `db:"slot"` ActivatedStake uint64 `db:"activated_stake"` LastVote uint64 `db:"last_vote"` RootSlot uint64 `db:"root_slot"` Active bool `db:"active"` }
func NewValidatorStatusRow ¶
type VoteAccountRow ¶
type VoteAccountRow struct { Address string `db:"address"` Slot uint64 `db:"slot"` Node string `db:"node"` Voter string `db:"voter"` Withdrawer string `db:"withdrawer"` Commission uint8 `db:"commission"` }
func NewVoteAccountRow ¶
Click to show internal directories.
Click to hide internal directories.