pub struct TimeoutPolicyParams {
pub zcash_lock_blocks: u64,
pub evm_lock_seconds: u64,
pub zcash_block_seconds: u64,
pub min_zcash_confirmations: u64,
pub safety_factor: f64,
}Expand description
The values of a TimeoutPolicy, before validation.
Fields§
§zcash_lock_blocks: u64Blocks between funding and the taker’s Zcash refund height.
evm_lock_seconds: u64Seconds the maker’s EVM lock stays claimable by the taker.
zcash_block_seconds: u64Expected Zcash block interval, used to compare the two clocks.
min_zcash_confirmations: u64Confirmations the maker waits for on the Zcash funding transaction (and on its own claim).
safety_factor: f64The remaining Zcash window must be at least this many times longer than the EVM lock (≥ 1).
Trait Implementations§
Source§impl Clone for TimeoutPolicyParams
impl Clone for TimeoutPolicyParams
impl Copy for TimeoutPolicyParams
Source§impl Debug for TimeoutPolicyParams
impl Debug for TimeoutPolicyParams
Source§impl PartialEq for TimeoutPolicyParams
impl PartialEq for TimeoutPolicyParams
impl StructuralPartialEq for TimeoutPolicyParams
Source§impl TryFrom<TimeoutPolicyParams> for TimeoutPolicy
impl TryFrom<TimeoutPolicyParams> for TimeoutPolicy
Source§type Error = ParalockError
type Error = ParalockError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for TimeoutPolicyParams
impl RefUnwindSafe for TimeoutPolicyParams
impl Send for TimeoutPolicyParams
impl Sync for TimeoutPolicyParams
impl Unpin for TimeoutPolicyParams
impl UnsafeUnpin for TimeoutPolicyParams
impl UnwindSafe for TimeoutPolicyParams
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