pub enum Network {
Mainnet,
Testnet,
}Variants§
Implementations§
Source§impl Network
impl Network
pub const ALL: [Network; 2]
Sourcepub const fn evm_rpc_url(self) -> &'static str
pub const fn evm_rpc_url(self) -> &'static str
HyperEVM’s JSON-RPC.
Sourcepub const fn evm_chain_id(self) -> u64
pub const fn evm_chain_id(self) -> u64
HyperEVM’s chain id.
Sourcepub const fn signature_chain_id(self) -> u64
pub const fn signature_chain_id(self) -> u64
The chain every user-signed action is signed under and names as its
signatureChainId: Arbitrum One on mainnet, Arbitrum Sepolia on
testnet. The venue tells the networks apart by hyperliquidChain.
Sourcepub const fn arbitrum_chain_id(self) -> u64
pub const fn arbitrum_chain_id(self) -> u64
The Arbitrum chain the bridge is on, where a deposit goes. Separate
from Network::signature_chain_id, though the two agree today.
Sourcepub const fn signature_chain_id_hex(self) -> &'static str
pub const fn signature_chain_id_hex(self) -> &'static str
Network::signature_chain_id as an action spells it.
Sourcepub const fn hyperliquid_chain(self) -> &'static str
pub const fn hyperliquid_chain(self) -> &'static str
What a user-signed action names as its hyperliquidChain.
Sourcepub const fn agent_source(self) -> &'static str
pub const fn agent_source(self) -> &'static str
The phantom agent’s source for an L1 action.
Sourcepub const fn hype(self) -> Token
pub const fn hype(self) -> Token
Spot HYPE, whose index and token id differ between the networks.
pub const fn name(self) -> &'static str
Trait Implementations§
impl Copy for Network
impl Eq for Network
impl StructuralPartialEq for Network
Auto Trait Implementations§
impl Freeze for Network
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnsafeUnpin for Network
impl UnwindSafe for Network
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.