Struct dlc_manager::contract::ClosedContract
source · pub struct ClosedContract {
pub attestations: Option<Vec<OracleAttestation>>,
pub signed_cet: Option<Transaction>,
pub contract_id: ContractId,
pub temporary_contract_id: ContractId,
pub counter_party_id: PublicKey,
pub pnl: i64,
}Expand description
Information about a contract that was closed by a CET that was confirmed on the blockchain.
Fields§
§attestations: Option<Vec<OracleAttestation>>The attestations that were used to decrypt the broadcast CET.
signed_cet: Option<Transaction>The signed version of the CET that was broadcast.
contract_id: ContractIdThe id of the contract
temporary_contract_id: ContractIdThe temporary id of the contract.
counter_party_id: PublicKeyThe public key of the counter-party’s node.
pnl: i64The profit and loss for the given contract
Trait Implementations§
source§impl Clone for ClosedContract
impl Clone for ClosedContract
source§fn clone(&self) -> ClosedContract
fn clone(&self) -> ClosedContract
Returns a copy 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 more