////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // AutoSwapper ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// export const autoSwapperABI = [ { type: 'constructor', inputs: [ { name: '_router', internalType: 'contract ISwapRouter', type: 'address', }, { name: '_swapRecipient', internalType: 'address', type: 'address' }, { name: '_swapper', internalType: 'address', type: 'address' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'router', outputs: [ { name: '', internalType: 'contract ISwapRouter', type: 'address' }, ], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'params', internalType: 'struct AutoSwapper.ExactInputParams', type: 'tuple', components: [ { name: 'path', internalType: 'bytes', type: 'bytes' }, { name: 'amountIn', internalType: 'uint256', type: 'uint256' }, { name: 'amountOutMinimum', internalType: 'uint256', type: 'uint256', }, ], }, ], name: 'swapExactInput', outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'params', internalType: 'struct AutoSwapper.ExactInputSingleParams', type: 'tuple', components: [ { name: 'tokenIn', internalType: 'address', type: 'address' }, { name: 'tokenOut', internalType: 'address', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'amountIn', internalType: 'uint256', type: 'uint256' }, { name: 'amountOutMinimum', internalType: 'uint256', type: 'uint256', }, { name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160', }, ], }, ], name: 'swapExactInputSingle', outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'swapRecipient', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'swapper', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'error', inputs: [], name: 'InvalidRecipient' }, { type: 'error', inputs: [], name: 'InvalidSelector' }, { type: 'error', inputs: [], name: 'NotSwapper' }, ] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // BaseCoin ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// export const baseCoinABI = [ { type: 'function', inputs: [], name: 'DOMAIN_SEPARATOR', outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'account', internalType: 'address', type: 'address' }], name: 'addOwner', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'accounts', internalType: 'address[]', type: 'address[]' }, ], name: 'addOwners', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'airlock', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'owner', internalType: 'address', type: 'address' }, { name: 'spender', internalType: 'address', type: 'address' }, ], name: 'allowance', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'spender', internalType: 'address', type: 'address' }, { name: 'value', internalType: 'uint256', type: 'uint256' }, ], name: 'approve', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'account', internalType: 'address', type: 'address' }], name: 'balanceOf', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }], name: 'burn', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'coinType', outputs: [ { name: '', internalType: 'enum IHasCoinType.CoinType', type: 'uint8' }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'contractURI', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'contractVersion', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'pure', }, { type: 'function', inputs: [], name: 'creationInfo', outputs: [ { name: 'creationTimestamp', internalType: 'uint256', type: 'uint256' }, { name: 'isDeploying', internalType: 'bool', type: 'bool' }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'currency', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'decimals', outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'dopplerFeeRecipient', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'eip712Domain', outputs: [ { name: 'fields', internalType: 'bytes1', type: 'bytes1' }, { name: 'name', internalType: 'string', type: 'string' }, { name: 'version', internalType: 'string', type: 'string' }, { name: 'chainId', internalType: 'uint256', type: 'uint256' }, { name: 'verifyingContract', internalType: 'address', type: 'address' }, { name: 'salt', internalType: 'bytes32', type: 'bytes32' }, { name: 'extensions', internalType: 'uint256[]', type: 'uint256[]' }, ], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'coinVersionLookup', internalType: 'contract IDeployedCoinVersionLookup', type: 'address', }, ], name: 'getPayoutSwapPath', outputs: [ { name: 'payoutSwapPath', internalType: 'struct IHasSwapPath.PayoutSwapPath', type: 'tuple', components: [ { name: 'path', internalType: 'struct PathKey[]', type: 'tuple[]', components: [ { name: 'intermediateCurrency', internalType: 'Currency', type: 'address', }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address', }, { name: 'hookData', internalType: 'bytes', type: 'bytes' }, ], }, { name: 'currencyIn', internalType: 'Currency', type: 'address' }, ], }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'getPoolConfiguration', outputs: [ { name: '', internalType: 'struct PoolConfiguration', type: 'tuple', components: [ { name: 'version', internalType: 'uint8', type: 'uint8' }, { name: 'numPositions', internalType: 'uint16', type: 'uint16' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'numDiscoveryPositions', internalType: 'uint16[]', type: 'uint16[]', }, { name: 'tickLower', internalType: 'int24[]', type: 'int24[]' }, { name: 'tickUpper', internalType: 'int24[]', type: 'int24[]' }, { name: 'maxDiscoverySupplyShare', internalType: 'uint256[]', type: 'uint256[]', }, ], }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'getPoolKey', outputs: [ { name: '', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'hooks', outputs: [{ name: '', internalType: 'contract IHooks', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'payoutRecipient_', internalType: 'address', type: 'address' }, { name: 'owners_', internalType: 'address[]', type: 'address[]' }, { name: 'tokenURI_', internalType: 'string', type: 'string' }, { name: 'name_', internalType: 'string', type: 'string' }, { name: 'symbol_', internalType: 'string', type: 'string' }, { name: 'platformReferrer_', internalType: 'address', type: 'address' }, { name: 'currency_', internalType: 'address', type: 'address' }, { name: 'poolKey_', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160' }, { name: 'poolConfiguration_', internalType: 'struct PoolConfiguration', type: 'tuple', components: [ { name: 'version', internalType: 'uint8', type: 'uint8' }, { name: 'numPositions', internalType: 'uint16', type: 'uint16' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'numDiscoveryPositions', internalType: 'uint16[]', type: 'uint16[]', }, { name: 'tickLower', internalType: 'int24[]', type: 'int24[]' }, { name: 'tickUpper', internalType: 'int24[]', type: 'int24[]' }, { name: 'maxDiscoverySupplyShare', internalType: 'uint256[]', type: 'uint256[]', }, ], }, ], name: 'initialize', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'account', internalType: 'address', type: 'address' }], name: 'isOwner', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'newHook', internalType: 'address', type: 'address' }, { name: 'additionalData', internalType: 'bytes', type: 'bytes' }, ], name: 'migrateLiquidity', outputs: [ { name: 'newPoolKey', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'name', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], name: 'nonces', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'owners', outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'payoutRecipient', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'owner', internalType: 'address', type: 'address' }, { name: 'spender', internalType: 'address', type: 'address' }, { name: 'value', internalType: 'uint256', type: 'uint256' }, { name: 'deadline', internalType: 'uint256', type: 'uint256' }, { name: 'v', internalType: 'uint8', type: 'uint8' }, { name: 'r', internalType: 'bytes32', type: 'bytes32' }, { name: 's', internalType: 'bytes32', type: 'bytes32' }, ], name: 'permit', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'platformReferrer', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'poolManager', outputs: [ { name: '', internalType: 'contract IPoolManager', type: 'address' }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'protocolRewardRecipient', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'protocolRewards', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'account', internalType: 'address', type: 'address' }], name: 'removeOwner', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'accounts', internalType: 'address[]', type: 'address[]' }, ], name: 'removeOwners', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'revokeOwnership', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'newURI', internalType: 'string', type: 'string' }], name: 'setContractURI', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'newName', internalType: 'string', type: 'string' }, { name: 'newSymbol', internalType: 'string', type: 'string' }, ], name: 'setNameAndSymbol', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'newPayoutRecipient', internalType: 'address', type: 'address' }, ], name: 'setPayoutRecipient', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], name: 'supportsInterface', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'symbol', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'tokenURI', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'totalSupply', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'totalSupplyForPositions', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'to', internalType: 'address', type: 'address' }, { name: 'value', internalType: 'uint256', type: 'uint256' }, ], name: 'transfer', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'from', internalType: 'address', type: 'address' }, { name: 'to', internalType: 'address', type: 'address' }, { name: 'value', internalType: 'uint256', type: 'uint256' }, ], name: 'transferFrom', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'nonpayable', }, { type: 'event', anonymous: false, inputs: [ { name: 'owner', internalType: 'address', type: 'address', indexed: true, }, { name: 'spender', internalType: 'address', type: 'address', indexed: true, }, { name: 'value', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'Approval', }, { type: 'event', anonymous: false, inputs: [ { name: 'buyer', internalType: 'address', type: 'address', indexed: true, }, { name: 'recipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'tradeReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'coinsPurchased', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, { name: 'amountFee', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'amountSold', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'CoinBuy', }, { type: 'event', anonymous: false, inputs: [ { name: 'payoutRecipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'platformReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'protocolRewardRecipient', internalType: 'address', type: 'address', indexed: false, }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, { name: 'marketRewards', internalType: 'struct ICoin.MarketRewards', type: 'tuple', components: [ { name: 'totalAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'totalAmountCoin', internalType: 'uint256', type: 'uint256' }, { name: 'creatorPayoutAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'creatorPayoutAmountCoin', internalType: 'uint256', type: 'uint256', }, { name: 'platformReferrerAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'platformReferrerAmountCoin', internalType: 'uint256', type: 'uint256', }, { name: 'protocolAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'protocolAmountCoin', internalType: 'uint256', type: 'uint256', }, ], indexed: false, }, ], name: 'CoinMarketRewards', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: true, }, { name: 'prevRecipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'newRecipient', internalType: 'address', type: 'address', indexed: true, }, ], name: 'CoinPayoutRecipientUpdated', }, { type: 'event', anonymous: false, inputs: [ { name: 'seller', internalType: 'address', type: 'address', indexed: true, }, { name: 'recipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'tradeReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'coinsSold', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, { name: 'amountFee', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'amountPurchased', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'CoinSell', }, { type: 'event', anonymous: false, inputs: [ { name: 'payoutRecipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'platformReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'tradeReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'protocolRewardRecipient', internalType: 'address', type: 'address', indexed: false, }, { name: 'creatorReward', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'platformReferrerReward', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'traderReferrerReward', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'protocolReward', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, ], name: 'CoinTradeRewards', }, { type: 'event', anonymous: false, inputs: [ { name: 'sender', internalType: 'address', type: 'address', indexed: true, }, { name: 'recipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'amount', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'senderBalance', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'recipientBalance', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'CoinTransfer', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: true, }, { name: 'newURI', internalType: 'string', type: 'string', indexed: false, }, { name: 'name', internalType: 'string', type: 'string', indexed: false }, ], name: 'ContractMetadataUpdated', }, { type: 'event', anonymous: false, inputs: [], name: 'ContractURIUpdated' }, { type: 'event', anonymous: false, inputs: [], name: 'EIP712DomainChanged' }, { type: 'event', anonymous: false, inputs: [ { name: 'version', internalType: 'uint64', type: 'uint64', indexed: false, }, ], name: 'Initialized', }, { type: 'event', anonymous: false, inputs: [ { name: 'fromPoolKey', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], indexed: false, }, { name: 'fromPoolKeyHash', internalType: 'bytes32', type: 'bytes32', indexed: false, }, { name: 'toPoolKey', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], indexed: false, }, { name: 'toPoolKeyHash', internalType: 'bytes32', type: 'bytes32', indexed: false, }, ], name: 'LiquidityMigrated', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: true, }, { name: 'newName', internalType: 'string', type: 'string', indexed: false, }, { name: 'newSymbol', internalType: 'string', type: 'string', indexed: false, }, ], name: 'NameAndSymbolUpdated', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: true, }, { name: 'prevOwner', internalType: 'address', type: 'address', indexed: true, }, { name: 'newOwner', internalType: 'address', type: 'address', indexed: true, }, ], name: 'OwnerUpdated', }, { type: 'event', anonymous: false, inputs: [ { name: 'from', internalType: 'address', type: 'address', indexed: true }, { name: 'to', internalType: 'address', type: 'address', indexed: true }, { name: 'value', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'Transfer', }, { type: 'error', inputs: [], name: 'AddressZero' }, { type: 'error', inputs: [], name: 'AlreadyOwner' }, { type: 'error', inputs: [], name: 'CannotMintZeroLiquidity' }, { type: 'error', inputs: [], name: 'DopplerPoolMustHaveMoreThan2DiscoveryPositions', }, { type: 'error', inputs: [], name: 'ECDSAInvalidSignature' }, { type: 'error', inputs: [{ name: 'length', internalType: 'uint256', type: 'uint256' }], name: 'ECDSAInvalidSignatureLength', }, { type: 'error', inputs: [{ name: 's', internalType: 'bytes32', type: 'bytes32' }], name: 'ECDSAInvalidSignatureS', }, { type: 'error', inputs: [ { name: 'spender', internalType: 'address', type: 'address' }, { name: 'allowance', internalType: 'uint256', type: 'uint256' }, { name: 'needed', internalType: 'uint256', type: 'uint256' }, ], name: 'ERC20InsufficientAllowance', }, { type: 'error', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'balance', internalType: 'uint256', type: 'uint256' }, { name: 'needed', internalType: 'uint256', type: 'uint256' }, ], name: 'ERC20InsufficientBalance', }, { type: 'error', inputs: [{ name: 'approver', internalType: 'address', type: 'address' }], name: 'ERC20InvalidApprover', }, { type: 'error', inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }], name: 'ERC20InvalidReceiver', }, { type: 'error', inputs: [{ name: 'sender', internalType: 'address', type: 'address' }], name: 'ERC20InvalidSender', }, { type: 'error', inputs: [{ name: 'spender', internalType: 'address', type: 'address' }], name: 'ERC20InvalidSpender', }, { type: 'error', inputs: [], name: 'ERC20TransferAmountMismatch' }, { type: 'error', inputs: [{ name: 'deadline', internalType: 'uint256', type: 'uint256' }], name: 'ERC2612ExpiredSignature', }, { type: 'error', inputs: [ { name: 'signer', internalType: 'address', type: 'address' }, { name: 'owner', internalType: 'address', type: 'address' }, ], name: 'ERC2612InvalidSigner', }, { type: 'error', inputs: [], name: 'EthAmountMismatch' }, { type: 'error', inputs: [], name: 'EthAmountTooSmall' }, { type: 'error', inputs: [], name: 'EthTransferFailed' }, { type: 'error', inputs: [], name: 'EthTransferInvalid' }, { type: 'error', inputs: [], name: 'InitialOrderSizeTooLarge' }, { type: 'error', inputs: [], name: 'InsufficientFunds' }, { type: 'error', inputs: [], name: 'InsufficientLiquidity' }, { type: 'error', inputs: [ { name: 'account', internalType: 'address', type: 'address' }, { name: 'currentNonce', internalType: 'uint256', type: 'uint256' }, ], name: 'InvalidAccountNonce', }, { type: 'error', inputs: [], name: 'InvalidCurrency' }, { type: 'error', inputs: [], name: 'InvalidCurrencyLowerTick' }, { type: 'error', inputs: [], name: 'InvalidInitialization' }, { type: 'error', inputs: [], name: 'InvalidMarketType' }, { type: 'error', inputs: [], name: 'InvalidPoolVersion' }, { type: 'error', inputs: [ { name: 'tickLower', internalType: 'int24', type: 'int24' }, { name: 'tickUpper', internalType: 'int24', type: 'int24' }, ], name: 'InvalidTickRangeMisordered', }, { type: 'error', inputs: [], name: 'InvalidWethLowerTick' }, { type: 'error', inputs: [], name: 'LegacyPoolMustHaveOneDiscoveryPosition' }, { type: 'error', inputs: [], name: 'MarketAlreadyGraduated' }, { type: 'error', inputs: [], name: 'MarketNotGraduated' }, { type: 'error', inputs: [ { name: 'value', internalType: 'uint256', type: 'uint256' }, { name: 'limit', internalType: 'uint256', type: 'uint256' }, ], name: 'MaxShareToBeSoldExceeded', }, { type: 'error', inputs: [], name: 'NameIsRequired' }, { type: 'error', inputs: [], name: 'NotInitializing' }, { type: 'error', inputs: [], name: 'NotOwner' }, { type: 'error', inputs: [], name: 'NumDiscoveryPositionsOutOfRange' }, { type: 'error', inputs: [], name: 'OneOwnerRequired' }, { type: 'error', inputs: [], name: 'OnlyOwner' }, { type: 'error', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'pool', internalType: 'address', type: 'address' }, ], name: 'OnlyPool', }, { type: 'error', inputs: [], name: 'OnlyWeth' }, { type: 'error', inputs: [], name: 'OwnerCannotBeAddressZero' }, { type: 'error', inputs: [], name: 'SlippageBoundsExceeded' }, { type: 'error', inputs: [], name: 'UseRevokeOwnershipToRemoveSelf' }, ] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // BuySupplyWithV4SwapHook ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// export const buySupplyWithV4SwapHookABI = [ { type: 'constructor', inputs: [ { name: '_factory', internalType: 'contract IZoraFactory', type: 'address', }, { name: '_swapRouter', internalType: 'address', type: 'address' }, { name: '_poolManager', internalType: 'address', type: 'address' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'coin', internalType: 'contract ICoin', type: 'address' }, { name: 'hookData', internalType: 'bytes', type: 'bytes' }, ], name: 'afterCoinDeploy', outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }], stateMutability: 'payable', }, { type: 'function', inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }], name: 'decodeV4RouteData', outputs: [ { name: 'v4Route', internalType: 'struct PoolKey[]', type: 'tuple[]', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'startAmount', internalType: 'uint256', type: 'uint256' }, ], stateMutability: 'pure', }, { type: 'function', inputs: [ { name: 'params', internalType: 'struct BuySupplyWithV4SwapHook.InitialSupplyParams', type: 'tuple', components: [ { name: 'buyRecipient', internalType: 'address', type: 'address' }, { name: 'v3Route', internalType: 'bytes', type: 'bytes' }, { name: 'v4Route', internalType: 'struct PoolKey[]', type: 'tuple[]', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address', }, ], }, { name: 'inputCurrency', internalType: 'address', type: 'address' }, { name: 'inputAmount', internalType: 'uint256', type: 'uint256' }, { name: 'minAmountOut', internalType: 'uint256', type: 'uint256' }, ], }, ], name: 'encodeBuySupplyWithV4SwapHookData', outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }], stateMutability: 'pure', }, { type: 'function', inputs: [], name: 'factory', outputs: [ { name: '', internalType: 'contract IZoraFactory', type: 'address' }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'poolManager', outputs: [ { name: '', internalType: 'contract IPoolManager', type: 'address' }, ], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], name: 'supportsInterface', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'pure', }, { type: 'function', inputs: [], name: 'swapRouter', outputs: [ { name: '', internalType: 'contract ISwapRouter', type: 'address' }, ], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }], name: 'unlockCallback', outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }], stateMutability: 'nonpayable', }, { type: 'event', anonymous: false, inputs: [ { name: 'coin', internalType: 'address', type: 'address', indexed: true }, { name: 'recipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'coinsPurchased', internalType: 'uint256', type: 'uint256', indexed: true, }, { name: 'v3Route', internalType: 'bytes', type: 'bytes', indexed: false }, { name: 'v4Route', internalType: 'struct PoolKey[]', type: 'tuple[]', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], indexed: false, }, { name: 'inputCurrency', internalType: 'address', type: 'address', indexed: false, }, { name: 'inputAmount', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'v4SwapInput', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'BuyInitialSupply', }, { type: 'error', inputs: [], name: 'AddressZero' }, { type: 'error', inputs: [], name: 'HookNotImplemented' }, { type: 'error', inputs: [ { name: 'inputAmount', internalType: 'uint256', type: 'uint256' }, { name: 'availableAmount', internalType: 'uint256', type: 'uint256' }, ], name: 'InsufficientInputCurrency', }, { type: 'error', inputs: [], name: 'InsufficientOutputAmount' }, { type: 'error', inputs: [], name: 'NotFactory' }, { type: 'error', inputs: [], name: 'OnlyPoolManager' }, { type: 'error', inputs: [{ name: 'token', internalType: 'address', type: 'address' }], name: 'SafeERC20FailedOperation', }, { type: 'error', inputs: [], name: 'V3RouteDoesNotConnectToV4RouteStart' }, ] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ContentCoin ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// export const contentCoinABI = [ { type: 'constructor', inputs: [ { name: 'protocolRewardRecipient_', internalType: 'address', type: 'address', }, { name: 'protocolRewards_', internalType: 'address', type: 'address' }, { name: 'poolManager_', internalType: 'contract IPoolManager', type: 'address', }, { name: 'airlock_', internalType: 'address', type: 'address' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'DOMAIN_SEPARATOR', outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'account', internalType: 'address', type: 'address' }], name: 'addOwner', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'accounts', internalType: 'address[]', type: 'address[]' }, ], name: 'addOwners', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'airlock', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'owner', internalType: 'address', type: 'address' }, { name: 'spender', internalType: 'address', type: 'address' }, ], name: 'allowance', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'spender', internalType: 'address', type: 'address' }, { name: 'value', internalType: 'uint256', type: 'uint256' }, ], name: 'approve', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'account', internalType: 'address', type: 'address' }], name: 'balanceOf', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }], name: 'burn', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'coinType', outputs: [ { name: '', internalType: 'enum IHasCoinType.CoinType', type: 'uint8' }, ], stateMutability: 'pure', }, { type: 'function', inputs: [], name: 'contractURI', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'contractVersion', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'pure', }, { type: 'function', inputs: [], name: 'creationInfo', outputs: [ { name: 'creationTimestamp', internalType: 'uint256', type: 'uint256' }, { name: 'isDeploying', internalType: 'bool', type: 'bool' }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'currency', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'decimals', outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'dopplerFeeRecipient', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'eip712Domain', outputs: [ { name: 'fields', internalType: 'bytes1', type: 'bytes1' }, { name: 'name', internalType: 'string', type: 'string' }, { name: 'version', internalType: 'string', type: 'string' }, { name: 'chainId', internalType: 'uint256', type: 'uint256' }, { name: 'verifyingContract', internalType: 'address', type: 'address' }, { name: 'salt', internalType: 'bytes32', type: 'bytes32' }, { name: 'extensions', internalType: 'uint256[]', type: 'uint256[]' }, ], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'coinVersionLookup', internalType: 'contract IDeployedCoinVersionLookup', type: 'address', }, ], name: 'getPayoutSwapPath', outputs: [ { name: 'payoutSwapPath', internalType: 'struct IHasSwapPath.PayoutSwapPath', type: 'tuple', components: [ { name: 'path', internalType: 'struct PathKey[]', type: 'tuple[]', components: [ { name: 'intermediateCurrency', internalType: 'Currency', type: 'address', }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address', }, { name: 'hookData', internalType: 'bytes', type: 'bytes' }, ], }, { name: 'currencyIn', internalType: 'Currency', type: 'address' }, ], }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'getPoolConfiguration', outputs: [ { name: '', internalType: 'struct PoolConfiguration', type: 'tuple', components: [ { name: 'version', internalType: 'uint8', type: 'uint8' }, { name: 'numPositions', internalType: 'uint16', type: 'uint16' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'numDiscoveryPositions', internalType: 'uint16[]', type: 'uint16[]', }, { name: 'tickLower', internalType: 'int24[]', type: 'int24[]' }, { name: 'tickUpper', internalType: 'int24[]', type: 'int24[]' }, { name: 'maxDiscoverySupplyShare', internalType: 'uint256[]', type: 'uint256[]', }, ], }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'getPoolKey', outputs: [ { name: '', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'hooks', outputs: [{ name: '', internalType: 'contract IHooks', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'payoutRecipient_', internalType: 'address', type: 'address' }, { name: 'owners_', internalType: 'address[]', type: 'address[]' }, { name: 'tokenURI_', internalType: 'string', type: 'string' }, { name: 'name_', internalType: 'string', type: 'string' }, { name: 'symbol_', internalType: 'string', type: 'string' }, { name: 'platformReferrer_', internalType: 'address', type: 'address' }, { name: 'currency_', internalType: 'address', type: 'address' }, { name: 'poolKey_', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160' }, { name: 'poolConfiguration_', internalType: 'struct PoolConfiguration', type: 'tuple', components: [ { name: 'version', internalType: 'uint8', type: 'uint8' }, { name: 'numPositions', internalType: 'uint16', type: 'uint16' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'numDiscoveryPositions', internalType: 'uint16[]', type: 'uint16[]', }, { name: 'tickLower', internalType: 'int24[]', type: 'int24[]' }, { name: 'tickUpper', internalType: 'int24[]', type: 'int24[]' }, { name: 'maxDiscoverySupplyShare', internalType: 'uint256[]', type: 'uint256[]', }, ], }, ], name: 'initialize', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'account', internalType: 'address', type: 'address' }], name: 'isOwner', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'newHook', internalType: 'address', type: 'address' }, { name: 'additionalData', internalType: 'bytes', type: 'bytes' }, ], name: 'migrateLiquidity', outputs: [ { name: 'newPoolKey', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'name', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], name: 'nonces', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'owners', outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'payoutRecipient', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'owner', internalType: 'address', type: 'address' }, { name: 'spender', internalType: 'address', type: 'address' }, { name: 'value', internalType: 'uint256', type: 'uint256' }, { name: 'deadline', internalType: 'uint256', type: 'uint256' }, { name: 'v', internalType: 'uint8', type: 'uint8' }, { name: 'r', internalType: 'bytes32', type: 'bytes32' }, { name: 's', internalType: 'bytes32', type: 'bytes32' }, ], name: 'permit', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'platformReferrer', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'poolManager', outputs: [ { name: '', internalType: 'contract IPoolManager', type: 'address' }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'protocolRewardRecipient', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'protocolRewards', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'account', internalType: 'address', type: 'address' }], name: 'removeOwner', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'accounts', internalType: 'address[]', type: 'address[]' }, ], name: 'removeOwners', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'revokeOwnership', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'newURI', internalType: 'string', type: 'string' }], name: 'setContractURI', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'newName', internalType: 'string', type: 'string' }, { name: 'newSymbol', internalType: 'string', type: 'string' }, ], name: 'setNameAndSymbol', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'newPayoutRecipient', internalType: 'address', type: 'address' }, ], name: 'setPayoutRecipient', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], name: 'supportsInterface', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'symbol', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'tokenURI', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'totalSupply', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'totalSupplyForPositions', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'pure', }, { type: 'function', inputs: [ { name: 'to', internalType: 'address', type: 'address' }, { name: 'value', internalType: 'uint256', type: 'uint256' }, ], name: 'transfer', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'from', internalType: 'address', type: 'address' }, { name: 'to', internalType: 'address', type: 'address' }, { name: 'value', internalType: 'uint256', type: 'uint256' }, ], name: 'transferFrom', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'nonpayable', }, { type: 'event', anonymous: false, inputs: [ { name: 'owner', internalType: 'address', type: 'address', indexed: true, }, { name: 'spender', internalType: 'address', type: 'address', indexed: true, }, { name: 'value', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'Approval', }, { type: 'event', anonymous: false, inputs: [ { name: 'buyer', internalType: 'address', type: 'address', indexed: true, }, { name: 'recipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'tradeReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'coinsPurchased', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, { name: 'amountFee', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'amountSold', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'CoinBuy', }, { type: 'event', anonymous: false, inputs: [ { name: 'payoutRecipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'platformReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'protocolRewardRecipient', internalType: 'address', type: 'address', indexed: false, }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, { name: 'marketRewards', internalType: 'struct ICoin.MarketRewards', type: 'tuple', components: [ { name: 'totalAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'totalAmountCoin', internalType: 'uint256', type: 'uint256' }, { name: 'creatorPayoutAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'creatorPayoutAmountCoin', internalType: 'uint256', type: 'uint256', }, { name: 'platformReferrerAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'platformReferrerAmountCoin', internalType: 'uint256', type: 'uint256', }, { name: 'protocolAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'protocolAmountCoin', internalType: 'uint256', type: 'uint256', }, ], indexed: false, }, ], name: 'CoinMarketRewards', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: true, }, { name: 'prevRecipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'newRecipient', internalType: 'address', type: 'address', indexed: true, }, ], name: 'CoinPayoutRecipientUpdated', }, { type: 'event', anonymous: false, inputs: [ { name: 'seller', internalType: 'address', type: 'address', indexed: true, }, { name: 'recipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'tradeReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'coinsSold', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, { name: 'amountFee', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'amountPurchased', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'CoinSell', }, { type: 'event', anonymous: false, inputs: [ { name: 'payoutRecipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'platformReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'tradeReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'protocolRewardRecipient', internalType: 'address', type: 'address', indexed: false, }, { name: 'creatorReward', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'platformReferrerReward', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'traderReferrerReward', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'protocolReward', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, ], name: 'CoinTradeRewards', }, { type: 'event', anonymous: false, inputs: [ { name: 'sender', internalType: 'address', type: 'address', indexed: true, }, { name: 'recipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'amount', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'senderBalance', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'recipientBalance', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'CoinTransfer', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: true, }, { name: 'newURI', internalType: 'string', type: 'string', indexed: false, }, { name: 'name', internalType: 'string', type: 'string', indexed: false }, ], name: 'ContractMetadataUpdated', }, { type: 'event', anonymous: false, inputs: [], name: 'ContractURIUpdated' }, { type: 'event', anonymous: false, inputs: [], name: 'EIP712DomainChanged' }, { type: 'event', anonymous: false, inputs: [ { name: 'version', internalType: 'uint64', type: 'uint64', indexed: false, }, ], name: 'Initialized', }, { type: 'event', anonymous: false, inputs: [ { name: 'fromPoolKey', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], indexed: false, }, { name: 'fromPoolKeyHash', internalType: 'bytes32', type: 'bytes32', indexed: false, }, { name: 'toPoolKey', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], indexed: false, }, { name: 'toPoolKeyHash', internalType: 'bytes32', type: 'bytes32', indexed: false, }, ], name: 'LiquidityMigrated', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: true, }, { name: 'newName', internalType: 'string', type: 'string', indexed: false, }, { name: 'newSymbol', internalType: 'string', type: 'string', indexed: false, }, ], name: 'NameAndSymbolUpdated', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: true, }, { name: 'prevOwner', internalType: 'address', type: 'address', indexed: true, }, { name: 'newOwner', internalType: 'address', type: 'address', indexed: true, }, ], name: 'OwnerUpdated', }, { type: 'event', anonymous: false, inputs: [ { name: 'from', internalType: 'address', type: 'address', indexed: true }, { name: 'to', internalType: 'address', type: 'address', indexed: true }, { name: 'value', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'Transfer', }, { type: 'error', inputs: [], name: 'AddressZero' }, { type: 'error', inputs: [], name: 'AlreadyOwner' }, { type: 'error', inputs: [], name: 'CannotMintZeroLiquidity' }, { type: 'error', inputs: [], name: 'DopplerPoolMustHaveMoreThan2DiscoveryPositions', }, { type: 'error', inputs: [], name: 'ECDSAInvalidSignature' }, { type: 'error', inputs: [{ name: 'length', internalType: 'uint256', type: 'uint256' }], name: 'ECDSAInvalidSignatureLength', }, { type: 'error', inputs: [{ name: 's', internalType: 'bytes32', type: 'bytes32' }], name: 'ECDSAInvalidSignatureS', }, { type: 'error', inputs: [ { name: 'spender', internalType: 'address', type: 'address' }, { name: 'allowance', internalType: 'uint256', type: 'uint256' }, { name: 'needed', internalType: 'uint256', type: 'uint256' }, ], name: 'ERC20InsufficientAllowance', }, { type: 'error', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'balance', internalType: 'uint256', type: 'uint256' }, { name: 'needed', internalType: 'uint256', type: 'uint256' }, ], name: 'ERC20InsufficientBalance', }, { type: 'error', inputs: [{ name: 'approver', internalType: 'address', type: 'address' }], name: 'ERC20InvalidApprover', }, { type: 'error', inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }], name: 'ERC20InvalidReceiver', }, { type: 'error', inputs: [{ name: 'sender', internalType: 'address', type: 'address' }], name: 'ERC20InvalidSender', }, { type: 'error', inputs: [{ name: 'spender', internalType: 'address', type: 'address' }], name: 'ERC20InvalidSpender', }, { type: 'error', inputs: [], name: 'ERC20TransferAmountMismatch' }, { type: 'error', inputs: [{ name: 'deadline', internalType: 'uint256', type: 'uint256' }], name: 'ERC2612ExpiredSignature', }, { type: 'error', inputs: [ { name: 'signer', internalType: 'address', type: 'address' }, { name: 'owner', internalType: 'address', type: 'address' }, ], name: 'ERC2612InvalidSigner', }, { type: 'error', inputs: [], name: 'EthAmountMismatch' }, { type: 'error', inputs: [], name: 'EthAmountTooSmall' }, { type: 'error', inputs: [], name: 'EthTransferFailed' }, { type: 'error', inputs: [], name: 'EthTransferInvalid' }, { type: 'error', inputs: [], name: 'InitialOrderSizeTooLarge' }, { type: 'error', inputs: [], name: 'InsufficientFunds' }, { type: 'error', inputs: [], name: 'InsufficientLiquidity' }, { type: 'error', inputs: [ { name: 'account', internalType: 'address', type: 'address' }, { name: 'currentNonce', internalType: 'uint256', type: 'uint256' }, ], name: 'InvalidAccountNonce', }, { type: 'error', inputs: [], name: 'InvalidCurrency' }, { type: 'error', inputs: [], name: 'InvalidCurrencyLowerTick' }, { type: 'error', inputs: [], name: 'InvalidInitialization' }, { type: 'error', inputs: [], name: 'InvalidMarketType' }, { type: 'error', inputs: [], name: 'InvalidPoolVersion' }, { type: 'error', inputs: [ { name: 'tickLower', internalType: 'int24', type: 'int24' }, { name: 'tickUpper', internalType: 'int24', type: 'int24' }, ], name: 'InvalidTickRangeMisordered', }, { type: 'error', inputs: [], name: 'InvalidWethLowerTick' }, { type: 'error', inputs: [], name: 'LegacyPoolMustHaveOneDiscoveryPosition' }, { type: 'error', inputs: [], name: 'MarketAlreadyGraduated' }, { type: 'error', inputs: [], name: 'MarketNotGraduated' }, { type: 'error', inputs: [ { name: 'value', internalType: 'uint256', type: 'uint256' }, { name: 'limit', internalType: 'uint256', type: 'uint256' }, ], name: 'MaxShareToBeSoldExceeded', }, { type: 'error', inputs: [], name: 'NameIsRequired' }, { type: 'error', inputs: [], name: 'NotInitializing' }, { type: 'error', inputs: [], name: 'NotOwner' }, { type: 'error', inputs: [], name: 'NumDiscoveryPositionsOutOfRange' }, { type: 'error', inputs: [], name: 'OneOwnerRequired' }, { type: 'error', inputs: [], name: 'OnlyOwner' }, { type: 'error', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'pool', internalType: 'address', type: 'address' }, ], name: 'OnlyPool', }, { type: 'error', inputs: [], name: 'OnlyWeth' }, { type: 'error', inputs: [], name: 'OwnerCannotBeAddressZero' }, { type: 'error', inputs: [], name: 'SlippageBoundsExceeded' }, { type: 'error', inputs: [], name: 'UseRevokeOwnershipToRemoveSelf' }, ] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // CreatorCoin ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// export const creatorCoinABI = [ { type: 'constructor', inputs: [ { name: 'protocolRewardRecipient_', internalType: 'address', type: 'address', }, { name: 'protocolRewards_', internalType: 'address', type: 'address' }, { name: 'poolManager_', internalType: 'contract IPoolManager', type: 'address', }, { name: 'airlock_', internalType: 'address', type: 'address' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'DOMAIN_SEPARATOR', outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'account', internalType: 'address', type: 'address' }], name: 'addOwner', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'accounts', internalType: 'address[]', type: 'address[]' }, ], name: 'addOwners', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'airlock', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'owner', internalType: 'address', type: 'address' }, { name: 'spender', internalType: 'address', type: 'address' }, ], name: 'allowance', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'spender', internalType: 'address', type: 'address' }, { name: 'value', internalType: 'uint256', type: 'uint256' }, ], name: 'approve', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'account', internalType: 'address', type: 'address' }], name: 'balanceOf', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }], name: 'burn', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'claimVesting', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'coinType', outputs: [ { name: '', internalType: 'enum IHasCoinType.CoinType', type: 'uint8' }, ], stateMutability: 'pure', }, { type: 'function', inputs: [], name: 'contractURI', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'contractVersion', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'pure', }, { type: 'function', inputs: [], name: 'creationInfo', outputs: [ { name: 'creationTimestamp', internalType: 'uint256', type: 'uint256' }, { name: 'isDeploying', internalType: 'bool', type: 'bool' }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'currency', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'decimals', outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'dopplerFeeRecipient', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'eip712Domain', outputs: [ { name: 'fields', internalType: 'bytes1', type: 'bytes1' }, { name: 'name', internalType: 'string', type: 'string' }, { name: 'version', internalType: 'string', type: 'string' }, { name: 'chainId', internalType: 'uint256', type: 'uint256' }, { name: 'verifyingContract', internalType: 'address', type: 'address' }, { name: 'salt', internalType: 'bytes32', type: 'bytes32' }, { name: 'extensions', internalType: 'uint256[]', type: 'uint256[]' }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'getClaimableAmount', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'coinVersionLookup', internalType: 'contract IDeployedCoinVersionLookup', type: 'address', }, ], name: 'getPayoutSwapPath', outputs: [ { name: 'payoutSwapPath', internalType: 'struct IHasSwapPath.PayoutSwapPath', type: 'tuple', components: [ { name: 'path', internalType: 'struct PathKey[]', type: 'tuple[]', components: [ { name: 'intermediateCurrency', internalType: 'Currency', type: 'address', }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address', }, { name: 'hookData', internalType: 'bytes', type: 'bytes' }, ], }, { name: 'currencyIn', internalType: 'Currency', type: 'address' }, ], }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'getPoolConfiguration', outputs: [ { name: '', internalType: 'struct PoolConfiguration', type: 'tuple', components: [ { name: 'version', internalType: 'uint8', type: 'uint8' }, { name: 'numPositions', internalType: 'uint16', type: 'uint16' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'numDiscoveryPositions', internalType: 'uint16[]', type: 'uint16[]', }, { name: 'tickLower', internalType: 'int24[]', type: 'int24[]' }, { name: 'tickUpper', internalType: 'int24[]', type: 'int24[]' }, { name: 'maxDiscoverySupplyShare', internalType: 'uint256[]', type: 'uint256[]', }, ], }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'getPoolKey', outputs: [ { name: '', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'hooks', outputs: [{ name: '', internalType: 'contract IHooks', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'payoutRecipient_', internalType: 'address', type: 'address' }, { name: 'owners_', internalType: 'address[]', type: 'address[]' }, { name: 'tokenURI_', internalType: 'string', type: 'string' }, { name: 'name_', internalType: 'string', type: 'string' }, { name: 'symbol_', internalType: 'string', type: 'string' }, { name: 'platformReferrer_', internalType: 'address', type: 'address' }, { name: 'currency_', internalType: 'address', type: 'address' }, { name: 'poolKey_', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160' }, { name: 'poolConfiguration_', internalType: 'struct PoolConfiguration', type: 'tuple', components: [ { name: 'version', internalType: 'uint8', type: 'uint8' }, { name: 'numPositions', internalType: 'uint16', type: 'uint16' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'numDiscoveryPositions', internalType: 'uint16[]', type: 'uint16[]', }, { name: 'tickLower', internalType: 'int24[]', type: 'int24[]' }, { name: 'tickUpper', internalType: 'int24[]', type: 'int24[]' }, { name: 'maxDiscoverySupplyShare', internalType: 'uint256[]', type: 'uint256[]', }, ], }, ], name: 'initialize', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'account', internalType: 'address', type: 'address' }], name: 'isOwner', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'newHook', internalType: 'address', type: 'address' }, { name: 'additionalData', internalType: 'bytes', type: 'bytes' }, ], name: 'migrateLiquidity', outputs: [ { name: 'newPoolKey', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'name', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], name: 'nonces', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'owners', outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'payoutRecipient', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'owner', internalType: 'address', type: 'address' }, { name: 'spender', internalType: 'address', type: 'address' }, { name: 'value', internalType: 'uint256', type: 'uint256' }, { name: 'deadline', internalType: 'uint256', type: 'uint256' }, { name: 'v', internalType: 'uint8', type: 'uint8' }, { name: 'r', internalType: 'bytes32', type: 'bytes32' }, { name: 's', internalType: 'bytes32', type: 'bytes32' }, ], name: 'permit', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'platformReferrer', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'poolManager', outputs: [ { name: '', internalType: 'contract IPoolManager', type: 'address' }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'protocolRewardRecipient', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'protocolRewards', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'account', internalType: 'address', type: 'address' }], name: 'removeOwner', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'accounts', internalType: 'address[]', type: 'address[]' }, ], name: 'removeOwners', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'revokeOwnership', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'newURI', internalType: 'string', type: 'string' }], name: 'setContractURI', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'newName', internalType: 'string', type: 'string' }, { name: 'newSymbol', internalType: 'string', type: 'string' }, ], name: 'setNameAndSymbol', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'newPayoutRecipient', internalType: 'address', type: 'address' }, ], name: 'setPayoutRecipient', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], name: 'supportsInterface', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'symbol', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'tokenURI', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'totalClaimed', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'totalSupply', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'totalSupplyForPositions', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'pure', }, { type: 'function', inputs: [ { name: 'to', internalType: 'address', type: 'address' }, { name: 'value', internalType: 'uint256', type: 'uint256' }, ], name: 'transfer', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'from', internalType: 'address', type: 'address' }, { name: 'to', internalType: 'address', type: 'address' }, { name: 'value', internalType: 'uint256', type: 'uint256' }, ], name: 'transferFrom', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'vestingEndTime', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'vestingStartTime', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'event', anonymous: false, inputs: [ { name: 'owner', internalType: 'address', type: 'address', indexed: true, }, { name: 'spender', internalType: 'address', type: 'address', indexed: true, }, { name: 'value', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'Approval', }, { type: 'event', anonymous: false, inputs: [ { name: 'buyer', internalType: 'address', type: 'address', indexed: true, }, { name: 'recipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'tradeReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'coinsPurchased', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, { name: 'amountFee', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'amountSold', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'CoinBuy', }, { type: 'event', anonymous: false, inputs: [ { name: 'payoutRecipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'platformReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'protocolRewardRecipient', internalType: 'address', type: 'address', indexed: false, }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, { name: 'marketRewards', internalType: 'struct ICoin.MarketRewards', type: 'tuple', components: [ { name: 'totalAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'totalAmountCoin', internalType: 'uint256', type: 'uint256' }, { name: 'creatorPayoutAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'creatorPayoutAmountCoin', internalType: 'uint256', type: 'uint256', }, { name: 'platformReferrerAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'platformReferrerAmountCoin', internalType: 'uint256', type: 'uint256', }, { name: 'protocolAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'protocolAmountCoin', internalType: 'uint256', type: 'uint256', }, ], indexed: false, }, ], name: 'CoinMarketRewards', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: true, }, { name: 'prevRecipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'newRecipient', internalType: 'address', type: 'address', indexed: true, }, ], name: 'CoinPayoutRecipientUpdated', }, { type: 'event', anonymous: false, inputs: [ { name: 'seller', internalType: 'address', type: 'address', indexed: true, }, { name: 'recipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'tradeReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'coinsSold', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, { name: 'amountFee', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'amountPurchased', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'CoinSell', }, { type: 'event', anonymous: false, inputs: [ { name: 'payoutRecipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'platformReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'tradeReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'protocolRewardRecipient', internalType: 'address', type: 'address', indexed: false, }, { name: 'creatorReward', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'platformReferrerReward', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'traderReferrerReward', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'protocolReward', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, ], name: 'CoinTradeRewards', }, { type: 'event', anonymous: false, inputs: [ { name: 'sender', internalType: 'address', type: 'address', indexed: true, }, { name: 'recipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'amount', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'senderBalance', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'recipientBalance', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'CoinTransfer', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: true, }, { name: 'newURI', internalType: 'string', type: 'string', indexed: false, }, { name: 'name', internalType: 'string', type: 'string', indexed: false }, ], name: 'ContractMetadataUpdated', }, { type: 'event', anonymous: false, inputs: [], name: 'ContractURIUpdated' }, { type: 'event', anonymous: false, inputs: [ { name: 'recipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'claimAmount', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'totalClaimed', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'vestingStartTime', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'vestingEndTime', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'CreatorVestingClaimed', }, { type: 'event', anonymous: false, inputs: [], name: 'EIP712DomainChanged' }, { type: 'event', anonymous: false, inputs: [ { name: 'version', internalType: 'uint64', type: 'uint64', indexed: false, }, ], name: 'Initialized', }, { type: 'event', anonymous: false, inputs: [ { name: 'fromPoolKey', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], indexed: false, }, { name: 'fromPoolKeyHash', internalType: 'bytes32', type: 'bytes32', indexed: false, }, { name: 'toPoolKey', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], indexed: false, }, { name: 'toPoolKeyHash', internalType: 'bytes32', type: 'bytes32', indexed: false, }, ], name: 'LiquidityMigrated', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: true, }, { name: 'newName', internalType: 'string', type: 'string', indexed: false, }, { name: 'newSymbol', internalType: 'string', type: 'string', indexed: false, }, ], name: 'NameAndSymbolUpdated', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: true, }, { name: 'prevOwner', internalType: 'address', type: 'address', indexed: true, }, { name: 'newOwner', internalType: 'address', type: 'address', indexed: true, }, ], name: 'OwnerUpdated', }, { type: 'event', anonymous: false, inputs: [ { name: 'from', internalType: 'address', type: 'address', indexed: true }, { name: 'to', internalType: 'address', type: 'address', indexed: true }, { name: 'value', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'Transfer', }, { type: 'error', inputs: [], name: 'AddressZero' }, { type: 'error', inputs: [], name: 'AlreadyOwner' }, { type: 'error', inputs: [], name: 'CannotMintZeroLiquidity' }, { type: 'error', inputs: [], name: 'DopplerPoolMustHaveMoreThan2DiscoveryPositions', }, { type: 'error', inputs: [], name: 'ECDSAInvalidSignature' }, { type: 'error', inputs: [{ name: 'length', internalType: 'uint256', type: 'uint256' }], name: 'ECDSAInvalidSignatureLength', }, { type: 'error', inputs: [{ name: 's', internalType: 'bytes32', type: 'bytes32' }], name: 'ECDSAInvalidSignatureS', }, { type: 'error', inputs: [ { name: 'spender', internalType: 'address', type: 'address' }, { name: 'allowance', internalType: 'uint256', type: 'uint256' }, { name: 'needed', internalType: 'uint256', type: 'uint256' }, ], name: 'ERC20InsufficientAllowance', }, { type: 'error', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'balance', internalType: 'uint256', type: 'uint256' }, { name: 'needed', internalType: 'uint256', type: 'uint256' }, ], name: 'ERC20InsufficientBalance', }, { type: 'error', inputs: [{ name: 'approver', internalType: 'address', type: 'address' }], name: 'ERC20InvalidApprover', }, { type: 'error', inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }], name: 'ERC20InvalidReceiver', }, { type: 'error', inputs: [{ name: 'sender', internalType: 'address', type: 'address' }], name: 'ERC20InvalidSender', }, { type: 'error', inputs: [{ name: 'spender', internalType: 'address', type: 'address' }], name: 'ERC20InvalidSpender', }, { type: 'error', inputs: [], name: 'ERC20TransferAmountMismatch' }, { type: 'error', inputs: [{ name: 'deadline', internalType: 'uint256', type: 'uint256' }], name: 'ERC2612ExpiredSignature', }, { type: 'error', inputs: [ { name: 'signer', internalType: 'address', type: 'address' }, { name: 'owner', internalType: 'address', type: 'address' }, ], name: 'ERC2612InvalidSigner', }, { type: 'error', inputs: [], name: 'EthAmountMismatch' }, { type: 'error', inputs: [], name: 'EthAmountTooSmall' }, { type: 'error', inputs: [], name: 'EthTransferFailed' }, { type: 'error', inputs: [], name: 'EthTransferInvalid' }, { type: 'error', inputs: [], name: 'InitialOrderSizeTooLarge' }, { type: 'error', inputs: [], name: 'InsufficientFunds' }, { type: 'error', inputs: [], name: 'InsufficientLiquidity' }, { type: 'error', inputs: [ { name: 'account', internalType: 'address', type: 'address' }, { name: 'currentNonce', internalType: 'uint256', type: 'uint256' }, ], name: 'InvalidAccountNonce', }, { type: 'error', inputs: [], name: 'InvalidCurrency' }, { type: 'error', inputs: [], name: 'InvalidCurrencyLowerTick' }, { type: 'error', inputs: [], name: 'InvalidInitialization' }, { type: 'error', inputs: [], name: 'InvalidMarketType' }, { type: 'error', inputs: [], name: 'InvalidPoolVersion' }, { type: 'error', inputs: [ { name: 'tickLower', internalType: 'int24', type: 'int24' }, { name: 'tickUpper', internalType: 'int24', type: 'int24' }, ], name: 'InvalidTickRangeMisordered', }, { type: 'error', inputs: [], name: 'InvalidWethLowerTick' }, { type: 'error', inputs: [], name: 'LegacyPoolMustHaveOneDiscoveryPosition' }, { type: 'error', inputs: [], name: 'MarketAlreadyGraduated' }, { type: 'error', inputs: [], name: 'MarketNotGraduated' }, { type: 'error', inputs: [ { name: 'value', internalType: 'uint256', type: 'uint256' }, { name: 'limit', internalType: 'uint256', type: 'uint256' }, ], name: 'MaxShareToBeSoldExceeded', }, { type: 'error', inputs: [], name: 'NameIsRequired' }, { type: 'error', inputs: [], name: 'NotInitializing' }, { type: 'error', inputs: [], name: 'NotOwner' }, { type: 'error', inputs: [], name: 'NumDiscoveryPositionsOutOfRange' }, { type: 'error', inputs: [], name: 'OneOwnerRequired' }, { type: 'error', inputs: [], name: 'OnlyOwner' }, { type: 'error', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'pool', internalType: 'address', type: 'address' }, ], name: 'OnlyPool', }, { type: 'error', inputs: [], name: 'OnlyWeth' }, { type: 'error', inputs: [], name: 'OwnerCannotBeAddressZero' }, { type: 'error', inputs: [], name: 'SlippageBoundsExceeded' }, { type: 'error', inputs: [], name: 'UseRevokeOwnershipToRemoveSelf' }, ] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // IPermit2 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// export const iPermit2ABI = [ { type: 'function', inputs: [], name: 'DOMAIN_SEPARATOR', outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'user', internalType: 'address', type: 'address' }, { name: 'token', internalType: 'address', type: 'address' }, { name: 'spender', internalType: 'address', type: 'address' }, ], name: 'allowance', outputs: [ { name: 'amount', internalType: 'uint160', type: 'uint160' }, { name: 'expiration', internalType: 'uint48', type: 'uint48' }, { name: 'nonce', internalType: 'uint48', type: 'uint48' }, ], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'token', internalType: 'address', type: 'address' }, { name: 'spender', internalType: 'address', type: 'address' }, { name: 'amount', internalType: 'uint160', type: 'uint160' }, { name: 'expiration', internalType: 'uint48', type: 'uint48' }, ], name: 'approve', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'token', internalType: 'address', type: 'address' }, { name: 'spender', internalType: 'address', type: 'address' }, { name: 'newNonce', internalType: 'uint48', type: 'uint48' }, ], name: 'invalidateNonces', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'wordPos', internalType: 'uint256', type: 'uint256' }, { name: 'mask', internalType: 'uint256', type: 'uint256' }, ], name: 'invalidateUnorderedNonces', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'approvals', internalType: 'struct IAllowanceTransfer.TokenSpenderPair[]', type: 'tuple[]', components: [ { name: 'token', internalType: 'address', type: 'address' }, { name: 'spender', internalType: 'address', type: 'address' }, ], }, ], name: 'lockdown', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: '', internalType: 'address', type: 'address' }, { name: '', internalType: 'uint256', type: 'uint256' }, ], name: 'nonceBitmap', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'owner', internalType: 'address', type: 'address' }, { name: 'permitBatch', internalType: 'struct IAllowanceTransfer.PermitBatch', type: 'tuple', components: [ { name: 'details', internalType: 'struct IAllowanceTransfer.PermitDetails[]', type: 'tuple[]', components: [ { name: 'token', internalType: 'address', type: 'address' }, { name: 'amount', internalType: 'uint160', type: 'uint160' }, { name: 'expiration', internalType: 'uint48', type: 'uint48' }, { name: 'nonce', internalType: 'uint48', type: 'uint48' }, ], }, { name: 'spender', internalType: 'address', type: 'address' }, { name: 'sigDeadline', internalType: 'uint256', type: 'uint256' }, ], }, { name: 'signature', internalType: 'bytes', type: 'bytes' }, ], name: 'permit', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'owner', internalType: 'address', type: 'address' }, { name: 'permitSingle', internalType: 'struct IAllowanceTransfer.PermitSingle', type: 'tuple', components: [ { name: 'details', internalType: 'struct IAllowanceTransfer.PermitDetails', type: 'tuple', components: [ { name: 'token', internalType: 'address', type: 'address' }, { name: 'amount', internalType: 'uint160', type: 'uint160' }, { name: 'expiration', internalType: 'uint48', type: 'uint48' }, { name: 'nonce', internalType: 'uint48', type: 'uint48' }, ], }, { name: 'spender', internalType: 'address', type: 'address' }, { name: 'sigDeadline', internalType: 'uint256', type: 'uint256' }, ], }, { name: 'signature', internalType: 'bytes', type: 'bytes' }, ], name: 'permit', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'permit', internalType: 'struct ISignatureTransfer.PermitTransferFrom', type: 'tuple', components: [ { name: 'permitted', internalType: 'struct ISignatureTransfer.TokenPermissions', type: 'tuple', components: [ { name: 'token', internalType: 'address', type: 'address' }, { name: 'amount', internalType: 'uint256', type: 'uint256' }, ], }, { name: 'nonce', internalType: 'uint256', type: 'uint256' }, { name: 'deadline', internalType: 'uint256', type: 'uint256' }, ], }, { name: 'transferDetails', internalType: 'struct ISignatureTransfer.SignatureTransferDetails', type: 'tuple', components: [ { name: 'to', internalType: 'address', type: 'address' }, { name: 'requestedAmount', internalType: 'uint256', type: 'uint256' }, ], }, { name: 'owner', internalType: 'address', type: 'address' }, { name: 'signature', internalType: 'bytes', type: 'bytes' }, ], name: 'permitTransferFrom', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'permit', internalType: 'struct ISignatureTransfer.PermitBatchTransferFrom', type: 'tuple', components: [ { name: 'permitted', internalType: 'struct ISignatureTransfer.TokenPermissions[]', type: 'tuple[]', components: [ { name: 'token', internalType: 'address', type: 'address' }, { name: 'amount', internalType: 'uint256', type: 'uint256' }, ], }, { name: 'nonce', internalType: 'uint256', type: 'uint256' }, { name: 'deadline', internalType: 'uint256', type: 'uint256' }, ], }, { name: 'transferDetails', internalType: 'struct ISignatureTransfer.SignatureTransferDetails[]', type: 'tuple[]', components: [ { name: 'to', internalType: 'address', type: 'address' }, { name: 'requestedAmount', internalType: 'uint256', type: 'uint256' }, ], }, { name: 'owner', internalType: 'address', type: 'address' }, { name: 'signature', internalType: 'bytes', type: 'bytes' }, ], name: 'permitTransferFrom', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'permit', internalType: 'struct ISignatureTransfer.PermitTransferFrom', type: 'tuple', components: [ { name: 'permitted', internalType: 'struct ISignatureTransfer.TokenPermissions', type: 'tuple', components: [ { name: 'token', internalType: 'address', type: 'address' }, { name: 'amount', internalType: 'uint256', type: 'uint256' }, ], }, { name: 'nonce', internalType: 'uint256', type: 'uint256' }, { name: 'deadline', internalType: 'uint256', type: 'uint256' }, ], }, { name: 'transferDetails', internalType: 'struct ISignatureTransfer.SignatureTransferDetails', type: 'tuple', components: [ { name: 'to', internalType: 'address', type: 'address' }, { name: 'requestedAmount', internalType: 'uint256', type: 'uint256' }, ], }, { name: 'owner', internalType: 'address', type: 'address' }, { name: 'witness', internalType: 'bytes32', type: 'bytes32' }, { name: 'witnessTypeString', internalType: 'string', type: 'string' }, { name: 'signature', internalType: 'bytes', type: 'bytes' }, ], name: 'permitWitnessTransferFrom', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'permit', internalType: 'struct ISignatureTransfer.PermitBatchTransferFrom', type: 'tuple', components: [ { name: 'permitted', internalType: 'struct ISignatureTransfer.TokenPermissions[]', type: 'tuple[]', components: [ { name: 'token', internalType: 'address', type: 'address' }, { name: 'amount', internalType: 'uint256', type: 'uint256' }, ], }, { name: 'nonce', internalType: 'uint256', type: 'uint256' }, { name: 'deadline', internalType: 'uint256', type: 'uint256' }, ], }, { name: 'transferDetails', internalType: 'struct ISignatureTransfer.SignatureTransferDetails[]', type: 'tuple[]', components: [ { name: 'to', internalType: 'address', type: 'address' }, { name: 'requestedAmount', internalType: 'uint256', type: 'uint256' }, ], }, { name: 'owner', internalType: 'address', type: 'address' }, { name: 'witness', internalType: 'bytes32', type: 'bytes32' }, { name: 'witnessTypeString', internalType: 'string', type: 'string' }, { name: 'signature', internalType: 'bytes', type: 'bytes' }, ], name: 'permitWitnessTransferFrom', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'transferDetails', internalType: 'struct IAllowanceTransfer.AllowanceTransferDetails[]', type: 'tuple[]', components: [ { name: 'from', internalType: 'address', type: 'address' }, { name: 'to', internalType: 'address', type: 'address' }, { name: 'amount', internalType: 'uint160', type: 'uint160' }, { name: 'token', internalType: 'address', type: 'address' }, ], }, ], name: 'transferFrom', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'from', internalType: 'address', type: 'address' }, { name: 'to', internalType: 'address', type: 'address' }, { name: 'amount', internalType: 'uint160', type: 'uint160' }, { name: 'token', internalType: 'address', type: 'address' }, ], name: 'transferFrom', outputs: [], stateMutability: 'nonpayable', }, { type: 'event', anonymous: false, inputs: [ { name: 'owner', internalType: 'address', type: 'address', indexed: true, }, { name: 'token', internalType: 'address', type: 'address', indexed: true, }, { name: 'spender', internalType: 'address', type: 'address', indexed: true, }, { name: 'amount', internalType: 'uint160', type: 'uint160', indexed: false, }, { name: 'expiration', internalType: 'uint48', type: 'uint48', indexed: false, }, ], name: 'Approval', }, { type: 'event', anonymous: false, inputs: [ { name: 'owner', internalType: 'address', type: 'address', indexed: true, }, { name: 'token', internalType: 'address', type: 'address', indexed: false, }, { name: 'spender', internalType: 'address', type: 'address', indexed: false, }, ], name: 'Lockdown', }, { type: 'event', anonymous: false, inputs: [ { name: 'owner', internalType: 'address', type: 'address', indexed: true, }, { name: 'token', internalType: 'address', type: 'address', indexed: true, }, { name: 'spender', internalType: 'address', type: 'address', indexed: true, }, { name: 'newNonce', internalType: 'uint48', type: 'uint48', indexed: false, }, { name: 'oldNonce', internalType: 'uint48', type: 'uint48', indexed: false, }, ], name: 'NonceInvalidation', }, { type: 'event', anonymous: false, inputs: [ { name: 'owner', internalType: 'address', type: 'address', indexed: true, }, { name: 'token', internalType: 'address', type: 'address', indexed: true, }, { name: 'spender', internalType: 'address', type: 'address', indexed: true, }, { name: 'amount', internalType: 'uint160', type: 'uint160', indexed: false, }, { name: 'expiration', internalType: 'uint48', type: 'uint48', indexed: false, }, { name: 'nonce', internalType: 'uint48', type: 'uint48', indexed: false }, ], name: 'Permit', }, { type: 'event', anonymous: false, inputs: [ { name: 'owner', internalType: 'address', type: 'address', indexed: true, }, { name: 'word', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'mask', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'UnorderedNonceInvalidation', }, { type: 'error', inputs: [{ name: 'deadline', internalType: 'uint256', type: 'uint256' }], name: 'AllowanceExpired', }, { type: 'error', inputs: [], name: 'ExcessiveInvalidation' }, { type: 'error', inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }], name: 'InsufficientAllowance', }, { type: 'error', inputs: [{ name: 'maxAmount', internalType: 'uint256', type: 'uint256' }], name: 'InvalidAmount', }, { type: 'error', inputs: [], name: 'LengthMismatch' }, ] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // IPoolConfigEncoding ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// export const iPoolConfigEncodingABI = [ { type: 'function', inputs: [ { name: 'version', internalType: 'uint8', type: 'uint8' }, { name: 'currency', internalType: 'address', type: 'address' }, { name: 'tickLower', internalType: 'int24[]', type: 'int24[]' }, { name: 'tickUpper', internalType: 'int24[]', type: 'int24[]' }, { name: 'numDiscoveryPositions', internalType: 'uint16[]', type: 'uint16[]', }, { name: 'maxDiscoverySupplyShare', internalType: 'uint256[]', type: 'uint256[]', }, ], name: 'encodeMultiCurvePoolConfig', outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }], stateMutability: 'pure', }, ] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // IPoolManager ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// export const iPoolManagerABI = [ { type: 'function', inputs: [ { name: 'owner', internalType: 'address', type: 'address' }, { name: 'spender', internalType: 'address', type: 'address' }, { name: 'id', internalType: 'uint256', type: 'uint256' }, ], name: 'allowance', outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'spender', internalType: 'address', type: 'address' }, { name: 'id', internalType: 'uint256', type: 'uint256' }, { name: 'amount', internalType: 'uint256', type: 'uint256' }, ], name: 'approve', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'owner', internalType: 'address', type: 'address' }, { name: 'id', internalType: 'uint256', type: 'uint256' }, ], name: 'balanceOf', outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'from', internalType: 'address', type: 'address' }, { name: 'id', internalType: 'uint256', type: 'uint256' }, { name: 'amount', internalType: 'uint256', type: 'uint256' }, ], name: 'burn', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'currency', internalType: 'Currency', type: 'address' }, { name: 'amount', internalType: 'uint256', type: 'uint256' }, ], name: 'clear', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'recipient', internalType: 'address', type: 'address' }, { name: 'currency', internalType: 'Currency', type: 'address' }, { name: 'amount', internalType: 'uint256', type: 'uint256' }, ], name: 'collectProtocolFees', outputs: [ { name: 'amountCollected', internalType: 'uint256', type: 'uint256' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'amount0', internalType: 'uint256', type: 'uint256' }, { name: 'amount1', internalType: 'uint256', type: 'uint256' }, { name: 'hookData', internalType: 'bytes', type: 'bytes' }, ], name: 'donate', outputs: [{ name: '', internalType: 'BalanceDelta', type: 'int256' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], name: 'extsload', outputs: [{ name: 'value', internalType: 'bytes32', type: 'bytes32' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'startSlot', internalType: 'bytes32', type: 'bytes32' }, { name: 'nSlots', internalType: 'uint256', type: 'uint256' }, ], name: 'extsload', outputs: [{ name: 'values', internalType: 'bytes32[]', type: 'bytes32[]' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'slots', internalType: 'bytes32[]', type: 'bytes32[]' }], name: 'extsload', outputs: [{ name: 'values', internalType: 'bytes32[]', type: 'bytes32[]' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'slots', internalType: 'bytes32[]', type: 'bytes32[]' }], name: 'exttload', outputs: [{ name: 'values', internalType: 'bytes32[]', type: 'bytes32[]' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], name: 'exttload', outputs: [{ name: 'value', internalType: 'bytes32', type: 'bytes32' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160' }, ], name: 'initialize', outputs: [{ name: 'tick', internalType: 'int24', type: 'int24' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'owner', internalType: 'address', type: 'address' }, { name: 'spender', internalType: 'address', type: 'address' }, ], name: 'isOperator', outputs: [{ name: 'approved', internalType: 'bool', type: 'bool' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'to', internalType: 'address', type: 'address' }, { name: 'id', internalType: 'uint256', type: 'uint256' }, { name: 'amount', internalType: 'uint256', type: 'uint256' }, ], name: 'mint', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'params', internalType: 'struct ModifyLiquidityParams', type: 'tuple', components: [ { name: 'tickLower', internalType: 'int24', type: 'int24' }, { name: 'tickUpper', internalType: 'int24', type: 'int24' }, { name: 'liquidityDelta', internalType: 'int256', type: 'int256' }, { name: 'salt', internalType: 'bytes32', type: 'bytes32' }, ], }, { name: 'hookData', internalType: 'bytes', type: 'bytes' }, ], name: 'modifyLiquidity', outputs: [ { name: 'callerDelta', internalType: 'BalanceDelta', type: 'int256' }, { name: 'feesAccrued', internalType: 'BalanceDelta', type: 'int256' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'protocolFeeController', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'currency', internalType: 'Currency', type: 'address' }], name: 'protocolFeesAccrued', outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'operator', internalType: 'address', type: 'address' }, { name: 'approved', internalType: 'bool', type: 'bool' }, ], name: 'setOperator', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'newProtocolFee', internalType: 'uint24', type: 'uint24' }, ], name: 'setProtocolFee', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'controller', internalType: 'address', type: 'address' }], name: 'setProtocolFeeController', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'settle', outputs: [{ name: 'paid', internalType: 'uint256', type: 'uint256' }], stateMutability: 'payable', }, { type: 'function', inputs: [{ name: 'recipient', internalType: 'address', type: 'address' }], name: 'settleFor', outputs: [{ name: 'paid', internalType: 'uint256', type: 'uint256' }], stateMutability: 'payable', }, { type: 'function', inputs: [ { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'params', internalType: 'struct SwapParams', type: 'tuple', components: [ { name: 'zeroForOne', internalType: 'bool', type: 'bool' }, { name: 'amountSpecified', internalType: 'int256', type: 'int256' }, { name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160', }, ], }, { name: 'hookData', internalType: 'bytes', type: 'bytes' }, ], name: 'swap', outputs: [ { name: 'swapDelta', internalType: 'BalanceDelta', type: 'int256' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'currency', internalType: 'Currency', type: 'address' }], name: 'sync', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'currency', internalType: 'Currency', type: 'address' }, { name: 'to', internalType: 'address', type: 'address' }, { name: 'amount', internalType: 'uint256', type: 'uint256' }, ], name: 'take', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'receiver', internalType: 'address', type: 'address' }, { name: 'id', internalType: 'uint256', type: 'uint256' }, { name: 'amount', internalType: 'uint256', type: 'uint256' }, ], name: 'transfer', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'receiver', internalType: 'address', type: 'address' }, { name: 'id', internalType: 'uint256', type: 'uint256' }, { name: 'amount', internalType: 'uint256', type: 'uint256' }, ], name: 'transferFrom', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }], name: 'unlock', outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'newDynamicLPFee', internalType: 'uint24', type: 'uint24' }, ], name: 'updateDynamicLPFee', outputs: [], stateMutability: 'nonpayable', }, { type: 'event', anonymous: false, inputs: [ { name: 'owner', internalType: 'address', type: 'address', indexed: true, }, { name: 'spender', internalType: 'address', type: 'address', indexed: true, }, { name: 'id', internalType: 'uint256', type: 'uint256', indexed: true }, { name: 'amount', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'Approval', }, { type: 'event', anonymous: false, inputs: [ { name: 'id', internalType: 'PoolId', type: 'bytes32', indexed: true }, { name: 'sender', internalType: 'address', type: 'address', indexed: true, }, { name: 'amount0', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'amount1', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'Donate', }, { type: 'event', anonymous: false, inputs: [ { name: 'id', internalType: 'PoolId', type: 'bytes32', indexed: true }, { name: 'currency0', internalType: 'Currency', type: 'address', indexed: true, }, { name: 'currency1', internalType: 'Currency', type: 'address', indexed: true, }, { name: 'fee', internalType: 'uint24', type: 'uint24', indexed: false }, { name: 'tickSpacing', internalType: 'int24', type: 'int24', indexed: false, }, { name: 'hooks', internalType: 'contract IHooks', type: 'address', indexed: false, }, { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160', indexed: false, }, { name: 'tick', internalType: 'int24', type: 'int24', indexed: false }, ], name: 'Initialize', }, { type: 'event', anonymous: false, inputs: [ { name: 'id', internalType: 'PoolId', type: 'bytes32', indexed: true }, { name: 'sender', internalType: 'address', type: 'address', indexed: true, }, { name: 'tickLower', internalType: 'int24', type: 'int24', indexed: false, }, { name: 'tickUpper', internalType: 'int24', type: 'int24', indexed: false, }, { name: 'liquidityDelta', internalType: 'int256', type: 'int256', indexed: false, }, { name: 'salt', internalType: 'bytes32', type: 'bytes32', indexed: false, }, ], name: 'ModifyLiquidity', }, { type: 'event', anonymous: false, inputs: [ { name: 'owner', internalType: 'address', type: 'address', indexed: true, }, { name: 'operator', internalType: 'address', type: 'address', indexed: true, }, { name: 'approved', internalType: 'bool', type: 'bool', indexed: false }, ], name: 'OperatorSet', }, { type: 'event', anonymous: false, inputs: [ { name: 'protocolFeeController', internalType: 'address', type: 'address', indexed: true, }, ], name: 'ProtocolFeeControllerUpdated', }, { type: 'event', anonymous: false, inputs: [ { name: 'id', internalType: 'PoolId', type: 'bytes32', indexed: true }, { name: 'protocolFee', internalType: 'uint24', type: 'uint24', indexed: false, }, ], name: 'ProtocolFeeUpdated', }, { type: 'event', anonymous: false, inputs: [ { name: 'id', internalType: 'PoolId', type: 'bytes32', indexed: true }, { name: 'sender', internalType: 'address', type: 'address', indexed: true, }, { name: 'amount0', internalType: 'int128', type: 'int128', indexed: false, }, { name: 'amount1', internalType: 'int128', type: 'int128', indexed: false, }, { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160', indexed: false, }, { name: 'liquidity', internalType: 'uint128', type: 'uint128', indexed: false, }, { name: 'tick', internalType: 'int24', type: 'int24', indexed: false }, { name: 'fee', internalType: 'uint24', type: 'uint24', indexed: false }, ], name: 'Swap', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: false, }, { name: 'from', internalType: 'address', type: 'address', indexed: true }, { name: 'to', internalType: 'address', type: 'address', indexed: true }, { name: 'id', internalType: 'uint256', type: 'uint256', indexed: true }, { name: 'amount', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'Transfer', }, { type: 'error', inputs: [], name: 'AlreadyUnlocked' }, { type: 'error', inputs: [ { name: 'currency0', internalType: 'address', type: 'address' }, { name: 'currency1', internalType: 'address', type: 'address' }, ], name: 'CurrenciesOutOfOrderOrEqual', }, { type: 'error', inputs: [], name: 'CurrencyNotSettled' }, { type: 'error', inputs: [], name: 'InvalidCaller' }, { type: 'error', inputs: [], name: 'ManagerLocked' }, { type: 'error', inputs: [], name: 'MustClearExactPositiveDelta' }, { type: 'error', inputs: [], name: 'NonzeroNativeValue' }, { type: 'error', inputs: [], name: 'PoolNotInitialized' }, { type: 'error', inputs: [], name: 'ProtocolFeeCurrencySynced' }, { type: 'error', inputs: [{ name: 'fee', internalType: 'uint24', type: 'uint24' }], name: 'ProtocolFeeTooLarge', }, { type: 'error', inputs: [], name: 'SwapAmountCannotBeZero' }, { type: 'error', inputs: [{ name: 'tickSpacing', internalType: 'int24', type: 'int24' }], name: 'TickSpacingTooLarge', }, { type: 'error', inputs: [{ name: 'tickSpacing', internalType: 'int24', type: 'int24' }], name: 'TickSpacingTooSmall', }, { type: 'error', inputs: [], name: 'UnauthorizedDynamicLPFeeUpdate' }, ] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // IUniswapV3Pool ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// export const iUniswapV3PoolABI = [ { type: 'function', inputs: [ { name: 'tickLower', internalType: 'int24', type: 'int24' }, { name: 'tickUpper', internalType: 'int24', type: 'int24' }, { name: 'amount', internalType: 'uint128', type: 'uint128' }, ], name: 'burn', outputs: [ { name: 'amount0', internalType: 'uint256', type: 'uint256' }, { name: 'amount1', internalType: 'uint256', type: 'uint256' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'recipient', internalType: 'address', type: 'address' }, { name: 'tickLower', internalType: 'int24', type: 'int24' }, { name: 'tickUpper', internalType: 'int24', type: 'int24' }, { name: 'amount0Requested', internalType: 'uint128', type: 'uint128' }, { name: 'amount1Requested', internalType: 'uint128', type: 'uint128' }, ], name: 'collect', outputs: [ { name: 'amount0', internalType: 'uint128', type: 'uint128' }, { name: 'amount1', internalType: 'uint128', type: 'uint128' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'feeGrowthGlobal0X128', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'feeGrowthGlobal1X128', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160' }, ], name: 'initialize', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'recipient', internalType: 'address', type: 'address' }, { name: 'tickLower', internalType: 'int24', type: 'int24' }, { name: 'tickUpper', internalType: 'int24', type: 'int24' }, { name: 'amount', internalType: 'uint128', type: 'uint128' }, { name: 'data', internalType: 'bytes', type: 'bytes' }, ], name: 'mint', outputs: [ { name: 'amount0', internalType: 'uint256', type: 'uint256' }, { name: 'amount1', internalType: 'uint256', type: 'uint256' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'slot0', outputs: [ { name: 'slot0', internalType: 'struct IUniswapV3Pool.Slot0', type: 'tuple', components: [ { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160' }, { name: 'tick', internalType: 'int24', type: 'int24' }, { name: 'observationIndex', internalType: 'uint16', type: 'uint16' }, { name: 'observationCardinality', internalType: 'uint16', type: 'uint16', }, { name: 'observationCardinalityNext', internalType: 'uint16', type: 'uint16', }, { name: 'feeProtocol', internalType: 'uint8', type: 'uint8' }, { name: 'unlocked', internalType: 'bool', type: 'bool' }, ], }, ], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'recipient', internalType: 'address', type: 'address' }, { name: 'zeroForOne', internalType: 'bool', type: 'bool' }, { name: 'amountSpecified', internalType: 'int256', type: 'int256' }, { name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160' }, { name: 'data', internalType: 'bytes', type: 'bytes' }, ], name: 'swap', outputs: [ { name: 'amount0', internalType: 'int256', type: 'int256' }, { name: 'amount1', internalType: 'int256', type: 'int256' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'token0', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'token1', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'nonpayable', }, ] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // IUniversalRouter ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// export const iUniversalRouterABI = [ { type: 'function', inputs: [ { name: 'commands', internalType: 'bytes', type: 'bytes' }, { name: 'inputs', internalType: 'bytes[]', type: 'bytes[]' }, { name: 'deadline', internalType: 'uint256', type: 'uint256' }, ], name: 'execute', outputs: [], stateMutability: 'payable', }, { type: 'error', inputs: [], name: 'ETHNotAccepted' }, { type: 'error', inputs: [ { name: 'commandIndex', internalType: 'uint256', type: 'uint256' }, { name: 'message', internalType: 'bytes', type: 'bytes' }, ], name: 'ExecutionFailed', }, { type: 'error', inputs: [], name: 'InvalidEthSender' }, { type: 'error', inputs: [], name: 'LengthMismatch' }, { type: 'error', inputs: [], name: 'TransactionDeadlinePassed' }, ] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ZoraFactoryImpl ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// export const zoraFactoryImplABI = [ { type: 'constructor', inputs: [ { name: 'coinV4Impl_', internalType: 'address', type: 'address' }, { name: 'creatorCoinImpl_', internalType: 'address', type: 'address' }, { name: 'trendCoinImpl_', internalType: 'address', type: 'address' }, { name: 'hook_', internalType: 'address', type: 'address' }, { name: 'zoraHookRegistry_', internalType: 'address', type: 'address' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'UPGRADE_INTERFACE_VERSION', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'acceptOwnership', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'msgSender', internalType: 'address', type: 'address' }, { name: 'name', internalType: 'string', type: 'string' }, { name: 'symbol', internalType: 'string', type: 'string' }, { name: 'poolConfig', internalType: 'bytes', type: 'bytes' }, { name: 'platformReferrer', internalType: 'address', type: 'address' }, { name: 'coinSalt', internalType: 'bytes32', type: 'bytes32' }, ], name: 'coinAddress', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'coinV4Impl', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'contentCoinHook', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'contractName', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'pure', }, { type: 'function', inputs: [], name: 'contractVersion', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'pure', }, { type: 'function', inputs: [], name: 'creatorCoinHook', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'creatorCoinImpl', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'payoutRecipient', internalType: 'address', type: 'address' }, { name: 'owners', internalType: 'address[]', type: 'address[]' }, { name: 'uri', internalType: 'string', type: 'string' }, { name: 'name', internalType: 'string', type: 'string' }, { name: 'symbol', internalType: 'string', type: 'string' }, { name: 'platformReferrer', internalType: 'address', type: 'address' }, { name: 'currency', internalType: 'address', type: 'address' }, { name: '', internalType: 'int24', type: 'int24' }, { name: '', internalType: 'uint256', type: 'uint256' }, ], name: 'deploy', outputs: [ { name: '', internalType: 'address', type: 'address' }, { name: '', internalType: 'uint256', type: 'uint256' }, ], stateMutability: 'payable', }, { type: 'function', inputs: [ { name: 'payoutRecipient', internalType: 'address', type: 'address' }, { name: 'owners', internalType: 'address[]', type: 'address[]' }, { name: 'uri', internalType: 'string', type: 'string' }, { name: 'name', internalType: 'string', type: 'string' }, { name: 'symbol', internalType: 'string', type: 'string' }, { name: 'poolConfig', internalType: 'bytes', type: 'bytes' }, { name: 'platformReferrer', internalType: 'address', type: 'address' }, { name: 'postDeployHook', internalType: 'address', type: 'address' }, { name: 'postDeployHookData', internalType: 'bytes', type: 'bytes' }, { name: 'coinSalt', internalType: 'bytes32', type: 'bytes32' }, ], name: 'deploy', outputs: [ { name: 'coin', internalType: 'address', type: 'address' }, { name: 'postDeployHookDataOut', internalType: 'bytes', type: 'bytes' }, ], stateMutability: 'payable', }, { type: 'function', inputs: [ { name: 'payoutRecipient', internalType: 'address', type: 'address' }, { name: 'owners', internalType: 'address[]', type: 'address[]' }, { name: 'uri', internalType: 'string', type: 'string' }, { name: 'name', internalType: 'string', type: 'string' }, { name: 'symbol', internalType: 'string', type: 'string' }, { name: 'poolConfig', internalType: 'bytes', type: 'bytes' }, { name: 'platformReferrer', internalType: 'address', type: 'address' }, { name: '', internalType: 'uint256', type: 'uint256' }, ], name: 'deploy', outputs: [ { name: '', internalType: 'address', type: 'address' }, { name: '', internalType: 'uint256', type: 'uint256' }, ], stateMutability: 'payable', }, { type: 'function', inputs: [ { name: 'payoutRecipient', internalType: 'address', type: 'address' }, { name: 'owners', internalType: 'address[]', type: 'address[]' }, { name: 'uri', internalType: 'string', type: 'string' }, { name: 'name', internalType: 'string', type: 'string' }, { name: 'symbol', internalType: 'string', type: 'string' }, { name: 'poolConfig', internalType: 'bytes', type: 'bytes' }, { name: 'platformReferrer', internalType: 'address', type: 'address' }, { name: 'coinSalt', internalType: 'bytes32', type: 'bytes32' }, ], name: 'deployCreatorCoin', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'payoutRecipient', internalType: 'address', type: 'address' }, { name: 'owners', internalType: 'address[]', type: 'address[]' }, { name: 'uri', internalType: 'string', type: 'string' }, { name: 'name', internalType: 'string', type: 'string' }, { name: 'symbol', internalType: 'string', type: 'string' }, { name: 'poolConfig', internalType: 'bytes', type: 'bytes' }, { name: 'platformReferrer', internalType: 'address', type: 'address' }, { name: 'postDeployHook', internalType: 'address', type: 'address' }, { name: 'postDeployHookData', internalType: 'bytes', type: 'bytes' }, { name: 'coinSalt', internalType: 'bytes32', type: 'bytes32' }, ], name: 'deployCreatorCoin', outputs: [ { name: 'coin', internalType: 'address', type: 'address' }, { name: 'postDeployHookDataOut', internalType: 'bytes', type: 'bytes' }, ], stateMutability: 'payable', }, { type: 'function', inputs: [ { name: 'symbol', internalType: 'string', type: 'string' }, { name: 'postDeployHook', internalType: 'address', type: 'address' }, { name: 'postDeployHookData', internalType: 'bytes', type: 'bytes' }, ], name: 'deployTrendCoin', outputs: [ { name: 'coin', internalType: 'address', type: 'address' }, { name: 'postDeployHookDataOut', internalType: 'bytes', type: 'bytes' }, ], stateMutability: 'payable', }, { type: 'function', inputs: [ { name: 'payoutRecipient', internalType: 'address', type: 'address' }, { name: 'owners', internalType: 'address[]', type: 'address[]' }, { name: 'uri', internalType: 'string', type: 'string' }, { name: 'name', internalType: 'string', type: 'string' }, { name: 'symbol', internalType: 'string', type: 'string' }, { name: 'poolConfig', internalType: 'bytes', type: 'bytes' }, { name: 'platformReferrer', internalType: 'address', type: 'address' }, { name: 'deployHook', internalType: 'address', type: 'address' }, { name: 'hookData', internalType: 'bytes', type: 'bytes' }, ], name: 'deployWithHook', outputs: [ { name: 'coin', internalType: 'address', type: 'address' }, { name: 'hookDataOut', internalType: 'bytes', type: 'bytes' }, ], stateMutability: 'payable', }, { type: 'function', inputs: [{ name: 'coin', internalType: 'address', type: 'address' }], name: 'getVersionForDeployedCoin', outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'hook', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'implementation', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'initialOwner', internalType: 'address', type: 'address' }, ], name: 'initialize', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'owner', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'pendingOwner', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'proxiableUUID', outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'renounceOwnership', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'currency', internalType: 'address', type: 'address' }, { name: 'tickLower', internalType: 'int24[]', type: 'int24[]' }, { name: 'tickUpper', internalType: 'int24[]', type: 'int24[]' }, { name: 'numDiscoveryPositions', internalType: 'uint16[]', type: 'uint16[]', }, { name: 'maxDiscoverySupplyShare', internalType: 'uint256[]', type: 'uint256[]', }, ], name: 'setTrendCoinPoolConfig', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }], name: 'transferOwnership', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'symbol', internalType: 'string', type: 'string' }], name: 'trendCoinAddress', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'trendCoinImpl', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'trendCoinPoolConfig', outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'newImplementation', internalType: 'address', type: 'address' }, { name: 'data', internalType: 'bytes', type: 'bytes' }, ], name: 'upgradeToAndCall', outputs: [], stateMutability: 'payable', }, { type: 'function', inputs: [], name: 'zoraHookRegistry', outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: true, }, { name: 'payoutRecipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'platformReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, { name: 'uri', internalType: 'string', type: 'string', indexed: false }, { name: 'name', internalType: 'string', type: 'string', indexed: false }, { name: 'symbol', internalType: 'string', type: 'string', indexed: false, }, { name: 'coin', internalType: 'address', type: 'address', indexed: false, }, { name: 'pool', internalType: 'address', type: 'address', indexed: false, }, { name: 'version', internalType: 'string', type: 'string', indexed: false, }, ], name: 'CoinCreated', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: true, }, { name: 'payoutRecipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'platformReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, { name: 'uri', internalType: 'string', type: 'string', indexed: false }, { name: 'name', internalType: 'string', type: 'string', indexed: false }, { name: 'symbol', internalType: 'string', type: 'string', indexed: false, }, { name: 'coin', internalType: 'address', type: 'address', indexed: false, }, { name: 'poolKey', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], indexed: false, }, { name: 'poolKeyHash', internalType: 'bytes32', type: 'bytes32', indexed: false, }, { name: 'version', internalType: 'string', type: 'string', indexed: false, }, ], name: 'CoinCreatedV4', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: true, }, { name: 'payoutRecipient', internalType: 'address', type: 'address', indexed: true, }, { name: 'platformReferrer', internalType: 'address', type: 'address', indexed: true, }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, { name: 'uri', internalType: 'string', type: 'string', indexed: false }, { name: 'name', internalType: 'string', type: 'string', indexed: false }, { name: 'symbol', internalType: 'string', type: 'string', indexed: false, }, { name: 'coin', internalType: 'address', type: 'address', indexed: false, }, { name: 'poolKey', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], indexed: false, }, { name: 'poolKeyHash', internalType: 'bytes32', type: 'bytes32', indexed: false, }, { name: 'version', internalType: 'string', type: 'string', indexed: false, }, ], name: 'CreatorCoinCreated', }, { type: 'event', anonymous: false, inputs: [ { name: 'version', internalType: 'uint64', type: 'uint64', indexed: false, }, ], name: 'Initialized', }, { type: 'event', anonymous: false, inputs: [ { name: 'previousOwner', internalType: 'address', type: 'address', indexed: true, }, { name: 'newOwner', internalType: 'address', type: 'address', indexed: true, }, ], name: 'OwnershipTransferStarted', }, { type: 'event', anonymous: false, inputs: [ { name: 'previousOwner', internalType: 'address', type: 'address', indexed: true, }, { name: 'newOwner', internalType: 'address', type: 'address', indexed: true, }, ], name: 'OwnershipTransferred', }, { type: 'event', anonymous: false, inputs: [ { name: 'caller', internalType: 'address', type: 'address', indexed: true, }, { name: 'symbol', internalType: 'string', type: 'string', indexed: false, }, { name: 'coin', internalType: 'address', type: 'address', indexed: false, }, { name: 'poolKey', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], indexed: false, }, { name: 'poolKeyHash', internalType: 'bytes32', type: 'bytes32', indexed: false, }, { name: 'poolConfig', internalType: 'bytes', type: 'bytes', indexed: false, }, { name: 'version', internalType: 'string', type: 'string', indexed: false, }, ], name: 'TrendCoinCreated', }, { type: 'event', anonymous: false, inputs: [ { name: 'poolConfig', internalType: 'bytes', type: 'bytes', indexed: false, }, ], name: 'TrendCoinPoolConfigUpdated', }, { type: 'event', anonymous: false, inputs: [ { name: 'implementation', internalType: 'address', type: 'address', indexed: true, }, ], name: 'Upgraded', }, { type: 'error', inputs: [{ name: 'target', internalType: 'address', type: 'address' }], name: 'AddressEmptyCode', }, { type: 'error', inputs: [], name: 'ArrayLengthMismatch' }, { type: 'error', inputs: [], name: 'ConfigTickLowerMustBeLessThanTickUpper' }, { type: 'error', inputs: [], name: 'Deprecated' }, { type: 'error', inputs: [ { name: 'implementation', internalType: 'address', type: 'address' }, ], name: 'ERC1967InvalidImplementation', }, { type: 'error', inputs: [], name: 'ERC1967NonPayable' }, { type: 'error', inputs: [], name: 'EthTransferInvalid' }, { type: 'error', inputs: [], name: 'FailedCall' }, { type: 'error', inputs: [], name: 'FailedDeployment' }, { type: 'error', inputs: [ { name: 'balance', internalType: 'uint256', type: 'uint256' }, { name: 'needed', internalType: 'uint256', type: 'uint256' }, ], name: 'InsufficientBalance', }, { type: 'error', inputs: [], name: 'InvalidConfig' }, { type: 'error', inputs: [], name: 'InvalidHook' }, { type: 'error', inputs: [], name: 'InvalidInitialization' }, { type: 'error', inputs: [], name: 'InvalidPoolVersion' }, { type: 'error', inputs: [ { name: 'tickLower', internalType: 'int24', type: 'int24' }, { name: 'tickUpper', internalType: 'int24', type: 'int24' }, ], name: 'InvalidTickRangeMisordered', }, { type: 'error', inputs: [ { name: 'value', internalType: 'uint256', type: 'uint256' }, { name: 'limit', internalType: 'uint256', type: 'uint256' }, ], name: 'MaxShareToBeSoldExceeded', }, { type: 'error', inputs: [], name: 'NotInitializing' }, { type: 'error', inputs: [], name: 'NumDiscoveryPositionsOutOfRange' }, { type: 'error', inputs: [{ name: 'owner', internalType: 'address', type: 'address' }], name: 'OwnableInvalidOwner', }, { type: 'error', inputs: [{ name: 'account', internalType: 'address', type: 'address' }], name: 'OwnableUnauthorizedAccount', }, { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' }, { type: 'error', inputs: [{ name: 'symbol', internalType: 'string', type: 'string' }], name: 'TickerAlreadyUsed', }, { type: 'error', inputs: [], name: 'TickerInvalidCharacters' }, { type: 'error', inputs: [], name: 'TickerTooLong' }, { type: 'error', inputs: [], name: 'TickerTooShort' }, { type: 'error', inputs: [], name: 'TrendCoinPoolConfigNotSet' }, { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' }, { type: 'error', inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }], name: 'UUPSUnsupportedProxiableUUID', }, { type: 'error', inputs: [ { name: 'currentName', internalType: 'string', type: 'string' }, { name: 'newName', internalType: 'string', type: 'string' }, ], name: 'UpgradeToMismatchedContractName', }, { type: 'error', inputs: [], name: 'UseSpecificTrendCoinInitialize' }, { type: 'error', inputs: [], name: 'ZeroDiscoveryPositions' }, { type: 'error', inputs: [], name: 'ZeroDiscoverySupplyShare' }, ] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ZoraV4CoinHook ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// export const zoraV4CoinHookABI = [ { type: 'constructor', inputs: [ { name: 'poolManager_', internalType: 'contract IPoolManager', type: 'address', }, { name: 'coinVersionLookup_', internalType: 'contract IDeployedCoinVersionLookup', type: 'address', }, { name: 'trustedMsgSenderLookup_', internalType: 'contract ITrustedMsgSenderProviderLookup', type: 'address', }, { name: 'upgradeGate_', internalType: 'contract IHooksUpgradeGate', type: 'address', }, { name: 'zoraLimitOrderBook_', internalType: 'contract IZoraLimitOrderBookCoinsInterface', type: 'address', }, { name: 'zoraHookRegistry_', internalType: 'contract IZoraHookRegistry', type: 'address', }, ], stateMutability: 'nonpayable', }, { type: 'receive', stateMutability: 'payable' }, { type: 'function', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'params', internalType: 'struct ModifyLiquidityParams', type: 'tuple', components: [ { name: 'tickLower', internalType: 'int24', type: 'int24' }, { name: 'tickUpper', internalType: 'int24', type: 'int24' }, { name: 'liquidityDelta', internalType: 'int256', type: 'int256' }, { name: 'salt', internalType: 'bytes32', type: 'bytes32' }, ], }, { name: 'delta', internalType: 'BalanceDelta', type: 'int256' }, { name: 'feesAccrued', internalType: 'BalanceDelta', type: 'int256' }, { name: 'hookData', internalType: 'bytes', type: 'bytes' }, ], name: 'afterAddLiquidity', outputs: [ { name: '', internalType: 'bytes4', type: 'bytes4' }, { name: '', internalType: 'BalanceDelta', type: 'int256' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'amount0', internalType: 'uint256', type: 'uint256' }, { name: 'amount1', internalType: 'uint256', type: 'uint256' }, { name: 'hookData', internalType: 'bytes', type: 'bytes' }, ], name: 'afterDonate', outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160' }, { name: 'tick', internalType: 'int24', type: 'int24' }, ], name: 'afterInitialize', outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'params', internalType: 'struct ModifyLiquidityParams', type: 'tuple', components: [ { name: 'tickLower', internalType: 'int24', type: 'int24' }, { name: 'tickUpper', internalType: 'int24', type: 'int24' }, { name: 'liquidityDelta', internalType: 'int256', type: 'int256' }, { name: 'salt', internalType: 'bytes32', type: 'bytes32' }, ], }, { name: 'delta', internalType: 'BalanceDelta', type: 'int256' }, { name: 'feesAccrued', internalType: 'BalanceDelta', type: 'int256' }, { name: 'hookData', internalType: 'bytes', type: 'bytes' }, ], name: 'afterRemoveLiquidity', outputs: [ { name: '', internalType: 'bytes4', type: 'bytes4' }, { name: '', internalType: 'BalanceDelta', type: 'int256' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'params', internalType: 'struct SwapParams', type: 'tuple', components: [ { name: 'zeroForOne', internalType: 'bool', type: 'bool' }, { name: 'amountSpecified', internalType: 'int256', type: 'int256' }, { name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160', }, ], }, { name: 'delta', internalType: 'BalanceDelta', type: 'int256' }, { name: 'hookData', internalType: 'bytes', type: 'bytes' }, ], name: 'afterSwap', outputs: [ { name: '', internalType: 'bytes4', type: 'bytes4' }, { name: '', internalType: 'int128', type: 'int128' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'params', internalType: 'struct ModifyLiquidityParams', type: 'tuple', components: [ { name: 'tickLower', internalType: 'int24', type: 'int24' }, { name: 'tickUpper', internalType: 'int24', type: 'int24' }, { name: 'liquidityDelta', internalType: 'int256', type: 'int256' }, { name: 'salt', internalType: 'bytes32', type: 'bytes32' }, ], }, { name: 'hookData', internalType: 'bytes', type: 'bytes' }, ], name: 'beforeAddLiquidity', outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'amount0', internalType: 'uint256', type: 'uint256' }, { name: 'amount1', internalType: 'uint256', type: 'uint256' }, { name: 'hookData', internalType: 'bytes', type: 'bytes' }, ], name: 'beforeDonate', outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160' }, ], name: 'beforeInitialize', outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'params', internalType: 'struct ModifyLiquidityParams', type: 'tuple', components: [ { name: 'tickLower', internalType: 'int24', type: 'int24' }, { name: 'tickUpper', internalType: 'int24', type: 'int24' }, { name: 'liquidityDelta', internalType: 'int256', type: 'int256' }, { name: 'salt', internalType: 'bytes32', type: 'bytes32' }, ], }, { name: 'hookData', internalType: 'bytes', type: 'bytes' }, ], name: 'beforeRemoveLiquidity', outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'sender', internalType: 'address', type: 'address' }, { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'params', internalType: 'struct SwapParams', type: 'tuple', components: [ { name: 'zeroForOne', internalType: 'bool', type: 'bool' }, { name: 'amountSpecified', internalType: 'int256', type: 'int256' }, { name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160', }, ], }, { name: 'hookData', internalType: 'bytes', type: 'bytes' }, ], name: 'beforeSwap', outputs: [ { name: '', internalType: 'bytes4', type: 'bytes4' }, { name: '', internalType: 'BeforeSwapDelta', type: 'int256' }, { name: '', internalType: 'uint24', type: 'uint24' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'contractVersion', outputs: [{ name: '', internalType: 'string', type: 'string' }], stateMutability: 'pure', }, { type: 'function', inputs: [], name: 'getHookPermissions', outputs: [ { name: '', internalType: 'struct Hooks.Permissions', type: 'tuple', components: [ { name: 'beforeInitialize', internalType: 'bool', type: 'bool' }, { name: 'afterInitialize', internalType: 'bool', type: 'bool' }, { name: 'beforeAddLiquidity', internalType: 'bool', type: 'bool' }, { name: 'afterAddLiquidity', internalType: 'bool', type: 'bool' }, { name: 'beforeRemoveLiquidity', internalType: 'bool', type: 'bool' }, { name: 'afterRemoveLiquidity', internalType: 'bool', type: 'bool' }, { name: 'beforeSwap', internalType: 'bool', type: 'bool' }, { name: 'afterSwap', internalType: 'bool', type: 'bool' }, { name: 'beforeDonate', internalType: 'bool', type: 'bool' }, { name: 'afterDonate', internalType: 'bool', type: 'bool' }, { name: 'beforeSwapReturnDelta', internalType: 'bool', type: 'bool' }, { name: 'afterSwapReturnDelta', internalType: 'bool', type: 'bool' }, { name: 'afterAddLiquidityReturnDelta', internalType: 'bool', type: 'bool', }, { name: 'afterRemoveLiquidityReturnDelta', internalType: 'bool', type: 'bool', }, ], }, ], stateMutability: 'pure', }, { type: 'function', inputs: [ { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, ], name: 'getPoolCoin', outputs: [ { name: '', internalType: 'struct IZoraV4CoinHook.PoolCoin', type: 'tuple', components: [ { name: 'coin', internalType: 'address', type: 'address' }, { name: 'positions', internalType: 'struct LpPosition[]', type: 'tuple[]', components: [ { name: 'tickLower', internalType: 'int24', type: 'int24' }, { name: 'tickUpper', internalType: 'int24', type: 'int24' }, { name: 'liquidity', internalType: 'uint128', type: 'uint128' }, ], }, ], }, ], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'poolKeyHash', internalType: 'bytes32', type: 'bytes32' }], name: 'getPoolCoinByHash', outputs: [ { name: '', internalType: 'struct IZoraV4CoinHook.PoolCoin', type: 'tuple', components: [ { name: 'coin', internalType: 'address', type: 'address' }, { name: 'positions', internalType: 'struct LpPosition[]', type: 'tuple[]', components: [ { name: 'tickLower', internalType: 'int24', type: 'int24' }, { name: 'tickUpper', internalType: 'int24', type: 'int24' }, { name: 'liquidity', internalType: 'uint128', type: 'uint128' }, ], }, ], }, ], stateMutability: 'view', }, { type: 'function', inputs: [], name: 'getTrustedMsgSenderLookup', outputs: [ { name: '', internalType: 'contract ITrustedMsgSenderProviderLookup', type: 'address', }, ], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'poolKey', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'coin', internalType: 'address', type: 'address' }, { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160' }, { name: 'migratedLiquidity', internalType: 'struct BurnedPosition[]', type: 'tuple[]', components: [ { name: 'tickLower', internalType: 'int24', type: 'int24' }, { name: 'tickUpper', internalType: 'int24', type: 'int24' }, { name: 'amount0Received', internalType: 'uint128', type: 'uint128' }, { name: 'amount1Received', internalType: 'uint128', type: 'uint128' }, ], }, { name: 'additionalData', internalType: 'bytes', type: 'bytes' }, ], name: 'initializeFromMigration', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [ { name: 'poolKey', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'coin', internalType: 'address', type: 'address' }, { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160' }, { name: 'migratedLiquidity', internalType: 'struct BurnedPosition[]', type: 'tuple[]', components: [ { name: 'tickLower', internalType: 'int24', type: 'int24' }, { name: 'tickUpper', internalType: 'int24', type: 'int24' }, { name: 'amount0Received', internalType: 'uint128', type: 'uint128' }, { name: 'amount1Received', internalType: 'uint128', type: 'uint128' }, ], }, { name: 'additionalData', internalType: 'bytes', type: 'bytes' }, ], name: 'initializeFromMigrationWithUpdateableFee', outputs: [ { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [{ name: 'sender', internalType: 'address', type: 'address' }], name: 'isTrustedMessageSender', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'view', }, { type: 'function', inputs: [ { name: 'newHook', internalType: 'address', type: 'address' }, { name: 'poolKey', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, { name: 'additionalData', internalType: 'bytes', type: 'bytes' }, ], name: 'migrateLiquidity', outputs: [ { name: 'newPoolKey', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, ], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], name: 'poolManager', outputs: [ { name: '', internalType: 'contract IPoolManager', type: 'address' }, ], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], name: 'supportsInterface', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'view', }, { type: 'function', inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }], name: 'unlockCallback', outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }], stateMutability: 'nonpayable', }, { type: 'event', anonymous: false, inputs: [ { name: 'coin', internalType: 'address', type: 'address', indexed: false, }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, { name: 'payoutRecipient', internalType: 'address', type: 'address', indexed: false, }, { name: 'platformReferrer', internalType: 'address', type: 'address', indexed: false, }, { name: 'tradeReferrer', internalType: 'address', type: 'address', indexed: false, }, { name: 'protocolRewardRecipient', internalType: 'address', type: 'address', indexed: false, }, { name: 'dopplerRecipient', internalType: 'address', type: 'address', indexed: false, }, { name: 'marketRewards', internalType: 'struct IZoraV4CoinHook.MarketRewardsV4', type: 'tuple', components: [ { name: 'creatorPayoutAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'creatorPayoutAmountCoin', internalType: 'uint256', type: 'uint256', }, { name: 'platformReferrerAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'platformReferrerAmountCoin', internalType: 'uint256', type: 'uint256', }, { name: 'tradeReferrerAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'tradeReferrerAmountCoin', internalType: 'uint256', type: 'uint256', }, { name: 'protocolAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'protocolAmountCoin', internalType: 'uint256', type: 'uint256', }, { name: 'dopplerAmountCurrency', internalType: 'uint256', type: 'uint256', }, { name: 'dopplerAmountCoin', internalType: 'uint256', type: 'uint256', }, ], indexed: false, }, ], name: 'CoinMarketRewardsV4', }, { type: 'event', anonymous: false, inputs: [ { name: 'coin', internalType: 'address', type: 'address', indexed: true }, { name: 'currency', internalType: 'address', type: 'address', indexed: false, }, { name: 'creator', internalType: 'address', type: 'address', indexed: false, }, { name: 'protocol', internalType: 'address', type: 'address', indexed: false, }, { name: 'creatorAmount', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'protocolAmount', internalType: 'uint256', type: 'uint256', indexed: false, }, ], name: 'CreatorCoinRewards', }, { type: 'event', anonymous: false, inputs: [ { name: 'coin', internalType: 'address', type: 'address', indexed: true }, { name: 'currency', internalType: 'address', type: 'address', indexed: true, }, { name: 'amountCurrency', internalType: 'uint256', type: 'uint256', indexed: false, }, { name: 'tick', internalType: 'int24', type: 'int24', indexed: false }, { name: 'liquidity', internalType: 'uint128', type: 'uint128', indexed: false, }, ], name: 'LpReward', }, { type: 'event', anonymous: false, inputs: [ { name: 'sender', internalType: 'address', type: 'address', indexed: true, }, { name: 'swapSender', internalType: 'address', type: 'address', indexed: true, }, { name: 'isTrustedSwapSenderAddress', internalType: 'bool', type: 'bool', indexed: false, }, { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], indexed: false, }, { name: 'poolKeyHash', internalType: 'bytes32', type: 'bytes32', indexed: true, }, { name: 'params', internalType: 'struct SwapParams', type: 'tuple', components: [ { name: 'zeroForOne', internalType: 'bool', type: 'bool' }, { name: 'amountSpecified', internalType: 'int256', type: 'int256' }, { name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160', }, ], indexed: false, }, { name: 'amount0', internalType: 'int128', type: 'int128', indexed: false, }, { name: 'amount1', internalType: 'int128', type: 'int128', indexed: false, }, { name: 'isCoinBuy', internalType: 'bool', type: 'bool', indexed: false }, { name: 'hookData', internalType: 'bytes', type: 'bytes', indexed: false, }, { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160', indexed: false, }, ], name: 'Swapped', }, { type: 'error', inputs: [], name: 'CoinVersionLookupCannotBeZeroAddress' }, { type: 'error', inputs: [], name: 'EthTransferFailed' }, { type: 'error', inputs: [], name: 'HookNotImplemented' }, { type: 'error', inputs: [{ name: 'callbackId', internalType: 'uint8', type: 'uint8' }], name: 'InvalidCallbackId', }, { type: 'error', inputs: [{ name: 'newHook', internalType: 'address', type: 'address' }], name: 'InvalidNewHook', }, { type: 'error', inputs: [ { name: 'key', internalType: 'struct PoolKey', type: 'tuple', components: [ { name: 'currency0', internalType: 'Currency', type: 'address' }, { name: 'currency1', internalType: 'Currency', type: 'address' }, { name: 'fee', internalType: 'uint24', type: 'uint24' }, { name: 'tickSpacing', internalType: 'int24', type: 'int24' }, { name: 'hooks', internalType: 'contract IHooks', type: 'address' }, ], }, ], name: 'NoCoinForHook', }, { type: 'error', inputs: [{ name: 'coin', internalType: 'address', type: 'address' }], name: 'NotACoin', }, { type: 'error', inputs: [], name: 'NotPoolManager' }, { type: 'error', inputs: [ { name: 'caller', internalType: 'address', type: 'address' }, { name: 'expectedCoin', internalType: 'address', type: 'address' }, ], name: 'OnlyCoin', }, { type: 'error', inputs: [], name: 'PathMustHaveAtLeastOneStep' }, { type: 'error', inputs: [], name: 'SafeCastOverflow' }, { type: 'error', inputs: [{ name: 'token', internalType: 'address', type: 'address' }], name: 'SafeERC20FailedOperation', }, { type: 'error', inputs: [], name: 'TrustedMsgSenderLookupCannotBeZeroAddress', }, { type: 'error', inputs: [], name: 'UpgradeGateCannotBeZeroAddress' }, { type: 'error', inputs: [ { name: 'oldHook', internalType: 'address', type: 'address' }, { name: 'newHook', internalType: 'address', type: 'address' }, ], name: 'UpgradePathNotRegistered', }, { type: 'error', inputs: [], name: 'ZoraHookRegistryCannotBeZeroAddress' }, { type: 'error', inputs: [], name: 'ZoraLimitOrderBookCannotBeZeroAddress' }, ] as const