Create a sale
Reviewed against contracts 86ee8cf on 6 November 2026. The generated reference contains complete signatures. The canonical address table binds this source to the 6 November deployment.
Creation is one PTB. Its VenueTicket and initializer have no abilities, so every step must complete atomically.
Before you start and creation order
Section titled “Before you start and creation order”- Publish the generated
presale_coin_templatetoken package. Its initializer callssale_token::new, sealing the fresh zero-supply TreasuryCap as product-boundSealedTreasuryCap<Meme>. A standalone coin-template token cannot start a presale. - Finalize registration through Sui Coin Registry, sharing the confirmed Unregulated
Currency<Meme>. Load the canonical presale version, CreationPolicy, FeePolicy, PresaleRegistry, migrators version and VenueConfig. Quote and venue must be admitted. - In one PTB, prepare the venue. Cetus borrows the sealed cap mutably and consumes
creation_policy::venue_admissionfor that venue; Bluefin borrows the sealed cap immutably. Both returnVenueTicket. blast_presale::new(sealed_treasury_cap, presale_version, venue_ticket, creation_policy, fee_policy)opens the seal and returns the initializer. Set supply, allocations, raise, windows, eligibility and fee split; optional setters add vesting, no-cap/hard-cap phases and a partner.finalize(initializer, presale_version, presale_registry, currency)returns(Presale, PresaleCap). Callshare(presale, presale_version, commitment_starts_at_ms, clock)and transfer the cap to its owner. Every initializer step must complete atomically.
Values and settings
Section titled “Values and settings”Build blast_core::bps::Bps with bps::new. Payout recipients and optional vesting use blast_core::payout::{recipient, vesting_terms}. Presale recipient_share pairs a core recipient with its BPS. Build the common LP split with blast_core::fee_split::{route, new} and address, owner, auto-LP, holder-rewards or burn destinations.
| Setting | Validation |
|---|---|
| Supply | Positive atoms; buyers + pool + Blast + up to 64 distinct token recipients = 10,000 BPS. Required payouts must remain positive after rounding. |
| Raise | Positive atoms; up to 64 recipients plus Blast leave positive Quote for the pool. |
| Windows | Positive commitment duration; liquidity window at least 7 days. All deadlines fit u64. |
| Open eligibility | 1–65,536 participants; 0 < minimum ≤ wallet cap; minimum × participant capacity reaches the target. |
| Allowlist | 32-byte root, 1–65,536 leaves; per-wallet caps in proofs. |
| No-cap phase | Starts before the window ends. An anyone-phase admits at least the original capacity. Under an allowlist, only added slots count toward minimum × capacity. |
| Hard cap | Starts before the window ends; limits accepted Quote to the target without lifting wallet caps. Optional early settlement when filled. |
| Fee split | Up to 20 positive, distinct routes summing to 10,000 BPS. No special destination appears twice. |
| Vesting | Positive period and count; total duration ≤ 2^63 ms; cliff no later than the full duration. Starts at payout. |
A valid BPS sum must also leave seed amounts within the supported atomic price range. The full reference gives exact setter signatures; use the published SDK 0.3.0 bindings for this deployment.