Граф коммитов

6 Коммитов

Автор SHA1 Сообщение Дата
olgavrou 72c5d4aa4f
Consensus naming (#306) 2019-08-15 17:52:43 +01:00
Eddy Ashton 395e1b05cc
Remove jsonrpc::success() (#164)
* No success without an argument

* Make it clear that JoinNetwork gets an async response

* return json::success(true);

* Expect truth

* luA luI

* Make logging.lua consistent with logging.cpp

* KO OK
2019-06-17 09:30:56 +01:00
Eddy Ashton e567277a42
Json schema: Take 3 (#113)
* Add a getApi method, listing all installed RPC method names

* Sketch RecordParams struct

* WIP

* Broken WIP

* Partial macro

* Basic examples working

* Partial file separation

* Move, rename, and fix FOR macro

* Use json get

* Build to_json from RequiredJsonFields too

* Remove unneeded pair specialisation

* Add comments, collide required and optional

* REformat

* Use new macros everywhere

* Remove unused template

* Rename getApi to listMethods

* Move frontend-specific calltypes to /rpc

* Specify GetTxHist return type

* Pretty-print client responses by default

* Add a GetSchema RPC

* Other tools demand ugly formatting by default

* mins and maxes for numerics, map of schemas

* Support _FOR_JSON_0

* Fix support for std::optional optional fields

* Test std optionals

* Define schemas for GetCommit

* More definitions for existing RPCs

* Tidy schema generation, including for vectors

* Add proper unit test

* Initial test of schema generation

* Fix failing tests

* Formatting

* Add (currently failing) test of nested structs

* Add misleadingly passing test

* Set correct expected pointers, test currently fails

* Oops - deexpand

* Correctly build pointer path for erroneous array elements

* Demonstrate invalid, not just missing, valeus

* Skeleton of json_bench

* Fix typo

* WIP

* Compare manual json parsers vs macro-defined

* mumble mumble

* Add valijson, +basic test

* Add benchmark of valijson validation

* Benchmark simple and complex structs

* Additional broken schema test

* Include pointer to parse errors

* Restore old basic translator macro

* Restore simpler macro for translators that don't need schema

* Add auto schema for private logging methods

* Add manual schema + validation for PUBLIC logging RPCs

* Match RPC format

* More RPC format fixes

* Correct scenario test target

* Add documentation entry on API schema

* Initial schema retrieval test

* Correct URLs in generated schema

* Send schema to a flat folder

* Remove unnecessary size_t max restriction

* Report non-matching schema

* Add current schemas

* Tidying

* clang-format

* Remove schema generation e2e test

* fmtlib, remove $id from schema

* Fix pointer paths
2019-06-05 10:36:50 +01:00
Julien Maffre b10b931e7b
Full command forwarding (#75) 2019-05-20 11:45:53 +01:00
Amaury Chamayou 04ad7075e9
Get quotes rpc (#73)
Add get_quotes RPC
2019-05-17 12:24:55 +01:00
Amaury Chamayou b05da63d5c Initial file import 2019-04-26 16:27:27 +01:00