Documentation ¶
Overview ¶
Package swap provides a client for the "swap" canister. Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go.
Index ¶
- type Agent
- func (a Agent) ErrorRefundIcp(arg0 ErrorRefundIcpRequest) (*ErrorRefundIcpResponse, error)
- func (a Agent) FinalizeSwap(arg0 struct{}) (*FinalizeSwapResponse, error)
- func (a Agent) GetAutoFinalizationStatus(arg0 struct{}) (*GetAutoFinalizationStatusResponse, error)
- func (a Agent) GetBuyerState(arg0 GetBuyerStateRequest) (*GetBuyerStateResponse, error)
- func (a Agent) GetBuyersTotal(arg0 struct{}) (*GetBuyersTotalResponse, error)
- func (a Agent) GetCanisterStatus(arg0 struct{}) (*CanisterStatusResultV2, error)
- func (a Agent) GetDerivedState(arg0 struct{}) (*GetDerivedStateResponse, error)
- func (a Agent) GetInit(arg0 struct{}) (*GetInitResponse, error)
- func (a Agent) GetLifecycle(arg0 struct{}) (*GetLifecycleResponse, error)
- func (a Agent) GetOpenTicket(arg0 struct{}) (*GetOpenTicketResponse, error)
- func (a Agent) GetSaleParameters(arg0 struct{}) (*GetSaleParametersResponse, error)
- func (a Agent) GetState(arg0 struct{}) (*GetStateResponse, error)
- func (a Agent) ListCommunityFundParticipants(arg0 ListCommunityFundParticipantsRequest) (*NeuronsFundParticipants, error)
- func (a Agent) ListDirectParticipants(arg0 ListDirectParticipantsRequest) (*ListDirectParticipantsResponse, error)
- func (a Agent) ListSnsNeuronRecipes(arg0 ListSnsNeuronRecipesRequest) (*ListSnsNeuronRecipesResponse, error)
- func (a Agent) NewSaleTicket(arg0 NewSaleTicketRequest) (*NewSaleTicketResponse, error)
- func (a Agent) NotifyPaymentFailure(arg0 struct{}) (*Ok2, error)
- func (a Agent) Open(arg0 OpenRequest) (..., error)
- func (a Agent) RefreshBuyerTokens(arg0 RefreshBuyerTokensRequest) (*RefreshBuyerTokensResponse, error)
- func (a Agent) RestoreDappControllers(arg0 struct{}) (*SetDappControllersCallResult, error)
- type BuyerState
- type CanisterCallError
- type CanisterStatusResultV2
- type CanisterStatusType
- type CfInvestment
- type CfNeuron
- type CfParticipant
- type Countries
- type DefiniteCanisterSettingsArgs
- type DerivedState
- type DirectInvestment
- type Err
- type Err1
- type Err2
- type Error
- type ErrorRefundIcpRequest
- type ErrorRefundIcpResponse
- type FailedUpdate
- type FinalizeSwapResponse
- type GetAutoFinalizationStatusResponse
- type GetBuyerStateRequest
- type GetBuyerStateResponse
- type GetBuyersTotalResponse
- type GetDerivedStateResponse
- type GetInitResponse
- type GetLifecycleResponse
- type GetOpenTicketResponse
- type GetSaleParametersResponse
- type GetStateResponse
- type GovernanceError
- type Icrc1Account
- type IdealMatchedParticipationFunction
- type Init
- type InvalidUserAmount
- type Investor
- type LinearScalingCoefficient
- type ListCommunityFundParticipantsRequest
- type ListDirectParticipantsRequest
- type ListDirectParticipantsResponse
- type ListSnsNeuronRecipesRequest
- type ListSnsNeuronRecipesResponse
- type NeuronAttributes
- type NeuronBasketConstructionParameters
- type NeuronId
- type NeuronsFundParticipants
- type NeuronsFundParticipationConstraints
- type NewSaleTicketRequest
- type NewSaleTicketResponse
- type Ok
- type Ok1
- type Ok2
- type OpenRequest
- type Params
- type Participant
- type Possibility
- type Possibility1
- type Possibility2
- type Possibility3
- type RefreshBuyerTokensRequest
- type RefreshBuyerTokensResponse
- type Response
- type Result
- type Result1
- type Result2
- type SetDappControllersCallResult
- type SetDappControllersResponse
- type SetModeCallResult
- type SettleCommunityFundParticipationResult
- type SettleNeuronsFundParticipationResult
- type SnsNeuronRecipe
- type Swap
- type SweepResult
- type Ticket
- type TransferableAmount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
Agent is a client for the "swap" canister.
func (Agent) ErrorRefundIcp ¶
func (a Agent) ErrorRefundIcp(arg0 ErrorRefundIcpRequest) (*ErrorRefundIcpResponse, error)
ErrorRefundIcp calls the "error_refund_icp" method on the "swap" canister.
func (Agent) FinalizeSwap ¶
func (a Agent) FinalizeSwap(arg0 struct { }) (*FinalizeSwapResponse, error)
FinalizeSwap calls the "finalize_swap" method on the "swap" canister.
func (Agent) GetAutoFinalizationStatus ¶
func (a Agent) GetAutoFinalizationStatus(arg0 struct { }) (*GetAutoFinalizationStatusResponse, error)
GetAutoFinalizationStatus calls the "get_auto_finalization_status" method on the "swap" canister.
func (Agent) GetBuyerState ¶
func (a Agent) GetBuyerState(arg0 GetBuyerStateRequest) (*GetBuyerStateResponse, error)
GetBuyerState calls the "get_buyer_state" method on the "swap" canister.
func (Agent) GetBuyersTotal ¶
func (a Agent) GetBuyersTotal(arg0 struct { }) (*GetBuyersTotalResponse, error)
GetBuyersTotal calls the "get_buyers_total" method on the "swap" canister.
func (Agent) GetCanisterStatus ¶
func (a Agent) GetCanisterStatus(arg0 struct { }) (*CanisterStatusResultV2, error)
GetCanisterStatus calls the "get_canister_status" method on the "swap" canister.
func (Agent) GetDerivedState ¶
func (a Agent) GetDerivedState(arg0 struct { }) (*GetDerivedStateResponse, error)
GetDerivedState calls the "get_derived_state" method on the "swap" canister.
func (Agent) GetInit ¶
func (a Agent) GetInit(arg0 struct { }) (*GetInitResponse, error)
GetInit calls the "get_init" method on the "swap" canister.
func (Agent) GetLifecycle ¶
func (a Agent) GetLifecycle(arg0 struct { }) (*GetLifecycleResponse, error)
GetLifecycle calls the "get_lifecycle" method on the "swap" canister.
func (Agent) GetOpenTicket ¶
func (a Agent) GetOpenTicket(arg0 struct { }) (*GetOpenTicketResponse, error)
GetOpenTicket calls the "get_open_ticket" method on the "swap" canister.
func (Agent) GetSaleParameters ¶
func (a Agent) GetSaleParameters(arg0 struct { }) (*GetSaleParametersResponse, error)
GetSaleParameters calls the "get_sale_parameters" method on the "swap" canister.
func (Agent) GetState ¶
func (a Agent) GetState(arg0 struct { }) (*GetStateResponse, error)
GetState calls the "get_state" method on the "swap" canister.
func (Agent) ListCommunityFundParticipants ¶
func (a Agent) ListCommunityFundParticipants(arg0 ListCommunityFundParticipantsRequest) (*NeuronsFundParticipants, error)
ListCommunityFundParticipants calls the "list_community_fund_participants" method on the "swap" canister.
func (Agent) ListDirectParticipants ¶
func (a Agent) ListDirectParticipants(arg0 ListDirectParticipantsRequest) (*ListDirectParticipantsResponse, error)
ListDirectParticipants calls the "list_direct_participants" method on the "swap" canister.
func (Agent) ListSnsNeuronRecipes ¶
func (a Agent) ListSnsNeuronRecipes(arg0 ListSnsNeuronRecipesRequest) (*ListSnsNeuronRecipesResponse, error)
ListSnsNeuronRecipes calls the "list_sns_neuron_recipes" method on the "swap" canister.
func (Agent) NewSaleTicket ¶
func (a Agent) NewSaleTicket(arg0 NewSaleTicketRequest) (*NewSaleTicketResponse, error)
NewSaleTicket calls the "new_sale_ticket" method on the "swap" canister.
func (Agent) NotifyPaymentFailure ¶
NotifyPaymentFailure calls the "notify_payment_failure" method on the "swap" canister.
func (Agent) Open ¶
func (a Agent) Open(arg0 OpenRequest) (*struct { }, error)
Open calls the "open" method on the "swap" canister.
func (Agent) RefreshBuyerTokens ¶
func (a Agent) RefreshBuyerTokens(arg0 RefreshBuyerTokensRequest) (*RefreshBuyerTokensResponse, error)
RefreshBuyerTokens calls the "refresh_buyer_tokens" method on the "swap" canister.
func (Agent) RestoreDappControllers ¶
func (a Agent) RestoreDappControllers(arg0 struct { }) (*SetDappControllersCallResult, error)
RestoreDappControllers calls the "restore_dapp_controllers" method on the "swap" canister.
type BuyerState ¶
type BuyerState struct { Icp *TransferableAmount `ic:"icp,omitempty" json:"icp,omitempty"` HasCreatedNeuronRecipes *bool `ic:"has_created_neuron_recipes,omitempty" json:"has_created_neuron_recipes,omitempty"` }
type CanisterCallError ¶
type CanisterStatusResultV2 ¶
type CanisterStatusResultV2 struct { Status CanisterStatusType `ic:"status" json:"status"` MemorySize idl.Nat `ic:"memory_size" json:"memory_size"` Cycles idl.Nat `ic:"cycles" json:"cycles"` Settings DefiniteCanisterSettingsArgs `ic:"settings" json:"settings"` IdleCyclesBurnedPerDay idl.Nat `ic:"idle_cycles_burned_per_day" json:"idle_cycles_burned_per_day"` ModuleHash *[]byte `ic:"module_hash,omitempty" json:"module_hash,omitempty"` }
type CanisterStatusType ¶
type CfInvestment ¶
type CfParticipant ¶
type DefiniteCanisterSettingsArgs ¶
type DefiniteCanisterSettingsArgs struct { FreezingThreshold idl.Nat `ic:"freezing_threshold" json:"freezing_threshold"` Controllers []principal.Principal `ic:"controllers" json:"controllers"` MemoryAllocation idl.Nat `ic:"memory_allocation" json:"memory_allocation"` ComputeAllocation idl.Nat `ic:"compute_allocation" json:"compute_allocation"` }
type DerivedState ¶
type DerivedState struct { SnsTokensPerIcp float32 `ic:"sns_tokens_per_icp" json:"sns_tokens_per_icp"` BuyerTotalIcpE8s uint64 `ic:"buyer_total_icp_e8s" json:"buyer_total_icp_e8s"` CfParticipantCount *uint64 `ic:"cf_participant_count,omitempty" json:"cf_participant_count,omitempty"` NeuronsFundParticipationIcpE8s *uint64 `ic:"neurons_fund_participation_icp_e8s,omitempty" json:"neurons_fund_participation_icp_e8s,omitempty"` DirectParticipationIcpE8s *uint64 `ic:"direct_participation_icp_e8s,omitempty" json:"direct_participation_icp_e8s,omitempty"` DirectParticipantCount *uint64 `ic:"direct_participant_count,omitempty" json:"direct_participant_count,omitempty"` CfNeuronCount *uint64 `ic:"cf_neuron_count,omitempty" json:"cf_neuron_count,omitempty"` }
type DirectInvestment ¶
type DirectInvestment struct {
BuyerPrincipal string `ic:"buyer_principal" json:"buyer_principal"`
}
type Err1 ¶
type Err1 struct {
ErrorType *int32 `ic:"error_type,omitempty" json:"error_type,omitempty"`
}
type Err2 ¶
type Err2 struct { InvalidUserAmount *InvalidUserAmount `ic:"invalid_user_amount,omitempty" json:"invalid_user_amount,omitempty"` ExistingTicket *Ticket `ic:"existing_ticket,omitempty" json:"existing_ticket,omitempty"` ErrorType int32 `ic:"error_type" json:"error_type"` }
type Error ¶
type Error struct {
Message *string `ic:"message,omitempty" json:"message,omitempty"`
}
type ErrorRefundIcpRequest ¶
type ErrorRefundIcpResponse ¶
type ErrorRefundIcpResponse struct {
Result *Result `ic:"result,omitempty" json:"result,omitempty"`
}
type FailedUpdate ¶
type FailedUpdate struct { Err *CanisterCallError `ic:"err,omitempty" json:"err,omitempty"` DappCanisterId *principal.Principal `ic:"dapp_canister_id,omitempty" json:"dapp_canister_id,omitempty"` }
type FinalizeSwapResponse ¶
type FinalizeSwapResponse struct { SetDappControllersCallResult *SetDappControllersCallResult `ic:"set_dapp_controllers_call_result,omitempty" json:"set_dapp_controllers_call_result,omitempty"` CreateSnsNeuronRecipesResult *SweepResult `ic:"create_sns_neuron_recipes_result,omitempty" json:"create_sns_neuron_recipes_result,omitempty"` SettleCommunityFundParticipationResult *SettleCommunityFundParticipationResult `ic:"settle_community_fund_participation_result,omitempty" json:"settle_community_fund_participation_result,omitempty"` ErrorMessage *string `ic:"error_message,omitempty" json:"error_message,omitempty"` SettleNeuronsFundParticipationResult *SettleNeuronsFundParticipationResult `ic:"settle_neurons_fund_participation_result,omitempty" json:"settle_neurons_fund_participation_result,omitempty"` SetModeCallResult *SetModeCallResult `ic:"set_mode_call_result,omitempty" json:"set_mode_call_result,omitempty"` SweepIcpResult *SweepResult `ic:"sweep_icp_result,omitempty" json:"sweep_icp_result,omitempty"` ClaimNeuronResult *SweepResult `ic:"claim_neuron_result,omitempty" json:"claim_neuron_result,omitempty"` SweepSnsResult *SweepResult `ic:"sweep_sns_result,omitempty" json:"sweep_sns_result,omitempty"` }
type GetAutoFinalizationStatusResponse ¶
type GetAutoFinalizationStatusResponse struct { AutoFinalizeSwapResponse *FinalizeSwapResponse `ic:"auto_finalize_swap_response,omitempty" json:"auto_finalize_swap_response,omitempty"` HasAutoFinalizeBeenAttempted *bool `ic:"has_auto_finalize_been_attempted,omitempty" json:"has_auto_finalize_been_attempted,omitempty"` IsAutoFinalizeEnabled *bool `ic:"is_auto_finalize_enabled,omitempty" json:"is_auto_finalize_enabled,omitempty"` }
type GetBuyerStateRequest ¶
type GetBuyerStateResponse ¶
type GetBuyerStateResponse struct {
BuyerState *BuyerState `ic:"buyer_state,omitempty" json:"buyer_state,omitempty"`
}
type GetBuyersTotalResponse ¶
type GetBuyersTotalResponse struct {
BuyersTotal uint64 `ic:"buyers_total" json:"buyers_total"`
}
type GetDerivedStateResponse ¶
type GetDerivedStateResponse struct { SnsTokensPerIcp *float64 `ic:"sns_tokens_per_icp,omitempty" json:"sns_tokens_per_icp,omitempty"` BuyerTotalIcpE8s *uint64 `ic:"buyer_total_icp_e8s,omitempty" json:"buyer_total_icp_e8s,omitempty"` CfParticipantCount *uint64 `ic:"cf_participant_count,omitempty" json:"cf_participant_count,omitempty"` NeuronsFundParticipationIcpE8s *uint64 `ic:"neurons_fund_participation_icp_e8s,omitempty" json:"neurons_fund_participation_icp_e8s,omitempty"` DirectParticipationIcpE8s *uint64 `ic:"direct_participation_icp_e8s,omitempty" json:"direct_participation_icp_e8s,omitempty"` DirectParticipantCount *uint64 `ic:"direct_participant_count,omitempty" json:"direct_participant_count,omitempty"` CfNeuronCount *uint64 `ic:"cf_neuron_count,omitempty" json:"cf_neuron_count,omitempty"` }
type GetInitResponse ¶
type GetInitResponse struct {
Init *Init `ic:"init,omitempty" json:"init,omitempty"`
}
type GetLifecycleResponse ¶
type GetLifecycleResponse struct { DecentralizationSaleOpenTimestampSeconds *uint64 `ic:"decentralization_sale_open_timestamp_seconds,omitempty" json:"decentralization_sale_open_timestamp_seconds,omitempty"` Lifecycle *int32 `ic:"lifecycle,omitempty" json:"lifecycle,omitempty"` DecentralizationSwapTerminationTimestampSeconds *uint64 `` /* 135-byte string literal not displayed */ }
type GetOpenTicketResponse ¶
type GetOpenTicketResponse struct {
Result *Result1 `ic:"result,omitempty" json:"result,omitempty"`
}
type GetSaleParametersResponse ¶
type GetSaleParametersResponse struct {
Params *Params `ic:"params,omitempty" json:"params,omitempty"`
}
type GetStateResponse ¶
type GetStateResponse struct { Swap *Swap `ic:"swap,omitempty" json:"swap,omitempty"` Derived *DerivedState `ic:"derived,omitempty" json:"derived,omitempty"` }
type GovernanceError ¶
type Icrc1Account ¶
type IdealMatchedParticipationFunction ¶
type IdealMatchedParticipationFunction struct {
SerializedRepresentation *string `ic:"serialized_representation,omitempty" json:"serialized_representation,omitempty"`
}
type Init ¶
type Init struct { NnsProposalId *uint64 `ic:"nns_proposal_id,omitempty" json:"nns_proposal_id,omitempty"` SnsRootCanisterId string `ic:"sns_root_canister_id" json:"sns_root_canister_id"` NeuronsFundParticipation *bool `ic:"neurons_fund_participation,omitempty" json:"neurons_fund_participation,omitempty"` MinParticipantIcpE8s *uint64 `ic:"min_participant_icp_e8s,omitempty" json:"min_participant_icp_e8s,omitempty"` NeuronBasketConstructionParameters *NeuronBasketConstructionParameters `ic:"neuron_basket_construction_parameters,omitempty" json:"neuron_basket_construction_parameters,omitempty"` FallbackControllerPrincipalIds []string `ic:"fallback_controller_principal_ids" json:"fallback_controller_principal_ids"` MaxIcpE8s *uint64 `ic:"max_icp_e8s,omitempty" json:"max_icp_e8s,omitempty"` NeuronMinimumStakeE8s *uint64 `ic:"neuron_minimum_stake_e8s,omitempty" json:"neuron_minimum_stake_e8s,omitempty"` ConfirmationText *string `ic:"confirmation_text,omitempty" json:"confirmation_text,omitempty"` SwapStartTimestampSeconds *uint64 `ic:"swap_start_timestamp_seconds,omitempty" json:"swap_start_timestamp_seconds,omitempty"` SwapDueTimestampSeconds *uint64 `ic:"swap_due_timestamp_seconds,omitempty" json:"swap_due_timestamp_seconds,omitempty"` MinParticipants *uint32 `ic:"min_participants,omitempty" json:"min_participants,omitempty"` SnsTokenE8s *uint64 `ic:"sns_token_e8s,omitempty" json:"sns_token_e8s,omitempty"` NnsGovernanceCanisterId string `ic:"nns_governance_canister_id" json:"nns_governance_canister_id"` TransactionFeeE8s *uint64 `ic:"transaction_fee_e8s,omitempty" json:"transaction_fee_e8s,omitempty"` IcpLedgerCanisterId string `ic:"icp_ledger_canister_id" json:"icp_ledger_canister_id"` SnsLedgerCanisterId string `ic:"sns_ledger_canister_id" json:"sns_ledger_canister_id"` NeuronsFundParticipationConstraints *NeuronsFundParticipationConstraints `ic:"neurons_fund_participation_constraints,omitempty" json:"neurons_fund_participation_constraints,omitempty"` NeuronsFundParticipants *NeuronsFundParticipants `ic:"neurons_fund_participants,omitempty" json:"neurons_fund_participants,omitempty"` ShouldAutoFinalize *bool `ic:"should_auto_finalize,omitempty" json:"should_auto_finalize,omitempty"` MaxParticipantIcpE8s *uint64 `ic:"max_participant_icp_e8s,omitempty" json:"max_participant_icp_e8s,omitempty"` SnsGovernanceCanisterId string `ic:"sns_governance_canister_id" json:"sns_governance_canister_id"` MinDirectParticipationIcpE8s *uint64 `ic:"min_direct_participation_icp_e8s,omitempty" json:"min_direct_participation_icp_e8s,omitempty"` RestrictedCountries *Countries `ic:"restricted_countries,omitempty" json:"restricted_countries,omitempty"` MinIcpE8s *uint64 `ic:"min_icp_e8s,omitempty" json:"min_icp_e8s,omitempty"` MaxDirectParticipationIcpE8s *uint64 `ic:"max_direct_participation_icp_e8s,omitempty" json:"max_direct_participation_icp_e8s,omitempty"` }
type InvalidUserAmount ¶
type Investor ¶
type Investor struct { CommunityFund *CfInvestment `ic:"CommunityFund,variant"` Direct *DirectInvestment `ic:"Direct,variant"` }
type LinearScalingCoefficient ¶
type LinearScalingCoefficient struct { SlopeNumerator *uint64 `ic:"slope_numerator,omitempty" json:"slope_numerator,omitempty"` InterceptIcpE8s *uint64 `ic:"intercept_icp_e8s,omitempty" json:"intercept_icp_e8s,omitempty"` FromDirectParticipationIcpE8s *uint64 `ic:"from_direct_participation_icp_e8s,omitempty" json:"from_direct_participation_icp_e8s,omitempty"` SlopeDenominator *uint64 `ic:"slope_denominator,omitempty" json:"slope_denominator,omitempty"` ToDirectParticipationIcpE8s *uint64 `ic:"to_direct_participation_icp_e8s,omitempty" json:"to_direct_participation_icp_e8s,omitempty"` }
type ListDirectParticipantsResponse ¶
type ListDirectParticipantsResponse struct {
Participants []Participant `ic:"participants" json:"participants"`
}
type ListSnsNeuronRecipesResponse ¶
type ListSnsNeuronRecipesResponse struct {
SnsNeuronRecipes []SnsNeuronRecipe `ic:"sns_neuron_recipes" json:"sns_neuron_recipes"`
}
type NeuronAttributes ¶
type NeuronsFundParticipants ¶
type NeuronsFundParticipants struct {
CfParticipants []CfParticipant `ic:"cf_participants" json:"cf_participants"`
}
type NeuronsFundParticipationConstraints ¶
type NeuronsFundParticipationConstraints struct { CoefficientIntervals []LinearScalingCoefficient `ic:"coefficient_intervals" json:"coefficient_intervals"` MaxNeuronsFundParticipationIcpE8s *uint64 `ic:"max_neurons_fund_participation_icp_e8s,omitempty" json:"max_neurons_fund_participation_icp_e8s,omitempty"` MinDirectParticipationThresholdIcpE8s *uint64 `ic:"min_direct_participation_threshold_icp_e8s,omitempty" json:"min_direct_participation_threshold_icp_e8s,omitempty"` IdealMatchedParticipationFunction *IdealMatchedParticipationFunction `ic:"ideal_matched_participation_function,omitempty" json:"ideal_matched_participation_function,omitempty"` }
type NewSaleTicketRequest ¶
type NewSaleTicketResponse ¶
type NewSaleTicketResponse struct {
Result *Result2 `ic:"result,omitempty" json:"result,omitempty"`
}
type Ok ¶
type Ok struct {
BlockHeight *uint64 `ic:"block_height,omitempty" json:"block_height,omitempty"`
}
type OpenRequest ¶
type OpenRequest struct { CfParticipants []CfParticipant `ic:"cf_participants" json:"cf_participants"` Params *Params `ic:"params,omitempty" json:"params,omitempty"` OpenSnsTokenSwapProposalId *uint64 `ic:"open_sns_token_swap_proposal_id,omitempty" json:"open_sns_token_swap_proposal_id,omitempty"` }
type Params ¶
type Params struct { MinParticipantIcpE8s uint64 `ic:"min_participant_icp_e8s" json:"min_participant_icp_e8s"` NeuronBasketConstructionParameters *NeuronBasketConstructionParameters `ic:"neuron_basket_construction_parameters,omitempty" json:"neuron_basket_construction_parameters,omitempty"` MaxIcpE8s uint64 `ic:"max_icp_e8s" json:"max_icp_e8s"` SwapDueTimestampSeconds uint64 `ic:"swap_due_timestamp_seconds" json:"swap_due_timestamp_seconds"` MinParticipants uint32 `ic:"min_participants" json:"min_participants"` SnsTokenE8s uint64 `ic:"sns_token_e8s" json:"sns_token_e8s"` SaleDelaySeconds *uint64 `ic:"sale_delay_seconds,omitempty" json:"sale_delay_seconds,omitempty"` MaxParticipantIcpE8s uint64 `ic:"max_participant_icp_e8s" json:"max_participant_icp_e8s"` MinDirectParticipationIcpE8s *uint64 `ic:"min_direct_participation_icp_e8s,omitempty" json:"min_direct_participation_icp_e8s,omitempty"` MinIcpE8s uint64 `ic:"min_icp_e8s" json:"min_icp_e8s"` MaxDirectParticipationIcpE8s *uint64 `ic:"max_direct_participation_icp_e8s,omitempty" json:"max_direct_participation_icp_e8s,omitempty"` }
type Participant ¶
type Participant struct { Participation *BuyerState `ic:"participation,omitempty" json:"participation,omitempty"` ParticipantId *principal.Principal `ic:"participant_id,omitempty" json:"participant_id,omitempty"` }
type Possibility ¶
type Possibility struct { Ok *SetDappControllersResponse `ic:"Ok,variant"` Err *CanisterCallError `ic:"Err,variant"` }
type Possibility1 ¶
type Possibility1 struct { Ok *Response `ic:"Ok,variant"` Err *CanisterCallError `ic:"Err,variant"` }
type Possibility2 ¶
type Possibility3 ¶
type Possibility3 struct { Ok *struct { } `ic:"Ok,variant"` Err *CanisterCallError `ic:"Err,variant"` }
type Response ¶
type Response struct {
GovernanceError *GovernanceError `ic:"governance_error,omitempty" json:"governance_error,omitempty"`
}
type SetDappControllersCallResult ¶
type SetDappControllersCallResult struct {
Possibility *Possibility `ic:"possibility,omitempty" json:"possibility,omitempty"`
}
type SetDappControllersResponse ¶
type SetDappControllersResponse struct {
FailedUpdates []FailedUpdate `ic:"failed_updates" json:"failed_updates"`
}
type SetModeCallResult ¶
type SetModeCallResult struct {
Possibility *Possibility3 `ic:"possibility,omitempty" json:"possibility,omitempty"`
}
type SettleCommunityFundParticipationResult ¶
type SettleCommunityFundParticipationResult struct {
Possibility *Possibility1 `ic:"possibility,omitempty" json:"possibility,omitempty"`
}
type SettleNeuronsFundParticipationResult ¶
type SettleNeuronsFundParticipationResult struct {
Possibility *Possibility2 `ic:"possibility,omitempty" json:"possibility,omitempty"`
}
type SnsNeuronRecipe ¶
type SnsNeuronRecipe struct { Sns *TransferableAmount `ic:"sns,omitempty" json:"sns,omitempty"` ClaimedStatus *int32 `ic:"claimed_status,omitempty" json:"claimed_status,omitempty"` NeuronAttributes *NeuronAttributes `ic:"neuron_attributes,omitempty" json:"neuron_attributes,omitempty"` Investor *Investor `ic:"investor,omitempty" json:"investor,omitempty"` }
type Swap ¶
type Swap struct { AutoFinalizeSwapResponse *FinalizeSwapResponse `ic:"auto_finalize_swap_response,omitempty" json:"auto_finalize_swap_response,omitempty"` NeuronRecipes []SnsNeuronRecipe `ic:"neuron_recipes" json:"neuron_recipes"` NextTicketId *uint64 `ic:"next_ticket_id,omitempty" json:"next_ticket_id,omitempty"` DecentralizationSaleOpenTimestampSeconds *uint64 `ic:"decentralization_sale_open_timestamp_seconds,omitempty" json:"decentralization_sale_open_timestamp_seconds,omitempty"` FinalizeSwapInProgress *bool `ic:"finalize_swap_in_progress,omitempty" json:"finalize_swap_in_progress,omitempty"` CfParticipants []CfParticipant `ic:"cf_participants" json:"cf_participants"` Init *Init `ic:"init,omitempty" json:"init,omitempty"` AlreadyTriedToAutoFinalize *bool `ic:"already_tried_to_auto_finalize,omitempty" json:"already_tried_to_auto_finalize,omitempty"` NeuronsFundParticipationIcpE8s *uint64 `ic:"neurons_fund_participation_icp_e8s,omitempty" json:"neurons_fund_participation_icp_e8s,omitempty"` PurgeOldTicketsLastCompletionTimestampNanoseconds *uint64 `` /* 143-byte string literal not displayed */ DirectParticipationIcpE8s *uint64 `ic:"direct_participation_icp_e8s,omitempty" json:"direct_participation_icp_e8s,omitempty"` Lifecycle int32 `ic:"lifecycle" json:"lifecycle"` PurgeOldTicketsNextPrincipal *[]byte `ic:"purge_old_tickets_next_principal,omitempty" json:"purge_old_tickets_next_principal,omitempty"` DecentralizationSwapTerminationTimestampSeconds *uint64 `` /* 135-byte string literal not displayed */ Buyers []struct { Field0 string `ic:"0" json:"0"` Field1 BuyerState `ic:"1" json:"1"` } `ic:"buyers" json:"buyers"` Params *Params `ic:"params,omitempty" json:"params,omitempty"` OpenSnsTokenSwapProposalId *uint64 `ic:"open_sns_token_swap_proposal_id,omitempty" json:"open_sns_token_swap_proposal_id,omitempty"` }
type SweepResult ¶
type Ticket ¶
type Ticket struct { CreationTime uint64 `ic:"creation_time" json:"creation_time"` TicketId uint64 `ic:"ticket_id" json:"ticket_id"` Account *Icrc1Account `ic:"account,omitempty" json:"account,omitempty"` AmountIcpE8s uint64 `ic:"amount_icp_e8s" json:"amount_icp_e8s"` }
type TransferableAmount ¶
type TransferableAmount struct { TransferFeePaidE8s *uint64 `ic:"transfer_fee_paid_e8s,omitempty" json:"transfer_fee_paid_e8s,omitempty"` TransferStartTimestampSeconds uint64 `ic:"transfer_start_timestamp_seconds" json:"transfer_start_timestamp_seconds"` AmountE8s uint64 `ic:"amount_e8s" json:"amount_e8s"` AmountTransferredE8s *uint64 `ic:"amount_transferred_e8s,omitempty" json:"amount_transferred_e8s,omitempty"` TransferSuccessTimestampSeconds uint64 `ic:"transfer_success_timestamp_seconds" json:"transfer_success_timestamp_seconds"` }