Skip to content

Commit 4c2482b

Browse files
authored
Merge pull request #110 from alexanderwiederin/fix-outpoint-export
Feat(core): Add `TxOutPoint` types, `Txid` types and `TxInRef` to public API
2 parents 8a0b3de + 53c226b commit 4c2482b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/core/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ pub use block::{
1010
};
1111
pub use block_tree_entry::BlockTreeEntry;
1212
pub use script::{ScriptPubkey, ScriptPubkeyRef};
13-
pub use transaction::{Transaction, TransactionRef, TxIn, TxOut, TxOutRef};
13+
pub use transaction::{
14+
Transaction, TransactionRef, TxIn, TxInRef, TxOut, TxOutPoint, TxOutPointRef, TxOutRef, Txid,
15+
TxidRef,
16+
};
1417

1518
pub use block::{BlockHashExt, BlockSpentOutputsExt, CoinExt, TransactionSpentOutputsExt};
1619
pub use script::ScriptPubkeyExt;
17-
pub use transaction::{TransactionExt, TxInExt, TxOutExt};
20+
pub use transaction::{TransactionExt, TxInExt, TxOutExt, TxOutPointExt, TxidExt};
1821

1922
pub use verify::{verify, ScriptVerifyError, ScriptVerifyStatus};
2023

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ impl std::error::Error for KernelError {
113113
pub use crate::core::{
114114
verify, Block, BlockHash, BlockSpentOutputs, BlockSpentOutputsRef, BlockTreeEntry, Coin,
115115
CoinRef, ScriptPubkey, ScriptPubkeyRef, ScriptVerifyError, ScriptVerifyStatus, Transaction,
116-
TransactionRef, TransactionSpentOutputs, TransactionSpentOutputsRef, TxIn, TxOut, TxOutRef,
116+
TransactionRef, TransactionSpentOutputs, TransactionSpentOutputsRef, TxIn, TxInRef, TxOut,
117+
TxOutPoint, TxOutPointRef, TxOutRef, Txid, TxidRef,
117118
};
118119

119120
pub use crate::log::{disable_logging, Log, LogCategory, LogLevel, Logger};
@@ -138,7 +139,7 @@ pub use crate::core::verify_flags::{
138139
pub mod prelude {
139140
pub use crate::core::{
140141
BlockHashExt, BlockSpentOutputsExt, CoinExt, ScriptPubkeyExt, TransactionExt,
141-
TransactionSpentOutputsExt, TxInExt, TxOutExt,
142+
TransactionSpentOutputsExt, TxInExt, TxOutExt, TxOutPointExt, TxidExt,
142143
};
143144
pub use crate::notifications::BlockValidationStateExt;
144145
}

0 commit comments

Comments
 (0)