"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
exports.__esModule = true;
exports.GRTWithdrawHelper__factory = void 0;
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [
            {
                internalType: "address",
                name: "_tokenAddress",
                type: "address"
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor"
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "address",
                        name: "channelAddress",
                        type: "address"
                    },
                    {
                        internalType: "address",
                        name: "assetId",
                        type: "address"
                    },
                    {
                        internalType: "address payable",
                        name: "recipient",
                        type: "address"
                    },
                    {
                        internalType: "uint256",
                        name: "amount",
                        type: "uint256"
                    },
                    {
                        internalType: "uint256",
                        name: "nonce",
                        type: "uint256"
                    },
                    {
                        internalType: "address",
                        name: "callTo",
                        type: "address"
                    },
                    {
                        internalType: "bytes",
                        name: "callData",
                        type: "bytes"
                    },
                ],
                internalType: "struct WithdrawData",
                name: "_wd",
                type: "tuple"
            },
            {
                internalType: "uint256",
                name: "_actualAmount",
                type: "uint256"
            },
        ],
        name: "execute",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "address",
                        name: "staking",
                        type: "address"
                    },
                    {
                        internalType: "address",
                        name: "allocationID",
                        type: "address"
                    },
                    {
                        internalType: "address",
                        name: "returnAddress",
                        type: "address"
                    },
                ],
                internalType: "struct GRTWithdrawHelper.CollectData",
                name: "_collectData",
                type: "tuple"
            },
        ],
        name: "getCallData",
        outputs: [
            {
                internalType: "bytes",
                name: "",
                type: "bytes"
            },
        ],
        stateMutability: "pure",
        type: "function"
    },
    {
        inputs: [],
        name: "tokenAddress",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
];
var _bytecode = " ";
var GRTWithdrawHelper__factory = /** @class */ (function (_super) {
    __extends(GRTWithdrawHelper__factory, _super);
    function GRTWithdrawHelper__factory(signer) {
        return _super.call(this, _abi, _bytecode, signer) || this;
    }
    GRTWithdrawHelper__factory.prototype.deploy = function (_tokenAddress, overrides) {
        return _super.prototype.deploy.call(this, _tokenAddress, overrides || {});
    };
    GRTWithdrawHelper__factory.prototype.getDeployTransaction = function (_tokenAddress, overrides) {
        return _super.prototype.getDeployTransaction.call(this, _tokenAddress, overrides || {});
    };
    GRTWithdrawHelper__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    GRTWithdrawHelper__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    GRTWithdrawHelper__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    GRTWithdrawHelper__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    GRTWithdrawHelper__factory.bytecode = _bytecode;
    GRTWithdrawHelper__factory.abi = _abi;
    return GRTWithdrawHelper__factory;
}(ethers_1.ContractFactory));
exports.GRTWithdrawHelper__factory = GRTWithdrawHelper__factory;
