Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { ChainID string `json:"chain_id"` Height int64 `json:"height"` types.Txs `json:"txs"` Results []TxStatus `json:"tx_results"` T time.Time `json:"block_time"` BlockResults *ctypes.ResultBlockResults TxsResults []*abci.ResponseDeliverTx `json:"txs_results"` }
Block is a unit of data being sent over in order to be processed
type ProcessedBlock ¶
type ProcessedBlock struct { Height_ int64 ChainID_ string T time.Time BeginBlockEvents []watcher.Message Txs []watcher.Message EndBlockEvents []watcher.Message }
func (ProcessedBlock) ChainID ¶
func (b ProcessedBlock) ChainID() string
func (ProcessedBlock) Height ¶
func (b ProcessedBlock) Height() int64
func (ProcessedBlock) Messages ¶
func (b ProcessedBlock) Messages() []watcher.Message
func (ProcessedBlock) Time ¶
func (b ProcessedBlock) Time() time.Time
type TmBlock ¶
TmBlock is like tendermint block but without unnecessary mutex and unused data
func BlockFromTmResultBlock ¶
func BlockFromTmResultBlock(b types.EventDataNewBlock) TmBlock
BlockFromTmResultBlock parses tm websocket response to fit our block structure
type TxStatus ¶
TxStatus only stores transaction result code and it's hash
func TxStatusFromTmResultTx ¶
func TxStatusFromTmResultTx(t types.EventDataTx) TxStatus
TxStatusFromTmResultTx parses ResultTx to give us tx hash, height and error code actual tx body is stored in the block
Click to show internal directories.
Click to hide internal directories.