pub struct ApproveAgent {
pub signature_chain_id: u64,
pub hyperliquid_chain: String,
pub agent_address: Address,
pub agent_name: Option<String>,
pub nonce: u64,
}Fields§
§signature_chain_id: u64§hyperliquid_chain: String§agent_address: Address§agent_name: Option<String>§nonce: u64Trait Implementations§
Source§impl Clone for ApproveAgent
impl Clone for ApproveAgent
Source§fn clone(&self) -> ApproveAgent
fn clone(&self) -> ApproveAgent
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApproveAgent
impl Debug for ApproveAgent
Source§impl HyperliquidAction for ApproveAgent
impl HyperliquidAction for ApproveAgent
Source§const TYPE_STRING: &'static str = "ApproveAgent(string hyperliquidChain,address agentAddress,string agentName,uint64 nonce)"
const TYPE_STRING: &'static str = "ApproveAgent(string hyperliquidChain,address agentAddress,string agentName,uint64 nonce)"
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 ApproveAgent
impl RefUnwindSafe for ApproveAgent
impl Send for ApproveAgent
impl Sync for ApproveAgent
impl Unpin for ApproveAgent
impl UnwindSafe for ApproveAgent
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