"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PolygonTokenBridger__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "constructor",
        inputs: [
            {
                name: "_destination",
                type: "address",
                internalType: "address",
            },
            {
                name: "_l1PolygonRegistry",
                type: "address",
                internalType: "contract PolygonRegistry",
            },
            {
                name: "_l1Weth",
                type: "address",
                internalType: "contract WETH9Interface",
            },
            {
                name: "_l2WrappedMatic",
                type: "address",
                internalType: "address",
            },
            {
                name: "_l1ChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "_l2ChainId",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "receive",
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "MATIC",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract MaticToken",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "callExit",
        inputs: [
            {
                name: "data",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "destination",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "l1ChainId",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "l1PolygonRegistry",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract PolygonRegistry",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "l1Weth",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract WETH9Interface",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "l2ChainId",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "l2WrappedMatic",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "retrieve",
        inputs: [
            {
                name: "token",
                type: "address",
                internalType: "contract IERC20Upgradeable",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "send",
        inputs: [
            {
                name: "token",
                type: "address",
                internalType: "contract PolygonIERC20Upgradeable",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class PolygonTokenBridger__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(_destination, _l1PolygonRegistry, _l1Weth, _l2WrappedMatic, _l1ChainId, _l2ChainId, overrides) {
        return super.deploy(_destination, _l1PolygonRegistry, _l1Weth, _l2WrappedMatic, _l1ChainId, _l2ChainId, overrides || {});
    }
    getDeployTransaction(_destination, _l1PolygonRegistry, _l1Weth, _l2WrappedMatic, _l1ChainId, _l2ChainId, overrides) {
        return super.getDeployTransaction(_destination, _l1PolygonRegistry, _l1Weth, _l2WrappedMatic, _l1ChainId, _l2ChainId, overrides || {});
    }
    attach(address) {
        return super.attach(address);
    }
    connect(signer) {
        return super.connect(signer);
    }
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.PolygonTokenBridger__factory = PolygonTokenBridger__factory;
PolygonTokenBridger__factory.bytecode = _bytecode;
PolygonTokenBridger__factory.abi = _abi;
