/** * GENERATED by scripts/extract-abis.mjs from contracts/out (Foundry artifacts). * Do not edit by hand: run `npm run abis` and commit the result. * * Minimal ABIs: the reads and public user actions an integrator needs, their * events, and every custom error (so a revert decodes to a name). Owner-only * setters are deliberately absent. */ export const peddlesQuestEscrowAbi = [ { "type": "function", "name": "questOf", "inputs": [ { "name": "questId", "type": "bytes32" } ], "outputs": [ { "name": "", "type": "tuple", "components": [ { "name": "creator", "type": "address" }, { "name": "rewardToken", "type": "address" }, { "name": "funded", "type": "uint256" }, { "name": "claimed", "type": "uint256" }, { "name": "claimsOpenAt", "type": "uint64" }, { "name": "claimDeadline", "type": "uint64" }, { "name": "merkleRoot", "type": "bytes32" }, { "name": "finalised", "type": "bool" }, { "name": "swept", "type": "bool" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "hasClaimed", "inputs": [ { "name": "", "type": "bytes32" }, { "name": "", "type": "address" } ], "outputs": [ { "name": "", "type": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "verifyClaim", "inputs": [ { "name": "questId", "type": "bytes32" }, { "name": "account", "type": "address" }, { "name": "amount", "type": "uint256" }, { "name": "proof", "type": "bytes32[]" } ], "outputs": [ { "name": "", "type": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "claim", "inputs": [ { "name": "questId", "type": "bytes32" }, { "name": "account", "type": "address" }, { "name": "amount", "type": "uint256" }, { "name": "proof", "type": "bytes32[]" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "outstanding", "inputs": [ { "name": "questId", "type": "bytes32" } ], "outputs": [ { "name": "", "type": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "withdrawable", "inputs": [ { "name": "", "type": "address" }, { "name": "", "type": "address" } ], "outputs": [ { "name": "", "type": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "withdraw", "inputs": [ { "name": "asset", "type": "address" } ], "outputs": [ { "name": "amount", "type": "uint256" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "sweepExpired", "inputs": [ { "name": "questId", "type": "bytes32" } ], "outputs": [ { "name": "toCreator", "type": "uint256" }, { "name": "toTreasury", "type": "uint256" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "createQuest", "inputs": [ { "name": "questId", "type": "bytes32" }, { "name": "rewardToken", "type": "address" }, { "name": "grossAmount", "type": "uint256" }, { "name": "claimDeadline", "type": "uint64" } ], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "quoteDepositFee", "inputs": [ { "name": "grossAmount", "type": "uint256" } ], "outputs": [ { "name": "fee", "type": "uint256" }, { "name": "funded", "type": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "depositFeeBps", "inputs": [], "outputs": [ { "name": "", "type": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "creationFee", "inputs": [], "outputs": [ { "name": "", "type": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "claimDelay", "inputs": [], "outputs": [ { "name": "", "type": "uint64" } ], "stateMutability": "view" }, { "type": "function", "name": "unclaimedTreasuryBps", "inputs": [], "outputs": [ { "name": "", "type": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "isRewardAsset", "inputs": [ { "name": "", "type": "address" } ], "outputs": [ { "name": "", "type": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "depositCapFor", "inputs": [ { "name": "asset", "type": "address" } ], "outputs": [ { "name": "", "type": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "maxQuestDeposit", "inputs": [], "outputs": [ { "name": "", "type": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "entryPaused", "inputs": [], "outputs": [ { "name": "", "type": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "feeRouter", "inputs": [], "outputs": [ { "name": "", "type": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [ { "name": "", "type": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "isOperator", "inputs": [ { "name": "", "type": "address" } ], "outputs": [ { "name": "", "type": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "MAX_CREATION_FEE", "inputs": [], "outputs": [ { "name": "", "type": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "MAX_DEPOSIT_FEE_BPS", "inputs": [], "outputs": [ { "name": "", "type": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "MAX_UNCLAIMED_TREASURY_BPS", "inputs": [], "outputs": [ { "name": "", "type": "uint16" } ], "stateMutability": "view" }, { "type": "event", "name": "QuestCreated", "inputs": [ { "name": "questId", "type": "bytes32", "indexed": true }, { "name": "creator", "type": "address", "indexed": true }, { "name": "rewardToken", "type": "address", "indexed": true }, { "name": "gross", "type": "uint256", "indexed": false }, { "name": "funded", "type": "uint256", "indexed": false }, { "name": "fee", "type": "uint256", "indexed": false }, { "name": "claimDeadline", "type": "uint64", "indexed": false } ], "anonymous": false }, { "type": "event", "name": "QuestFinalised", "inputs": [ { "name": "questId", "type": "bytes32", "indexed": true }, { "name": "merkleRoot", "type": "bytes32", "indexed": false }, { "name": "claimsOpenAt", "type": "uint64", "indexed": false } ], "anonymous": false }, { "type": "event", "name": "RewardClaimed", "inputs": [ { "name": "questId", "type": "bytes32", "indexed": true }, { "name": "account", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false } ], "anonymous": false }, { "type": "event", "name": "QuestSwept", "inputs": [ { "name": "questId", "type": "bytes32", "indexed": true }, { "name": "toCreator", "type": "uint256", "indexed": false }, { "name": "toTreasury", "type": "uint256", "indexed": false } ], "anonymous": false }, { "type": "event", "name": "Credited", "inputs": [ { "name": "account", "type": "address", "indexed": true }, { "name": "asset", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }, { "name": "balance", "type": "uint256", "indexed": false } ], "anonymous": false }, { "type": "event", "name": "Withdrawn", "inputs": [ { "name": "account", "type": "address", "indexed": true }, { "name": "asset", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false } ], "anonymous": false }, { "type": "event", "name": "ClaimDeadlineExtended", "inputs": [ { "name": "questId", "type": "bytes32", "indexed": true }, { "name": "previousDeadline", "type": "uint64", "indexed": false }, { "name": "newDeadline", "type": "uint64", "indexed": false } ], "anonymous": false }, { "type": "error", "name": "AlreadyClaimed", "inputs": [] }, { "type": "error", "name": "AlreadyFinalised", "inputs": [] }, { "type": "error", "name": "AlreadySwept", "inputs": [] }, { "type": "error", "name": "AssetCapRequired", "inputs": [] }, { "type": "error", "name": "ClaimDelayTooLong", "inputs": [] }, { "type": "error", "name": "ClaimWindowClosed", "inputs": [] }, { "type": "error", "name": "ClaimWindowNotOpenYet", "inputs": [] }, { "type": "error", "name": "ClaimWindowOpen", "inputs": [] }, { "type": "error", "name": "ClaimWindowTooShort", "inputs": [] }, { "type": "error", "name": "DepositCapExceeded", "inputs": [] }, { "type": "error", "name": "DepositCapTooHigh", "inputs": [] }, { "type": "error", "name": "EntryPaused", "inputs": [] }, { "type": "error", "name": "ExceedsFunded", "inputs": [] }, { "type": "error", "name": "FeeTooHigh", "inputs": [] }, { "type": "error", "name": "InvalidProof", "inputs": [] }, { "type": "error", "name": "Locked", "inputs": [] }, { "type": "error", "name": "NativeValueMismatch", "inputs": [] }, { "type": "error", "name": "NotFinalised", "inputs": [] }, { "type": "error", "name": "NotOperator", "inputs": [] }, { "type": "error", "name": "NotOwner", "inputs": [] }, { "type": "error", "name": "NotPendingOwner", "inputs": [] }, { "type": "error", "name": "NothingPending", "inputs": [] }, { "type": "error", "name": "NothingToSweep", "inputs": [] }, { "type": "error", "name": "NothingWithdrawable", "inputs": [] }, { "type": "error", "name": "QuestExists", "inputs": [] }, { "type": "error", "name": "RewardAssetNotAllowed", "inputs": [] }, { "type": "error", "name": "TransferFailed", "inputs": [] }, { "type": "error", "name": "UnknownQuest", "inputs": [] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }, { "type": "error", "name": "ZeroAmount", "inputs": [] } ] as const; export const peddlesPromotionMarketAbi = [ { "type": "function", "name": "slotOf", "inputs": [ { "name": "subject", "type": "bytes32" }, { "name": "placement", "type": "uint8" } ], "outputs": [ { "name": "", "type": "tuple", "components": [ { "name": "buyer", "type": "address" }, { "name": "startsAt", "type": "uint64" }, { "name": "endsAt", "type": "uint64" }, { "name": "paid", "type": "uint256" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "isActive", "inputs": [ { "name": "subject", "type": "bytes32" }, { "name": "placement", "type": "uint8" } ], "outputs": [ { "name": "", "type": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "quote", "inputs": [ { "name": "placement", "type": "uint8" }, { "name": "daysCount", "type": "uint64" } ], "outputs": [ { "name": "", "type": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "pricePerDay", "inputs": [ { "name": "", "type": "uint8" } ], "outputs": [ { "name": "", "type": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "buyPlacement", "inputs": [ { "name": "subject", "type": "bytes32" }, { "name": "placement", "type": "uint8" }, { "name": "daysCount", "type": "uint64" } ], "outputs": [ { "name": "startsAt", "type": "uint64" }, { "name": "endsAt", "type": "uint64" } ], "stateMutability": "payable" }, { "type": "function", "name": "entryPaused", "inputs": [], "outputs": [ { "name": "", "type": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "MAX_DAYS", "inputs": [], "outputs": [ { "name": "", "type": "uint64" } ], "stateMutability": "view" }, { "type": "function", "name": "MAX_PRICE_PER_DAY", "inputs": [], "outputs": [ { "name": "", "type": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [ { "name": "", "type": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "feeRouter", "inputs": [], "outputs": [ { "name": "", "type": "address" } ], "stateMutability": "view" }, { "type": "event", "name": "PlacementPurchased", "inputs": [ { "name": "subject", "type": "bytes32", "indexed": true }, { "name": "placement", "type": "uint8", "indexed": true }, { "name": "buyer", "type": "address", "indexed": true }, { "name": "startsAt", "type": "uint64", "indexed": false }, { "name": "endsAt", "type": "uint64", "indexed": false }, { "name": "paid", "type": "uint256", "indexed": false } ], "anonymous": false }, { "type": "error", "name": "EntryPaused", "inputs": [] }, { "type": "error", "name": "InsufficientPayment", "inputs": [] }, { "type": "error", "name": "InvalidDuration", "inputs": [] }, { "type": "error", "name": "Locked", "inputs": [] }, { "type": "error", "name": "NotOwner", "inputs": [] }, { "type": "error", "name": "NotPendingOwner", "inputs": [] }, { "type": "error", "name": "NothingPending", "inputs": [] }, { "type": "error", "name": "PlacementUnavailable", "inputs": [] }, { "type": "error", "name": "PriceTooHigh", "inputs": [] }, { "type": "error", "name": "RefundFailed", "inputs": [] }, { "type": "error", "name": "SlotTaken", "inputs": [] }, { "type": "error", "name": "TransferFailed", "inputs": [] }, { "type": "error", "name": "ZeroAddress", "inputs": [] } ] as const; export const peddlesQuestBadgeAbi = [ { "type": "function", "name": "badgeOf", "inputs": [ { "name": "questId", "type": "bytes32" }, { "name": "account", "type": "address" } ], "outputs": [ { "name": "", "type": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "balanceOf", "inputs": [ { "name": "account", "type": "address" } ], "outputs": [ { "name": "", "type": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "ownerOf", "inputs": [ { "name": "tokenId", "type": "uint256" } ], "outputs": [ { "name": "holder", "type": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "questOf", "inputs": [ { "name": "tokenId", "type": "uint256" } ], "outputs": [ { "name": "", "type": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "tokenURI", "inputs": [ { "name": "tokenId", "type": "uint256" } ], "outputs": [ { "name": "", "type": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "totalSupply", "inputs": [], "outputs": [ { "name": "", "type": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "mint", "inputs": [ { "name": "questId", "type": "bytes32" }, { "name": "deadline", "type": "uint256" }, { "name": "signature", "type": "bytes" } ], "outputs": [ { "name": "tokenId", "type": "uint256" } ], "stateMutability": "payable" }, { "type": "function", "name": "mintFee", "inputs": [], "outputs": [ { "name": "", "type": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "mintDigest", "inputs": [ { "name": "account", "type": "address" }, { "name": "questId", "type": "bytes32" }, { "name": "deadline", "type": "uint256" } ], "outputs": [ { "name": "", "type": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "signer", "inputs": [], "outputs": [ { "name": "", "type": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "locked", "inputs": [ { "name": "tokenId", "type": "uint256" } ], "outputs": [ { "name": "", "type": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "entryPaused", "inputs": [], "outputs": [ { "name": "", "type": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "MAX_MINT_FEE", "inputs": [], "outputs": [ { "name": "", "type": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "name", "inputs": [], "outputs": [ { "name": "", "type": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "symbol", "inputs": [], "outputs": [ { "name": "", "type": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [ { "name": "", "type": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "feeRouter", "inputs": [], "outputs": [ { "name": "", "type": "address" } ], "stateMutability": "view" }, { "type": "event", "name": "BadgeMinted", "inputs": [ { "name": "questId", "type": "bytes32", "indexed": true }, { "name": "account", "type": "address", "indexed": true }, { "name": "tokenId", "type": "uint256", "indexed": true }, { "name": "fee", "type": "uint256", "indexed": false } ], "anonymous": false }, { "type": "event", "name": "Transfer", "inputs": [ { "name": "from", "type": "address", "indexed": true }, { "name": "to", "type": "address", "indexed": true }, { "name": "tokenId", "type": "uint256", "indexed": true } ], "anonymous": false }, { "type": "event", "name": "Locked", "inputs": [ { "name": "tokenId", "type": "uint256", "indexed": false } ], "anonymous": false }, { "type": "error", "name": "AlreadyMinted", "inputs": [] }, { "type": "error", "name": "EntryPaused", "inputs": [] }, { "type": "error", "name": "FeeTooHigh", "inputs": [] }, { "type": "error", "name": "InvalidSignature", "inputs": [] }, { "type": "error", "name": "NonexistentToken", "inputs": [] }, { "type": "error", "name": "NotOwner", "inputs": [] }, { "type": "error", "name": "NotPendingOwner", "inputs": [] }, { "type": "error", "name": "NothingPending", "inputs": [] }, { "type": "error", "name": "Reentrant", "inputs": [] }, { "type": "error", "name": "SignatureExpired", "inputs": [] }, { "type": "error", "name": "Soulbound", "inputs": [] }, { "type": "error", "name": "TransferFailed", "inputs": [] }, { "type": "error", "name": "WrongFee", "inputs": [] }, { "type": "error", "name": "ZeroAddress", "inputs": [] } ] as const; export const peddlesFeeRouterAbi = [ { "type": "function", "name": "feeRoute", "inputs": [], "outputs": [ { "name": "treasury_", "type": "address" }, { "name": "flywheel_", "type": "address" }, { "name": "flywheelBps_", "type": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "treasury", "inputs": [], "outputs": [ { "name": "", "type": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "flywheel", "inputs": [], "outputs": [ { "name": "", "type": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "flywheelBps", "inputs": [], "outputs": [ { "name": "", "type": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "splitProtocolCut", "inputs": [ { "name": "amount", "type": "uint256" } ], "outputs": [ { "name": "treasury_", "type": "address" }, { "name": "treasuryAmount", "type": "uint256" }, { "name": "flywheel_", "type": "address" }, { "name": "flywheelAmount", "type": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [ { "name": "", "type": "address" } ], "stateMutability": "view" }, { "type": "event", "name": "TreasuryUpdated", "inputs": [ { "name": "previousTreasury", "type": "address", "indexed": true }, { "name": "newTreasury", "type": "address", "indexed": true } ], "anonymous": false }, { "type": "error", "name": "NotOwner", "inputs": [] }, { "type": "error", "name": "NotPendingOwner", "inputs": [] }, { "type": "error", "name": "ShareTooHigh", "inputs": [] }, { "type": "error", "name": "ZeroAddress", "inputs": [] } ] as const;