328 Commits

Author SHA1 Message Date
coffeepots
7839a553a5 Added 'afterRead' verb to define rpc, exported defaultMaxRequestLength 2018-06-21 18:33:39 +01:00
coffeepots
d5116b07bb Updated comments 2018-06-21 18:22:04 +01:00
coffeepots
5208755f63 Remove debug echo 2018-06-21 18:17:46 +01:00
coffeepots
501d5a398c Updated to test defining HTTP-RPC (WIP, client needs more work) 2018-06-21 18:16:06 +01:00
coffeepots
b245a23745 Server now allows defining read, write and close code directly 2018-06-21 18:15:21 +01:00
coffeepots
6b619472f3 Test errors WIP 2018-06-19 18:22:13 +01:00
coffeepots
49afd6ee76 Add simple test for HTTP (WIP) 2018-06-19 18:22:01 +01:00
coffeepots
14009846ef Add beginnings of HTTP-RPC 2018-06-19 18:21:37 +01:00
coffeepots
23911ad80e Fix bad debug log 2018-06-19 18:20:46 +01:00
coffeepots
e42864ef7a Remove testerrors from tests whilst fixing exceptions in rpcs 2018-06-19 18:18:48 +01:00
coffeepots
8d1174b136 Updated paths to use rpcserver now that streamservers are in there 2018-06-19 18:17:56 +01:00
coffeepots
28ce222e23 Client now should fail the future on errors 2018-06-19 18:17:12 +01:00
coffeepots
c162f24253 Re-enabled chronicles, extended RpcClientTransport, added stream servers 2018-06-19 18:16:39 +01:00
coffeepots
ce94ba8b41 Removed rpcstreamservers and added to rpcserver 2018-06-19 18:15:43 +01:00
coffeepots
a20e5b85d1 Unified return type 2018-06-18 18:39:48 +01:00
coffeepots
81d52cb3cb Add validated hex string type 2018-06-18 18:31:11 +01:00
coffeepots
a5467063b7 Add simple validation for hex strings to web3_sha3 2018-06-15 20:35:49 +01:00
coffeepots
d789ca6fee Utilities for validating ethereum values 2018-06-15 20:33:29 +01:00
coffeepots
6e81e6c5f5 Updated concept to remove type 2018-06-15 13:02:37 +01:00
coffeepots
bdf47fd2ed Add rpc server init proc 2018-06-15 11:12:34 +01:00
coffeepots
746232a928 Revert "Rename rpcstreamserver and newStreamServer to rpcsocketserver and newSocketServer"
This reverts commit 0dfb4be55c4cbf852370b50971ba89f6539bf921.
2018-06-15 11:11:10 +01:00
coffeepots
0dfb4be55c Rename rpcstreamserver and newStreamServer to rpcsocketserver and newSocketServer 2018-06-15 10:34:24 +01:00
coffeepots
30b97e7131 Remove delegate proc for processClient 2018-06-14 17:11:58 +01:00
coffeepots
20ddb0267f Remove redundant comment 2018-06-14 17:11:24 +01:00
coffeepots
e5c92dd207 Fix "cannot find init" as nimcrypto wasn't visible in ethprocs 2018-06-14 17:02:17 +01:00
coffeepots
bb07650f33 Update tests to use streamserver 2018-06-14 16:55:10 +01:00
coffeepots
7486a542ac Stream servers are now separated into new module 2018-06-14 16:53:57 +01:00
coffeepots
2f7580f082 Update to use rpc folder 2018-06-14 16:53:24 +01:00
coffeepots
33b1c61952 Move client and server to rpc folder 2018-06-14 16:52:41 +01:00
coffeepots
9f05f63054 Rename eth-rpc to rpc 2018-06-14 16:52:03 +01:00
coffeepots
5a5032a904 Temporarily disable logging to make tests green 2018-06-13 20:59:52 +01:00
coffeepots
a79351cbd7 Re-added malformed json error 2018-06-13 19:31:00 +01:00
coffeepots
9945228bf0 Add testerrors to all tests 2018-06-13 19:19:38 +01:00
coffeepots
ba53bd1237 Update errors to check results are as expected 2018-06-13 19:19:24 +01:00
coffeepots
6701fc7723 Improve tests, add check for invalid json 2018-06-13 19:13:04 +01:00
coffeepots
4143c2cc41 Debug func for getting next id, assert instead of if 2018-06-13 19:12:29 +01:00
coffeepots
374c5c02f8 Check id before anything else, complete future before raising if possible 2018-06-13 19:11:47 +01:00
coffeepots
4a164c026e Fix missing id in sendError, report error on wrong json version 2018-06-13 19:08:16 +01:00
coffeepots
8781bbbf4e Update testerrors ready for async tests (TODO) 2018-06-12 19:30:14 +01:00
coffeepots
e39008fe4a Removed extraneous debug output 2018-06-12 19:28:41 +01:00
coffeepots
5dba128947 Add max line read length, WIP changes to handle malformed json 2018-06-12 19:27:51 +01:00
coffeepots
937546b71d Add max line length 2018-06-12 19:26:24 +01:00
coffeepots
93c7a5577e var strings only for transport 2018-06-12 18:09:00 +01:00
coffeepots
2a6c1fb89a Remove debug echo 2018-06-12 16:53:13 +01:00
coffeepots
9613fe72a7 Efficiency of checkGet improved 2018-06-12 16:51:07 +01:00
coffeepots
1212861547 Add missing RPC test 2018-06-12 09:14:24 +01:00
coffeepots
687c577942 Merge asyncdispatch2 let->var changes 2018-06-12 09:13:02 +01:00
cheatfate
001195341c Fix client.nim for latest changes in asyncdispatch2. 2018-06-12 09:53:48 +03:00
cheatfate
1ff985b468 Fix for latest changes in asyncdispatch2. 2018-06-12 09:49:16 +03:00
coffeepots
b32660c1c9 Add module scope chronicles topic 2018-06-11 21:00:30 +01:00