Add additional re-exports

As we do for other types add two new alias' at the crate root of
`primitives` and mirror it in `bitcoin`:

- `BlockVersion`
- `TransactionVersion`
This commit is contained in:
Tobin C. Harding 2025-02-19 15:23:49 +11:00
parent 58baee62ca
commit 5da506b506
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
2 changed files with 5 additions and 4 deletions

View File

@ -120,14 +120,15 @@ pub mod taproot;
pub use primitives::{
block::{
Block, BlockHash, Checked as BlockChecked, Header as BlockHeader,
Unchecked as BlockUnchecked, Validation as BlockValidation, WitnessCommitment,
Unchecked as BlockUnchecked, Validation as BlockValidation, Version as BlockVersion,
WitnessCommitment,
},
merkle_tree::{TxMerkleNode, WitnessMerkleNode},
opcodes::Opcode,
pow::CompactTarget, // No `pow` module outside of `primitives`.
script::{Script, ScriptBuf},
sequence::{self, Sequence}, // No `sequence` module outside of `primitives`.
transaction::{OutPoint, Transaction, TxIn, TxOut, Txid, Wtxid},
transaction::{OutPoint, Transaction, TxIn, TxOut, Txid, Version as TransactionVersion, Wtxid},
witness::Witness,
};
#[doc(inline)]

View File

@ -73,13 +73,13 @@ pub use self::{
};
#[doc(inline)]
pub use self::{
block::{BlockHash, Header as BlockHeader, WitnessCommitment},
block::{BlockHash, Header as BlockHeader, Version as BlockVersion, WitnessCommitment},
locktime::{absolute, relative},
merkle_tree::{TxMerkleNode, WitnessMerkleNode},
opcodes::Opcode,
pow::CompactTarget,
sequence::Sequence,
transaction::{OutPoint, Txid, Wtxid},
transaction::{OutPoint, Txid, Version as TransactionVersion, Wtxid},
};
#[rustfmt::skip]