client

package
v0.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2017 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

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 NewHTTP

func NewHTTP(remote string) *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

func (*Provider) StoreSeed

func (p *Provider) StoreSeed(_ certifiers.Seed) error

StoreSeed is a noop, as clients can only read from the chain...

type WrappedSwitch added in v0.10.0

type WrappedSwitch struct {
	types.EventSwitch
	// contains filtered or unexported fields
}

func (WrappedSwitch) FireEvent added in v0.10.0

func (s WrappedSwitch) FireEvent(event string, data events.EventData)

type Wrapper added in v0.10.0

type Wrapper struct {
	rpcclient.Client
	// contains filtered or unexported fields
}

func Wrap added in v0.10.0

func (Wrapper) ABCIQuery added in v0.10.0

func (w Wrapper) ABCIQuery(path string, data data.Bytes, prove bool) (*ctypes.ResultABCIQuery, error)

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)

func (Wrapper) Commit added in v0.10.0

func (w Wrapper) Commit(height int) (*ctypes.ResultCommit, error)

Commit downloads the Commit and certifies it with the certifiers.

This is the foundation for all other verification in this module

func (Wrapper) Tx added in v0.10.0

func (w Wrapper) Tx(hash []byte, prove bool) (*ctypes.ResultTx, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL