system

package
v0.0.0-...-b6c1db7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllProposalsUptoBlockNumber

func AllProposalsUptoBlockNumber(blockNumber *big.Int) *contract.AssortedProposals

func BalancesData

func BalancesData(rc *rpc.Client) types.Handler

BalancesData requests system wide stats at the latest block height

func HistoricalProposalsData

func HistoricalProposalsData(rc *rpc.Client) types.Handler

HistoricalProposalsData returns details of all proposals till the given block height

func QueuedProposalsData

func QueuedProposalsData(rc *rpc.Client) types.Handler

QueuedProposalsData returns details of all queued proposals at the given block height

func QueuedProposalsWithDetails

func QueuedProposalsWithDetails(blockNumber *big.Int) []*contract.DetailedQueuedProposal

func ReferendumProposalsData

func ReferendumProposalsData(rc *rpc.Client) types.Handler

ReferendumProposalsData returns details of all referendum proposals at the given block height

func ReferendumProposalsWithDetails

func ReferendumProposalsWithDetails(blockNumber *big.Int) []*contract.DetailedProposal

func SnapshotsData

func SnapshotsData(Db *sql.DB) types.Handler

SnapshotsData returns system wide stats for all snapshots

func SystemSnapshots

func SystemSnapshots(Db *sql.DB) []*snapshot.SystemSnapshotRow

func SystemWithDetails

func SystemWithDetails(blockNumber *big.Int) *types.System

func TransactionData

func TransactionData(Db *sql.DB) types.Handler

TransactionData returns details of a transaction - given a txhash

func ValidatorGroupsData

func ValidatorGroupsData(rc *rpc.Client) types.Handler

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL