Versions in this module Expand all Collapse all v0 v0.1.0 Jan 19, 2024 Changes in this version + var DefaultABCIQueryOptions = ABCIQueryOptions + func DefaultWaitStrategy(delta int64) (abort error) + func WaitForHeight(c StatusClient, h int64, waiter Waiter) error + func WaitForOneEvent(c EventsClient, evtTyp string, timeout time.Duration) (types.TMEventData, error) + type ABCIClient interface + ABCIInfo func() (*ctypes.ResultABCIInfo, error) + ABCIQuery func(path string, data bytes.HexBytes) (*ctypes.ResultABCIQuery, error) + ABCIQueryWithOptions func(path string, data bytes.HexBytes, opts ABCIQueryOptions) (*ctypes.ResultABCIQuery, error) + BroadcastTxAsync func(tx types.Tx) (*ctypes.ResultBroadcastTx, error) + BroadcastTxCommit func(tx types.Tx) (*ctypes.ResultBroadcastTxCommit, error) + BroadcastTxSync func(tx types.Tx) (*ctypes.ResultBroadcastTx, error) + type ABCIQueryOptions struct + Height int64 + Prove bool + type Client interface + type EventsClient interface + Subscribe func(ctx context.Context, subscriber, query string, outCapacity ...int) (out <-chan ctypes.ResultEvent, err error) + Unsubscribe func(ctx context.Context, subscriber, query string) error + UnsubscribeAll func(ctx context.Context, subscriber string) error + type EvidenceClient interface + BroadcastEvidence func(ev types.Evidence) (*ctypes.ResultBroadcastEvidence, error) + type HistoryClient interface + BlockchainInfo func(minHeight, maxHeight int64) (*ctypes.ResultBlockchainInfo, error) + BtcBlockHashByBtcHeight func(int64) (string, error) + BtcBlockHashByBtcTxid func(string) (string, error) + Genesis func() (*ctypes.ResultGenesis, error) + HeightByBtcHash func(string) (int64, error) + LatestBlockNumber func() (int64, error) + MapTxhashTxid func(btcHash, protocolName string) (map[string]string, error) + type MempoolClient interface + GetAddressList func() (*ctypes.ResultUnconfirmedAddresses, error) + GetPendingNonce func(address string) (*ctypes.ResultPendingNonce, bool) + GetUnconfirmedTxByHash func(hash [sha256.Size]byte) (types.Tx, error) + NumUnconfirmedTxs func() (*ctypes.ResultUnconfirmedTxs, error) + UnconfirmedTxs func(limit int) (*ctypes.ResultUnconfirmedTxs, error) + UserNumUnconfirmedTxs func(address string) (*ctypes.ResultUserUnconfirmedTxs, error) + UserUnconfirmedTxs func(address string, limit int) (*ctypes.ResultUserUnconfirmedTxs, error) + type NetworkClient interface + ConsensusParams func(height *int64) (*ctypes.ResultConsensusParams, error) + ConsensusState func() (*ctypes.ResultConsensusState, error) + DumpConsensusState func() (*ctypes.ResultDumpConsensusState, error) + Health func() (*ctypes.ResultHealth, error) + NetInfo func() (*ctypes.ResultNetInfo, error) + type SignClient interface + Block func(height *int64) (*ctypes.ResultBlock, error) + BlockByHash func(hash []byte) (*ctypes.ResultBlock, error) + BlockInfo func(height *int64) (*types.BlockMeta, error) + BlockResults func(height *int64) (*ctypes.ResultBlockResults, error) + Commit func(height *int64) (*ctypes.ResultCommit, error) + Tx func(hash []byte, prove bool) (*ctypes.ResultTx, error) + TxSearch func(query string, prove bool, page, perPage int, orderBy string) (*ctypes.ResultTxSearch, error) + Validators func(height *int64, page, perPage int) (*ctypes.ResultValidators, error) + type StatusClient interface + Status func() (*ctypes.ResultStatus, error) + type Waiter func(delta int64) (abort error)