|
| 1 | +// SPDX-License-Identifier: CC0-1.0 |
| 2 | + |
| 3 | +//! A JSON-RPC client for testing against Bitcoin Core `v29`. |
| 4 | +//! |
| 5 | +//! We ignore option arguments unless they effect the shape of the returned JSON data. |
| 6 | +pub mod blockchain; |
| 7 | +pub mod mining; |
| 8 | + |
| 9 | +use std::collections::BTreeMap; |
| 10 | +use std::path::Path; |
| 11 | + |
| 12 | +use bitcoin::address::{Address, NetworkChecked}; |
| 13 | +use bitcoin::{Amount, Block, BlockHash, PublicKey, Txid}; |
| 14 | +use serde_json::json; |
| 15 | + |
| 16 | +use crate::client_sync::into_json; |
| 17 | +use crate::types::v29::*; |
| 18 | + |
| 19 | +#[rustfmt::skip] // Keep public re-exports separate. |
| 20 | +pub use crate::client_sync::{v23::AddressType, WalletCreateFundedPsbtInput}; |
| 21 | + |
| 22 | +crate::define_jsonrpc_minreq_client!("v29"); |
| 23 | +crate::impl_client_check_expected_server_version!({ [290000] }); |
| 24 | + |
| 25 | +// == Blockchain == |
| 26 | +crate::impl_client_v17__getbestblockhash!(); |
| 27 | +crate::impl_client_v29__getblock!(); |
| 28 | +crate::impl_client_v29__getblockchaininfo!(); |
| 29 | +crate::impl_client_v17__getblockcount!(); |
| 30 | +crate::impl_client_v19__getblockfilter!(); |
| 31 | +crate::impl_client_v17__getblockhash!(); |
| 32 | +crate::impl_client_v17__getblockheader!(); |
| 33 | +crate::impl_client_v17__getblockstats!(); |
| 34 | +crate::impl_client_v17__getchaintips!(); |
| 35 | +crate::impl_client_v17__getchaintxstats!(); |
| 36 | +crate::impl_client_v29__getdescriptoractivity!(); |
| 37 | +crate::impl_client_v17__getdifficulty!(); |
| 38 | +crate::impl_client_v19__getmempoolancestors!(); |
| 39 | +crate::impl_client_v19__getmempooldescendants!(); |
| 40 | +crate::impl_client_v19__getmempoolentry!(); |
| 41 | +crate::impl_client_v17__getmempoolinfo!(); |
| 42 | +crate::impl_client_v17__getrawmempool!(); |
| 43 | +crate::impl_client_v22__gettxout!(); |
| 44 | +crate::impl_client_v17__gettxoutproof!(); |
| 45 | +crate::impl_client_v26__gettxoutsetinfo!(); |
| 46 | +crate::impl_client_v17__preciousblock!(); |
| 47 | +crate::impl_client_v17__verifytxoutproof!(); |
| 48 | + |
| 49 | +// == Control == |
| 50 | +crate::impl_client_v17__getmemoryinfo!(); |
| 51 | +crate::impl_client_v18__getrpcinfo!(); |
| 52 | +crate::impl_client_v17__help!(); |
| 53 | +crate::impl_client_v17__logging!(); |
| 54 | +crate::impl_client_v17__stop!(); |
| 55 | +crate::impl_client_v17__uptime!(); |
| 56 | + |
| 57 | +// == Generating == |
| 58 | +crate::impl_client_v17__generatetoaddress!(); |
| 59 | +crate::impl_client_v17__invalidateblock!(); |
| 60 | + |
| 61 | +// == Mining == |
| 62 | +crate::impl_client_v29__getblocktemplate!(); |
| 63 | +crate::impl_client_v29__getmininginfo!(); |
| 64 | +crate::impl_client_v17__getnetworkhashps!(); |
| 65 | +crate::impl_client_v26__get_prioritised_transactions!(); |
| 66 | +crate::impl_client_v17__prioritisetransaction!(); |
| 67 | +crate::impl_client_v17__submitblock!(); |
| 68 | + |
| 69 | +// == Network == |
| 70 | +crate::impl_client_v17__getaddednodeinfo!(); |
| 71 | +crate::impl_client_v17__getnettotals!(); |
| 72 | +crate::impl_client_v17__getnetworkinfo!(); |
| 73 | +crate::impl_client_v17__getpeerinfo!(); |
| 74 | + |
| 75 | +// == Rawtransactions == |
| 76 | +crate::impl_client_v18__analyzepsbt!(); |
| 77 | +crate::impl_client_v17__combinepsbt!(); |
| 78 | +crate::impl_client_v17__combinerawtransaction!(); |
| 79 | +crate::impl_client_v17__converttopsbt!(); |
| 80 | +crate::impl_client_v17__createpsbt!(); |
| 81 | +crate::impl_client_v17__createrawtransaction!(); |
| 82 | +crate::impl_client_v17__decodepsbt!(); |
| 83 | +crate::impl_client_v17__decoderawtransaction!(); |
| 84 | +crate::impl_client_v17__decodescript!(); |
| 85 | +crate::impl_client_v17__finalizepsbt!(); |
| 86 | +crate::impl_client_v17__fundrawtransaction!(); |
| 87 | +crate::impl_client_v17__getrawtransaction!(); |
| 88 | +crate::impl_client_v18__joinpsbts!(); |
| 89 | +crate::impl_client_v17__sendrawtransaction!(); |
| 90 | +crate::impl_client_v17__signrawtransaction!(); |
| 91 | +crate::impl_client_v17__signrawtransactionwithkey!(); |
| 92 | +crate::impl_client_v28__submitpackage!(); |
| 93 | +crate::impl_client_v17__testmempoolaccept!(); |
| 94 | +crate::impl_client_v18__utxoupdatepsbt!(); |
| 95 | + |
| 96 | +// == Wallet == |
| 97 | +crate::impl_client_v17__addmultisigaddress!(); |
| 98 | +crate::impl_client_v17__bumpfee!(); |
| 99 | +crate::impl_client_v23__createwallet!(); |
| 100 | +crate::impl_client_v17__dumpprivkey!(); |
| 101 | +crate::impl_client_v17__dumpwallet!(); |
| 102 | +crate::impl_client_v17__getaddressesbylabel!(); |
| 103 | +crate::impl_client_v17__getaddressinfo!(); |
| 104 | +crate::impl_client_v17__getbalance!(); |
| 105 | +crate::impl_client_v19__getbalances!(); |
| 106 | +crate::impl_client_v17__getnewaddress!(); |
| 107 | +crate::impl_client_v17__getrawchangeaddress!(); |
| 108 | +crate::impl_client_v17__getreceivedbyaddress!(); |
| 109 | +crate::impl_client_v17__gettransaction!(); |
| 110 | +crate::impl_client_v17__getunconfirmedbalance!(); |
| 111 | +crate::impl_client_v17__getwalletinfo!(); |
| 112 | +crate::impl_client_v17__listaddressgroupings!(); |
| 113 | +crate::impl_client_v17__listlabels!(); |
| 114 | +crate::impl_client_v17__listlockunspent!(); |
| 115 | +crate::impl_client_v17__listreceivedbyaddress!(); |
| 116 | +crate::impl_client_v17__listsinceblock!(); |
| 117 | +crate::impl_client_v17__listtransactions!(); |
| 118 | +crate::impl_client_v17__listunspent!(); |
| 119 | +crate::impl_client_v17__listwallets!(); |
| 120 | +crate::impl_client_v22__loadwallet!(); |
| 121 | +crate::impl_client_v17__rescanblockchain!(); |
| 122 | +crate::impl_client_v17__sendmany!(); |
| 123 | +crate::impl_client_v17__sendtoaddress!(); |
| 124 | +crate::impl_client_v17__signmessage!(); |
| 125 | +crate::impl_client_v17__signrawtransactionwithwallet!(); |
| 126 | +crate::impl_client_v21__unloadwallet!(); |
| 127 | +crate::impl_client_v17__walletcreatefundedpsbt!(); |
| 128 | +crate::impl_client_v17__walletprocesspsbt!(); |
0 commit comments