Skip to content

Commit e80cf77

Browse files
chore: suppress warning of deprecated use of signing capabilities in wallet
1 parent 912e35a commit e80cf77

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

bdk-ffi/src/error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ use bdk_wallet::error::CreateTxError as BdkCreateTxError;
2222
use bdk_wallet::keys::bip39::Error as BdkBip39Error;
2323
use bdk_wallet::miniscript::descriptor::DescriptorKeyParseError as BdkDescriptorKeyParseError;
2424
use bdk_wallet::miniscript::psbt::Error as BdkPsbtFinalizeError;
25+
#[allow(deprecated)]
2526
use bdk_wallet::signer::SignerError as BdkSignerError;
2627
use bdk_wallet::tx_builder::AddUtxoError;
2728
use bdk_wallet::LoadWithPersistError as BdkLoadWithPersistError;
@@ -1503,6 +1504,7 @@ impl From<BdkPsbtFinalizeError> for PsbtFinalizeError {
15031504
}
15041505
}
15051506

1507+
#[allow(deprecated)]
15061508
impl From<BdkSignerError> for SignerError {
15071509
fn from(error: BdkSignerError) -> Self {
15081510
match error {

bdk-ffi/src/types.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use bdk_wallet::descriptor::policy::{
2323
Condition as BdkCondition, PkOrF as BdkPkOrF, Policy as BdkPolicy,
2424
Satisfaction as BdkSatisfaction, SatisfiableItem as BdkSatisfiableItem,
2525
};
26+
#[allow(deprecated)]
2627
use bdk_wallet::signer::{SignOptions as BdkSignOptions, TapLeavesOptions};
2728
use bdk_wallet::AddressInfo as BdkAddressInfo;
2829
use bdk_wallet::Balance as BdkBalance;
@@ -656,6 +657,7 @@ impl From<BdkCondition> for Condition {
656657
/// Options for a software signer.
657658
///
658659
/// Adjust the behavior of our software signers and the way a transaction is finalized.
660+
#[allow(deprecated)]
659661
#[derive(uniffi::Record)]
660662
pub struct SignOptions {
661663
/// Whether the signer should trust the `witness_utxo`, if the `non_witness_utxo` hasn't been
@@ -698,6 +700,7 @@ pub struct SignOptions {
698700
pub allow_grinding: bool,
699701
}
700702

703+
#[allow(deprecated)]
701704
impl From<SignOptions> for BdkSignOptions {
702705
fn from(options: SignOptions) -> BdkSignOptions {
703706
BdkSignOptions {

bdk-ffi/src/wallet.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use crate::types::{
1212
};
1313

1414
use bdk_wallet::bitcoin::Network;
15+
#[allow(deprecated)]
1516
use bdk_wallet::signer::SignOptions as BdkSignOptions;
1617
use bdk_wallet::{KeychainKind, PersistedWallet, Wallet as BdkWallet};
1718

@@ -351,6 +352,7 @@ impl Wallet {
351352
/// signers will follow the options, but the "software signers" (WIF keys and `xprv`) defined
352353
/// in this library will.
353354
#[uniffi::method(default(sign_options = None))]
355+
#[allow(deprecated)]
354356
pub fn sign(
355357
&self,
356358
psbt: Arc<Psbt>,
@@ -377,6 +379,7 @@ impl Wallet {
377379
///
378380
/// The [`SignOptions`] can be used to tweak the behavior of the finalizer.
379381
#[uniffi::method(default(sign_options = None))]
382+
#[allow(deprecated)]
380383
pub fn finalize_psbt(
381384
&self,
382385
psbt: Arc<Psbt>,

0 commit comments

Comments
 (0)