pub struct SnsSwapSaleParameters {
pub min_icp_e8s: u64,
pub max_icp_e8s: u64,
pub min_direct_participation_icp_e8s: Option<u64>,
pub max_direct_participation_icp_e8s: Option<u64>,
pub sns_token_e8s: u64,
pub min_participants: u32,
pub min_participant_icp_e8s: u64,
pub max_participant_icp_e8s: u64,
pub swap_due_timestamp_seconds: u64,
pub sale_delay_seconds: Option<u64>,
pub neuron_basket_construction_parameters: Option<SnsSwapNeuronBasketConstructionParameters>,
}Expand description
SnsSwapSaleParameters
Native decentralization-sale parameters returned by the swap canister.
Fields§
§min_icp_e8s: u64Minimum legacy total ICP target in e8s.
max_icp_e8s: u64Maximum legacy total ICP target in e8s.
min_direct_participation_icp_e8s: Option<u64>Minimum direct participation target in ICP e8s, when returned.
max_direct_participation_icp_e8s: Option<u64>Maximum direct participation target in ICP e8s, when returned.
sns_token_e8s: u64SNS tokens offered by the sale in e8s.
min_participants: u32Minimum number of direct participants.
min_participant_icp_e8s: u64Minimum ICP contribution per participant in e8s.
max_participant_icp_e8s: u64Maximum ICP contribution per participant in e8s.
swap_due_timestamp_seconds: u64Scheduled swap deadline in Unix seconds.
sale_delay_seconds: Option<u64>Optional delay before the sale opens, in seconds.
neuron_basket_construction_parameters: Option<SnsSwapNeuronBasketConstructionParameters>Neuron-basket construction parameters, when configured.
Trait Implementations§
Source§impl Clone for SnsSwapSaleParameters
impl Clone for SnsSwapSaleParameters
Source§fn clone(&self) -> SnsSwapSaleParameters
fn clone(&self) -> SnsSwapSaleParameters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnsSwapSaleParameters
impl Debug for SnsSwapSaleParameters
impl Eq for SnsSwapSaleParameters
Source§impl PartialEq for SnsSwapSaleParameters
impl PartialEq for SnsSwapSaleParameters
Source§impl Serialize for SnsSwapSaleParameters
impl Serialize for SnsSwapSaleParameters
impl StructuralPartialEq for SnsSwapSaleParameters
Auto Trait Implementations§
impl Freeze for SnsSwapSaleParameters
impl RefUnwindSafe for SnsSwapSaleParameters
impl Send for SnsSwapSaleParameters
impl Sync for SnsSwapSaleParameters
impl Unpin for SnsSwapSaleParameters
impl UnsafeUnpin for SnsSwapSaleParameters
impl UnwindSafe for SnsSwapSaleParameters
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