• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bitcoindevkit / bdk / 11582766320

29 Oct 2024 09:28PM UTC coverage: 82.61%. Remained the same
11582766320

push

github

notmandatory
Merge bitcoindevkit/bdk#1657: chore(deps): bump tibdex/github-app-token from 1 to 2

96c65761e ci: fix dependabot clippy_check error (Steve Myers)
80b4ecac4 chore(deps): bump tibdex/github-app-token from 1 to 2 (dependabot[bot])

Pull request description:

  Bumps [tibdex/github-app-token](https://github.com/tibdex/github-app-token) from 1 to 2.
  <details>
  <summary>Release notes</summary>
  <p><em>Sourced from <a href="https://github.com/tibdex/github-app-token/releases">tibdex/github-app-token's releases</a>.</em></p>
  <blockquote>
  <h2>v2.0.0</h2>
  <ul>
  <li><strong>BREAKING</strong>: replaces the <code>installation_id</code> and <code>repository</code> inputs with <code>installation_retrieval_mode</code> and <code>installation_retrieval_payload</code> to also support organization and user installation.</li>
  <li>switches to <code>node20</code>.</li>
  <li>adds a <code>repositories</code> input to scope the created token to a subset of repositories.</li>
  <li>revokes the created token at the end of the job with a <a href="https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runspost"><code>post</code> script</a>.</li>
  </ul>
  <h2>v1.9.0</h2>
  <p>No release notes provided.</p>
  <h2>v1.8.2</h2>
  <p>No release notes provided.</p>
  <h2>v1.8.1</h2>
  <p>No release notes provided.</p>
  <h2>v1.8.0</h2>
  <p>No release notes provided.</p>
  <h2>v1.7.0</h2>
  <p>No release notes provided.</p>
  <h2>v1.6.0</h2>
  <p>No release notes provided.</p>
  <h2>v1.5.2</h2>
  <p>No release notes provided.</p>
  <h2>v1.5.1</h2>
  <p>No release notes provided.</p>
  <h2>v1.5.0</h2>
  <p>No release notes provided.</p>
  <h2>v1.4.0</h2>
  <p>No release notes provided.</p>
  <h2>v1.3.0</h2>
  <p>No release notes provided.</p>
  <h2>v1.2.0</h2>
  <p>No release notes provided.</p>
  <h2>v1.1.1</h2>
  <p>No release notes provided.</p>
  <h2>v1.1.0</h2>
  <p>No releas... (continued)

11301 of 13680 relevant lines covered (82.61%)

14271.04 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

33.33
/crates/chain/src/lib.rs
1
//! This crate is a collection of core structures for [Bitcoin Dev Kit].
2
//!
3
//! The goal of this crate is to give wallets the mechanisms needed to:
4
//!
5
//! 1. Figure out what data they need to fetch.
6
//! 2. Process the data in a way that never leads to inconsistent states.
7
//! 3. Fully index that data and expose it to be consumed without friction.
8
//!
9
//! Our design goals for these mechanisms are:
10
//!
11
//! 1. Data source agnostic -- nothing in `bdk_chain` cares about where you get data from or whether
12
//!    you do it synchronously or asynchronously. If you know a fact about the blockchain, you can just
13
//!    tell `bdk_chain`'s APIs about it, and that information will be integrated, if it can be done
14
//!    consistently.
15
//! 2. Data persistence agnostic -- `bdk_chain` does not care where you cache on-chain data, what you
16
//!    cache or how you retrieve it from persistent storage.
17
//!
18
//! [Bitcoin Dev Kit]: https://bitcoindevkit.org/
19

20
// only enables the `doc_cfg` feature when the `docsrs` configuration attribute is defined
21
#![cfg_attr(docsrs, feature(doc_cfg))]
22
#![cfg_attr(
23
    docsrs,
24
    doc(html_logo_url = "https://github.com/bitcoindevkit/bdk/raw/master/static/bdk.png")
25
)]
26
#![no_std]
27
#![warn(missing_docs)]
28

29
pub use bitcoin;
30
mod balance;
31
pub use balance::*;
32
mod chain_data;
33
pub use chain_data::*;
34
pub mod indexed_tx_graph;
35
pub use indexed_tx_graph::IndexedTxGraph;
36
pub mod indexer;
37
pub use indexer::spk_txout;
38
pub use indexer::Indexer;
39
pub mod local_chain;
40
mod tx_data_traits;
41
pub use tx_data_traits::*;
42
pub mod tx_graph;
43
pub use tx_graph::TxGraph;
44
mod chain_oracle;
45
pub use chain_oracle::*;
46

47
#[doc(hidden)]
48
pub mod example_utils;
49

50
#[cfg(feature = "miniscript")]
51
pub use miniscript;
52
#[cfg(feature = "miniscript")]
53
mod descriptor_ext;
54
#[cfg(feature = "miniscript")]
55
pub use descriptor_ext::{DescriptorExt, DescriptorId};
56
#[cfg(feature = "miniscript")]
57
mod spk_iter;
58
#[cfg(feature = "miniscript")]
59
pub use indexer::keychain_txout;
60
#[cfg(feature = "miniscript")]
61
pub use spk_iter::*;
62
#[cfg(feature = "rusqlite")]
63
pub mod rusqlite_impl;
64

65
pub extern crate bdk_core;
66
pub use bdk_core::*;
67

68
#[allow(unused_imports)]
69
#[macro_use]
70
extern crate alloc;
71
#[cfg(feature = "rusqlite")]
72
pub extern crate rusqlite;
73
#[cfg(feature = "serde")]
74
pub extern crate serde;
75

76
#[cfg(feature = "std")]
77
#[macro_use]
78
extern crate std;
79

80
/// How many confirmations are needed f or a coinbase output to be spent.
81
pub const COINBASE_MATURITY: u32 = 100;
82

83
/// A wrapper that we use to impl remote traits for types in our crate or dependency crates.
84
pub struct Impl<T>(pub T);
85

86
impl<T> Impl<T> {
87
    /// Returns the inner `T`.
88
    pub fn into_inner(self) -> T {
200✔
89
        self.0
200✔
90
    }
200✔
91
}
92

93
impl<T> From<T> for Impl<T> {
94
    fn from(value: T) -> Self {
×
95
        Self(value)
×
96
    }
×
97
}
98

99
impl<T> core::ops::Deref for Impl<T> {
100
    type Target = T;
101

102
    fn deref(&self) -> &Self::Target {
440✔
103
        &self.0
440✔
104
    }
440✔
105
}
106

107
/// A wrapper that we use to impl remote traits for types in our crate or dependency crates that impl [`Anchor`].
108
pub struct AnchorImpl<T>(pub T);
109

110
impl<T> AnchorImpl<T> {
111
    /// Returns the inner `T`.
112
    pub fn into_inner(self) -> T {
×
113
        self.0
×
114
    }
×
115
}
116

117
impl<T> From<T> for AnchorImpl<T> {
118
    fn from(value: T) -> Self {
×
119
        Self(value)
×
120
    }
×
121
}
122

123
impl<T> core::ops::Deref for AnchorImpl<T> {
124
    type Target = T;
125

126
    fn deref(&self) -> &Self::Target {
×
127
        &self.0
×
128
    }
×
129
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc