pub struct DlcTransactions {
pub fund: Transaction,
pub cets: Vec<Transaction>,
pub refund: Transaction,
pub funding_script_pubkey: ScriptBuf,
pub pending_close_txs: Vec<Transaction>,
}Expand description
Contains the necessary transactions for establishing a DLC
Fields§
§fund: TransactionThe fund transaction locking both parties collaterals
cets: Vec<Transaction>The contract execution transactions for closing the contract on a certain outcome
refund: TransactionThe refund transaction for returning the collateral for each party in case of an oracle misbehavior
funding_script_pubkey: ScriptBufThe script pubkey of the fund output in the fund transaction
pending_close_txs: Vec<Transaction>Pending cooperative close offers.
Implementations§
Source§impl DlcTransactions
impl DlcTransactions
Sourcepub fn get_fund_output(&self) -> &TxOut
pub fn get_fund_output(&self) -> &TxOut
Get the fund output in the fund transaction
Sourcepub fn get_fund_output_index(&self) -> usize
pub fn get_fund_output_index(&self) -> usize
Get the fund output in the fund transaction
Sourcepub fn get_fund_outpoint(&self) -> OutPoint
pub fn get_fund_outpoint(&self) -> OutPoint
Get the outpoint for the fund output in the fund transaction
Trait Implementations§
Source§impl Clone for DlcTransactions
impl Clone for DlcTransactions
Source§fn clone(&self) -> DlcTransactions
fn clone(&self) -> DlcTransactions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DlcTransactions
impl RefUnwindSafe for DlcTransactions
impl Send for DlcTransactions
impl Sync for DlcTransactions
impl Unpin for DlcTransactions
impl UnwindSafe for DlcTransactions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more