Documentation ¶
Index ¶
- func URLValueGuard(ctx *fasthttp.RequestCtx, logger applogger.Logger, key string) (string, bool)
- type AccountInfo
- type AccountMessages
- type AccountTransactions
- type Accounts
- type BlockEvents
- type Blocks
- func (handler *Blocks) FindBy(ctx *fasthttp.RequestCtx)
- func (handler *Blocks) List(ctx *fasthttp.RequestCtx)
- func (handler *Blocks) ListCommitmentsByConsensusNodeAddress(ctx *fasthttp.RequestCtx)
- func (handler *Blocks) ListCommitmentsByHeight(ctx *fasthttp.RequestCtx)
- func (handler *Blocks) ListEventsByHeight(ctx *fasthttp.RequestCtx)
- func (handler *Blocks) ListTransactionsByHeight(ctx *fasthttp.RequestCtx)
- type BlocksPaginationResult
- type IBCChannel
- type IBCChannelMessage
- type ProposalDetails
- type ProposalVotedPowerResult
- type Proposals
- type Search
- type SearchResults
- type Status
- type StatusHandler
- type Transactions
- type TransactionsPaginationResult
- type ValidatorDetails
- type Validators
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func URLValueGuard ¶
Types ¶
type AccountInfo ¶
type AccountInfo struct { Type string `json:"type"` Name string `json:"name"` Address string `json:"address"` Balance coin.Coins `json:"balance"` BondedBalance coin.Coins `json:"bondedBalance"` RedelegatingBalance coin.Coins `json:"redelegatingBalance"` UnbondingBalance coin.Coins `json:"unbondingBalance"` TotalRewards coin.DecCoins `json:"totalRewards"` Commissions coin.DecCoins `json:"commissions"` TotalBalance coin.DecCoins `json:"totalBalance"` }
type AccountMessages ¶
type AccountMessages struct {
// contains filtered or unexported fields
}
func NewAccountMessages ¶
func NewAccountMessages(logger applogger.Logger, rdbHandle *rdb.Handle) *AccountMessages
func (*AccountMessages) ListByAccount ¶
func (handler *AccountMessages) ListByAccount(ctx *fasthttp.RequestCtx)
type AccountTransactions ¶
type AccountTransactions struct {
// contains filtered or unexported fields
}
func NewAccountTransactions ¶
func NewAccountTransactions(logger applogger.Logger, rdbHandle *rdb.Handle) *AccountTransactions
func (*AccountTransactions) ListByAccount ¶
func (handler *AccountTransactions) ListByAccount(ctx *fasthttp.RequestCtx)
type Accounts ¶
type Accounts struct {
// contains filtered or unexported fields
}
func NewAccounts ¶
func (*Accounts) FindBy ¶
func (handler *Accounts) FindBy(ctx *fasthttp.RequestCtx)
func (*Accounts) List ¶
func (handler *Accounts) List(ctx *fasthttp.RequestCtx)
type BlockEvents ¶
type BlockEvents struct {
// contains filtered or unexported fields
}
func NewBlockEvents ¶
func NewBlockEvents(logger applogger.Logger, rdbHandle *rdb.Handle) *BlockEvents
func (*BlockEvents) FindById ¶
func (handler *BlockEvents) FindById(ctx *fasthttp.RequestCtx)
func (*BlockEvents) List ¶
func (handler *BlockEvents) List(ctx *fasthttp.RequestCtx)
type Blocks ¶
type Blocks struct {
// contains filtered or unexported fields
}
func (*Blocks) FindBy ¶
func (handler *Blocks) FindBy(ctx *fasthttp.RequestCtx)
func (*Blocks) List ¶
func (handler *Blocks) List(ctx *fasthttp.RequestCtx)
func (*Blocks) ListCommitmentsByConsensusNodeAddress ¶
func (handler *Blocks) ListCommitmentsByConsensusNodeAddress(ctx *fasthttp.RequestCtx)
func (*Blocks) ListCommitmentsByHeight ¶
func (handler *Blocks) ListCommitmentsByHeight(ctx *fasthttp.RequestCtx)
func (*Blocks) ListEventsByHeight ¶
func (handler *Blocks) ListEventsByHeight(ctx *fasthttp.RequestCtx)
func (*Blocks) ListTransactionsByHeight ¶
func (handler *Blocks) ListTransactionsByHeight(ctx *fasthttp.RequestCtx)
type BlocksPaginationResult ¶
type BlocksPaginationResult struct { Blocks []block_view.Block `json:"blocks"` PaginationResult pagination.Result `json:"paginationResult"` }
func NewBlocksPaginationResult ¶
func NewBlocksPaginationResult(blocks []block_view.Block, paginationResult pagination.Result) *BlocksPaginationResult
type IBCChannel ¶
type IBCChannel struct {
// contains filtered or unexported fields
}
func NewIBCChannel ¶
func NewIBCChannel(logger applogger.Logger, rdbHandle *rdb.Handle) *IBCChannel
func (*IBCChannel) FindChannelById ¶
func (handler *IBCChannel) FindChannelById(ctx *fasthttp.RequestCtx)
func (*IBCChannel) ListAllDenomHashMapping ¶
func (handler *IBCChannel) ListAllDenomHashMapping(ctx *fasthttp.RequestCtx)
func (*IBCChannel) ListChannels ¶
func (handler *IBCChannel) ListChannels(ctx *fasthttp.RequestCtx)
type IBCChannelMessage ¶
type IBCChannelMessage struct {
// contains filtered or unexported fields
}
func NewIBCChannelMessage ¶
func NewIBCChannelMessage(logger applogger.Logger, rdbHandle *rdb.Handle) *IBCChannelMessage
func (*IBCChannelMessage) ListByChannelID ¶
func (handler *IBCChannelMessage) ListByChannelID(ctx *fasthttp.RequestCtx)
type ProposalDetails ¶
type ProposalDetails struct { *proposal_view.ProposalWithMonikerRow RequiredVotingPower string `json:"requiredVotingPower"` TotalVotedPower string `json:"totalVotedPower"` VotedPowerResult ProposalVotedPowerResult `json:"votedPowerResult"` }
type Proposals ¶
type Proposals struct {
// contains filtered or unexported fields
}
func NewProposals ¶
func (*Proposals) FindById ¶
func (handler *Proposals) FindById(ctx *fasthttp.RequestCtx)
func (*Proposals) List ¶
func (handler *Proposals) List(ctx *fasthttp.RequestCtx)
func (*Proposals) ListDepositorsById ¶
func (handler *Proposals) ListDepositorsById(ctx *fasthttp.RequestCtx)
func (*Proposals) ListVotesById ¶
func (handler *Proposals) ListVotesById(ctx *fasthttp.RequestCtx)
type Search ¶
type Search struct {
// contains filtered or unexported fields
}
func NewSearch ¶
func NewSearch(logger applogger.Logger, blockscoutClient blockscout_infrastructure.HTTPClient, rdbHandle *rdb.Handle) *Search
func (*Search) Search ¶
func (search *Search) Search(ctx *fasthttp.RequestCtx)
type SearchResults ¶
type SearchResults struct { Blocks []blockscout_infrastructure.BlockResult `json:"blocks"` Transactions []blockscout_infrastructure.TransactionResult `json:"transactions"` Addresses []blockscout_infrastructure.AddressResult `json:"addresses"` Tokens []blockscout_infrastructure.TokenResult `json:"tokens"` Validators []blockscout_infrastructure.ValidatorResult `json:"validators"` }
type Status ¶
type Status struct { BlockCount int64 `json:"blockCount"` TransactionCount int64 `json:"transactionCount"` TotalDelegated coin.Coins `json:"totalDelegated"` TotalReward coin.DecCoins `json:"totalReward"` ValidatorCount int64 `json:"validatorCount"` ActiveValidatorCount int64 `json:"activeValidatorCount"` LatestHeight int64 `json:"latestHeight"` AverageBlockTimeMillisecond string `json:"averageBlockTimeMillisecond"` }
type StatusHandler ¶
type StatusHandler struct {
// contains filtered or unexported fields
}
func NewStatusHandler ¶
func (*StatusHandler) GetStatus ¶
func (handler *StatusHandler) GetStatus(ctx *fasthttp.RequestCtx)
type Transactions ¶
type Transactions struct {
// contains filtered or unexported fields
}
func NewTransactions ¶
func NewTransactions( logger applogger.Logger, blockscoutClient blockscout_infrastructure.HTTPClient, rdbHandle *rdb.Handle) *Transactions
func (*Transactions) FindByHash ¶
func (handler *Transactions) FindByHash(ctx *fasthttp.RequestCtx)
func (*Transactions) List ¶
func (handler *Transactions) List(ctx *fasthttp.RequestCtx)
type TransactionsPaginationResult ¶
type TransactionsPaginationResult struct { TransactionRows []transactionView.TransactionRow `json:"transactionRows"` PaginationResult pagination.Result `json:"paginationResult"` }
func NewTransactionsPaginationResult ¶
func NewTransactionsPaginationResult(transactionRows []transactionView.TransactionRow, paginationResult pagination.Result) *TransactionsPaginationResult
type ValidatorDetails ¶
type ValidatorDetails struct { *validator_view.ValidatorRow Tokens string `json:"tokens"` SelfDelegation string `json:"selfDelegation"` }
type Validators ¶
type Validators struct {
// contains filtered or unexported fields
}
func NewValidators ¶
func (*Validators) FindBy ¶
func (handler *Validators) FindBy(ctx *fasthttp.RequestCtx)
func (*Validators) List ¶
func (handler *Validators) List(ctx *fasthttp.RequestCtx)
func (*Validators) ListActive ¶
func (handler *Validators) ListActive(ctx *fasthttp.RequestCtx)
func (*Validators) ListActivities ¶
func (handler *Validators) ListActivities(ctx *fasthttp.RequestCtx)
Click to show internal directories.
Click to hide internal directories.