From 6eb079576f4387db41ec1b9fe729e1d9ab4f8c01 Mon Sep 17 00:00:00 2001 From: Daniela Brozzoni Date: Sat, 24 Jun 2023 18:06:23 +0200 Subject: [PATCH] Update crates/esplora to rust-bitcoin 0.30.0 --- crates/esplora/Cargo.toml | 6 +++--- crates/esplora/src/async_ext.rs | 8 ++++---- crates/esplora/src/blocking_ext.rs | 9 ++++----- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/crates/esplora/Cargo.toml b/crates/esplora/Cargo.toml index 39c7db02..33c60104 100644 --- a/crates/esplora/Cargo.toml +++ b/crates/esplora/Cargo.toml @@ -13,13 +13,13 @@ readme = "README.md" [dependencies] bdk_chain = { path = "../chain", version = "0.5.0", default-features = false, features = ["serde", "miniscript"] } -esplora-client = { version = "0.5", default-features = false } +esplora-client = { version = "0.6.0", default-features = false } async-trait = { version = "0.1.66", optional = true } futures = { version = "0.3.26", optional = true } # use these dependencies if you need to enable their /no-std features -bitcoin = { version = "0.29", optional = true, default-features = false } -miniscript = { version = "9.0.0", optional = true, default-features = false } +bitcoin = { version = "0.30.0", optional = true, default-features = false } +miniscript = { version = "10.0.0", optional = true, default-features = false } [features] default = ["std", "async-https", "blocking"] diff --git a/crates/esplora/src/async_ext.rs b/crates/esplora/src/async_ext.rs index 6a72dac2..389022f0 100644 --- a/crates/esplora/src/async_ext.rs +++ b/crates/esplora/src/async_ext.rs @@ -1,7 +1,7 @@ use async_trait::async_trait; use bdk_chain::collections::btree_map; use bdk_chain::{ - bitcoin::{BlockHash, OutPoint, Script, Txid}, + bitcoin::{BlockHash, OutPoint, ScriptBuf, Txid}, collections::{BTreeMap, BTreeSet}, local_chain::{self, CheckPoint}, BlockId, ConfirmationTimeAnchor, TxGraph, @@ -52,7 +52,7 @@ pub trait EsploraAsyncExt { &self, keychain_spks: BTreeMap< K, - impl IntoIterator + Send> + Send, + impl IntoIterator + Send> + Send, >, txids: impl IntoIterator + Send> + Send, outpoints: impl IntoIterator + Send> + Send, @@ -66,7 +66,7 @@ pub trait EsploraAsyncExt { #[allow(clippy::result_large_err)] async fn update_tx_graph_without_keychain( &self, - misc_spks: impl IntoIterator + Send> + Send, + misc_spks: impl IntoIterator + Send> + Send, txids: impl IntoIterator + Send> + Send, outpoints: impl IntoIterator + Send> + Send, parallel_requests: usize, @@ -205,7 +205,7 @@ impl EsploraAsyncExt for esplora_client::AsyncClient { &self, keychain_spks: BTreeMap< K, - impl IntoIterator + Send> + Send, + impl IntoIterator + Send> + Send, >, txids: impl IntoIterator + Send> + Send, outpoints: impl IntoIterator + Send> + Send, diff --git a/crates/esplora/src/blocking_ext.rs b/crates/esplora/src/blocking_ext.rs index 97f44bd1..6d42fe01 100644 --- a/crates/esplora/src/blocking_ext.rs +++ b/crates/esplora/src/blocking_ext.rs @@ -1,10 +1,9 @@ use std::thread::JoinHandle; -use bdk_chain::bitcoin::{OutPoint, Txid}; use bdk_chain::collections::btree_map; use bdk_chain::collections::{BTreeMap, BTreeSet}; use bdk_chain::{ - bitcoin::{BlockHash, Script}, + bitcoin::{BlockHash, OutPoint, ScriptBuf, Txid}, local_chain::{self, CheckPoint}, BlockId, ConfirmationTimeAnchor, TxGraph, }; @@ -49,7 +48,7 @@ pub trait EsploraExt { #[allow(clippy::result_large_err)] fn update_tx_graph( &self, - keychain_spks: BTreeMap>, + keychain_spks: BTreeMap>, txids: impl IntoIterator, outpoints: impl IntoIterator, stop_gap: usize, @@ -62,7 +61,7 @@ pub trait EsploraExt { #[allow(clippy::result_large_err)] fn update_tx_graph_without_keychain( &self, - misc_spks: impl IntoIterator, + misc_spks: impl IntoIterator, txids: impl IntoIterator, outpoints: impl IntoIterator, parallel_requests: usize, @@ -195,7 +194,7 @@ impl EsploraExt for esplora_client::BlockingClient { fn update_tx_graph( &self, - keychain_spks: BTreeMap>, + keychain_spks: BTreeMap>, txids: impl IntoIterator, outpoints: impl IntoIterator, stop_gap: usize,