core_types

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Peer

type Peer struct {
	p2p.NodeInfo     `json:"node_info"`
	p2p.ID           `json:"node_id"`
	IsOutbound       bool                 `json:"is_outbound"`
	ConnectionStatus p2p.ConnectionStatus `json:"connection_status"`
}

type ResultABCIInfo added in v0.8.0

type ResultABCIInfo struct {
	Response abci.ResponseInfo `json:"response"`
}

type ResultABCIQuery added in v0.8.0

type ResultABCIQuery struct {
	Response abci.ResponseQuery `json:"response"`
}

type ResultBlock

type ResultBlock struct {
	BlockMeta *types.BlockMeta `json:"block_meta"`
	Block     *types.Block     `json:"block"`
}

type ResultBlockResults added in v0.15.0

type ResultBlockResults struct {
	Height  int64                `json:"height"`
	Results *state.ABCIResponses `json:"results"`
}

type ResultBlockchainInfo

type ResultBlockchainInfo struct {
	LastHeight int64              `json:"last_height"`
	BlockMetas []*types.BlockMeta `json:"block_metas"`
}

type ResultBroadcastTx

type ResultBroadcastTx struct {
	Code uint32       `json:"code"`
	Data cmn.HexBytes `json:"data"`
	Log  string       `json:"log"`

	Hash cmn.HexBytes `json:"hash"`
}

type ResultBroadcastTxCommit added in v0.8.0

type ResultBroadcastTxCommit struct {
	CheckTx   abci.ResponseCheckTx   `json:"check_tx"`
	DeliverTx abci.ResponseDeliverTx `json:"deliver_tx"`
	Hash      cmn.HexBytes           `json:"hash"`
	Height    int64                  `json:"height"`
}

type ResultCommit added in v0.9.0

type ResultCommit struct {
	// SignedHeader is header and commit, embedded so we only have
	// one level in the json output
	types.SignedHeader
	CanonicalCommit bool `json:"canonical"`
}

func NewResultCommit added in v0.12.0

func NewResultCommit(header *types.Header, commit *types.Commit,
	canonical bool) *ResultCommit

NewResultCommit is a helper to initialize the ResultCommit with the embedded struct

type ResultDialPeers added in v0.16.0

type ResultDialPeers struct {
	Log string `json:"log"`
}

type ResultDialSeeds

type ResultDialSeeds struct {
	Log string `json:"log"`
}

type ResultDumpConsensusState

type ResultDumpConsensusState struct {
	RoundState      *cstypes.RoundState                `json:"round_state"`
	PeerRoundStates map[p2p.ID]*cstypes.PeerRoundState `json:"peer_round_states"`
}

type ResultEvent

type ResultEvent struct {
	Query string            `json:"query"`
	Data  types.TMEventData `json:"data"`
}

type ResultGenesis

type ResultGenesis struct {
	Genesis *types.GenesisDoc `json:"genesis"`
}

type ResultHealth added in v0.17.0

type ResultHealth struct{}

type ResultNetInfo

type ResultNetInfo struct {
	Listening bool     `json:"listening"`
	Listeners []string `json:"listeners"`
	Peers     []Peer   `json:"peers"`
}

type ResultStatus

type ResultStatus struct {
	NodeInfo          p2p.NodeInfo    `json:"node_info"`
	PubKey            crypto.PubKey   `json:"pub_key"`
	LatestBlockHash   cmn.HexBytes    `json:"latest_block_hash"`
	LatestAppHash     cmn.HexBytes    `json:"latest_app_hash"`
	LatestBlockHeight int64           `json:"latest_block_height"`
	LatestBlockTime   time.Time       `json:"latest_block_time"`
	Syncing           bool            `json:"syncing"`
	ValidatorStatus   ValidatorStatus `json:"validator_status,omitempty"`
}

func (*ResultStatus) TxIndexEnabled added in v0.9.1

func (s *ResultStatus) TxIndexEnabled() bool

type ResultSubscribe

type ResultSubscribe struct{}

type ResultTx added in v0.9.1

type ResultTx struct {
	Hash     cmn.HexBytes           `json:"hash"`
	Height   int64                  `json:"height"`
	Index    uint32                 `json:"index"`
	TxResult abci.ResponseDeliverTx `json:"tx_result"`
	Tx       types.Tx               `json:"tx"`
	Proof    types.TxProof          `json:"proof,omitempty"`
}

type ResultUnconfirmedTxs

type ResultUnconfirmedTxs struct {
	N   int        `json:"n_txs"`
	Txs []types.Tx `json:"txs"`
}

type ResultUnsafeFlushMempool

type ResultUnsafeFlushMempool struct{}

type ResultUnsafeProfile

type ResultUnsafeProfile struct{}

type ResultUnsubscribe

type ResultUnsubscribe struct{}

type ResultValidators

type ResultValidators struct {
	BlockHeight int64              `json:"block_height"`
	Validators  []*types.Validator `json:"validators"`
}

type ValidatorStatus added in v0.18.0

type ValidatorStatus struct {
	VotingPower int64 `json:"voting_power"`
}

Jump to

Keyboard shortcuts

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