|  | 
|  | 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_v17__getdifficulty!(); | 
|  | 37 | +crate::impl_client_v19__getmempoolancestors!(); | 
|  | 38 | +crate::impl_client_v19__getmempooldescendants!(); | 
|  | 39 | +crate::impl_client_v19__getmempoolentry!(); | 
|  | 40 | +crate::impl_client_v17__getmempoolinfo!(); | 
|  | 41 | +crate::impl_client_v17__getrawmempool!(); | 
|  | 42 | +crate::impl_client_v22__gettxout!(); | 
|  | 43 | +crate::impl_client_v17__gettxoutproof!(); | 
|  | 44 | +crate::impl_client_v26__gettxoutsetinfo!(); | 
|  | 45 | +crate::impl_client_v17__preciousblock!(); | 
|  | 46 | +crate::impl_client_v17__verifytxoutproof!(); | 
|  | 47 | +crate::impl_client_v29__getdescriptoractivity!(); | 
|  | 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_v17__createrawtransaction!(); | 
|  | 77 | +crate::impl_client_v17__fundrawtransaction!(); | 
|  | 78 | +crate::impl_client_v17__sendrawtransaction!(); | 
|  | 79 | +crate::impl_client_v28__submitpackage!(); | 
|  | 80 | + | 
|  | 81 | +// == Wallet == | 
|  | 82 | +crate::impl_client_v17__addmultisigaddress!(); | 
|  | 83 | +crate::impl_client_v17__bumpfee!(); | 
|  | 84 | +crate::impl_client_v23__createwallet!(); | 
|  | 85 | +crate::impl_client_v17__dumpprivkey!(); | 
|  | 86 | +crate::impl_client_v17__dumpwallet!(); | 
|  | 87 | +crate::impl_client_v17__getaddressesbylabel!(); | 
|  | 88 | +crate::impl_client_v17__getaddressinfo!(); | 
|  | 89 | +crate::impl_client_v17__getbalance!(); | 
|  | 90 | +crate::impl_client_v19__getbalances!(); | 
|  | 91 | +crate::impl_client_v17__getnewaddress!(); | 
|  | 92 | +crate::impl_client_v17__getrawchangeaddress!(); | 
|  | 93 | +crate::impl_client_v17__getreceivedbyaddress!(); | 
|  | 94 | +crate::impl_client_v17__gettransaction!(); | 
|  | 95 | +crate::impl_client_v17__getunconfirmedbalance!(); | 
|  | 96 | +crate::impl_client_v17__getwalletinfo!(); | 
|  | 97 | +crate::impl_client_v17__listaddressgroupings!(); | 
|  | 98 | +crate::impl_client_v17__listlabels!(); | 
|  | 99 | +crate::impl_client_v17__listlockunspent!(); | 
|  | 100 | +crate::impl_client_v17__listreceivedbyaddress!(); | 
|  | 101 | +crate::impl_client_v17__listsinceblock!(); | 
|  | 102 | +crate::impl_client_v17__listtransactions!(); | 
|  | 103 | +crate::impl_client_v17__listunspent!(); | 
|  | 104 | +crate::impl_client_v17__listwallets!(); | 
|  | 105 | +crate::impl_client_v22__loadwallet!(); | 
|  | 106 | +crate::impl_client_v17__rescanblockchain!(); | 
|  | 107 | +crate::impl_client_v17__sendmany!(); | 
|  | 108 | +crate::impl_client_v17__sendtoaddress!(); | 
|  | 109 | +crate::impl_client_v17__signmessage!(); | 
|  | 110 | +crate::impl_client_v17__signrawtransactionwithwallet!(); | 
|  | 111 | +crate::impl_client_v21__unloadwallet!(); | 
|  | 112 | +crate::impl_client_v17__walletcreatefundedpsbt!(); | 
|  | 113 | +crate::impl_client_v17__walletprocesspsbt!(); | 
0 commit comments