Skip to main content
ABI support is deployment-specific. Resolve hookAbi and feeWithdrawal through Capabilities before selecting write functions.

Structs

On an ERC-20-quoted hook, historical names such as ethAmount and MIN_BUY_ETH still represent quote-asset units. Use the deployment’s quote asset and decimals.

Native creation and curve writes

Referral variants of buy and sell append string referralCode after captcha.
Plain createLaunch is the portable partner default. Referral selector support differs across historical deployments. Do not call createLaunchWithReferral on the deprecated Ink hook.

xStocks creation and buy

Both pull the wrapper quote asset with transferFrom. Approve the exact per-asset hook first. Send no native value.

Reads

PoolKey contains currency0, currency1, fee, tickSpacing, and hooks. The corrected native hooks and current xStocks hooks expose this selector. The deprecated Ink deployment marked hookAbi: "ink-legacy" does not; use its complete indexed immutable pool fields instead.

Fee withdrawals

Choose from feeWithdrawal in the deployment manifest.

Events

TradeType is 0 for buy and 1 for sell.

Canonical topics

Use the ABI object in the Launchpad Quickstart for a copyable createLaunch and receipt decoder.