[ { "type": "constructor", "inputs": [ { "name": "_poolDeployer", "type": "address", "internalType": "address" }, { "name": "_owner", "type": "address", "internalType": "address" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "DEFAULT_ADMIN_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "FARMING_ADMINISTRATOR_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "FEE_COLLECTOR_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "POOLS_ADMINISTRATOR_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "POOL_CREATOR_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "acceptOwnership", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "canCreatePool", "inputs": [ { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "compatibilityEvent", "inputs": [], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "createPool", "inputs": [ { "name": "tokenA", "type": "address", "internalType": "address" }, { "name": "tokenB", "type": "address", "internalType": "address" }, { "name": "poolType", "type": "uint8", "internalType": "PoolType" } ], "outputs": [ { "name": "pool", "type": "address", "internalType": "address" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "createPoolWithTerms", "inputs": [ { "name": "tokenA", "type": "address", "internalType": "address" }, { "name": "tokenB", "type": "address", "internalType": "address" }, { "name": "poolType", "type": "uint8", "internalType": "PoolType" }, { "name": "terms", "type": "tuple", "internalType": "struct ILunyaPoolFactory.PoolTerms", "components": [ { "name": "fee", "type": "uint24", "internalType": "uint24" }, { "name": "feeToken", "type": "uint8", "internalType": "enum ILunyaPool.FeeToken" }, { "name": "pluginConfig", "type": "uint16", "internalType": "uint16" }, { "name": "pluginFactory", "type": "address", "internalType": "address" }, { "name": "pluginSettings", "type": "bytes", "internalType": "bytes" }, { "name": "namesProtocolShares", "type": "bool", "internalType": "bool" }, { "name": "protocolShare0", "type": "uint16", "internalType": "uint16" }, { "name": "protocolShare1", "type": "uint16", "internalType": "uint16" } ] } ], "outputs": [ { "name": "pool", "type": "address", "internalType": "address" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "defaultPluginFactory", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "defaultProtocolShares", "inputs": [], "outputs": [ { "name": "share0", "type": "uint16", "internalType": "uint16" }, { "name": "share1", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "defaultsOf", "inputs": [ { "name": "", "type": "uint8", "internalType": "PoolType" } ], "outputs": [ { "name": "tickSpacing", "type": "int24", "internalType": "int24" }, { "name": "fee", "type": "uint24", "internalType": "uint24" } ], "stateMutability": "view" }, { "type": "function", "name": "getPool", "inputs": [ { "name": "", "type": "address", "internalType": "address" }, { "name": "", "type": "address", "internalType": "address" }, { "name": "", "type": "uint8", "internalType": "PoolType" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "getRoleAdmin", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "getRoleMember", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "index", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "getRoleMemberCount", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getRoleMembers", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "", "type": "address[]", "internalType": "address[]" } ], "stateMutability": "view" }, { "type": "function", "name": "grantRole", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "hasRole", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "hasRoleOrOwner", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "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": "poolDeployer", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "renounceOwnership", "inputs": [], "outputs": [], "stateMutability": "pure" }, { "type": "function", "name": "renounceRole", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "callerConfirmation", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "revokeRole", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setCompatibilityEvent", "inputs": [ { "name": "enabled", "type": "bool", "internalType": "bool" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setDefaultPluginFactory", "inputs": [ { "name": "newPluginFactory", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setDefaultProtocolShares", "inputs": [ { "name": "share0", "type": "uint16", "internalType": "uint16" }, { "name": "share1", "type": "uint16", "internalType": "uint16" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setImplementation", "inputs": [ { "name": "poolType", "type": "uint8", "internalType": "PoolType" }, { "name": "implementationCode", "type": "bytes", "internalType": "bytes" }, { "name": "expectedCodeHash", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setPoolDefaults", "inputs": [ { "name": "poolType", "type": "uint8", "internalType": "PoolType" }, { "name": "tickSpacing", "type": "int24", "internalType": "int24" }, { "name": "fee", "type": "uint24", "internalType": "uint24" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "supportsInterface", "inputs": [ { "name": "interfaceId", "type": "bytes4", "internalType": "bytes4" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "transferOwnership", "inputs": [ { "name": "newOwner", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "CompatibilityEventChanged", "inputs": [ { "name": "enabled", "type": "bool", "indexed": false, "internalType": "bool" } ], "anonymous": false }, { "type": "event", "name": "DefaultPluginFactoryChanged", "inputs": [ { "name": "newPluginFactory", "type": "address", "indexed": false, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "DefaultProtocolSharesChanged", "inputs": [ { "name": "share0", "type": "uint16", "indexed": false, "internalType": "uint16" }, { "name": "share1", "type": "uint16", "indexed": false, "internalType": "uint16" } ], "anonymous": false }, { "type": "event", "name": "OwnerChanged", "inputs": [ { "name": "oldOwner", "type": "address", "indexed": true, "internalType": "address" }, { "name": "newOwner", "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": "PoolCreated", "inputs": [ { "name": "token0", "type": "address", "indexed": true, "internalType": "address" }, { "name": "token1", "type": "address", "indexed": true, "internalType": "address" }, { "name": "poolType", "type": "uint8", "indexed": true, "internalType": "PoolType" }, { "name": "tickSpacing", "type": "int24", "indexed": false, "internalType": "int24" }, { "name": "fee", "type": "uint24", "indexed": false, "internalType": "uint24" }, { "name": "pool", "type": "address", "indexed": false, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "PoolCreated", "inputs": [ { "name": "token0", "type": "address", "indexed": true, "internalType": "address" }, { "name": "token1", "type": "address", "indexed": true, "internalType": "address" }, { "name": "poolType", "type": "uint24", "indexed": true, "internalType": "uint24" }, { "name": "tickSpacing", "type": "int24", "indexed": false, "internalType": "int24" }, { "name": "pool", "type": "address", "indexed": false, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "PoolDefaultsChanged", "inputs": [ { "name": "poolType", "type": "uint8", "indexed": true, "internalType": "PoolType" }, { "name": "tickSpacing", "type": "int24", "indexed": false, "internalType": "int24" }, { "name": "fee", "type": "uint24", "indexed": false, "internalType": "uint24" } ], "anonymous": false }, { "type": "event", "name": "RoleAdminChanged", "inputs": [ { "name": "role", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "previousAdminRole", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "newAdminRole", "type": "bytes32", "indexed": true, "internalType": "bytes32" } ], "anonymous": false }, { "type": "event", "name": "RoleGranted", "inputs": [ { "name": "role", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "sender", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "RoleRevoked", "inputs": [ { "name": "role", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "sender", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "error", "name": "AccessControlBadConfirmation", "inputs": [] }, { "type": "error", "name": "AccessControlUnauthorizedAccount", "inputs": [ { "name": "account", "type": "address", "internalType": "address" }, { "name": "neededRole", "type": "bytes32", "internalType": "bytes32" } ] }, { "type": "error", "name": "DefaultsNotSet", "inputs": [] }, { "type": "error", "name": "DelegateCallNotAllowed", "inputs": [] }, { "type": "error", "name": "IdenticalTokens", "inputs": [] }, { "type": "error", "name": "InvalidFee", "inputs": [] }, { "type": "error", "name": "InvalidProtocolShare", "inputs": [] }, { "type": "error", "name": "InvalidTickSpacing", "inputs": [] }, { "type": "error", "name": "NotAPoolCreator", "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": "OwnershipIsNotAbandonable", "inputs": [] }, { "type": "error", "name": "PoolAlreadyExists", "inputs": [] }, { "type": "error", "name": "Unauthorized", "inputs": [] }, { "type": "error", "name": "UnsupportedHooks", "inputs": [] }, { "type": "error", "name": "ZeroAddress", "inputs": [] }, { "type": "error", "name": "ZeroAddressToken", "inputs": [] } ]