/** * ABI for v2Factory, from contracts/out/PeddleSwapV2Factory.sol/PeddleSwapV2Factory.json. * * GENERATED FILE -- do not edit. Run `npm run gen` in packages/sdk. * * Source of truth is the repository itself: addresses from * contracts/deployments/.json, written by Deploy.s.sol during the broadcast, and * ABIs from contracts/out/, the solc output for the bytecode that was actually deployed. * Editing this file by hand reintroduces exactly the drift generating it prevents. */ export const v2FactoryAbi = [ { "type": "constructor", "inputs": [ { "name": "_feeToSetter", "type": "address", "internalType": "address" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "allPairs", "inputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "allPairsLength", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "createPair", "inputs": [ { "name": "tokenA", "type": "address", "internalType": "address" }, { "name": "tokenB", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "pair", "type": "address", "internalType": "address" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "feeTo", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "feeToSetter", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "getPair", "inputs": [ { "name": "", "type": "address", "internalType": "address" }, { "name": "", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "setFeeTo", "inputs": [ { "name": "_feeTo", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setFeeToSetter", "inputs": [ { "name": "_feeToSetter", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "PairCreated", "inputs": [ { "name": "token0", "type": "address", "indexed": true, "internalType": "address" }, { "name": "token1", "type": "address", "indexed": true, "internalType": "address" }, { "name": "pair", "type": "address", "indexed": false, "internalType": "address" }, { "name": "", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false } ] as const;