Documentation ¶
Index ¶
- Constants
- type Account
- type BalanceUpdate
- type Block
- type Delegation
- type DelegatorReward
- type HistoricalState
- type HistoryProposal
- type Jailer
- type MissedBlock
- type Parser
- type Proposal
- type ProposalDeposit
- type ProposalVote
- type RangeState
- type Stat
- type Time
- func (t Time) IsZero() bool
- func (t Time) MarshalBinary() ([]byte, error)
- func (t Time) MarshalJSON() ([]byte, error)
- func (t *Time) Scan(value interface{}) (err error)
- func (t *Time) UnmarshalBinary(data []byte) error
- func (t *Time) UnmarshalJSON(data []byte) error
- func (t Time) Value() (driver.Value, error)
- type Transaction
- type Transfer
- type Validator
- type ValidatorDelegator
- type ValidatorReward
- type ValidatorValue
Constants ¶
View Source
const ( RangeStateTotalStakingBalance = "total_staking_balance" RangeStateNumberDelegators = "number_delegators" RangeStateNumberMultiDelegators = "number_multi_delegators" RangeStateTransfersVolume = "transfer_volume" RangeStateFeeVolume = "fee_volume" RangeStateHighestFee = "highest_fee" RangeStateUndelegationVolume = "undelegation_volume" RangeStateBlockDelay = "block_delay" )
View Source
const ( StatsTotalStakingBalance = "total_staking_balance" StatsNumberDelegators = "number_delegators" StatsTotalDelegators = "total_delegators" StatsNumberMultiDelegators = "number_multi_delegators" StatsTransfersVolume = "transfer_volume" StatsFeeVolume = "fee_volume" StatsHighestFee = "highest_fee" StatsUndelegationVolume = "undelegation_volume" StatsBlockDelay = "block_delay" StatsNetworkSize = "network_size" StatsTotalAccounts = "total_accounts" StatsTotalWhaleAccounts = "total_whale_accounts" StatsTotalSmallAccounts = "total_small_accounts" StatsTotalJailers = "total_jailers" StatsValidatorsWith33Power = "validators_with_33_power" )
View Source
const AccountsTable = "accounts"
View Source
const BalanceUpdatesTable = "balance_updates"
View Source
const BlocksTable = "blocks"
View Source
const DelegationsTable = "delegations"
View Source
const DelegatorRewardsTable = "delegator_rewards"
View Source
const HistoricalStates = "historical_states"
View Source
const HistoryProposalsTable = "history_proposals"
View Source
const JailersTable = "jailers"
View Source
const MissedBlocks = "missed_blocks"
View Source
const ParsersTable = "parsers"
View Source
const ProposalDepositsTable = "proposal_deposits"
View Source
const ProposalVotesTable = "proposal_votes"
View Source
const ProposalsTable = "proposals"
View Source
const RangeStatesTable = "range_states"
View Source
const StatsTable = "stats"
View Source
const TransactionsTable = "transactions"
View Source
const TransfersTable = "transfers"
View Source
const ValidatorRewardsTable = "validator_rewards"
View Source
const ValidatorsTable = "validators"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceUpdate ¶
type Delegation ¶
type DelegatorReward ¶
type HistoricalState ¶
type HistoricalState struct { Price decimal.Decimal `db:"his_price" json:"price"` MarketCap decimal.Decimal `db:"his_market_cap" json:"market_cap"` CirculatingSupply decimal.Decimal `db:"his_circulating_supply" json:"circulating_supply"` TradingVolume decimal.Decimal `db:"his_trading_volume" json:"trading_volume"` StakedRatio decimal.Decimal `db:"his_staked_ratio" json:"staked_ratio"` InflationRate decimal.Decimal `db:"his_inflation_rate" json:"inflation_rate"` TransactionsCount uint64 `db:"his_transactions_count" json:"transactions_count"` CommunityPool decimal.Decimal `db:"his_community_pool" json:"community_pool"` Top20Weight decimal.Decimal `db:"his_top_20_weight" json:"top20_weight"` CreatedAt Time `db:"his_created_at" json:"created_at"` }
type HistoryProposal ¶
type HistoryProposal struct { ID uint64 `db:"hpr_id"` TxHash string `db:"hpr_tx_hash"` Title string `db:"hpr_title"` Description string `db:"hpr_description"` Recipient string `db:"hpr_recipient"` Amount decimal.Decimal `db:"hpr_amount"` InitDeposit decimal.Decimal `db:"hpr_init_deposit"` Proposer string `db:"hpr_proposer"` CreatedAt time.Time `db:"hpr_created_at"` }
type MissedBlock ¶
type Proposal ¶
type Proposal struct { ID uint64 `db:"pro_id" json:"id"` TxHash string `db:"pro_tx_hash" json:"tx_hash"` Type string `db:"pro_type" json:"type"` Proposer string `db:"pro_proposer" json:"proposer"` ProposerAddress string `db:"pro_proposer_address" json:"proposer_address"` Title string `db:"pro_title" json:"title"` Description string `db:"pro_description" json:"description"` Status string `db:"pro_status" json:"status"` VotesYes decimal.Decimal `db:"pro_votes_yes" json:"votes_yes"` VotesAbstain decimal.Decimal `db:"pro_votes_abstain" json:"votes_abstain"` VotesNo decimal.Decimal `db:"pro_votes_no" json:"votes_no"` VotesNoWithVeto decimal.Decimal `db:"pro_votes_no_with_veto" json:"votes_no_with_veto"` SubmitTime Time `db:"pro_submit_time" json:"submit_time"` DepositEndTime Time `db:"pro_deposit_end_time" json:"deposit_end_time"` TotalDeposits decimal.Decimal `db:"pro_total_deposits" json:"total_deposits"` VotingStartTime Time `db:"pro_voting_start_time" json:"voting_start_time"` VotingEndTime Time `db:"pro_voting_end_time" json:"voting_end_time"` Voters uint64 `db:"pro_voters" json:"voters"` ParticipationRate decimal.Decimal `db:"pro_participation_rate" json:"participation_rate"` Turnout decimal.Decimal `db:"pro_turnout" json:"turnout"` Activity json.RawMessage `db:"pro_activity" json:"activity"` }
type ProposalDeposit ¶
type ProposalVote ¶
type ProposalVote struct { ID string `db:"prv_id" json:"-"` ProposalID uint64 `db:"prv_proposal_id" json:"proposal_id"` Voter string `db:"prv_voter" json:"voter"` TxHash string `db:"prv_tx_hash" json:"tx_hash"` Option string `db:"prv_option" json:"option"` CreatedAt Time `db:"prv_created_at" json:"created_at"` }
type RangeState ¶
type Time ¶
func (Time) MarshalBinary ¶
func (Time) MarshalJSON ¶
func (*Time) Scan ¶
Scan implements the Scanner interface. The value type must be time.Time or string / []byte (formatted time-string), otherwise Scan fails.
func (*Time) UnmarshalBinary ¶
func (*Time) UnmarshalJSON ¶
type Transaction ¶
type Transaction struct { Hash string `db:"trn_hash"` Status bool `db:"trn_status"` Height uint64 `db:"trn_height"` Messages uint64 `db:"trn_messages"` Fee decimal.Decimal `db:"trn_fee"` GasUsed uint64 `db:"trn_gas_used"` GasWanted uint64 `db:"trn_gas_wanted"` CreatedAt time.Time `db:"trn_created_at"` }
type Validator ¶
type Validator struct { Address string `db:"val_address"` OperatorAddress string `db:"val_operator_address"` ConsAddress string `db:"val_cons_address"` ConsPubKey string `db:"val_cons_pub_key"` Name string `db:"val_name"` Description string `db:"val_description"` Commission decimal.Decimal `db:"val_commission"` MinCommission decimal.Decimal `db:"val_min_commission"` MaxCommission decimal.Decimal `db:"val_max_commission"` SelfDelegations decimal.Decimal `db:"val_self_delegations"` Delegations decimal.Decimal `db:"val_delegations"` VotingPower decimal.Decimal `db:"val_voting_power"` Website string `db:"val_website"` Jailed bool `db:"val_jailed"` CreatedAt time.Time `db:"val_created_at"` }
type ValidatorDelegator ¶
type ValidatorReward ¶
type ValidatorValue ¶
Source Files ¶
- account.go
- balance_update.go
- block.go
- delegation.go
- delegator_reward.go
- historical_state.go
- history_proposal.go
- jailer.go
- missed_block.go
- parser.go
- proposal.go
- proposal_deposit.go
- proposal_vote.go
- range_state.go
- stat.go
- time.go
- transaction.go
- transfer.go
- validator.go
- validator_delegator.go
- validator_reward.go
- validator_value.go
Click to show internal directories.
Click to hide internal directories.