#[non_exhaustive]pub struct TokenInfo {
pub name: String,
pub spots: Vec<u64>,
pub deployer_trading_fee_share: u64,
pub deployer: Address,
pub evm_contract: Address,
pub sz_decimals: u8,
pub wei_decimals: u8,
pub evm_extra_wei_decimals: i8,
}Expand description
A token, as token_info answers it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe token’s name, such as HYPE.
spots: Vec<u64>The spot pairs it trades in.
deployerTradingFeeShare: the deployer’s share of trading fees.
deployer: AddressThe address that deployed the token; zero for none.
evm_contract: AddressThe linked ERC-20 on HyperEVM; zero when it has none.
sz_decimals: u8szDecimals: the decimals its sizes are counted in.
wei_decimals: u8weiDecimals: the decimals its balances are counted in on HyperCore.
evm_extra_wei_decimals: i8How many more decimals the ERC-20 counts in than HyperCore does.
Trait Implementations§
impl Eq for TokenInfo
impl StructuralPartialEq for TokenInfo
Auto Trait Implementations§
impl Forget for TokenInfo
impl Freeze for TokenInfo
impl Move for TokenInfo
impl RefUnwindSafe for TokenInfo
impl Send for TokenInfo
impl Sync for TokenInfo
impl Unpin for TokenInfo
impl UnsafeUnpin for TokenInfo
impl UnwindSafe for TokenInfo
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.