Skip to content

Commit 7992b34

Browse files
committed
chore(docs): add missing structure documentation
1 parent 006590d commit 7992b34

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

src/api.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ pub use bitcoin::consensus::{deserialize, serialize};
2121
use bitcoin::hash_types::TxMerkleNode;
2222
pub use bitcoin::hex::FromHex;
2323
pub use bitcoin::{
24-
absolute, block, transaction, Amount, BlockHash, CompactTarget, FeeRate, OutPoint, ScriptBuf,
25-
Transaction, TxIn, TxOut, Txid, Weight, Witness, Wtxid,
24+
absolute, block, transaction, Address, Amount, Block, BlockHash, CompactTarget, FeeRate,
25+
OutPoint, Script, ScriptBuf, ScriptHash, Transaction, TxIn, TxOut, Txid, Weight, Witness,
26+
Wtxid,
2627
};
2728

2829
/// Information about a previous output.
@@ -312,6 +313,7 @@ pub struct MempoolRecentTx {
312313
pub value: u64,
313314
}
314315

316+
/// The result for a broadcasted package of [`Transaction`]s.
315317
#[derive(Deserialize, Debug)]
316318
pub struct SubmitPackageResult {
317319
/// The transaction package result message. "success" indicates all transactions were accepted
@@ -325,6 +327,7 @@ pub struct SubmitPackageResult {
325327
pub replaced_transactions: Option<Vec<Txid>>,
326328
}
327329

330+
/// The result [`Transaction`] for a broadcasted package of [`Transaction`]s.
328331
#[derive(Deserialize, Debug)]
329332
pub struct TxResult {
330333
/// The transaction id.
@@ -343,6 +346,7 @@ pub struct TxResult {
343346
pub error: Option<String>,
344347
}
345348

349+
/// The mempool fees for a resulting [`Transaction`] broadcasted by a package of [`Transaction`]s.
346350
#[derive(Deserialize, Debug)]
347351
pub struct MempoolFeesSubmitPackage {
348352
/// Transaction fee.
@@ -358,7 +362,7 @@ pub struct MempoolFeesSubmitPackage {
358362
deserialize_with = "deserialize_feerate"
359363
)]
360364
pub effective_feerate: Option<FeeRate>,
361-
/// If [`Self::effective_fee_rate`] is provided, this holds the [`Wtxid`]s of the transactions
365+
/// If [`Self::effective_feerate`] is provided, this holds the [`Wtxid`]s of the transactions
362366
/// whose fees and vsizes are included in effective-feerate.
363367
#[serde(rename = "effective-includes")]
364368
pub effective_includes: Option<Vec<Wtxid>>,

src/async.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,12 +381,12 @@ impl<S: Sleeper> AsyncClient<S> {
381381

382382
/// Broadcast a package of [`Transaction`] to Esplora
383383
///
384-
/// if `maxfeerate` is provided, any transaction whose
384+
/// If `maxfeerate` is provided, any transaction whose
385385
/// fee is higher will be rejected
386386
///
387-
/// if `maxburnamount` is provided, any transaction
387+
/// If `maxburnamount` is provided, any transaction
388388
/// with higher provably unspendable outputs amount
389-
/// will be rejected
389+
/// will be rejected.
390390
pub async fn submit_package(
391391
&self,
392392
transactions: &[Transaction],

src/blocking.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,12 @@ impl BlockingClient {
316316

317317
/// Broadcast a package of [`Transaction`] to Esplora
318318
///
319-
/// if `maxfeerate` is provided, any transaction whose
319+
/// If `maxfeerate` is provided, any transaction whose
320320
/// fee is higher will be rejected
321321
///
322-
/// if `maxburnamount` is provided, any transaction
322+
/// If `maxburnamount` is provided, any transaction
323323
/// with higher provably unspendable outputs amount
324-
/// will be rejected
324+
/// will be rejected.
325325
pub fn submit_package(
326326
&self,
327327
transactions: &[Transaction],

0 commit comments

Comments
 (0)