/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, utils } from "ethers";
const _abi = [
    {
        type: "constructor",
        inputs: [
            {
                name: "_permit2",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "isValidSignature",
        inputs: [
            {
                name: "",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [
            {
                name: "magicBytes",
                type: "bytes4",
                internalType: "bytes4",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "performSwap",
        inputs: [
            {
                name: "inputToken",
                type: "address",
                internalType: "address",
            },
            {
                name: "outputToken",
                type: "address",
                internalType: "address",
            },
            {
                name: "inputAmount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "exchange",
                type: "address",
                internalType: "address",
            },
            {
                name: "transferType",
                type: "uint8",
                internalType: "enum SpokePoolPeripheryInterface.TransferType",
            },
            {
                name: "routerCalldata",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [
            {
                name: "outputAmount",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "permit2",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract IPermit2",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "error",
        name: "InvalidExchange",
        inputs: [],
    },
    {
        type: "error",
        name: "SwapFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "UnsupportedTransferType",
        inputs: [],
    },
];
export class SwapProxy__factory {
    static abi = _abi;
    static createInterface() {
        return new utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new Contract(address, _abi, signerOrProvider);
    }
}
//# sourceMappingURL=SwapProxy__factory.js.map