pub struct Order {Show 13 fields
pub salt: String,
pub maker: Address,
pub signer: Address,
pub token_id: String,
pub maker_amount: String,
pub taker_amount: String,
pub side: OrderSide,
pub expiration: String,
pub signature_type: SignatureType,
pub timestamp: String,
pub metadata: B256,
pub builder: B256,
pub neg_risk: bool,
}Expand description
Unsigned order (Polymarket CLOB V2 wire shape).
The signed EIP-712 struct (see core::eip712) covers salt, maker, signer,
token_id, maker_amount, taker_amount, side, signature_type, timestamp,
metadata, and builder. expiration travels on the wire (for GTD orders) but is
NOT part of the signed struct. neg_risk is local-only (#[serde(skip)]) and
selects the exchange vs. neg-risk-exchange verifying contract during signing.
Fields§
§salt: String§maker: Address§signer: Address§token_id: String§maker_amount: String§taker_amount: String§side: OrderSide§expiration: StringWire-only (GTD expiry); NOT part of the V2 signed struct.
signature_type: SignatureType§timestamp: StringUnix milliseconds; provides order uniqueness in V2 (replaces the V1 nonce).
metadata: B256§builder: B256§neg_risk: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for Order
impl<'de> Deserialize<'de> for Order
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 Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnsafeUnpin for Order
impl UnwindSafe for Order
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
impl<'de, T> BorrowedRpcObject<'de> for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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