Re-export blockdata modules
In an effort to make the library more ergonomic to use re-export modules from `blockdata` at the crate root level. This helps to decouple the internal code layout with the public API.
This commit is contained in:
parent
deb867e33d
commit
4a119e5624
|
@ -94,13 +94,14 @@ use std::io;
|
||||||
use core2::io;
|
use core2::io;
|
||||||
|
|
||||||
pub use crate::address::{Address, AddressType};
|
pub use crate::address::{Address, AddressType};
|
||||||
pub use crate::blockdata::block::{Block, BlockHeader};
|
pub use crate::blockdata::block::{self, Block, BlockHeader};
|
||||||
pub use crate::blockdata::locktime::{self, LockTime, PackedLockTime};
|
pub use crate::blockdata::locktime::{self, LockTime, PackedLockTime};
|
||||||
pub use crate::blockdata::script::Script;
|
pub use crate::blockdata::script::{self, Script};
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
pub use crate::blockdata::transaction::SigHashType;
|
pub use crate::blockdata::transaction::SigHashType;
|
||||||
pub use crate::blockdata::transaction::{OutPoint, Sequence, Transaction, TxIn, TxOut};
|
pub use crate::blockdata::transaction::{self, OutPoint, Sequence, Transaction, TxIn, TxOut};
|
||||||
pub use crate::blockdata::witness::Witness;
|
pub use crate::blockdata::witness::{self, Witness};
|
||||||
|
pub use crate::blockdata::{constants, opcodes};
|
||||||
pub use crate::consensus::encode::VarInt;
|
pub use crate::consensus::encode::VarInt;
|
||||||
pub use crate::hash_types::*;
|
pub use crate::hash_types::*;
|
||||||
pub use crate::network::constants::Network;
|
pub use crate::network::constants::Network;
|
||||||
|
|
Loading…
Reference in New Issue