Enum diem_sdk::types::chain_id::NamedChain [−][src]
#[repr(u8)]
pub enum NamedChain {
MAINNET,
TESTNET,
DEVNET,
TESTING,
PREMAINNET,
}
Expand description
A registry of named chain IDs Its main purpose is to improve human readability of reserved chain IDs in config files and CLI When signing transactions for such chains, the numerical chain ID should still be used (e.g. MAINNET has numeric chain ID 1, TESTNET has chain ID 2, etc)
Variants
Users might accidentally initialize the ChainId field to 0, hence reserving ChainId 0 for accidental initialization. MAINNET is the Diem mainnet production chain and is reserved for 1
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NamedChain
impl Send for NamedChain
impl Sync for NamedChain
impl Unpin for NamedChain
impl UnwindSafe for NamedChain
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more