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:
parent
58baee62ca
commit
5da506b506
|
@ -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)]
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue