Skip to content

Commit 040c9ac

Browse files
author
Will Binns
authored
Merge pull request #74 from bitcoin-dot-org/wbnns-rpc-helper
rpc: Add helper
2 parents aaf93ca + 74b6992 commit 040c9ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+4789
-0
lines changed

helpers/rpc/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Cornelius Schumacher
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

helpers/rpc/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
This repository contains a tool to generate Bitcoin Core RPC documentation. It
2+
requires a running `bitcoin-cli` client and puts out the documentation in
3+
Markdown format as used on [bitcoin.org](https://github.com/bitcoin-dot-org/bitcoin.org/tree/master/_data/devdocs/en/bitcoin-core/rpcs).
4+
5+
Run `rpc-docs-helper` to get command line help. Run `rpc-docs-helper generate`
6+
to generate the markdown. Run `pytest` to run the unit tests if you want to work
7+
on the tool itself.

helpers/rpc/TODO.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# RPC helper To do
2+
3+
* Add RST
4+
* Add basic renderer
5+
* Try rendered result
6+
* Add unit tests
7+
* Refactor (share between backends, abstract rst page)
8+
9+
* Fix description
10+
* gettxoutproof (first line cut off before "txids")
11+
12+
* Fix result
13+
* importmulti (include example output)
14+
15+
* Fix examples in description
16+
* deriveaddresses
17+
* scantxoutset
18+
19+
* Fix arguments
20+
* sighashtype parameter table
21+
* signrawtransactionwithwallet
22+
* walletprocesspsbt
23+
* multi-line argument description
24+
* listsinceblock (include_removed)
25+
26+
* Results of example commands
27+
(https://github.com/cornelius/rpc-docs-helper/issues/4)
28+
* Check how many commands have example results and how many are up to date
29+
* Recreate current state with manually edited annotations file
30+
* Look into auto-generating example results

0 commit comments

Comments
 (0)