97 Commits

Author SHA1 Message Date
coffeepots
338aa589d9 Add tests for stint return values and parameters 2018-05-17 19:14:31 +01:00
coffeepots
55449b1193 Fix for zero parameter test 2018-05-17 19:13:44 +01:00
coffeepots
182dd02d80 Changed stint values to take and output strings 2018-05-17 19:13:12 +01:00
coffeepots
4e4b853365 fix stint to json to output hex rather than decimal 2018-05-17 19:11:47 +01:00
coffeepots
36cd28d077 output proc names changed from alpha -> alphanumeric 2018-05-17 15:23:49 +01:00
coffeepots
2fef44ff88 add test for return statement within on macro 2018-05-16 23:16:20 +01:00
coffeepots
39e987c082 fix double json conversion 2018-05-16 23:15:46 +01:00
coffeepots
67779bf428 Allow use of return in on macro rpcs 2018-05-16 23:14:43 +01:00
coffeepots
414c7dd1f2 process stints to json strings rather than arrays 2018-05-15 19:06:51 +01:00
coffeepots
9c1944977e rpcserver must be before asyncdispatch for correct parsing 2018-05-15 19:06:05 +01:00
coffeepots
ebacff63a6 Remove transport utils module as it's unused 2018-05-15 18:49:27 +01:00
coffeepots
2154047fd5 Base bytes on bytePairs. 2018-05-15 18:16:55 +01:00
coffeepots
efb71fce2c Extra checking for client receiving malformed & incorrect json 2018-05-15 17:58:16 +01:00
coffeepots
68333bd30a Update stint parse to use latest parse interface 2018-05-14 16:42:05 +01:00
coffeepots
ffb80ac04d fix result not found by changing import order... 2018-05-14 16:31:32 +01:00
coffeepots
4d1d82e5d8 Add StUInt256 json handling, explicitly pass type in param setup. 2018-05-14 16:30:14 +01:00
coffeepots
d8b68e14f7 add ref int 2018-05-10 21:52:02 +01:00
coffeepots
1eb53246ce Add type constraints and comments 2018-05-10 14:57:07 +01:00
coffeepots
7d93ca6168 Fixed parsing issue with forward decls 2018-05-10 14:09:44 +01:00
coffeepots
a9715050ae Added some more simple tests 2018-05-09 17:31:28 +01:00
coffeepots
50479cbbdc Update comment to be clearer 2018-05-09 16:17:33 +01:00
coffeepots
ae182907f2 Add stint requirement 2018-05-09 15:08:03 +01:00
coffeepots
b6db0f151e Fix undeclared identifier: result in myProc custom rpc 2018-05-09 14:58:58 +01:00
coffeepots
ab77d3a371 Don't export bytes iterator for stint types 2018-05-09 14:58:21 +01:00
coffeepots
50924d1c12 Change inline proc to template 2018-05-09 14:57:45 +01:00
coffeepots
7e1fe1800a Use rpcserver import 2018-05-09 14:51:19 +01:00
coffeepots
fd835749ea Refactor errors 2018-05-09 14:26:28 +01:00
coffeepots
9fd13fd121 Use json converters, special case for rpc's returning JsonNode 2018-05-09 13:08:15 +01:00
coffeepots
aa99f1076d Add converters to and from common stint types and byte 2018-05-09 13:07:32 +01:00
coffeepots
e74dfdce62 Remove macro for replacing strings in proc name 2018-05-09 09:51:51 +01:00
coffeepots
1ac58430f0 Don't call multiRemove macro directly from macro 2018-05-08 20:48:28 +01:00
coffeepots
ff078478bd Remove debug echo 2018-05-08 20:42:16 +01:00
coffeepots
c9a9eb90ce Remove redundant tests, add more error checks 2018-05-08 20:36:13 +01:00
coffeepots
81909360a6 Move checks out of generic procs, refactor expect len to separate proc 2018-05-08 20:35:30 +01:00
coffeepots
e6e343ab92 Enforce checks in release and refactor to separate macro 2018-05-08 20:34:28 +01:00
coffeepots
2c8faae0b5 Updated tests to check return type processing 2018-05-08 17:30:05 +01:00
coffeepots
7355543147 Now allows return types in on macro 2018-05-08 17:29:23 +01:00
coffeepots
d96f984d5c Remove {.rpc.} macro and merged testing into testrpcmacro 2018-05-08 16:26:13 +01:00
coffeepots
d0c34ba834 Minor comment tidy up 2018-05-08 16:03:28 +01:00
coffeepots
9b4e373633 Add input error checking and propagate parameter names for errors 2018-05-08 15:55:31 +01:00
coffeepots
f49f011d88 Add error checking, tidy up code, added bool processing 2018-05-08 15:37:23 +01:00
coffeepots
5c7d339c21 Parse objects by overload 2018-05-08 11:51:24 +01:00
coffeepots
e96c364fdf Add processing and checking for uintX and intX types and related tests 2018-05-03 22:40:28 +01:00
coffeepots
75d41585d0 Add conversion for json -> byte 2018-05-03 20:20:10 +01:00
coffeepots
0198cf680b Added prototype for processing of byte params 2018-05-02 23:12:07 +01:00
coffeepots
e2d2e7402c Nested objects with arrays now parse 2018-05-02 16:21:05 +01:00
coffeepots
7e0abead63 Fix off by one error in runtime check for array length 2018-05-01 20:59:10 +01:00
coffeepots
e446b8eea8 WIP traversing objects 2018-05-01 20:32:28 +01:00
coffeepots
327a9b8551 Added testrpcmacro to test module 2018-04-26 19:43:36 +01:00
coffeepots
79417b74ab Updated paths 2018-04-26 19:37:19 +01:00