66 Commits

Author SHA1 Message Date
coffeepots
5fe14db4eb Moved jsonconverters for easier use by client 2018-05-29 13:20:07 +03:00
coffeepots
ce86719f4c on is now rpc for now to fix compilation issue 2018-05-29 13:20:07 +03:00
coffeepots
867809f16d Client forward decls for checking client calls 2018-05-29 13:20:07 +03:00
coffeepots
52c834122a Refactor Ethereum types to separate module 2018-05-29 13:20:07 +03:00
coffeepots
59b9ad7e8c Refactor Ethereum rpc types to separate module 2018-05-29 13:20:07 +03:00
coffeepots
b17134f636 Add check for UInt256 strings being too long 2018-05-29 13:20:07 +03:00
coffeepots
4eb7cdb914 Remove finished UInt256 TODO, add string return for web3_client 2018-05-29 13:20:07 +03:00
coffeepots
6e4309f565 Changed stint values to take and output strings 2018-05-29 13:20:07 +03:00
coffeepots
89ece166db fix stint to json to output hex rather than decimal 2018-05-29 13:20:07 +03:00
coffeepots
e125d7883e output proc names changed from alpha -> alphanumeric 2018-05-29 13:20:07 +03:00
coffeepots
206abd8ae8 fix double json conversion 2018-05-29 13:20:07 +03:00
coffeepots
fad4e4a018 Allow use of return in on macro rpcs 2018-05-29 13:20:07 +03:00
coffeepots
c3b4a8c0ac process stints to json strings rather than arrays 2018-05-29 13:20:07 +03:00
coffeepots
a9456bd22c Remove transport utils module as it's unused 2018-05-29 13:20:07 +03:00
coffeepots
8c7290c0fe Base bytes on bytePairs. 2018-05-29 13:20:07 +03:00
coffeepots
b98d0bca9c Extra checking for client receiving malformed & incorrect json 2018-05-29 13:20:07 +03:00
coffeepots
1f645f1637 Update stint parse to use latest parse interface 2018-05-29 13:20:07 +03:00
coffeepots
7dcdf159e1 Add StUInt256 json handling, explicitly pass type in param setup. 2018-05-29 13:20:07 +03:00
coffeepots
ba70df28e3 add ref int 2018-05-29 13:20:07 +03:00
coffeepots
777849454b Add type constraints and comments 2018-05-29 13:20:07 +03:00
coffeepots
e455269c51 Fixed parsing issue with forward decls 2018-05-29 13:20:07 +03:00
coffeepots
e5e09718db Don't export bytes iterator for stint types 2018-05-29 13:20:07 +03:00
coffeepots
5d0cb19aa1 Change inline proc to template 2018-05-29 13:20:07 +03:00
coffeepots
73de2d19e2 Refactor errors 2018-05-29 13:20:07 +03:00
coffeepots
8301377329 Use json converters, special case for rpc's returning JsonNode 2018-05-29 13:20:07 +03:00
coffeepots
cb7e7a3cae Add converters to and from common stint types and byte 2018-05-29 13:20:07 +03:00
coffeepots
425854ba46 Remove macro for replacing strings in proc name 2018-05-29 13:20:07 +03:00
coffeepots
5eb0a8f947 Don't call multiRemove macro directly from macro 2018-05-29 13:20:07 +03:00
coffeepots
95a261fa7c Remove debug echo 2018-05-29 13:20:07 +03:00
coffeepots
61fd9e7850 Move checks out of generic procs, refactor expect len to separate proc 2018-05-29 13:20:07 +03:00
coffeepots
fd8c017ef1 Enforce checks in release and refactor to separate macro 2018-05-29 13:20:07 +03:00
coffeepots
31c9ca9196 Now allows return types in on macro 2018-05-29 13:20:07 +03:00
coffeepots
758653fb62 Remove {.rpc.} macro and merged testing into testrpcmacro 2018-05-29 13:20:07 +03:00
coffeepots
b5afb7e34a Minor comment tidy up 2018-05-29 13:20:07 +03:00
coffeepots
120d29b77c Add input error checking and propagate parameter names for errors 2018-05-29 13:20:07 +03:00
coffeepots
9d392309f5 Add error checking, tidy up code, added bool processing 2018-05-29 13:20:07 +03:00
coffeepots
b4d42709b4 Parse objects by overload 2018-05-29 13:20:07 +03:00
coffeepots
e9baad7e87 Add processing and checking for uintX and intX types and related tests 2018-05-29 13:20:07 +03:00
coffeepots
3292de2477 Add conversion for json -> byte 2018-05-29 13:20:07 +03:00
coffeepots
4336d8b9e8 Added prototype for processing of byte params 2018-05-29 13:20:07 +03:00
coffeepots
dad95a6493 Nested objects with arrays now parse 2018-05-29 13:20:07 +03:00
coffeepots
562eb71ee5 Fix off by one error in runtime check for array length 2018-05-29 13:20:07 +03:00
coffeepots
f4598f563e WIP traversing objects 2018-05-29 13:20:07 +03:00
coffeepots
5e624d0207 Added object support (no nesting yet), also flag for dumping macro gen 2018-05-29 13:20:07 +03:00
coffeepots
5a07bb3f6c Moved rpcclient/rpcserver to more accessible place 2018-05-29 13:20:07 +03:00
coffeepots
a4214de67c Reworked seq/array parameter construction 2018-05-29 13:20:07 +03:00
coffeepots
0ff11d4598 Added some parameters to the procs, more to do 2018-05-29 13:20:07 +03:00
coffeepots
dd472db933 Added seq, fixed some wrong index bugs 2018-05-29 13:20:07 +03:00
coffeepots
95b1ca78b7 Updated params to array for eth_getBalance 2018-05-29 13:20:07 +03:00
coffeepots
c48167a1cc Arrays now marshalled to native types and other params are prefetched 2018-05-29 13:20:07 +03:00