pub struct ConvertToMultiSigUser { /* private fields */ }Expand description
convertToMultiSigUser, signed by the account’s own key while it is a normal account.
Implementations§
Source§impl ConvertToMultiSigUser
impl ConvertToMultiSigUser
Sourcepub fn new(
authorized: &[Address],
threshold: u8,
nonce: u64,
) -> Result<ConvertToMultiSigUser, BadSigners>
pub fn new( authorized: &[Address], threshold: u8, nonce: u64, ) -> Result<ConvertToMultiSigUser, BadSigners>
Any threshold of authorized may act for the account. Each signer must already be an
account on the venue; a repeated address counts once.
Sourcepub fn single(nonce: u64) -> ConvertToMultiSigUser
pub fn single(nonce: u64) -> ConvertToMultiSigUser
Back to a normal account: signers is null, as @nktkas/hyperliquid 0.33.3 writes it.
Trait Implementations§
Source§impl Clone for ConvertToMultiSigUser
impl Clone for ConvertToMultiSigUser
Source§impl Debug for ConvertToMultiSigUser
impl Debug for ConvertToMultiSigUser
impl Eq for ConvertToMultiSigUser
Source§impl PartialEq for ConvertToMultiSigUser
impl PartialEq for ConvertToMultiSigUser
impl StructuralPartialEq for ConvertToMultiSigUser
Source§impl UserAction for ConvertToMultiSigUser
impl UserAction for ConvertToMultiSigUser
Source§fn user_signed(&self) -> UserSigned<'_>
fn user_signed(&self) -> UserSigned<'_>
The action’s type, EIP-712 name, fields and nonce.
Source§fn action(&self, network: Network) -> Map
fn action(&self, network: Network) -> Map
UserSigned::action: the action as posted on network.Source§fn typed(&self, network: Network) -> TypedStruct<'_>
fn typed(&self, network: Network) -> TypedStruct<'_>
UserSigned::typed: the struct the key signs.Source§fn wallet_json(&self, network: Network) -> String
fn wallet_json(&self, network: Network) -> String
UserSigned::wallet_json: the typed data for a browser wallet.Auto Trait Implementations§
impl Forget for ConvertToMultiSigUser
impl Freeze for ConvertToMultiSigUser
impl Move for ConvertToMultiSigUser
impl RefUnwindSafe for ConvertToMultiSigUser
impl Send for ConvertToMultiSigUser
impl Sync for ConvertToMultiSigUser
impl Unpin for ConvertToMultiSigUser
impl UnsafeUnpin for ConvertToMultiSigUser
impl UnwindSafe for ConvertToMultiSigUser
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.