Skip to content

Commit 74a6b44

Browse files
committed
Merge rust-bitcoin#55: Update docs and verify infrastructure
b7dc2e7 v25: Update docs and verify infrastructure (Tobin C. Harding) 952aa06 v24: Update docs and verify infrastructure (Tobin C. Harding) d402fd3 v23: Update docs and verify infrastructure (Tobin C. Harding) af3294e v22: Update docs and verify infrastructure (Tobin C. Harding) 9b408e8 v21: Update docs and verify infrastructure (Tobin C. Harding) ab21018 v20: Update docs and verify infrastructure (Tobin C. Harding) 977fd24 v19: Update docs and verify infrastructure (Tobin C. Harding) a0ce60f verify: Put methods in some correct order as core does (Tobin C. Harding) 9997c42 verify: Fix grep false positive (Tobin C. Harding) a44d98a verify: Fix bug in method checking logic (Tobin C. Harding) 02cc6bd verify: Use correct GetMemoryInfoStats type name (Tobin C. Harding) 68c3fe7 verify: Fix docs for v18 (Tobin C. Harding) Pull request description: For Core versions 19 - 25 inclusive update the rustdocs in `types/src/vxy/mod.rs to match the style we introduced in v17 and v18 already. And add support to the `verify` tool to check the work. This is all version upto the latest 3. Top commit has no ACKs. Tree-SHA512: 5782c4f667108fa562b017f9022694c32ab6689550ba333930b237baecb0eddf467b076156d9ae0c60cd050cfec19ebb0c69b750465eb8f832b3fe63bb7c9327
2 parents c7ca552 + b7dc2e7 commit 74a6b44

File tree

27 files changed

+4130
-1189
lines changed

27 files changed

+4130
-1189
lines changed

types/src/v19/mod.rs

Lines changed: 239 additions & 157 deletions
Large diffs are not rendered by default.

types/src/v20/mod.rs

Lines changed: 242 additions & 158 deletions
Large diffs are not rendered by default.

types/src/v21/mod.rs

Lines changed: 248 additions & 164 deletions
Large diffs are not rendered by default.

types/src/v22/mod.rs

Lines changed: 259 additions & 171 deletions
Large diffs are not rendered by default.

types/src/v23/mod.rs

Lines changed: 253 additions & 169 deletions
Large diffs are not rendered by default.

types/src/v24/mod.rs

Lines changed: 257 additions & 173 deletions
Large diffs are not rendered by default.

types/src/v25/mod.rs

Lines changed: 257 additions & 174 deletions
Large diffs are not rendered by default.

verify/rpc-api-v19.txt

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
== Blockchain ==
2+
getbestblockhash
3+
getblock "blockhash" ( verbosity )
4+
getblockchaininfo
5+
getblockcount
6+
getblockfilter "blockhash" ( "filtertype" )
7+
getblockhash height
8+
getblockheader "blockhash" ( verbose )
9+
getblockstats hash_or_height ( stats )
10+
getchaintips
11+
getchaintxstats ( nblocks "blockhash" )
12+
getdifficulty
13+
getmempoolancestors "txid" ( verbose )
14+
getmempooldescendants "txid" ( verbose )
15+
getmempoolentry "txid"
16+
getmempoolinfo
17+
getrawmempool ( verbose )
18+
gettxout "txid" n ( include_mempool )
19+
gettxoutproof ["txid",...] ( "blockhash" )
20+
gettxoutsetinfo
21+
preciousblock "blockhash"
22+
pruneblockchain height
23+
savemempool
24+
scantxoutset "action" ( [scanobjects,...] )
25+
verifychain ( checklevel nblocks )
26+
verifytxoutproof "proof"
27+
28+
== Control ==
29+
getmemoryinfo ( "mode" )
30+
getrpcinfo
31+
help ( "command" )
32+
logging ( ["include_category",...] ["exclude_category",...] )
33+
stop
34+
uptime
35+
36+
== Generating ==
37+
generatetoaddress nblocks "address" ( maxtries )
38+
39+
== Mining ==
40+
getblocktemplate ( "template_request" )
41+
getmininginfo
42+
getnetworkhashps ( nblocks height )
43+
prioritisetransaction "txid" ( dummy ) fee_delta
44+
submitblock "hexdata" ( "dummy" )
45+
submitheader "hexdata"
46+
47+
== Network ==
48+
addnode "node" "command"
49+
clearbanned
50+
disconnectnode ( "address" nodeid )
51+
getaddednodeinfo ( "node" )
52+
getconnectioncount
53+
getnettotals
54+
getnetworkinfo
55+
getnodeaddresses ( count )
56+
getpeerinfo
57+
listbanned
58+
ping
59+
setban "subnet" "command" ( bantime absolute )
60+
setnetworkactive state
61+
62+
== Rawtransactions ==
63+
analyzepsbt "psbt"
64+
combinepsbt ["psbt",...]
65+
combinerawtransaction ["hexstring",...]
66+
converttopsbt "hexstring" ( permitsigdata iswitness )
67+
createpsbt [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime replaceable )
68+
createrawtransaction [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime replaceable )
69+
decodepsbt "psbt"
70+
decoderawtransaction "hexstring" ( iswitness )
71+
decodescript "hexstring"
72+
finalizepsbt "psbt" ( extract )
73+
fundrawtransaction "hexstring" ( options iswitness )
74+
getrawtransaction "txid" ( verbose "blockhash" )
75+
joinpsbts ["psbt",...]
76+
sendrawtransaction "hexstring" ( maxfeerate )
77+
signrawtransactionwithkey "hexstring" ["privatekey",...] ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" )
78+
testmempoolaccept ["rawtx",...] ( maxfeerate )
79+
utxoupdatepsbt "psbt" ( ["",{"desc":"str","range":n or [n,n]},...] )
80+
81+
== Util ==
82+
createmultisig nrequired ["key",...] ( "address_type" )
83+
deriveaddresses "descriptor" ( range )
84+
estimatesmartfee conf_target ( "estimate_mode" )
85+
getdescriptorinfo "descriptor"
86+
signmessagewithprivkey "privkey" "message"
87+
validateaddress "address"
88+
verifymessage "address" "signature" "message"
89+
90+
== Wallet ==
91+
abandontransaction "txid"
92+
abortrescan
93+
addmultisigaddress nrequired ["key",...] ( "label" "address_type" )
94+
backupwallet "destination"
95+
bumpfee "txid" ( options )
96+
createwallet "wallet_name" ( disable_private_keys blank "passphrase" avoid_reuse )
97+
dumpprivkey "address"
98+
dumpwallet "filename"
99+
encryptwallet "passphrase"
100+
getaddressesbylabel "label"
101+
getaddressinfo "address"
102+
getbalance ( "dummy" minconf include_watchonly avoid_reuse )
103+
getbalances
104+
getnewaddress ( "label" "address_type" )
105+
getrawchangeaddress ( "address_type" )
106+
getreceivedbyaddress "address" ( minconf )
107+
getreceivedbylabel "label" ( minconf )
108+
gettransaction "txid" ( include_watchonly verbose )
109+
getunconfirmedbalance
110+
getwalletinfo
111+
importaddress "address" ( "label" rescan p2sh )
112+
importmulti "requests" ( "options" )
113+
importprivkey "privkey" ( "label" rescan )
114+
importprunedfunds "rawtransaction" "txoutproof"
115+
importpubkey "pubkey" ( "label" rescan )
116+
importwallet "filename"
117+
keypoolrefill ( newsize )
118+
listaddressgroupings
119+
listlabels ( "purpose" )
120+
listlockunspent
121+
listreceivedbyaddress ( minconf include_empty include_watchonly "address_filter" )
122+
listreceivedbylabel ( minconf include_empty include_watchonly )
123+
listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed )
124+
listtransactions ( "label" count skip include_watchonly )
125+
listunspent ( minconf maxconf ["address",...] include_unsafe query_options )
126+
listwalletdir
127+
listwallets
128+
loadwallet "filename"
129+
lockunspent unlock ( [{"txid":"hex","vout":n},...] )
130+
removeprunedfunds "txid"
131+
rescanblockchain ( start_height stop_height )
132+
sendmany "" {"address":amount} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode" )
133+
sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode" avoid_reuse )
134+
sethdseed ( newkeypool "seed" )
135+
setlabel "address" "label"
136+
settxfee amount
137+
setwalletflag "flag" ( value )
138+
signmessage "address" "message"
139+
signrawtransactionwithwallet "hexstring" ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" )
140+
unloadwallet ( "wallet_name" )
141+
walletcreatefundedpsbt [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime options bip32derivs )
142+
walletlock
143+
walletpassphrase "passphrase" timeout
144+
walletpassphrasechange "oldpassphrase" "newpassphrase"
145+
walletprocesspsbt "psbt" ( sign "sighashtype" bip32derivs )
146+
147+
== Zmq ==
148+
getzmqnotifications

verify/rpc-api-v20.txt

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
== Blockchain ==
2+
getbestblockhash
3+
getblock "blockhash" ( verbosity )
4+
getblockchaininfo
5+
getblockcount
6+
getblockfilter "blockhash" ( "filtertype" )
7+
getblockhash height
8+
getblockheader "blockhash" ( verbose )
9+
getblockstats hash_or_height ( stats )
10+
getchaintips
11+
getchaintxstats ( nblocks "blockhash" )
12+
getdifficulty
13+
getmempoolancestors "txid" ( verbose )
14+
getmempooldescendants "txid" ( verbose )
15+
getmempoolentry "txid"
16+
getmempoolinfo
17+
getrawmempool ( verbose )
18+
gettxout "txid" n ( include_mempool )
19+
gettxoutproof ["txid",...] ( "blockhash" )
20+
gettxoutsetinfo
21+
preciousblock "blockhash"
22+
pruneblockchain height
23+
savemempool
24+
scantxoutset "action" ( [scanobjects,...] )
25+
verifychain ( checklevel nblocks )
26+
verifytxoutproof "proof"
27+
28+
== Control ==
29+
getmemoryinfo ( "mode" )
30+
getrpcinfo
31+
help ( "command" )
32+
logging ( ["include_category",...] ["exclude_category",...] )
33+
stop
34+
uptime
35+
36+
== Generating ==
37+
generatetoaddress nblocks "address" ( maxtries )
38+
generatetodescriptor num_blocks "descriptor" ( maxtries )
39+
40+
== Mining ==
41+
getblocktemplate ( "template_request" )
42+
getmininginfo
43+
getnetworkhashps ( nblocks height )
44+
prioritisetransaction "txid" ( dummy ) fee_delta
45+
submitblock "hexdata" ( "dummy" )
46+
submitheader "hexdata"
47+
48+
== Network ==
49+
addnode "node" "command"
50+
clearbanned
51+
disconnectnode ( "address" nodeid )
52+
getaddednodeinfo ( "node" )
53+
getconnectioncount
54+
getnettotals
55+
getnetworkinfo
56+
getnodeaddresses ( count )
57+
getpeerinfo
58+
listbanned
59+
ping
60+
setban "subnet" "command" ( bantime absolute )
61+
setnetworkactive state
62+
63+
== Rawtransactions ==
64+
analyzepsbt "psbt"
65+
combinepsbt ["psbt",...]
66+
combinerawtransaction ["hexstring",...]
67+
converttopsbt "hexstring" ( permitsigdata iswitness )
68+
createpsbt [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime replaceable )
69+
createrawtransaction [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime replaceable )
70+
decodepsbt "psbt"
71+
decoderawtransaction "hexstring" ( iswitness )
72+
decodescript "hexstring"
73+
finalizepsbt "psbt" ( extract )
74+
fundrawtransaction "hexstring" ( options iswitness )
75+
getrawtransaction "txid" ( verbose "blockhash" )
76+
joinpsbts ["psbt",...]
77+
sendrawtransaction "hexstring" ( maxfeerate )
78+
signrawtransactionwithkey "hexstring" ["privatekey",...] ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" )
79+
testmempoolaccept ["rawtx",...] ( maxfeerate )
80+
utxoupdatepsbt "psbt" ( ["",{"desc":"str","range":n or [n,n]},...] )
81+
82+
== Util ==
83+
createmultisig nrequired ["key",...] ( "address_type" )
84+
deriveaddresses "descriptor" ( range )
85+
estimatesmartfee conf_target ( "estimate_mode" )
86+
getdescriptorinfo "descriptor"
87+
signmessagewithprivkey "privkey" "message"
88+
validateaddress "address"
89+
verifymessage "address" "signature" "message"
90+
91+
== Wallet ==
92+
abandontransaction "txid"
93+
abortrescan
94+
addmultisigaddress nrequired ["key",...] ( "label" "address_type" )
95+
backupwallet "destination"
96+
bumpfee "txid" ( options )
97+
createwallet "wallet_name" ( disable_private_keys blank "passphrase" avoid_reuse )
98+
dumpprivkey "address"
99+
dumpwallet "filename"
100+
encryptwallet "passphrase"
101+
getaddressesbylabel "label"
102+
getaddressinfo "address"
103+
getbalance ( "dummy" minconf include_watchonly avoid_reuse )
104+
getbalances
105+
getnewaddress ( "label" "address_type" )
106+
getrawchangeaddress ( "address_type" )
107+
getreceivedbyaddress "address" ( minconf )
108+
getreceivedbylabel "label" ( minconf )
109+
gettransaction "txid" ( include_watchonly verbose )
110+
getunconfirmedbalance
111+
getwalletinfo
112+
importaddress "address" ( "label" rescan p2sh )
113+
importmulti "requests" ( "options" )
114+
importprivkey "privkey" ( "label" rescan )
115+
importprunedfunds "rawtransaction" "txoutproof"
116+
importpubkey "pubkey" ( "label" rescan )
117+
importwallet "filename"
118+
keypoolrefill ( newsize )
119+
listaddressgroupings
120+
listlabels ( "purpose" )
121+
listlockunspent
122+
listreceivedbyaddress ( minconf include_empty include_watchonly "address_filter" )
123+
listreceivedbylabel ( minconf include_empty include_watchonly )
124+
listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed )
125+
listtransactions ( "label" count skip include_watchonly )
126+
listunspent ( minconf maxconf ["address",...] include_unsafe query_options )
127+
listwalletdir
128+
listwallets
129+
loadwallet "filename"
130+
lockunspent unlock ( [{"txid":"hex","vout":n},...] )
131+
removeprunedfunds "txid"
132+
rescanblockchain ( start_height stop_height )
133+
sendmany "" {"address":amount} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode" )
134+
sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode" avoid_reuse )
135+
sethdseed ( newkeypool "seed" )
136+
setlabel "address" "label"
137+
settxfee amount
138+
setwalletflag "flag" ( value )
139+
signmessage "address" "message"
140+
signrawtransactionwithwallet "hexstring" ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" )
141+
unloadwallet ( "wallet_name" )
142+
walletcreatefundedpsbt [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime options bip32derivs )
143+
walletlock
144+
walletpassphrase "passphrase" timeout
145+
walletpassphrasechange "oldpassphrase" "newpassphrase"
146+
walletprocesspsbt "psbt" ( sign "sighashtype" bip32derivs )
147+
148+
== Zmq ==
149+
getzmqnotifications

0 commit comments

Comments
 (0)