|
| 1 | +// SPDX-License-Identifier: CC0-1.0 |
| 2 | + |
| 3 | +//! A JSON-RPC client for testing against Bitcoin Core `v28`. |
| 4 | +//! |
| 5 | +//! We ignore option arguments unless they effect the shape of the returned JSON data. |
| 6 | +
|
| 7 | +use bitcoin::address::{Address, NetworkChecked}; |
| 8 | +use bitcoin::{Amount, Block, BlockHash, Txid}; |
| 9 | + |
| 10 | +use crate::client_sync::{handle_defaults, into_json}; |
| 11 | +use crate::json::v28::*; |
| 12 | + |
| 13 | +crate::define_jsonrpc_minreq_client!("v28"); |
| 14 | + |
| 15 | +// == Blockchain == |
| 16 | +crate::impl_client_v17__getblockchaininfo!(); |
| 17 | +crate::impl_client_v17__getbestblockhash!(); |
| 18 | +crate::impl_client_v17__getblock!(); |
| 19 | +crate::impl_client_v17__gettxout!(); |
| 20 | + |
| 21 | +// == Control == |
| 22 | +crate::impl_client_v17__stop!(); |
| 23 | + |
| 24 | +// == Generating == |
| 25 | +crate::impl_client_v17__generatetoaddress!(); |
| 26 | + |
| 27 | +// == Network == |
| 28 | +crate::impl_client_v17__getnetworkinfo!(); |
| 29 | +crate::impl_client_check_expected_server_version!({ [280000] }); |
| 30 | + |
| 31 | +// == Rawtransactions == |
| 32 | +crate::impl_client_v17__sendrawtransaction!(); |
| 33 | + |
| 34 | +// == Wallet == |
| 35 | +crate::impl_client_v17__createwallet!(); |
| 36 | +crate::impl_client_v22__unloadwallet!(); |
| 37 | +crate::impl_client_v22__loadwallet!(); |
| 38 | +crate::impl_client_v17__getbalance!(); |
| 39 | +crate::impl_client_v19__getbalances!(); |
| 40 | +crate::impl_client_v17__getnewaddress!(); |
| 41 | +crate::impl_client_v17__sendtoaddress!(); |
| 42 | +crate::impl_client_v17__gettransaction!(); |
| 43 | + |
| 44 | +pub use crate::client_sync::v23::AddressType; |
0 commit comments