pub enum Network {
Lighter,
Robinhood,
}Variants§
Lighter
Lighter: settled on Ethereum, USDC collateral.
Robinhood
Lighter on Robinhood Chain: settled on Robinhood Chain, USDG collateral; crypto, US stocks, pre-IPO names and metals.
Implementations§
Source§impl Network
impl Network
pub const ALL: [Network; 2]
pub const fn name(self) -> &'static str
Sourcepub const fn ws_url(self) -> &'static str
pub const fn ws_url(self) -> &'static str
The websocket. ?readonly=true serves market data in restricted regions.
Sourcepub const fn ws_readonly_url(self) -> &'static str
pub const fn ws_readonly_url(self) -> &'static str
The read-only websocket, which takes no transactions.
Sourcepub const fn chain_id(self) -> u32
pub const fn chain_id(self) -> u32
The chain id every transaction is signed for: not a real chain’s.
Sourcepub const fn l1_chain_id(self) -> u64
pub const fn l1_chain_id(self) -> u64
The chain the venue settles on, where deposits are made and secure withdrawals arrive.
pub const fn l1_name(self) -> &'static str
Sourcepub const fn l1_rpc_url(self) -> &'static str
pub const fn l1_rpc_url(self) -> &'static str
A public JSON-RPC node on the L1, for reads and to send a deposit through. A program in production brings its own.
Sourcepub const fn l1_explorer_url(self) -> &'static str
pub const fn l1_explorer_url(self) -> &'static str
The L1’s block explorer, for a link a person follows.
pub const fn collateral(self) -> Collateral
Sourcepub const fn explorer_api_url(self) -> &'static str
pub const fn explorer_api_url(self) -> &'static str
The explorer’s API: blocks, batches, logs and an account’s history.
Sourcepub const fn app_url(self) -> &'static str
pub const fn app_url(self) -> &'static str
The venue’s own web app, for a link a person follows.
Sourcepub const fn reserves_api_key(self, slot: ApiKeyIndex) -> bool
pub const fn reserves_api_key(self, slot: ApiKeyIndex) -> bool
Whether the slot belongs to Lighter’s own web and mobile apps: 0 to 3 on both venues, and 157 too on Robinhood Chain. Registering a key there logs the venue’s app out.
Sourcepub const fn has_binary_options(self) -> bool
pub const fn has_binary_options(self) -> bool
Whether the venue lists binary options: Lighter does, Robinhood Chain does not.
Sourcepub const fn fast_withdrawals_per_hour(self) -> u32
pub const fn fast_withdrawals_per_hour(self) -> u32
Fast withdrawals an L1 address may make an hour.
Sourcepub const fn standard_sub_accounts(self) -> u32
pub const fn standard_sub_accounts(self) -> u32
Sub-accounts a Standard account may hold: 4 on Lighter, 8 on Robinhood Chain.
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
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
key and return true if they are equal.