pub struct Withdraw {
pub signature_chain_id: u64,
pub hyperliquid_chain: String,
pub destination: String,
pub amount: String,
pub time: u64,
}Fields§
§signature_chain_id: u64§hyperliquid_chain: String§destination: String§amount: String§time: u64Trait Implementations§
Source§impl HyperliquidAction for Withdraw
impl HyperliquidAction for Withdraw
Source§const TYPE_STRING: &'static str = "Withdraw(string hyperliquidChain,string destination,string amount,uint64 time)"
const TYPE_STRING: &'static str = "Withdraw(string hyperliquidChain,string destination,string amount,uint64 time)"
The EIP-712 type string (without HyperliquidTransaction: prefix)
Source§const USE_PREFIX: bool = true
const USE_PREFIX: bool = true
Whether this uses the HyperliquidTransaction: prefix
Source§fn chain_id(&self) -> Option<u64>
fn chain_id(&self) -> Option<u64>
Get chain ID for domain construction
Override this method for actions with signature_chain_id
Source§fn encode_data(&self) -> Vec<u8> ⓘ
fn encode_data(&self) -> Vec<u8> ⓘ
Encode the struct data according to EIP-712 rules
Default implementation - should be overridden for proper field ordering
Source§fn domain(&self) -> Eip712Domain
fn domain(&self) -> Eip712Domain
Get the EIP-712 domain for this action
fn type_hash() -> B256
fn struct_hash(&self) -> B256
fn eip712_signing_hash(&self, domain: &Eip712Domain) -> B256
Auto Trait Implementations§
impl Freeze for Withdraw
impl RefUnwindSafe for Withdraw
impl Send for Withdraw
impl Sync for Withdraw
impl Unpin for Withdraw
impl UnwindSafe for Withdraw
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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