From cdec63efa3f4460bb2ad70fd83d42338972ac162 Mon Sep 17 00:00:00 2001 From: thunderbiscuit Date: Fri, 15 Dec 2023 09:42:03 -0500 Subject: [PATCH] docs: remove 0.x api docs --- bdk-ffi/src/bitcoin.rs | 14 ------- bdk-ffi/src/descriptor.rs | 3 -- bdk-ffi/src/keys.rs | 11 ----- bdk-ffi/src/lib.rs | 84 +-------------------------------------- bdk-ffi/src/types.rs | 24 ----------- bdk-ffi/src/wallet.rs | 57 +------------------------- 6 files changed, 2 insertions(+), 191 deletions(-) diff --git a/bdk-ffi/src/bitcoin.rs b/bdk-ffi/src/bitcoin.rs index c5e521a0..effa01a9 100644 --- a/bdk-ffi/src/bitcoin.rs +++ b/bdk-ffi/src/bitcoin.rs @@ -14,7 +14,6 @@ use std::io::Cursor; use std::str::FromStr; use std::sync::{Arc, Mutex}; -/// A Bitcoin script. #[derive(Clone, Debug, PartialEq, Eq)] pub struct Script(pub(crate) BdkScriptBuf); @@ -36,13 +35,9 @@ impl From for Script { } pub enum Network { - /// Mainnet Bitcoin. Bitcoin, - /// Bitcoin's testnet network. Testnet, - /// Bitcoin's signet network. Signet, - /// Bitcoin's regtest network. Regtest, } @@ -69,7 +64,6 @@ impl From for Network { } } -/// A Bitcoin address. #[derive(Debug, PartialEq, Eq)] pub struct Address { inner: BdkAddress, @@ -141,7 +135,6 @@ impl From for Address { } } -/// A Bitcoin transaction. #[derive(Debug, Clone, PartialEq, Eq)] pub struct Transaction { inner: BdkTransaction, @@ -242,7 +235,6 @@ impl PartiallySignedTransaction { // txid.to_hex() // } - /// Return the transaction. pub(crate) fn extract_tx(&self) -> Arc { let tx = self.inner.lock().unwrap().clone().extract_tx(); Arc::new(tx.into()) @@ -293,12 +285,9 @@ impl From for PartiallySignedTransaction { } } -/// A reference to a transaction output. #[derive(Clone, Debug, PartialEq, Eq, Hash)] pub struct OutPoint { - /// The referenced transaction's txid. pub txid: String, - /// The index of the referenced output in its transaction's vout. pub vout: u32, } @@ -311,12 +300,9 @@ impl From<&OutPoint> for BdkOutPoint { } } -/// A transaction output, which defines new coins to be created from old ones. #[derive(Debug, Clone)] pub struct TxOut { - /// The value of the output, in satoshis. pub value: u64, - /// The address of the output. pub script_pubkey: Arc