UNPKG

@towns-protocol/generated

Version:

## How to generate contract types

523 lines (522 loc) 9.91 kB
export default [ { "type": "function", "name": "__PlatformRequirements_init", "inputs": [ { "name": "feeRecipient", "type": "address", "internalType": "address" }, { "name": "membershipBps", "type": "uint16", "internalType": "uint16" }, { "name": "membershipFee", "type": "uint256", "internalType": "uint256" }, { "name": "membershipMintLimit", "type": "uint256", "internalType": "uint256" }, { "name": "membershipDuration", "type": "uint64", "internalType": "uint64" }, { "name": "membershipMinPrice", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "getDenominator", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "pure" }, { "type": "function", "name": "getFeeRecipient", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "getMembershipBps", "inputs": [], "outputs": [ { "name": "", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "getMembershipDuration", "inputs": [], "outputs": [ { "name": "", "type": "uint64", "internalType": "uint64" } ], "stateMutability": "view" }, { "type": "function", "name": "getMembershipFee", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getMembershipMinPrice", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getMembershipMintLimit", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getSwapFees", "inputs": [], "outputs": [ { "name": "protocolBps", "type": "uint16", "internalType": "uint16" }, { "name": "posterBps", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "isRouterWhitelisted", "inputs": [ { "name": "router", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "setFeeRecipient", "inputs": [ { "name": "recipient", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setMembershipBps", "inputs": [ { "name": "bps", "type": "uint16", "internalType": "uint16" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setMembershipDuration", "inputs": [ { "name": "duration", "type": "uint64", "internalType": "uint64" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setMembershipFee", "inputs": [ { "name": "fee", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setMembershipMinPrice", "inputs": [ { "name": "minPrice", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setMembershipMintLimit", "inputs": [ { "name": "limit", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setRouterWhitelisted", "inputs": [ { "name": "router", "type": "address", "internalType": "address" }, { "name": "whitelisted", "type": "bool", "internalType": "bool" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setSwapFees", "inputs": [ { "name": "protocolBps", "type": "uint16", "internalType": "uint16" }, { "name": "posterBps", "type": "uint16", "internalType": "uint16" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "Initialized", "inputs": [ { "name": "version", "type": "uint32", "indexed": false, "internalType": "uint32" } ], "anonymous": false }, { "type": "event", "name": "InterfaceAdded", "inputs": [ { "name": "interfaceId", "type": "bytes4", "indexed": true, "internalType": "bytes4" } ], "anonymous": false }, { "type": "event", "name": "InterfaceRemoved", "inputs": [ { "name": "interfaceId", "type": "bytes4", "indexed": true, "internalType": "bytes4" } ], "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": "PlatformFeeRecipientSet", "inputs": [ { "name": "recipient", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "PlatformMembershipBpsSet", "inputs": [ { "name": "bps", "type": "uint16", "indexed": false, "internalType": "uint16" } ], "anonymous": false }, { "type": "event", "name": "PlatformMembershipDurationSet", "inputs": [ { "name": "duration", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "PlatformMembershipFeeSet", "inputs": [ { "name": "fee", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "PlatformMembershipMinPriceSet", "inputs": [ { "name": "minPrice", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "PlatformMembershipMintLimitSet", "inputs": [ { "name": "limit", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "PlatformSwapFeesSet", "inputs": [ { "name": "protocolBps", "type": "uint16", "indexed": false, "internalType": "uint16" }, { "name": "posterBps", "type": "uint16", "indexed": false, "internalType": "uint16" } ], "anonymous": false }, { "type": "event", "name": "RouterWhitelistUpdated", "inputs": [ { "name": "router", "type": "address", "indexed": true, "internalType": "address" }, { "name": "whitelisted", "type": "bool", "indexed": false, "internalType": "bool" } ], "anonymous": false }, { "type": "error", "name": "Initializable_InInitializingState", "inputs": [] }, { "type": "error", "name": "Initializable_NotInInitializingState", "inputs": [] }, { "type": "error", "name": "Introspection_AlreadySupported", "inputs": [] }, { "type": "error", "name": "Introspection_NotSupported", "inputs": [] }, { "type": "error", "name": "Ownable__NotOwner", "inputs": [ { "name": "account", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "Ownable__ZeroAddress", "inputs": [] }, { "type": "error", "name": "Platform__InvalidFeeRecipient", "inputs": [] }, { "type": "error", "name": "Platform__InvalidMembershipBps", "inputs": [] }, { "type": "error", "name": "Platform__InvalidMembershipDuration", "inputs": [] }, { "type": "error", "name": "Platform__InvalidMembershipMinPrice", "inputs": [] }, { "type": "error", "name": "Platform__InvalidMembershipMintLimit", "inputs": [] }, { "type": "error", "name": "Platform__InvalidSwapFeeBps", "inputs": [] } ] as const