/* 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 PairMentoV2 extends Contract { clone(): PairMentoV2; methods: { swap( input: string, output: string, to: string, data: string | number[] ): CeloTxObject; parseData(data: string | number[]): CeloTxObject<{ broker: string; exchangeProvider: string; exchangeId: string; 0: string; 1: string; 2: string; }>; getOutputAmount( input: string, output: string, amountIn: number | string, data: string | number[] ): CeloTxObject; }; events: { allEvents: ( options?: EventOptions, cb?: Callback ) => EventEmitter; }; } export const ABI: AbiItem[] = [ { inputs: [ { internalType: "address", name: "input", type: "address" }, { internalType: "address", name: "output", type: "address" }, { internalType: "address", name: "to", type: "address" }, { internalType: "bytes", name: "data", type: "bytes" }, ], name: "swap", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [{ internalType: "bytes", name: "data", type: "bytes" }], name: "parseData", outputs: [ { internalType: "address", name: "broker", type: "address" }, { internalType: "address", name: "exchangeProvider", type: "address" }, { internalType: "bytes32", name: "exchangeId", type: "bytes32" }, ], stateMutability: "pure", type: "function", }, { inputs: [ { internalType: "address", name: "input", type: "address" }, { internalType: "address", name: "output", type: "address" }, { internalType: "uint256", name: "amountIn", type: "uint256" }, { internalType: "bytes", name: "data", type: "bytes" }, ], name: "getOutputAmount", outputs: [{ internalType: "uint256", name: "amountOut", type: "uint256" }], stateMutability: "nonpayable", type: "function", }, ]; export function newPairMentoV2(web3: Web3, address: string): PairMentoV2 { return new web3.eth.Contract(ABI, address) as any; }