Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlocksMap ¶
type BlocksMap struct { sync.Mutex Blocks map[uint64]structs.Block NumTxs uint64 StartHeight uint64 EndHeight uint64 }
BlocksMap map of blocks to control block map with extra summary of number of transactions
type Client ¶
type Client struct { Sbc *SimpleBlockCache // contains filtered or unexported fields }
Client is a Tendermint RPC client for cosmos using figmentnetworks datahub
func NewClient ¶
func NewClient(chainID string, logger *zap.Logger, cli *grpc.ClientConn, cfg *ClientConfig) *Client
NewClient returns a new client for a given endpoint
type ClientConfig ¶ added in v0.2.3
type SimpleBlockCache ¶ added in v0.2.3
type SimpleBlockCache struct {
// contains filtered or unexported fields
}
SimpleBlockCache simple in memory block cache to store latest blocks
func NewSimpleBlockCache ¶ added in v0.2.3
func NewSimpleBlockCache(cap int) *SimpleBlockCache
NewSimpleBlockCache a SimpleBlockCache constructor
func (*SimpleBlockCache) Add ¶ added in v0.2.3
func (sbc *SimpleBlockCache) Add(bl structs.Block)
Add blocks to the cache (thread safe)
type TxLogError ¶
type TxLogError struct { Codespace string `json:"codespace"` Code float64 `json:"code"` Message string `json:"message"` }
TxLogError Error message
Source Files ¶
Click to show internal directories.
Click to hide internal directories.