Documentation ¶
Index ¶
- func AllProposalsUptoBlockNumber(blockNumber *big.Int) *contract.AssortedProposals
- func BalancesData(rc *rpc.Client) types.Handler
- func HistoricalProposalsData(rc *rpc.Client) types.Handler
- func QueuedProposalsData(rc *rpc.Client) types.Handler
- func QueuedProposalsWithDetails(blockNumber *big.Int) []*contract.DetailedQueuedProposal
- func ReferendumProposalsData(rc *rpc.Client) types.Handler
- func ReferendumProposalsWithDetails(blockNumber *big.Int) []*contract.DetailedProposal
- func SnapshotsData(Db *sql.DB) types.Handler
- func SystemSnapshots(Db *sql.DB) []*snapshot.SystemSnapshotRow
- func SystemWithDetails(blockNumber *big.Int) *types.System
- func TransactionData(Db *sql.DB) types.Handler
- func ValidatorGroupsData(rc *rpc.Client) types.Handler
- func ValidatorGroupsWithDetails(blockNumber *big.Int) []*contract.ValidatorGroup
- type TransactionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllProposalsUptoBlockNumber ¶
func AllProposalsUptoBlockNumber(blockNumber *big.Int) *contract.AssortedProposals
func BalancesData ¶
BalancesData requests system wide stats at the latest block height
func HistoricalProposalsData ¶
HistoricalProposalsData returns details of all proposals till the given block height
func QueuedProposalsData ¶
QueuedProposalsData returns details of all queued proposals at the given block height
func QueuedProposalsWithDetails ¶
func QueuedProposalsWithDetails(blockNumber *big.Int) []*contract.DetailedQueuedProposal
func ReferendumProposalsData ¶
ReferendumProposalsData returns details of all referendum proposals at the given block height
func ReferendumProposalsWithDetails ¶
func ReferendumProposalsWithDetails(blockNumber *big.Int) []*contract.DetailedProposal
func SnapshotsData ¶
SnapshotsData returns system wide stats for all snapshots
func SystemSnapshots ¶
func SystemSnapshots(Db *sql.DB) []*snapshot.SystemSnapshotRow
func TransactionData ¶
TransactionData returns details of a transaction - given a txhash
func ValidatorGroupsData ¶
ValidatorGroupsData returns details of all validator groups at the given block height
func ValidatorGroupsWithDetails ¶
func ValidatorGroupsWithDetails(blockNumber *big.Int) []*contract.ValidatorGroup
Types ¶
type TransactionResponse ¶
type TransactionResponse struct { Message string `json:"message"` Transaction *blockshot.TransactionDetailed `json:"transaction"` }
func GetTransaction ¶
func GetTransaction(db *sql.DB, txHash string) *TransactionResponse
Click to show internal directories.
Click to hide internal directories.