Thane Thomson
a335caaedb
alias amino imports ( #3219 )
As per conversation here: https://github.com/tendermint/tendermint/pull/3218#discussion_r251364041
This is the result of running the following code on the repo:
```bash
find . -name '*.go' | grep -v 'vendor/' | xargs -n 1 goimports -w
```
6 years ago
Tomas Tauber
b12488b5f1
Handling integer IDs in JSON-RPC requests -- fixes #2366 ( #2811 )
* Fixed accepting integer IDs in requests for Tendermint RPC server (#2366 )
* added a wrapper interface `jsonrpcid` that represents both string and int IDs in JSON-RPC requests/responses + custom JSON unmarshallers
* changed client-side code in RPC that uses it
* added extra tests for integer IDs
* updated CHANGELOG_PENDING, as suggested by PR instructions
* addressed PR comments
* added table driven tests for request type marshalling/unmarshalling
* expanded handler test to check IDs
* changed pending changelog note
* changed json rpc request/response unmarshalling to use empty interfaces and type switches on ID
* some cleanup
6 years ago
Zach Ramsay
44dad6d70b
Revert "detele everything"
This reverts commit d02c5d1e30
.
6 years ago
Zach Ramsay
d02c5d1e30
detele everything
6 years ago
Roman Useinov
f0e5332b1f
Feature/support https rpc client ( #1816 )
* Implement support for https in rpc client
* Update changelog
* update comment
* support wss protocol
* fixed changelog
* if -> switch
* fix lint
* protocol constants introduced
6 years ago
Liamsi
d2c05bc5b9
Revert "delete everything" (includes everything non-go-crypto)
This reverts commit 96a3502
6 years ago
Liamsi
96a3502126
delete everything
6 years ago
Jae Kwon
3ca5292dc9
Fix rpc tests
7 years ago
Jae Kwon
3037b5b7ca
Fix rpc/lib/...
7 years ago
Ethan Buchman
ca3655a409
types: p2pID -> P2PID
7 years ago
Zach
2cc63069c6
rename dummy to kvstore ( #1223 )
* remove accidental binary
* docs: s/Dummy&dummy/KVStore&kvstore/g
* glide update to abci
* update abci import paths
* dummy begone, hello kvstore
* RequestInitChain needs genesisBytes
* glide update
7 years ago
Zach Ramsay
d7cb291fb2
errcheck; sort some stuff out
7 years ago
Zach Ramsay
68e7983c70
linting errors: afew more
7 years ago
Zach Ramsay
b75d4f73e7
errcheck: PR comment fixes
7 years ago
Zach Ramsay
57ea4987f7
linting: apply errcheck part1
7 years ago
Ethan Buchman
593c127257
rpc/lib/types: RPCResponse.Result is not a pointer
7 years ago
Adrian Brink
036d3b59a3
Address reviews
7 years ago
Adrian Brink
782a836db0
Cleanup of code and code docs
This cleans up some of the code in the state package
7 years ago
Silas Davis
3e3d53daef
Make RPCError an actual error and don't swallow its companion data
7 years ago
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
7 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://
7 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)
8 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