pub struct Agent {
pub source: String,
pub connection_id: B256,
}Expand description
Agent connection action
Fields§
§source: String§connection_id: B256Trait Implementations§
Source§impl HyperliquidAction for Agent
impl HyperliquidAction for Agent
Source§const TYPE_STRING: &'static str = "Agent(string source,bytes32 connectionId)"
const TYPE_STRING: &'static str = "Agent(string source,bytes32 connectionId)"
The EIP-712 type string (without HyperliquidTransaction: prefix)
Source§const USE_PREFIX: bool = false
const USE_PREFIX: bool = false
Whether this uses the HyperliquidTransaction: prefix
Source§fn domain(&self) -> Eip712Domain
fn domain(&self) -> Eip712Domain
Get the EIP-712 domain for this action
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 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
fn type_hash() -> B256
fn struct_hash(&self) -> B256
fn eip712_signing_hash(&self, domain: &Eip712Domain) -> B256
Auto Trait Implementations§
impl Freeze for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnwindSafe for Agent
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