CallingDocumentation Index
Fetch the complete documentation index at: https://actfudoc.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
createToken on the LaunchpadFactory deploys two contracts at once: a LaunchToken ERC-20 and a TokenLauncher that handles Phase 1 mining and Phase 2 trading. The factory registers both addresses in its on-chain token list and transfers mint authority to the launcher. You pay a creation fee (denominated in USDC) as msg.value to prevent spam deployments.
Function signature
LaunchpadFactory at 0x6A3Cf53F0df2A418b6731528aD3CFC1B71dc49D4 on Arc Testnet (Chain ID 5042002)
Required value
You must send at leastcreationFee() USDC with the call. Read the current fee before submitting:
msg.value is forwarded to the protocol feeRecipient. If you send more than the minimum the excess is also forwarded — there is no refund mechanism in the factory.
Parameters
Human-readable token name, e.g.
"DogeFun". Must be non-empty and within the contract’s length limit.Ticker symbol, e.g.
"DOGEFUN". Must be non-empty and within the contract’s length limit.URL or emoji used as the token’s avatar in the UI, e.g.
"https://example.com/doge.png" or "🐶". Can be an empty string — the contract does not validate it.Total token supply cap in token units with 18 decimals. For example, one million tokens is
1_000_000 * 1e18. Must be greater than zero.Tokens minted to the caller on each successful
mine() call, in units with 18 decimals. Must be greater than zero and less than or equal to maxSupply.Per-wallet cooldown in seconds between consecutive
mine() calls. Set to 60 for a one-minute cooldown. Must not exceed the contract’s maximum cooldown limit.Maximum tokens a single wallet may mine within any rolling 24-hour window, in units with 18 decimals. Must be greater than or equal to
mineAmount, meaning each wallet can mine at least once per day.USDC (in wei) the caller must send with each
mine() call. These fees accumulate in the TokenLauncher and seed the AMM liquidity pool on graduation. Must be greater than zero.Return values
Address of the newly deployed
LaunchToken ERC-20 contract.Address of the newly deployed
TokenLauncher contract. This is the only address that can mint tokenAddr tokens.Validation rules
The factory enforces the following checks and reverts with the shown messages if any fail:| Condition | Revert message |
|---|---|
bytes(name).length within limit | 'Name too long' |
bytes(symbol).length within limit | 'Symbol too long' |
maxSupply > 0 | 'Supply must be positive' |
mineAmount > 0 && mineAmount <= maxSupply | 'Invalid mine amount' |
cooldown within the maximum allowed duration | 'Cooldown too long' |
feePerMine > 0 | 'Fee must be positive' |
TokenCreated event
createToken call. Index on creator to find all tokens launched by a particular address.
mineAmount, cooldown, and dailyMax are not included in the event. Read them from the TokenRecord returned by getToken(index) or directly from the TokenLauncher contract’s public state variables.