Skip to main content
The presale program emits Anchor events through event CPI. Use this page when building indexers, analytics pipelines, charting systems, or low-level clients that need to map transactions back to Presale Vault activity.

Initialization Events

EventFieldsEmitted by
EvtFixedPricePresaleArgsCreatepresale, q_priceinitialize_fixed_price_presale_args
EvtFixedPricePresaleArgsClosepresale, owner, fixed_price_presale_argsclose_fixed_price_presale_args
EvtPresaleVaultCreatebase_mint, quote_mint, presale_registries, lock_duration, vest_duration, whitelist_mode, presale_mode, presale_start_time, presale_end_time, presale_maximum_cap, presale_minimum_capinitialize_presale

Escrow And Buyer Events

EventFieldsEmitted by
EvtEscrowCreatepresale, owner, whitelist_mode, total_escrow_countcreate_permissionless_escrow, create_permissioned_escrow_with_creator, create_permissioned_escrow_with_merkle_proof
EvtDepositpresale, escrow, deposit_amount, escrow_total_deposit_amount, presale_total_deposit_amount, owner, deposit_feedeposit
EvtWithdrawpresale, escrow, withdraw_amount, escrow_total_deposit_amount, presale_total_deposit_amount, ownerwithdraw
EvtClaimpresale, escrow, claim_amount, escrow_total_claim_amount, presale_total_claim_amount, ownerclaim
EvtWithdrawRemainingQuotepresale, escrow, owner, amount_refunded, presale_total_refunded_quote_tokenwithdraw_remaining_quote
EvtEscrowRefreshpresale, escrow, owner, current_timestamp, pending_claim_tokenrefresh_escrow
EvtEscrowClosepresale, escrow, owner, rent_receiverclose_escrow

Permissioning Events

EventFieldsEmitted by
EvtMerkleRootConfigCreateowner, config, presale, version, rootcreate_merkle_root_config
EvtCloseMerkleRootConfigpresale, merkle_root_config, ownerclose_merkle_root_config
EvtOperatorCreatecreator, operator, operator_ownercreate_operator
EvtPermissionedServerMetadataCreatepresale, permissioned_server_metadata, server_urlcreate_permissioned_server_metadata
EvtPermissionedServerMetadataClosepresale, permissioned_server_metadataclose_permissioned_server_metadata
revoke_operator closes the operator account but does not emit a custom event in the current source.

Creator Events

EventFieldsEmitted by
EvtCreatorWithdrawpresale, amount, creator, presale_progresscreator_withdraw
EvtCreatorCollectFeepresale, owner, total_collected_feecreator_collect_fee
EvtPerformUnsoldBaseTokenActionpresale, total_token_unsold, unsold_base_token_actionperform_unsold_base_token_action

Field Notes

FieldMeaning
presale_modeRaw PresaleMode value: 0 fixed price, 1 prorata, 2 FCFS.
whitelist_modeRaw WhitelistMode value: 0 permissionless, 1 Merkle proof, 2 authority.
presale_progressRaw PresaleProgress value at creator withdrawal: 2 completed or 3 failed.
unsold_base_token_actionRaw UnsoldTokenAction value: 0 refund, 1 burn.
deposit_amountFee-excluded quote amount that was accepted after mode-specific capping or fixed-price rounding.
deposit_feeDeposit fee charged on top of the accepted deposit amount.
claim_amountBase amount after Token 2022 transfer-fee exclusion.
amount_refundedQuote amount after Token 2022 transfer-fee exclusion.
q_priceFixed-price Q64 value used by the program.