Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwaitBlocks ¶
Types ¶
type BlockHeightNotifier ¶
type BlockHeightNotifier interface { Subscribe(o BlockHeightObserver, chainID string) (bool, error) Unsubscribe(o BlockHeightObserver, chainID string) (bool, error) Notify(chain string, height int64) }
Observers get notified when a new block is published to the chain.
type BlockHeightObserver ¶
type BlockHeightObserver interface {
Get() chan uint64
}
type Data ¶
type Data struct {
Value EventDataNewBlockHeader
}
type EventDataNewBlockHeader ¶
type Querier ¶
type Querier struct {
// contains filtered or unexported fields
}
func (*Querier) Subscribe ¶
func (q *Querier) Subscribe(o BlockHeightObserver, chainID string) (bool, error)
func (*Querier) Unsubscribe ¶
func (q *Querier) Unsubscribe(o BlockHeightObserver, chainID string) (bool, error)
type TendermintNewBlockHeader ¶
type TendermintNewBlockHeader struct {
Result Result
}
Click to show internal directories.
Click to hide internal directories.