pub struct DlcConfig {Show 13 fields
pub oracle_pubkey: String,
pub contract_type: DlcContractType,
pub settlement_address: String,
pub collateral: u64,
pub event_descriptor: EventDescriptor,
pub payout_curve: PayoutCurve,
pub oracle_event_id: String,
pub private_key: String,
pub oracle_event_type: OracleEventType,
pub outcome_domain: Vec<String>,
pub base_point: (f64, f64),
pub slope: f64,
pub intercept: f64,
}Expand description
DLC Configuration with non-interactive oracle support [AIR-3][AIS-3][BPC-3][RES-3] This follows official Bitcoin Improvement Proposals (BIPs) standards
Fields§
§oracle_pubkey: String§contract_type: DlcContractType§settlement_address: String§collateral: u64§event_descriptor: EventDescriptor§payout_curve: PayoutCurve§oracle_event_id: String§private_key: String§oracle_event_type: OracleEventType§outcome_domain: Vec<String>§base_point: (f64, f64)§slope: f64§intercept: f64Trait Implementations§
Source§impl Default for DlcConfig
Default implementation for DLC Configuration
[AIR-3][AIS-3][BPC-3][RES-3]
impl Default for DlcConfig
Default implementation for DLC Configuration [AIR-3][AIS-3][BPC-3][RES-3]
Source§impl<'de> Deserialize<'de> for DlcConfig
impl<'de> Deserialize<'de> for DlcConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DlcConfig
impl RefUnwindSafe for DlcConfig
impl Send for DlcConfig
impl Sync for DlcConfig
impl Unpin for DlcConfig
impl UnwindSafe for DlcConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more