"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Ovm_WithdrawalHelper__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "constructor",
        inputs: [
            {
                name: "_l2Usdc",
                type: "address",
                internalType: "contract IERC20",
            },
            {
                name: "_cctpTokenMessenger",
                type: "address",
                internalType: "contract ITokenMessenger",
            },
            {
                name: "_wrappedNativeToken",
                type: "address",
                internalType: "contract WETH9Interface",
            },
            {
                name: "_destinationCircleDomainId",
                type: "uint32",
                internalType: "uint32",
            },
            {
                name: "_l2Gateway",
                type: "address",
                internalType: "address",
            },
            {
                name: "_tokenRecipient",
                type: "address",
                internalType: "address",
            },
            {
                name: "_spokePool",
                type: "address",
                internalType: "contract IOvm_SpokePool",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "receive",
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "L2_TOKEN_GATEWAY",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "MESSENGER",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "TOKEN_RECIPIENT",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "WRAPPED_NATIVE_TOKEN",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract WETH9Interface",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "__WithdrawalHelper_init",
        inputs: [
            {
                name: "_crossDomainAdmin",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "cctpTokenMessenger",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract ITokenMessenger",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "cctpV2",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "bool",
                internalType: "bool",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "crossDomainAdmin",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "initialize",
        inputs: [
            {
                name: "_crossDomainAdmin",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "l2Eth",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "multicall",
        inputs: [
            {
                name: "data",
                type: "bytes[]",
                internalType: "bytes[]",
            },
        ],
        outputs: [
            {
                name: "results",
                type: "bytes[]",
                internalType: "bytes[]",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "proxiableUUID",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "recipientCircleDomainId",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint32",
                internalType: "uint32",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "spokePool",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract IOvm_SpokePool",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "upgradeTo",
        inputs: [
            {
                name: "newImplementation",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "upgradeToAndCall",
        inputs: [
            {
                name: "newImplementation",
                type: "address",
                internalType: "address",
            },
            {
                name: "data",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "usdcToken",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract IERC20",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "withdrawToken",
        inputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
            {
                name: "l2Token",
                type: "address",
                internalType: "address",
            },
            {
                name: "amountToReturn",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "event",
        name: "AdminChanged",
        inputs: [
            {
                name: "previousAdmin",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "newAdmin",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "BeaconUpgraded",
        inputs: [
            {
                name: "beacon",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "Initialized",
        inputs: [
            {
                name: "version",
                type: "uint8",
                indexed: false,
                internalType: "uint8",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "SetXDomainAdmin",
        inputs: [
            {
                name: "_crossDomainAdmin",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "Upgraded",
        inputs: [
            {
                name: "implementation",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "error",
        name: "InvalidCrossDomainAdmin",
        inputs: [],
    },
    {
        type: "error",
        name: "NotCrossChainCall",
        inputs: [],
    },
    {
        type: "error",
        name: "NotCrossDomainAdmin",
        inputs: [],
    },
];
class Ovm_WithdrawalHelper__factory {
    static abi = _abi;
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.Ovm_WithdrawalHelper__factory = Ovm_WithdrawalHelper__factory;
//# sourceMappingURL=Ovm_WithdrawalHelper__factory.js.map