87 Commits

Author SHA1 Message Date
coffeepots
0acb6997c7 Tests for option types 2018-08-29 14:16:03 +03:00
Zahary Karadjov
642fdd591f fix the package structure to make Nimble happy 2018-07-20 19:34:10 +03:00
andri lim
4aedb214b6 fixes #18, rpc macro now can accept multiple variables of one type 2018-07-17 10:06:29 +07:00
cheatfate
989c999dc7 Fix suite name in testhttp. 2018-07-14 11:01:05 +03:00
cheatfate
0942b0387d Add RpcHttpServer.
Add RpcHttpClient.
2018-07-14 10:51:54 +03:00
coffeepots
1ca1847600 Make client usable with different transports 2018-07-12 18:36:40 +01:00
coffeepots
6466b7e778 Update tests with newRpcSocketClient 2018-07-12 14:08:43 +01:00
coffeepots
e3a7ffd121 Merge rpcsocket into rpcserver 2018-07-12 09:43:44 +01:00
coffeepots
3b8e736f35 Wrap RPC exceptions in JSON 2018-07-11 18:27:50 +01:00
coffeepots
13ae592738 Rename sockets.nim to socket.nim and rpcsockets.nim to rpcsocket.nim 2018-07-11 10:40:20 +01:00
coffeepots
b218529d2d Remove generics from server and update sockettransport 2018-07-11 10:19:13 +01:00
coffeepots
f943c584c7 Add check for empty string 2018-07-09 09:43:23 +01:00
coffeepots
cf44cc552d Remove DSL, add router and simplify server 2018-07-06 17:47:43 +01:00
coffeepots
b968d96923 Fix to allow compilation of testerrors 2018-07-05 12:40:11 +01:00
coffeepots
2c92487e1a Remove redundant "done" echo 2018-06-26 16:29:09 +01:00
coffeepots
c4b27e40bf Add http test 2018-06-26 16:28:49 +01:00
coffeepots
d36da9d14c Added testing, uses http client and server 2018-06-26 15:45:40 +01:00
coffeepots
79e756bd3c Update tests to use rpcStreamClient 2018-06-22 19:06:03 +01:00
coffeepots
09b55a5b32 More error checking (WIP) 2018-06-21 18:40:49 +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
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
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
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
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
2f7580f082 Update to use rpc folder 2018-06-14 16:53:24 +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
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
93c7a5577e var strings only for transport 2018-06-12 18:09:00 +01:00
coffeepots
1212861547 Add missing RPC test 2018-06-12 09:14:24 +01:00
coffeepots
4c38164688 WIP tests for errors 2018-06-11 19:26:16 +01:00
cheatfate
2b12f3699a Added reviews requirements. 2018-06-10 04:09:51 +03:00
cheatfate
7607cc4106 Fix connect(). 2018-06-08 09:31:51 +03:00
cheatfate
aea1798897 Add close() procedure for RpcServer.
Fixed tests to stop/close server.
2018-06-07 11:20:33 +03:00
cheatfate
cbfe945fff Use asyncdispatch2 instead of asyncdispatch. 2018-06-07 10:02:14 +03:00
coffeepots
efeb972763 Update tests to use async better, no shared server 2018-06-05 10:45:54 +01:00
coffeepots
1ea23b4df2 Remove shared server 2018-06-05 10:43:46 +01:00
coffeepots
6bfb4facc2 Remove var ref on rpc macro and just take ref 2018-06-04 15:34:48 +01:00
coffeepots
db55114233 Change example to invoke `rpc from within procedure scope 2018-06-04 14:16:35 +01:00
coffeepots
1667119f34 Fix case sensitive import on nix filesystems and reduce name length 2018-05-31 12:02:21 +01:00