[ { "type": "constructor", "inputs": [ { "name": "p", "type": "tuple", "internalType": "struct LunyaLaunchFactory.Params", "components": [ { "name": "nativeQuoteToken", "type": "address", "internalType": "address" }, { "name": "nativeQuoteDecimals", "type": "uint8", "internalType": "uint8" }, { "name": "positionManager", "type": "address", "internalType": "contract ILunyaPositionManager" }, { "name": "liquidityHelper", "type": "address", "internalType": "contract ILunyaLiquidityHelper" }, { "name": "owner", "type": "address", "internalType": "address" }, { "name": "feeRecipient", "type": "address", "internalType": "address" }, { "name": "lister", "type": "address", "internalType": "address" }, { "name": "implementation", "type": "address", "internalType": "address" }, { "name": "launchType", "type": "uint8", "internalType": "LaunchType" }, { "name": "implementationCodeHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "typeParams", "type": "bytes", "internalType": "bytes" }, { "name": "creationFee", "type": "uint128", "internalType": "uint128" }, { "name": "graduationReward", "type": "uint128", "internalType": "uint128" }, { "name": "curveFeeBps", "type": "uint16", "internalType": "uint16" }, { "name": "curveFeeProtocolBps", "type": "uint16", "internalType": "uint16" }, { "name": "graduationFeeBps", "type": "uint16", "internalType": "uint16" }, { "name": "poolFeeProtocolBps", "type": "uint16", "internalType": "uint16" }, { "name": "graduationPoolType", "type": "uint8", "internalType": "uint8" } ] } ], "stateMutability": "nonpayable" }, { "type": "receive", "stateMutability": "payable" }, { "type": "function", "name": "MAX_GRADUATION_FEE_BPS", "inputs": [], "outputs": [ { "name": "", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "MIN_QUOTE_DECIMALS", "inputs": [], "outputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "stateMutability": "view" }, { "type": "function", "name": "acceptOwnership", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "approveQuoteToken", "inputs": [ { "name": "quote", "type": "address", "internalType": "address" }, { "name": "expectedDecimals", "type": "uint8", "internalType": "uint8" }, { "name": "creationFee_", "type": "uint128", "internalType": "uint128" }, { "name": "graduationReward_", "type": "uint128", "internalType": "uint128" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "createLaunch", "inputs": [ { "name": "p", "type": "tuple", "internalType": "struct ILunyaLaunchFactory.CreateParams", "components": [ { "name": "launchType", "type": "uint8", "internalType": "LaunchType" }, { "name": "quoteToken", "type": "address", "internalType": "address" }, { "name": "name", "type": "string", "internalType": "string" }, { "name": "symbol", "type": "string", "internalType": "string" }, { "name": "contractURI", "type": "string", "internalType": "string" }, { "name": "creatorFeeRecipient", "type": "address", "internalType": "address" }, { "name": "initialBuyAmount", "type": "uint256", "internalType": "uint256" }, { "name": "minTokensOut", "type": "uint256", "internalType": "uint256" }, { "name": "launchParams", "type": "bytes", "internalType": "bytes" }, { "name": "salt", "type": "bytes32", "internalType": "bytes32" }, { "name": "expectedTermsHash", "type": "bytes32", "internalType": "bytes32" } ] } ], "outputs": [ { "name": "launch", "type": "address", "internalType": "address" }, { "name": "token", "type": "address", "internalType": "address" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "createLaunchWithNative", "inputs": [ { "name": "p", "type": "tuple", "internalType": "struct ILunyaLaunchFactory.CreateParams", "components": [ { "name": "launchType", "type": "uint8", "internalType": "LaunchType" }, { "name": "quoteToken", "type": "address", "internalType": "address" }, { "name": "name", "type": "string", "internalType": "string" }, { "name": "symbol", "type": "string", "internalType": "string" }, { "name": "contractURI", "type": "string", "internalType": "string" }, { "name": "creatorFeeRecipient", "type": "address", "internalType": "address" }, { "name": "initialBuyAmount", "type": "uint256", "internalType": "uint256" }, { "name": "minTokensOut", "type": "uint256", "internalType": "uint256" }, { "name": "launchParams", "type": "bytes", "internalType": "bytes" }, { "name": "salt", "type": "bytes32", "internalType": "bytes32" }, { "name": "expectedTermsHash", "type": "bytes32", "internalType": "bytes32" } ] } ], "outputs": [ { "name": "launch", "type": "address", "internalType": "address" }, { "name": "token", "type": "address", "internalType": "address" } ], "stateMutability": "payable" }, { "type": "function", "name": "creationPaused", "inputs": [], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "defaultCurveFeeBps", "inputs": [], "outputs": [ { "name": "", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "defaultCurveFeeProtocolBps", "inputs": [], "outputs": [ { "name": "", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "defaultGraduationFeeBps", "inputs": [], "outputs": [ { "name": "", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "defaultGraduationPoolType", "inputs": [], "outputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "stateMutability": "view" }, { "type": "function", "name": "defaultPoolFeeProtocolBps", "inputs": [], "outputs": [ { "name": "", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "depositFees", "inputs": [ { "name": "quoteToken", "type": "address", "internalType": "address" }, { "name": "amount", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "feeRecipient", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "feesAccrued", "inputs": [ { "name": "quoteToken", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "implementationOf", "inputs": [ { "name": "", "type": "uint8", "internalType": "LaunchType" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "isLaunch", "inputs": [ { "name": "launch", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "launchAt", "inputs": [ { "name": "index", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "launchCount", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "launchOf", "inputs": [ { "name": "token", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "launch", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "liquidityHelper", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "contract ILunyaLiquidityHelper" } ], "stateMutability": "view" }, { "type": "function", "name": "lister", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "locker", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "contract ILunyaLiquidityLocker" } ], "stateMutability": "view" }, { "type": "function", "name": "nativeQuoteToken", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "openPool", "inputs": [ { "name": "poolType", "type": "uint8", "internalType": "uint8" }, { "name": "sqrtPriceX96", "type": "uint160", "internalType": "uint160" } ], "outputs": [ { "name": "pool", "type": "address", "internalType": "address" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "pendingOwner", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "poolFactory", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "contract ILunyaPoolFactory" } ], "stateMutability": "view" }, { "type": "function", "name": "positionManager", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "contract ILunyaPositionManager" } ], "stateMutability": "view" }, { "type": "function", "name": "predictLaunch", "inputs": [ { "name": "launchType", "type": "uint8", "internalType": "LaunchType" }, { "name": "quoteToken", "type": "address", "internalType": "address" }, { "name": "creator", "type": "address", "internalType": "address" }, { "name": "creatorFeeRecipient", "type": "address", "internalType": "address" }, { "name": "launchParams", "type": "bytes", "internalType": "bytes" }, { "name": "salt", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "launch", "type": "address", "internalType": "address" }, { "name": "token", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "quoteConfig", "inputs": [ { "name": "quoteToken", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "approved", "type": "bool", "internalType": "bool" }, { "name": "wrapsNative", "type": "bool", "internalType": "bool" }, { "name": "nativeDivisor", "type": "uint64", "internalType": "uint64" }, { "name": "creationFee", "type": "uint128", "internalType": "uint128" }, { "name": "graduationReward", "type": "uint128", "internalType": "uint128" } ], "stateMutability": "view" }, { "type": "function", "name": "renounceOwnership", "inputs": [], "outputs": [], "stateMutability": "pure" }, { "type": "function", "name": "retired", "inputs": [ { "name": "", "type": "uint8", "internalType": "LaunchType" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "revokeQuoteToken", "inputs": [ { "name": "quote", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setCreationPaused", "inputs": [ { "name": "paused", "type": "bool", "internalType": "bool" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setFeeRecipient", "inputs": [ { "name": "feeRecipient_", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setImplementation", "inputs": [ { "name": "launchType", "type": "uint8", "internalType": "LaunchType" }, { "name": "implementation", "type": "address", "internalType": "address" }, { "name": "expectedCodeHash", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setLaunchDefaults", "inputs": [ { "name": "curveFeeBps", "type": "uint16", "internalType": "uint16" }, { "name": "curveFeeProtocolBps", "type": "uint16", "internalType": "uint16" }, { "name": "graduationFeeBps", "type": "uint16", "internalType": "uint16" }, { "name": "poolFeeProtocolBps", "type": "uint16", "internalType": "uint16" }, { "name": "graduationPoolType", "type": "uint8", "internalType": "uint8" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setLister", "inputs": [ { "name": "lister_", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setRetired", "inputs": [ { "name": "launchType", "type": "uint8", "internalType": "LaunchType" }, { "name": "retired_", "type": "bool", "internalType": "bool" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setTypeParams", "inputs": [ { "name": "launchType", "type": "uint8", "internalType": "LaunchType" }, { "name": "quote", "type": "address", "internalType": "address" }, { "name": "params", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "sweepFees", "inputs": [ { "name": "quoteToken", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "amount", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "termsHash", "inputs": [ { "name": "launchType", "type": "uint8", "internalType": "LaunchType" }, { "name": "quote", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "transferOwnership", "inputs": [ { "name": "newOwner", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "typeParams", "inputs": [ { "name": "", "type": "uint8", "internalType": "LaunchType" }, { "name": "quoteToken", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bytes", "internalType": "bytes" } ], "stateMutability": "view" }, { "type": "event", "name": "CreationPausedChanged", "inputs": [ { "name": "paused", "type": "bool", "indexed": false, "internalType": "bool" } ], "anonymous": false }, { "type": "event", "name": "FeeRecipientUpdated", "inputs": [ { "name": "feeRecipient", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "FeesSwept", "inputs": [ { "name": "quoteToken", "type": "address", "indexed": true, "internalType": "address" }, { "name": "to", "type": "address", "indexed": true, "internalType": "address" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "ImplementationRegistered", "inputs": [ { "name": "launchType", "type": "uint8", "indexed": true, "internalType": "LaunchType" }, { "name": "implementation", "type": "address", "indexed": false, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "LaunchCreated", "inputs": [ { "name": "launch", "type": "address", "indexed": true, "internalType": "address" }, { "name": "token", "type": "address", "indexed": true, "internalType": "address" }, { "name": "creator", "type": "address", "indexed": true, "internalType": "address" }, { "name": "launchType", "type": "uint8", "indexed": false, "internalType": "LaunchType" }, { "name": "quoteToken", "type": "address", "indexed": false, "internalType": "address" }, { "name": "name", "type": "string", "indexed": false, "internalType": "string" }, { "name": "symbol", "type": "string", "indexed": false, "internalType": "string" }, { "name": "contractURI", "type": "string", "indexed": false, "internalType": "string" }, { "name": "launchParams", "type": "bytes", "indexed": false, "internalType": "bytes" } ], "anonymous": false }, { "type": "event", "name": "LaunchDefaultsUpdated", "inputs": [ { "name": "curveFeeBps", "type": "uint16", "indexed": false, "internalType": "uint16" }, { "name": "curveFeeProtocolBps", "type": "uint16", "indexed": false, "internalType": "uint16" }, { "name": "graduationFeeBps", "type": "uint16", "indexed": false, "internalType": "uint16" }, { "name": "poolFeeProtocolBps", "type": "uint16", "indexed": false, "internalType": "uint16" }, { "name": "graduationPoolType", "type": "uint8", "indexed": false, "internalType": "uint8" } ], "anonymous": false }, { "type": "event", "name": "LaunchTypeRetiredChanged", "inputs": [ { "name": "launchType", "type": "uint8", "indexed": true, "internalType": "LaunchType" }, { "name": "retired", "type": "bool", "indexed": false, "internalType": "bool" } ], "anonymous": false }, { "type": "event", "name": "ListerUpdated", "inputs": [ { "name": "lister", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "OwnershipTransferStarted", "inputs": [ { "name": "previousOwner", "type": "address", "indexed": true, "internalType": "address" }, { "name": "newOwner", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "OwnershipTransferred", "inputs": [ { "name": "previousOwner", "type": "address", "indexed": true, "internalType": "address" }, { "name": "newOwner", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "QuoteTokenApproved", "inputs": [ { "name": "quoteToken", "type": "address", "indexed": true, "internalType": "address" }, { "name": "wrapsNative", "type": "bool", "indexed": false, "internalType": "bool" }, { "name": "nativeDivisor", "type": "uint64", "indexed": false, "internalType": "uint64" }, { "name": "creationFee", "type": "uint128", "indexed": false, "internalType": "uint128" }, { "name": "graduationReward", "type": "uint128", "indexed": false, "internalType": "uint128" } ], "anonymous": false }, { "type": "event", "name": "QuoteTokenRevoked", "inputs": [ { "name": "quoteToken", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "TypeParamsSet", "inputs": [ { "name": "launchType", "type": "uint8", "indexed": true, "internalType": "LaunchType" }, { "name": "quoteToken", "type": "address", "indexed": true, "internalType": "address" }, { "name": "params", "type": "bytes", "indexed": false, "internalType": "bytes" } ], "anonymous": false }, { "type": "error", "name": "CloneArgumentsTooLong", "inputs": [] }, { "type": "error", "name": "Create2EmptyBytecode", "inputs": [] }, { "type": "error", "name": "CreationIsPaused", "inputs": [] }, { "type": "error", "name": "EmptyTypeParams", "inputs": [] }, { "type": "error", "name": "FailedDeployment", "inputs": [] }, { "type": "error", "name": "FeeTooHigh", "inputs": [] }, { "type": "error", "name": "ImplementationAlreadySet", "inputs": [] }, { "type": "error", "name": "ImplementationMismatch", "inputs": [ { "name": "expected", "type": "bytes32", "internalType": "bytes32" }, { "name": "actual", "type": "bytes32", "internalType": "bytes32" } ] }, { "type": "error", "name": "InsufficientBalance", "inputs": [ { "name": "balance", "type": "uint256", "internalType": "uint256" }, { "name": "needed", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "InsufficientCreationFee", "inputs": [] }, { "type": "error", "name": "LaunchTypeRetired", "inputs": [] }, { "type": "error", "name": "ListedAtAnotherPrice", "inputs": [] }, { "type": "error", "name": "ListedOnAnotherCurve", "inputs": [] }, { "type": "error", "name": "MinimumWithoutOpeningBuy", "inputs": [] }, { "type": "error", "name": "NativeNotAccepted", "inputs": [] }, { "type": "error", "name": "NativeTransferFailed", "inputs": [] }, { "type": "error", "name": "NotAFeeRecipient", "inputs": [] }, { "type": "error", "name": "NotALaunch", "inputs": [] }, { "type": "error", "name": "OwnableInvalidOwner", "inputs": [ { "name": "owner", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "OwnableUnauthorizedAccount", "inputs": [ { "name": "account", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "OwnershipCannotBeRenounced", "inputs": [] }, { "type": "error", "name": "PairNotOpen", "inputs": [] }, { "type": "error", "name": "PoolAlreadyExists", "inputs": [] }, { "type": "error", "name": "PoolAlreadyOpened", "inputs": [] }, { "type": "error", "name": "PoolTypeNotUsable", "inputs": [] }, { "type": "error", "name": "QuoteDecimalsMismatch", "inputs": [ { "name": "expected", "type": "uint8", "internalType": "uint8" }, { "name": "actual", "type": "uint8", "internalType": "uint8" } ] }, { "type": "error", "name": "QuoteDecimalsUnsupported", "inputs": [] }, { "type": "error", "name": "ReentrancyGuardReentrantCall", "inputs": [] }, { "type": "error", "name": "SafeERC20FailedOperation", "inputs": [ { "name": "token", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "TermsChanged", "inputs": [ { "name": "actual", "type": "bytes32", "internalType": "bytes32" } ] }, { "type": "error", "name": "TokenAboveQuote", "inputs": [] }, { "type": "error", "name": "UnknownLaunchType", "inputs": [] }, { "type": "error", "name": "UnsupportedQuoteToken", "inputs": [] }, { "type": "error", "name": "WrappedNativeMismatch", "inputs": [] }, { "type": "error", "name": "WrapperDecimalsMismatch", "inputs": [] }, { "type": "error", "name": "ZeroAddress", "inputs": [] } ]