/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { AbiItem, Callback, CeloTxObject, Contract, EventLog, } from "@celo/connect"; import { EventEmitter } from "events"; import Web3 from "web3"; import { ContractEvent, EventOptions } from "./types"; export interface IUniswapV2Factory extends Contract { clone(): IUniswapV2Factory; methods: { feeTo(): CeloTxObject; feeToSetter(): CeloTxObject; getPair(tokenA: string, tokenB: string): CeloTxObject; allPairs(arg0: number | string): CeloTxObject; allPairsLength(): CeloTxObject; createPair(tokenA: string, tokenB: string): CeloTxObject; setFeeTo(arg0: string): CeloTxObject; setFeeToSetter(arg0: string): CeloTxObject; }; events: { PairCreated: ContractEvent<{ token0: string; token1: string; pair: string; 0: string; 1: string; 2: string; 3: string; }>; allEvents: ( options?: EventOptions, cb?: Callback ) => EventEmitter; }; } export const ABI: AbiItem[] = [ { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "token0", type: "address", }, { indexed: true, internalType: "address", name: "token1", type: "address", }, { indexed: false, internalType: "address", name: "pair", type: "address", }, { indexed: false, internalType: "uint256", name: "", type: "uint256" }, ], name: "PairCreated", type: "event", }, { inputs: [], name: "feeTo", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function", }, { inputs: [], name: "feeToSetter", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "tokenA", type: "address" }, { internalType: "address", name: "tokenB", type: "address" }, ], name: "getPair", outputs: [{ internalType: "address", name: "pair", type: "address" }], stateMutability: "view", type: "function", }, { inputs: [{ internalType: "uint256", name: "", type: "uint256" }], name: "allPairs", outputs: [{ internalType: "address", name: "pair", type: "address" }], stateMutability: "view", type: "function", }, { inputs: [], name: "allPairsLength", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "tokenA", type: "address" }, { internalType: "address", name: "tokenB", type: "address" }, ], name: "createPair", outputs: [{ internalType: "address", name: "pair", type: "address" }], stateMutability: "nonpayable", type: "function", }, { inputs: [{ internalType: "address", name: "", type: "address" }], name: "setFeeTo", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [{ internalType: "address", name: "", type: "address" }], name: "setFeeToSetter", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; export function newIUniswapV2Factory( web3: Web3, address: string ): IUniswapV2Factory { return new web3.eth.Contract(ABI, address) as any; }