Docs/SDK
For launchpads
Add a fair-launch mode with one call.
A launchpad adds sealed launches, locked liquidity and private trading next to what it already runs.
#Create a launch
ts
const { auction, token } = await proven.createLaunch({
name: "Shade", symbol: "SHADE",
saleSupply: 1_000_000n * 10n ** 18n,
minPrice: 10n ** 12n, tickSize: 10n ** 12n, numTicks: 100,
commitEnd, revealEnd,
lpBps: 5000, lpLockUntil: "burn",
});| Parameter | Meaning |
|---|---|
| saleSupply | Tokens offered in the sale. |
| minPrice, tickSize, numTicks | The price grid: start price, step and number of steps. |
| commitEnd, revealEnd | End of bidding and end of the reveal window. |
| lpBps | Share of the raise that seeds the pool, in basis points (5000 = 50%). |
| lpLockUntil | "burn" to burn the position, otherwise a lock time. |
#From contracts
Call ProvenFactory.createLaunch from your own contracts with the project as creator.
#Read state
ts
const info = await proven.getAuction(auction);
const curve = await proven.demandCurve(auction);
const mine = await proven.bidsOf(auction, bidder);#Settlement and payout
ts
await proven.settle(auction);
await proven.payOut(auction);payOut sends the creator's proceeds and the launch fee to the treasury.