Documentation
¶
Index ¶
- type Account
- type AggItem
- type Balance
- type Block
- type BlockItem
- type FeeRange
- type FeeRangeValidator
- type HistoricalState
- type Message
- type MetaData
- type MetaDataProposal
- type PaginatableResponse
- type Pie
- type PiePart
- type ProposalChartData
- type ProposalVote
- type Tx
- type TxItem
- type Validator
- type ValidatorBlocksStat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeeRange ¶
type FeeRange struct {
From decimal.Decimal `json:"from"`
To decimal.Decimal `json:"to"`
Validators []FeeRangeValidator `json:"validators"`
}
type FeeRangeValidator ¶
type HistoricalState ¶
type HistoricalState struct {
Current dmodels.HistoricalState `json:"current"`
PriceAgg []AggItem `json:"price_agg"`
MarketCapAgg []AggItem `json:"market_cap_agg"`
StakedRatioAgg []AggItem `json:"staked_ratio"`
}
type Message ¶
type Message struct {
Type string `json:"type"`
Body json.RawMessage `json:"body"`
}
type MetaData ¶
type MetaData struct {
Height uint64 `json:"height"`
LatestValidator string `json:"latest_validator"`
LatestProposal MetaDataProposal `json:"latest_proposal"`
ValidatorAvgFee decimal.Decimal `json:"validator_avg_fee"`
BlockTime float64 `json:"block_time"`
CurrentPrice decimal.Decimal `json:"current_price"`
}
type MetaDataProposal ¶
type PaginatableResponse ¶
type PaginatableResponse struct {
Items interface{} `json:"items"`
Total uint64 `json:"total"`
}
type ProposalChartData ¶
type ProposalChartData struct {
ProposalID uint64 `json:"proposal_id"`
VotersTotal uint64 `json:"voters_total"`
ValidatorsTotal uint64 `json:"validators_total"`
Turnout decimal.Decimal `json:"turnout"`
YesPercent decimal.Decimal `json:"yes_percent"`
NoPercent decimal.Decimal `json:"no_percent"`
NoWithVetoPercent decimal.Decimal `json:"no_with_veto_percent"`
AbstainPercent decimal.Decimal `json:"abstain_percent"`
}
type ProposalVote ¶
type ProposalVote struct {
Title string `json:"title"`
IsValidator bool `json:"is_validator"`
dmodels.ProposalVote
}
type Tx ¶
type Tx struct {
Hash string `json:"hash"`
Type string `json:"type"`
Status bool `json:"status"`
Fee decimal.Decimal `json:"fee"`
Height uint64 `json:"height"`
GasUsed uint64 `json:"gas_used"`
GasWanted uint64 `json:"gas_wanted"`
Memo string `json:"memo"`
CreatedAt dmodels.Time `json:"created_at"`
Messages []Message `json:"messages"`
}
type Validator ¶
type Validator struct {
Title string `json:"title"`
Website string `json:"website"`
OperatorAddress string `json:"operator_address"`
AccAddress string `json:"acc_address"`
ConsAddress string `json:"cons_address"`
PercentPower decimal.Decimal `json:"percent_power"`
Power decimal.Decimal `json:"power"`
SelfStake decimal.Decimal `json:"self_stake"`
Fee decimal.Decimal `json:"fee"`
BlocksProposed uint64 `json:"blocks_proposed"`
Delegators uint64 `json:"delegators"`
Power24Change decimal.Decimal `json:"power_24_change"`
GovernanceVotes uint64 `json:"governance_votes"`
}
Click to show internal directories.
Click to hide internal directories.