/* 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 { EventOptions } from "./types"; export interface RegistryHelperUniswapV2 extends Contract { clone(): RegistryHelperUniswapV2; methods: { findPairs( factory: string, offset: number | string, limit: number | string ): CeloTxObject< { pair: string; token0: string; token1: string; state: { reserve0: string; reserve1: string }; }[] >; refreshPairs( pairs: string[] ): CeloTxObject<{ reserve0: string; reserve1: string }[]>; }; events: { allEvents: ( options?: EventOptions, cb?: Callback ) => EventEmitter; }; } export const ABI: AbiItem[] = [ { inputs: [ { internalType: "contract IUniswapV2Factory", name: "factory", type: "address", }, { internalType: "uint256", name: "offset", type: "uint256" }, { internalType: "uint256", name: "limit", type: "uint256" }, ], name: "findPairs", outputs: [ { components: [ { internalType: "contract IUniswapV2Pair", name: "pair", type: "address", }, { internalType: "address", name: "token0", type: "address" }, { internalType: "address", name: "token1", type: "address" }, { components: [ { internalType: "uint256", name: "reserve0", type: "uint256" }, { internalType: "uint256", name: "reserve1", type: "uint256" }, ], internalType: "struct RegistryHelperUniswapV2.PairState", name: "state", type: "tuple", }, ], internalType: "struct RegistryHelperUniswapV2.PairInfo[]", name: "result", type: "tuple[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "contract IUniswapV2Pair[]", name: "pairs", type: "address[]", }, ], name: "refreshPairs", outputs: [ { components: [ { internalType: "uint256", name: "reserve0", type: "uint256" }, { internalType: "uint256", name: "reserve1", type: "uint256" }, ], internalType: "struct RegistryHelperUniswapV2.PairState[]", name: "result", type: "tuple[]", }, ], stateMutability: "view", type: "function", }, ]; export function newRegistryHelperUniswapV2( web3: Web3, address: string ): RegistryHelperUniswapV2 { return new web3.eth.Contract(ABI, address) as any; }