pub struct UserSigned<'a> { /* private fields */ }Expand description
A user-signed action, everything that goes into its signature.
Implementations§
Source§impl<'a> UserSigned<'a>
impl<'a> UserSigned<'a>
Sourcepub const fn new(
kind: &'static str,
primary_type: &'static str,
nonce_key: NonceKey,
nonce: u64,
) -> Self
pub const fn new( kind: &'static str, primary_type: &'static str, nonce_key: NonceKey, nonce: u64, ) -> Self
kind is the posted type (withdraw3), primary_type the EIP-712
name (HyperliquidTransaction:Withdraw).
Sourcepub fn field(self, name: &'static str, value: Field<'a>) -> Self
pub fn field(self, name: &'static str, value: Field<'a>) -> Self
Appends one of the action’s own keys; call order is wire and type order.
pub const fn kind(&self) -> &'static str
pub const fn nonce(&self) -> u64
Sourcepub fn wire(&self, network: Network) -> String
pub fn wire(&self, network: Network) -> String
UserSigned::action as JSON.
Sourcepub fn typed(&self, network: Network) -> TypedStruct<'a>
pub fn typed(&self, network: Network) -> TypedStruct<'a>
hyperliquidChain, the action’s own keys, then the nonce as uint64.
pub fn digest(&self, network: Network) -> [u8; 32]
Sourcepub fn wallet_json(&self, network: Network) -> String
pub fn wallet_json(&self, network: Network) -> String
For the wallet. It wants to be on the network’s signature chain to sign this: Arbitrum One, or Arbitrum Sepolia on testnet.
Trait Implementations§
Source§impl<'a> Clone for UserSigned<'a>
impl<'a> Clone for UserSigned<'a>
Source§impl<'a> Debug for UserSigned<'a>
impl<'a> Debug for UserSigned<'a>
impl<'a> Eq for UserSigned<'a>
Source§impl<'a> PartialEq for UserSigned<'a>
impl<'a> PartialEq for UserSigned<'a>
impl<'a> StructuralPartialEq for UserSigned<'a>
Auto Trait Implementations§
impl<'a> Freeze for UserSigned<'a>
impl<'a> RefUnwindSafe for UserSigned<'a>
impl<'a> Send for UserSigned<'a>
impl<'a> Sync for UserSigned<'a>
impl<'a> Unpin for UserSigned<'a>
impl<'a> UnsafeUnpin for UserSigned<'a>
impl<'a> UnwindSafe for UserSigned<'a>
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.