add client methods

This commit is contained in:
Anton Kaliaev
2017-11-29 13:42:11 -06:00
parent 1e19860585
commit acbc0717d4
6 changed files with 67 additions and 4 deletions

View File

@ -124,6 +124,10 @@ func (Local) Tx(hash []byte, prove bool) (*ctypes.ResultTx, error) {
return core.Tx(hash, prove)
}
func (Local) TxSearch(query string, prove bool) ([]*ctypes.ResultTx, error) {
return core.TxSearch(query, prove)
}
func (c *Local) Subscribe(ctx context.Context, query string, out chan<- interface{}) error {
q, err := tmquery.New(query)
if err != nil {