Documentation ¶
Overview ¶
Copyright 2017-2018 OneLedger
Cover over the Tendermint client handling.
TODO: Make this generic to handle HTTP and local clients
Copyright 2017-2018 OneLedger ¶
Cover over the arguments of client requests
Index ¶
- func Block(height int64) (res *ctypes.ResultBlock)
- func Broadcast(packet []byte) *ctypes.ResultBroadcastTxCommit
- func BroadcastAsync(packet []byte) *ctypes.ResultBroadcastTx
- func BroadcastSync(packet []byte) *ctypes.ResultBroadcastTx
- func GetClient() (client rpcclient.Client)
- func IsError(result interface{}) *string
- func NewAppClient() client.Client
- func NewSDKClient() pb.SDKClient
- func Query(path string, packet []byte) interface{}
- func Register(base []byte)
- func SDKRequest(base interface{}) interface{}
- func Search(query string, prove bool, page, perPage int) (res *ctypes.ResultTxSearch)
- func SetOption(key string, value string)
- func StopClient()
- func Tx(hash []byte, prove bool) (res *ctypes.ResultTx)
- type ApplyValidatorArguments
- type ExSendArguments
- type SendArguments
- type SwapArguments
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Block ¶ added in v0.7.1
func Block(height int64) (res *ctypes.ResultBlock)
func Broadcast ¶
func Broadcast(packet []byte) *ctypes.ResultBroadcastTxCommit
A sync'ed broadcast to the chain that waits for the commit to happen
func BroadcastAsync ¶ added in v0.6.1
func BroadcastAsync(packet []byte) *ctypes.ResultBroadcastTx
An async Broadcast to the chain
func BroadcastSync ¶ added in v0.6.2
func BroadcastSync(packet []byte) *ctypes.ResultBroadcastTx
A sync'ed broadcast to the chain that waits for the commit to happen
func GetClient ¶
HTTP interface, allows Broadcast? TODO: Want to switch client type, based on config or cli args.
func NewSDKClient ¶ added in v0.7.1
func SDKRequest ¶ added in v0.7.1
func SDKRequest(base interface{}) interface{}
Register the request
func Search ¶ added in v0.5.3
func Search(query string, prove bool, page, perPage int) (res *ctypes.ResultTxSearch)
func StopClient ¶ added in v0.8.1
func StopClient()
Types ¶
type ApplyValidatorArguments ¶ added in v0.7.1
type ExSendArguments ¶ added in v0.8.0
type SendArguments ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.