pub struct DeployingToken {
pub token: u32,
pub spec: TokenSpec,
pub full_name: Option<String>,
pub deployer_trading_fee_share: Option<Dec>,
pub spots: Vec<u32>,
pub max_supply: Option<Dec>,
pub hyperliquidity_genesis_balance: Option<Dec>,
pub total_genesis_balance_wei: Option<Dec>,
pub user_genesis_balances: Vec<(Address, Dec)>,
pub existing_token_genesis_balances: Vec<(u32, Dec)>,
pub blacklist_users: Vec<Address>,
}Expand description
One token being deployed. Every field but the token and its spec is read as optional.
The balances are whole tokens as the venue renders them through a 64-bit float, so a large
one is rounded: 184467440737.0955200195 for a total of 18446744073709551615 wei. Only
total_genesis_balance_wei is exact. Confirmed
against testnet deploys in progress and the userGenesis actions behind them.
Fields§
§token: u32Its index, claimed by the first step.
spec: TokenSpecThe name, size decimals and wei decimals registered.
full_name: Option<String>The full name (fullName), when one was registered.
The deployer’s share of trading fees (deployerTradingFeeShare), as a fraction.
spots: Vec<u32>The pairs registered for it so far, by pair index.
max_supply: Option<Dec>Set by genesis, in whole tokens; None before.
hyperliquidity_genesis_balance: Option<Dec>The supply kept for hyperliquidity at genesis (hyperliquidityGenesisBalance), in whole tokens.
total_genesis_balance_wei: Option<Dec>The total given out at genesis, in the token’s wei (totalGenesisBalanceWei): exact.
user_genesis_balances: Vec<(Address, Dec)>What each address was given by the user genesis steps (userGenesisBalances), in whole
tokens. Emptied once genesis is done.
existing_token_genesis_balances: Vec<(u32, Dec)>What was shared among the holders of each existing token (existingTokenGenesisBalances), by
token index, in whole tokens.
blacklist_users: Vec<Address>Addresses blacklisted from holding the token (blacklistUsers).
Trait Implementations§
Source§impl Clone for DeployingToken
impl Clone for DeployingToken
Source§impl Debug for DeployingToken
impl Debug for DeployingToken
Source§impl<'de> Deserialize<'de> for DeployingToken
impl<'de> Deserialize<'de> for DeployingToken
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for DeployingToken
Source§impl PartialEq for DeployingToken
impl PartialEq for DeployingToken
impl StructuralPartialEq for DeployingToken
Auto Trait Implementations§
impl Forget for DeployingToken
impl Freeze for DeployingToken
impl Move for DeployingToken
impl RefUnwindSafe for DeployingToken
impl Send for DeployingToken
impl Sync for DeployingToken
impl Unpin for DeployingToken
impl UnsafeUnpin for DeployingToken
impl UnwindSafe for DeployingToken
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.