Documentation ¶
Index ¶
- type Provider
- type WrappedSwitch
- type Wrapper
- func (w Wrapper) ABCIQuery(path string, data data.Bytes, prove bool) (*ctypes.ResultABCIQuery, error)
- func (w Wrapper) Block(height int) (*ctypes.ResultBlock, error)
- func (w Wrapper) BlockchainInfo(minHeight, maxHeight int) (*ctypes.ResultBlockchainInfo, error)
- func (w Wrapper) Commit(height int) (*ctypes.ResultCommit, error)
- func (w Wrapper) Tx(hash []byte, prove bool) (*ctypes.ResultTx, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func New ¶
func New(node rpcclient.SignClient) *Provider
func (*Provider) GetByHash ¶
func (p *Provider) GetByHash(hash []byte) (certifiers.Seed, error)
GetHash gets the most recent validator (only one available) and sees if it matches
TODO: improve when the rpc interface supports more functionality
func (*Provider) GetByHeight ¶
func (p *Provider) GetByHeight(h int) (certifiers.Seed, error)
GetByHeight gets the most recent validator (only one available) and sees if it matches
TODO: keep track of most recent height, it will never go down
TODO: improve when the rpc interface supports more functionality
type WrappedSwitch ¶ added in v0.10.0
type WrappedSwitch struct { types.EventSwitch // contains filtered or unexported fields }
type Wrapper ¶ added in v0.10.0
func Wrap ¶ added in v0.10.0
func Wrap(c rpcclient.Client, cert *certifiers.InquiringCertifier) Wrapper
func (Wrapper) Block ¶ added in v0.10.0
func (w Wrapper) Block(height int) (*ctypes.ResultBlock, error)
func (Wrapper) BlockchainInfo ¶ added in v0.10.0
func (w Wrapper) BlockchainInfo(minHeight, maxHeight int) (*ctypes.ResultBlockchainInfo, error)
Click to show internal directories.
Click to hide internal directories.