use bitcoin::Address;
use bitcoin::Script;
use jsonrpc_client::ClientError;
use jsonrpc_client::RpcError;
use rpc;
use types::address::AddressInfoResult;
use BlockHash;
use TransactionId;
#[deprecated(
since = "0.6.1",
note = "This library is deprecated in favor of bitcoincore-rpc."
)]
#[allow(unused_variables)]
pub trait BitcoinRpcApi: Send + Sync {
fn add_multisig_address(
&self,
number_of_required_signatures: u32,
participants: Vec<&Address>,
) -> Result<Result<rpc::MultiSigAddress, RpcError>, ClientError> {
unimplemented!()
}
fn create_raw_transaction(
&self,
inputs: Vec<&rpc::NewTransactionInput>,
output: &rpc::NewTransactionOutput,
) -> Result<Result<rpc::SerializedRawTransaction, RpcError>, ClientError> {
unimplemented!()
}
fn decode_rawtransaction(
&self,
tx: rpc::SerializedRawTransaction,
) -> Result<Result<rpc::DecodedRawTransaction, RpcError>, ClientError> {
unimplemented!()
}
fn decode_script(
&self,
script: Script,
) -> Result<Result<rpc::DecodedScript, RpcError>, ClientError> {
unimplemented!()
}
fn dump_privkey(
&self,
address: &Address,
) -> Result<Result<rpc::PrivateKey, RpcError>, ClientError> {
unimplemented!()
}
fn fund_raw_transaction(
&self,
tx: &rpc::SerializedRawTransaction,
options: &rpc::FundingOptions,
) -> Result<Result<rpc::FundingResult, RpcError>, ClientError> {
unimplemented!()
}
fn generate(
&self,
number_of_blocks: u32,
) -> Result<Result<Vec<BlockHash>, RpcError>, ClientError> {
unimplemented!()
}
fn get_address_info(
&self,
address: &Address,
) -> Result<Result<AddressInfoResult, RpcError>, ClientError> {
unimplemented!()
}
fn get_balance(&self) -> Result<Result<f32, RpcError>, ClientError> {
unimplemented!()
}
fn get_best_block_hash(&self) -> Result<Result<BlockHash, RpcError>, ClientError> {
unimplemented!()
}
fn get_block(
&self,
header_hash: &BlockHash,
) -> Result<Result<rpc::Block<TransactionId>, RpcError>, ClientError> {
unimplemented!()
}
fn get_block_verbose(
&self,
header_hash: &BlockHash,
) -> Result<Result<rpc::Block<rpc::DecodedRawTransaction>, RpcError>, ClientError> {
unimplemented!()
}
fn get_blockchain_info(&self) -> Result<Result<rpc::BlockchainInfo, RpcError>, ClientError> {
unimplemented!()
}
fn get_block_count(&self) -> Result<Result<rpc::BlockHeight, RpcError>, ClientError> {
unimplemented!()
}
fn get_block_hash(&self, height: u32) -> Result<Result<BlockHash, RpcError>, ClientError> {
unimplemented!()
}
fn get_new_address(&self) -> Result<Result<Address, RpcError>, ClientError> {
unimplemented!()
}
fn get_raw_transaction_serialized(
&self,
tx: &TransactionId,
) -> Result<Result<rpc::SerializedRawTransaction, RpcError>, ClientError> {
unimplemented!()
}
fn get_raw_transaction_verbose(
&self,
tx: &TransactionId,
) -> Result<Result<rpc::VerboseRawTransaction, RpcError>, ClientError> {
unimplemented!()
}
fn list_unspent(
&self,
min_confirmations: rpc::TxOutConfirmations,
max_confirmations: Option<u32>,
recipients: Option<Vec<Address>>,
) -> Result<Result<Vec<rpc::UnspentTransactionOutput>, RpcError>, ClientError> {
unimplemented!()
}
fn send_raw_transaction(
&self,
tx_data: rpc::SerializedRawTransaction,
) -> Result<Result<TransactionId, RpcError>, ClientError> {
unimplemented!()
}
fn send_to_address(
&self,
address: &Address,
amount: f64,
) -> Result<Result<TransactionId, RpcError>, ClientError> {
unimplemented!()
}
fn sign_raw_transaction_with_key(
&self,
tx: &rpc::SerializedRawTransaction,
private_keys: Option<Vec<&rpc::PrivateKey>>,
dependencies: Option<Vec<&rpc::TransactionOutputDetail>>,
signature_hash_type: Option<rpc::SigHashType>,
) -> Result<Result<rpc::SigningResult, RpcError>, ClientError> {
unimplemented!()
}
fn validate_address(
&self,
address: &Address,
) -> Result<Result<rpc::AddressValidationResult, RpcError>, ClientError> {
unimplemented!()
}
}