pub struct EscrowIdParams {
pub poster: Address,
pub worker: Address,
pub token: Address,
pub deposit: U256,
pub platform_fee_amount: U256,
pub platform: Address,
pub arbitrator: Address,
pub salt: B256,
}Expand description
Inputs to compute_escrow_id — one named field per preimage element.
Five fields are Address (poster, worker, token, platform,
arbitrator). A positional argument list would let a caller silently
transpose two of them and pre-sign a DistributionApproval against the
wrong escrow id; named fields make the call site self-checking.
Fields§
§poster: AddressTask poster funding the escrow.
worker: AddressWorker who will be paid out.
token: AddressERC-20 deposit token.
deposit: U256Deposit amount (pre fee-on-transfer; see module-level caveat).
platform_fee_amount: U256Platform fee taken from the deposit.
platform: AddressPlatform wallet receiving the fee.
arbitrator: AddressPool arbitrator bound to the escrow (v2; must be non-zero on-chain).
salt: B256Random 32-byte salt.
Auto Trait Implementations§
impl Freeze for EscrowIdParams
impl RefUnwindSafe for EscrowIdParams
impl Send for EscrowIdParams
impl Sync for EscrowIdParams
impl Unpin for EscrowIdParams
impl UnsafeUnpin for EscrowIdParams
impl UnwindSafe for EscrowIdParams
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> 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