#[repr(C)]pub struct GtState {Show 21 fields
pub decimals: u8,
pub padding_0: [u8; 7],
pub last_minted_at: i64,
pub total_minted: u64,
pub grow_step_amount: u64,
pub grow_steps: u64,
pub supply: u64,
pub last_cumulative_inv_cost_factor_ts: i64,
pub gt_vault: u64,
pub cumulative_inv_cost_factor: u128,
pub minting_cost_grow_factor: u128,
pub minting_cost: u128,
pub padding_3: [u8; 32],
pub exchange_time_window: u32,
pub padding_4: [u8; 12],
pub max_rank: u64,
pub ranks: [u64; 15],
pub order_fee_discount_factors: [u128; 16],
pub referral_reward_factors: [u128; 16],
pub padding_5: [u8; 32],
pub reserved: [u8; 256],
}Fields§
§decimals: u8§padding_0: [u8; 7]§last_minted_at: i64§total_minted: u64§grow_step_amount: u64§grow_steps: u64§supply: u64§last_cumulative_inv_cost_factor_ts: i64§gt_vault: u64§cumulative_inv_cost_factor: u128§minting_cost_grow_factor: u128§minting_cost: u128§padding_3: [u8; 32]§exchange_time_window: u32§padding_4: [u8; 12]§max_rank: u64§ranks: [u64; 15]§order_fee_discount_factors: [u128; 16]§referral_reward_factors: [u128; 16]§padding_5: [u8; 32]§reserved: [u8; 256]Trait Implementations§
impl Copy for GtState
impl Pod for GtState
Auto Trait Implementations§
impl Freeze for GtState
impl RefUnwindSafe for GtState
impl Send for GtState
impl Sync for GtState
impl Unpin for GtState
impl UnwindSafe for GtState
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.