jangko
38950a786d
reduce compiler warnings
2023-02-22 12:00:35 +07:00
Jacek Sieka
7c80b75856
fix enum parsing, work around potential nil
dereference ( #150 )
...
* fix enum parsing, work around potential `nil` dereference
When the bizarre error handling in the http client fails, it may happen
that a nil is returned (maybe due to Nim bugs) - do it manually for now
2022-09-15 22:32:16 +03:00
Jacek Sieka
2e3d22b9e2
enable styleCheck:usages
( #135 )
2022-04-08 10:25:41 +02:00
Jacek Sieka
b4bab89abd
fix invalid raises annotations ( #132 )
...
* `raises` should not be used with async
* callbacks returning futures should not raise
2022-03-21 15:19:49 +01:00
Dustin Brody
b455958d8a
request header callback
2022-03-04 19:13:29 +00:00
Jacek Sieka
64d40d6c1a
simplify imports ( #98 )
...
remove broken uint64 converter - upstream std/json also includes a
broken uint64 converter
2021-03-26 13:17:00 +01:00
Jacek Sieka
ac5288651c
Exception handling signatures ( #97 )
...
Minimally work around leaking `Exception` for
https://github.com/status-im/nim-chronos/pull/166
2021-03-26 11:53:03 +01: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
Ștefan Talpalaru
b0e82cb70a
enable cross-compilation
2021-02-03 21:36:08 +02:00
Zahary Karadjov
244254632b
Improved handling of invalid responses; Handle seq[byte] results such as eth_getCode
2020-06-19 20:42:49 +03:00
Zahary Karadjov
5c0d096111
Support Nim 1.2
2020-03-24 16:50:34 +02:00
Zahary Karadjov
f53e0b960b
Fix all tests
2020-03-17 22:05:42 +02:00
Yuriy Glukhov
d4fbed75c7
Better error handling
2019-11-22 15:14:16 +02:00
Ștefan Talpalaru
de05184c74
replace {.gcsafe.} block with more proc pragmas
2019-07-19 13:48:26 +03:00
Ștefan Talpalaru
8168fcea25
fix some problems raised by Nim 0.20.2
2019-07-19 13:48:26 +03:00
Yuriy Glukhov
d031ab3eb4
Fixed error reporting for unexpected response id
2019-06-26 13:40:44 +03:00
Zahary Karadjov
48699c50ca
Make the new methods gcsafe to solve build issues in Nimbus
2019-06-24 19:49:31 +03:00
Yuriy Glukhov
b583dfb029
Use closeWait
2019-06-17 19:56:19 +03:00
Yuriy Glukhov
f19d66b35c
Websocket client support and some fixes
2019-06-12 20:53:15 +03:00
Mamy Ratsimbazafy
53ed44dfa5
Rebrand asyncdispatch2 to chronos ( #50 )
2019-02-06 18:27:58 +01: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
8d3473e75b
Renamed newStreamClient to newSocketClient, added a check for nil transport
2018-07-12 14:06:35 +01:00
coffeepots
cf44cc552d
Remove DSL, add router and simplify server
2018-07-06 17:47:43 +01:00
coffeepots
0c98f79d9c
Rename to json_rpc
2018-06-26 19:08:11 +01:00