andri lim
26a6cb1790
Client also handle error message if id is null ( #196 )
...
* Client also handle error message if id is null
* Reduce compiler warnings in testethcalls
* Fix gcsafe error
2024-01-21 12:06:18 +07:00
jangko
20b4c9a0fb
Let the OS choose the port for tests
2024-01-07 15:33:43 +07:00
jangko
76dd352ace
Remove StringOfJson
2024-01-04 07:49:19 +07:00
andri lim
e0b077fea4
Upgrade rpc router internals ( #178 )
...
* Upgrade rpc router internals
* use new chronos asyncraises
* Fix style mismatch
* Fix nim v2 compilation error
* Addresing review
* Remove unnecessary custom serializer and let the library do the work
* fix error message
* Update readme.md
2024-01-03 20:06:53 +07:00
Jacek Sieka
c0ecb42613
normalise nimble, update ci, unittest2 ( #158 )
2022-12-02 13:17:27 +01:00
Jacek Sieka
b4aff8fec5
remove news support ( #155 )
...
`news` has several resource leaks and other security issues - replaced
by `nim-websock` which is actively maintained.
2022-11-08 14:39:29 +01:00
Jacek Sieka
2e3d22b9e2
enable styleCheck:usages ( #135 )
2022-04-08 10:25:41 +02:00
Zahary Karadjov
7ff4559cc0
Allow dynamic RPC method names in the 'rpc' macro
2021-11-24 15:57:46 +02:00
Jacek Sieka
4eb39203eb
fixes ( #95 )
...
* fixes
* fix https://github.com/status-im/nimbus-eth2/issues/1650
* only one of `result` and `error` allowed in response
* fix invalid `string` instances being created from byte sequences
* fix large int64 parsing on 32-bit
* fix exception inheritance
* fix some dangling results
* some cleanups
* annotate exception issues, fix cancellation
* more error handling cleanup
* add rudimentary error tests
* cleanups
* simplify init
* use nextId -> lastId to avoid =1 init
* remove obsolete tests
2021-02-15 13:45:51 +01:00
Zahary Karadjov
f53e0b960b
Fix all tests
2020-03-17 22:05:42 +02:00
Ștefan Talpalaru
72a99cc977
replace getCurrentExceptionMsg() and delete some unused imports
2019-12-02 12:26:09 +01:00
coffeepots
5da9ce7881
Make all tests use port 8545 to check connection closing between tests
2018-09-13 19:27:51 +01:00
coffeepots
7a27a78122
Update testEthCalls and testRpcMacro with closeWait
2018-09-13 19:20:16 +01:00
Zahary Karadjov
642fdd591f
fix the package structure to make Nimble happy
2018-07-20 19:34:10 +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
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
cf44cc552d
Remove DSL, add router and simplify server
2018-07-06 17:47:43 +01:00
coffeepots
79e756bd3c
Update tests to use rpcStreamClient
2018-06-22 19:06:03 +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
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
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
1667119f34
Fix case sensitive import on nix filesystems and reduce name length
2018-05-31 12:02:21 +01:00
coffeepots
92bae923c9
Split tests into standard client-server, rpc macro tests and ethtests
2018-05-30 16:36:55 +01:00
coffeepots
cdcd5204e3
Split tests into client-server test and ethprocs test
2018-05-30 16:36:55 +01:00