Anton Kaliaev
7fadde0b37
check for request ID after receiving it
7 years ago
Anton Kaliaev
b700ed8e31
remove check for non-empty message as it should always be present
8 years ago
Anton Kaliaev
6c1572c9b8
fix invalid memory address or nil pointer dereference
8 years ago
Dave Bryson
60a1f49a5c
updated json response to match spec by @davebryson
8 years ago
Ethan Frey
aac85a14f0
httpDialer accepts no prefix or http:// as tcp://
8 years ago
Anton Kaliaev
f8fdbe3dbc
changes as per Bucky's review
8 years ago
Anton Kaliaev
f803544195
new logging
8 years ago
Ethan Frey
6ba799132c
json.RawMessage in RPCRequest to defer parsing
8 years ago
Ethan Buchman
efeadcc0f4
some cleanup from review
8 years ago
Ethan Frey
6c60c07f16
BROKEN: attempt to replace go-wire.JSON with json.Unmarshall in rpc
8 years ago
Ethan Buchman
cc6dde96c1
rpc -> rpc/lib and rpc/tendermint -> rpc
8 years ago
Ethan Frey
bd93f76950
Improve rpc to properly format any alias for []byte in URIClient
8 years ago
Ethan Buchman
9e82d132ce
go-rpc -> tendermint/rpc
8 years ago
Ethan Buchman
c55d83281a
move into rpc package
8 years ago
Anton Kaliaev
5d19a008ce
add Call method to WSClient, which does proper encoding of params
8 years ago
Anton Kaliaev
e6c083f589
rename ClientURI -> URIClient, ClientJSONRPC -> JSONRPCClient (Refs #4 )
8 years ago
Ethan Frey
715f78e26a
Properly encode json.RawMessage
8 years ago
Anton Kaliaev
db69845ded
introduce errors pkg
8 years ago
Anton Kaliaev
05e1a22d5b
encode params before sending in JSONRPC
8 years ago
Anton Kaliaev
22ba8bdef8
fix Call method signature in HTTPClient interface
8 years ago
Anton Kaliaev
26ccb4c94a
remove private call methods
Q: what was the reason to create them?
8 years ago
Anton Kaliaev
66867bf949
remove "rpc" prefix from package imports
8 years ago
Anton Kaliaev
e1d5873bdf
support key-value params in JSONRPC (Refs #1 )
More changes:
- remove Client interface (reason: empty)
- introduce HTTPClient interface, which can be used for both ClientURI
and ClientJSONRPC clients (so our users don't have to create their own) (Refs #8 )
- rename integration tests script to `integration_test.sh`
- do not update deps on `get_deps`
8 years ago
Matt Bell
86506cd4f8
Handle quoted and hex string type HTTP args for both 'string' and '[]byte' type function args
8 years ago
Matt Bell
34a806578a
Handle hex strings and quoted strings in HTTP params
Use 0x-prefixed hex strings in client
server: Decode hex string args
Encode all string args as 0x<hex> without trying to encode as JSON
Added tests for special string arguments
Fix server handling quoted string args
Added string arg handling test cases to bash test script
8 years ago
Ethan Buchman
855255d73e
use EventSwitch interface; less logging
8 years ago
Ethan Buchman
479510be0e
support full urls (with eg tcp:// prefix)
9 years ago
Ethan Buchman
e8538d606a
add blank client interface
9 years ago
Ethan Buchman
1410693eae
support unix domain websockets
9 years ago
Ethan Buchman
74130008f7
deduplicate dialFunc
9 years ago
Ethan Buchman
6607232a5d
add support for unix sockets
9 years ago
Ethan Buchman
fbc5ac8052
print method in client log
9 years ago
Ethan Buchman
aff561d8c3
RPCResponse.Result is json.RawMessage
9 years ago
Ethan Buchman
3d59e13dd8
move from tendermint/tendermint
9 years ago