Documentation ¶
Index ¶
- func GetBlockHeight() (int64, bool)
- func GetBlockList(i int) ([config.ListSize]*types.StoreBlock, bool)
- func GetBlockListByValidator(i int, proposer []byte) ([config.ListSize]*types.StoreBlock, bool)
- func GetBlockSearch(term string) ([config.ListSize]*types.StoreBlock, bool)
- func GetBlocksByValidatorSearch(term, validator string) ([config.ListSize]*types.StoreBlock, bool)
- func GetEntityCount() (int64, bool)
- func GetEntityList(i int) ([config.ListSize]string, bool)
- func GetEntityProcessCount(entity string) (int64, bool)
- func GetEntityProcessCountMap() (map[string]int64, bool)
- func GetEntitySearch(term string) ([config.ListSize]string, bool)
- func GetEnvelope(height int64) (*types.Envelope, bool)
- func GetEnvelopeCount() (int64, bool)
- func GetEnvelopeHeightFromNullifier(hash string) (int64, bool)
- func GetEnvelopeList(i int) ([config.ListSize]*types.Envelope, bool)
- func GetEnvelopeListByProcess(i int, process string) ([config.ListSize]*types.Envelope, bool)
- func GetEnvelopeSearch(term string) ([config.ListSize]*types.Envelope, bool)
- func GetProcess(id string) (*types.Process, bool)
- func GetProcessCount() (int64, bool)
- func GetProcessEnvelopeCount(process string) (int64, bool)
- func GetProcessEnvelopeCountMap() (map[string]int64, bool)
- func GetProcessList(i int) ([config.ListSize]*types.Process, bool)
- func GetProcessListByEntity(i int, entity string) ([config.ListSize]*types.Process, bool)
- func GetProcessSearch(term string) ([config.ListSize]*types.Process, bool)
- func GetStoreBlock(i int64) (*types.StoreBlock, bool)
- func GetTransactionSearch(term string) ([config.ListSize]*types.Transaction, bool)
- func GetTxByHash(hash string) (*types.Transaction, bool)
- func GetTxByHeight(height int64) (*types.Transaction, bool)
- func GetTxHeight() (int64, bool)
- func GetTxHeightFromHash(hash string) (int64, bool)
- func GetTxList(from int) ([config.ListSize]*types.Transaction, bool)
- func GetValidator(address string) (*types.Validator, bool)
- func GetValidatorBlockHeight(proposer string) (int64, bool)
- func GetValidatorBlockHeightMap() (map[string]int64, bool)
- func GetValidatorCount() (int64, bool)
- func GetValidatorList(i int) ([config.ListSize]*types.Validator, bool)
- func GetValidatorSearch(term string) ([config.ListSize]*types.Validator, bool)
- func PingServer() bool
- type Block
- type Pkeys
- type ProcessResults
- type VochainStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlockHeight ¶
GetBlockHeight returns the latest block height stored by the database
func GetBlockList ¶
GetBlockList returns a list of blocks from the database
func GetBlockListByValidator ¶
GetBlockListByValidator returns a list of blocks with given proposer from the database
func GetBlockSearch ¶
GetBlockSearch returns a list of blocks from the database according to the search term
func GetBlocksByValidatorSearch ¶
GetBlocksByValidatorSearch returns a list of blocks from the database according to the search term and given validator
func GetEntityCount ¶
GetEntityCount returns the latest envelope height stored by the database
func GetEntityList ¶
GetEntityList returns a list of entities from the database
func GetEntityProcessCount ¶
GetEntityProcessCount returns the number of processes belonging to a
func GetEntityProcessCountMap ¶
GetEntityProcessCountMap returns the entire map of entity process heights
func GetEntitySearch ¶
GetEntitySearch returns a list of entities from the database according to the search term
func GetEnvelope ¶
GetEnvelope gets a single envelope by global height
func GetEnvelopeCount ¶
GetEnvelopeCount returns the latest envelope height stored by the database
func GetEnvelopeHeightFromNullifier ¶
GetEnvelopeHeightFromNullifier finds the height corresponding to a given envelope nullifier
func GetEnvelopeList ¶
GetEnvelopeList returns a list of envelopes from the database
func GetEnvelopeListByProcess ¶
GetEnvelopeListByProcess returns a list of envelopes by process
func GetEnvelopeSearch ¶
GetEnvelopeSearch returns a list of envelopes from the database according to the search term
func GetProcessCount ¶
GetProcessCount returns the latest process height stored by the database
func GetProcessEnvelopeCount ¶
GetProcessEnvelopeCount returns the height of envelopes belonging to given process stored by the database
func GetProcessEnvelopeCountMap ¶
GetProcessEnvelopeCountMap returns the entire map of process envelope heights
func GetProcessList ¶
GetProcessList returns a list of entities from the database
func GetProcessListByEntity ¶
GetProcessListByEntity returns a list of processes by entity
func GetProcessSearch ¶
GetProcessSearch returns a list of processes from the database according to the search term
func GetStoreBlock ¶
func GetStoreBlock(i int64) (*types.StoreBlock, bool)
GetStoreBlock returns a single block from the database
func GetTransactionSearch ¶
GetTransactionSearch returns a list of transactions from the database according to the search term
func GetTxByHash ¶
func GetTxByHash(hash string) (*types.Transaction, bool)
GetTxByHash returns a transaction from the database
func GetTxByHeight ¶
func GetTxByHeight(height int64) (*types.Transaction, bool)
GetTxByHeight returns a transaction from the database
func GetTxHeight ¶
GetTxHeight returns the latest tx height stored by the database
func GetTxHeightFromHash ¶
GetTxHeightFromHash finds the height corresponding to a given tx hash
func GetValidator ¶
GetValidator returns a single validator from the database
func GetValidatorBlockHeight ¶
GetValidatorBlockHeight returns the height of blocks belonging to given validator stored by the database
func GetValidatorBlockHeightMap ¶
GetValidatorBlockHeightMap returns the entire map of validator block heights
func GetValidatorCount ¶
GetValidatorCount returns the latest validator count stored by the database
func GetValidatorList ¶
GetValidatorList returns a list of validators from the database
func GetValidatorSearch ¶
GetValidatorSearch returns a list of validators from the database according to the search term
Types ¶
type Block ¶
type Block struct { Data [][]byte Evidence string Hash string Header string Height int64 LastBlockID string LastCommit string ProposerAddress string Size int Time time.Time }
Block stores all block fields used by frontend, mimics tendermint block type
type Pkeys ¶
Pkeys is the set of cryptographic keys for a process
func GetProcessKeys ¶
GetProcessKeys gets process keys
type ProcessResults ¶
ProcessResults holds the results of a process
func GetProcessResults ¶
func GetProcessResults(id string) (*ProcessResults, bool)
GetProcessResults fetches the results of a process
type VochainStats ¶
type VochainStats struct { BlockHeight int64 `json:"block_height"` EntityCount int64 `json:"entity_count"` EnvelopeCount int64 `json:"envelope_count"` ProcessCount int64 `json:"process_count"` TransactionHeight int64 `json:"transaction_height"` ValidatorCount int64 `json:"validator_count"` BlockTime *[5]int32 `json:"block_time"` BlockTimeStamp int32 `json:"block_time_stamp"` ChainID string `json:"chain_id"` GenesisTimeStamp time.Time `json:"genesis_time_stamp"` Height int64 `json:"height"` Network string `json:"network"` Version string `json:"version"` LatestBlockHeight int64 `json:"latest_block_height"` AvgTxsPerBlock float64 `json:"avg_txs_per_block"` AvgTxsPerMinute float64 `json:"avg_txs_per_minute"` // The hash of the block with the most txs MaxBytes int64 `json:"max_bytes"` MaxTxsBlockHash string `json:"max_txs_block_hash"` MaxTxsBlockHeight int64 `json:"max_txs_block_height"` // The start of the minute with the most txs MaxTxsMinute time.Time `json:"max_txs_minute"` MaxTxsPerBlock int64 `json:"max_txs_per_block"` MaxTxsPerMinute int64 `json:"max_txs_per_minute"` Syncing bool `json:"syncing"` }
VochainStats is the type used by the public stats api