"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HomeGateway__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        inputs: [],
        name: "AlreadyInitialized",
        type: "error",
    },
    {
        inputs: [],
        name: "FailedDelegateCall",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "implementation",
                type: "address",
            },
        ],
        name: "InvalidImplementation",
        type: "error",
    },
    {
        inputs: [],
        name: "NotInitializing",
        type: "error",
    },
    {
        inputs: [],
        name: "UUPSUnauthorizedCallContext",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "slot",
                type: "bytes32",
            },
        ],
        name: "UUPSUnsupportedProxiableUUID",
        type: "error",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "contract IArbitratorV2",
                name: "_arbitrator",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "_arbitrableChainId",
                type: "uint256",
            },
            {
                indexed: true,
                internalType: "address",
                name: "_arbitrable",
                type: "address",
            },
            {
                indexed: true,
                internalType: "uint256",
                name: "_arbitrableDisputeID",
                type: "uint256",
            },
            {
                indexed: true,
                internalType: "uint256",
                name: "_arbitratorDisputeID",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "_externalDisputeID",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "_templateId",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "string",
                name: "_templateUri",
                type: "string",
            },
        ],
        name: "CrossChainDisputeIncoming",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "contract IArbitratorV2",
                name: "_arbitrator",
                type: "address",
            },
            {
                indexed: true,
                internalType: "uint256",
                name: "_arbitratorDisputeID",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "_externalDisputeID",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "_templateId",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "string",
                name: "_templateUri",
                type: "string",
            },
        ],
        name: "DisputeRequest",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint64",
                name: "version",
                type: "uint64",
            },
        ],
        name: "Initialized",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "contract IArbitratorV2",
                name: "_arbitrator",
                type: "address",
            },
            {
                indexed: true,
                internalType: "uint256",
                name: "_disputeID",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "_ruling",
                type: "uint256",
            },
        ],
        name: "Ruling",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "newImplementation",
                type: "address",
            },
        ],
        name: "Upgraded",
        type: "event",
    },
    {
        inputs: [],
        name: "arbitrator",
        outputs: [
            {
                internalType: "contract IArbitratorV2",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "contract IArbitratorV2",
                name: "_arbitrator",
                type: "address",
            },
        ],
        name: "changeArbitrator",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "contract IERC20",
                name: "_feeToken",
                type: "address",
            },
        ],
        name: "changeFeeToken",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_foreignGateway",
                type: "address",
            },
        ],
        name: "changeForeignGateway",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_governor",
                type: "address",
            },
        ],
        name: "changeGovernor",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "contract IVeaInbox",
                name: "_veaInbox",
                type: "address",
            },
        ],
        name: "changeVea",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "_disputeHash",
                type: "bytes32",
            },
        ],
        name: "disputeHashToHomeID",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        name: "disputeHashtoID",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        name: "disputeHashtoRelayedData",
        outputs: [
            {
                internalType: "uint256",
                name: "arbitrationCost",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "relayer",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        name: "disputeIDtoHash",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "feeToken",
        outputs: [
            {
                internalType: "contract IERC20",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "foreignChainID",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "foreignGateway",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "governor",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_governor",
                type: "address",
            },
            {
                internalType: "contract IArbitratorV2",
                name: "_arbitrator",
                type: "address",
            },
            {
                internalType: "contract IVeaInbox",
                name: "_veaInbox",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "_foreignChainID",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "_foreignGateway",
                type: "address",
            },
            {
                internalType: "contract IERC20",
                name: "_feeToken",
                type: "address",
            },
        ],
        name: "initialize",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "proxiableUUID",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "receiverGateway",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "bytes32",
                        name: "foreignBlockHash",
                        type: "bytes32",
                    },
                    {
                        internalType: "uint256",
                        name: "foreignChainID",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "foreignArbitrable",
                        type: "address",
                    },
                    {
                        internalType: "uint256",
                        name: "foreignDisputeID",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "externalDisputeID",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "templateId",
                        type: "uint256",
                    },
                    {
                        internalType: "string",
                        name: "templateUri",
                        type: "string",
                    },
                    {
                        internalType: "uint256",
                        name: "choices",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes",
                        name: "extraData",
                        type: "bytes",
                    },
                ],
                internalType: "struct IHomeGateway.RelayCreateDisputeParams",
                name: "_params",
                type: "tuple",
            },
            {
                internalType: "uint256",
                name: "_feeAmount",
                type: "uint256",
            },
        ],
        name: "relayCreateDispute",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "bytes32",
                        name: "foreignBlockHash",
                        type: "bytes32",
                    },
                    {
                        internalType: "uint256",
                        name: "foreignChainID",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "foreignArbitrable",
                        type: "address",
                    },
                    {
                        internalType: "uint256",
                        name: "foreignDisputeID",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "externalDisputeID",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "templateId",
                        type: "uint256",
                    },
                    {
                        internalType: "string",
                        name: "templateUri",
                        type: "string",
                    },
                    {
                        internalType: "uint256",
                        name: "choices",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes",
                        name: "extraData",
                        type: "bytes",
                    },
                ],
                internalType: "struct IHomeGateway.RelayCreateDisputeParams",
                name: "_params",
                type: "tuple",
            },
        ],
        name: "relayCreateDispute",
        outputs: [],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_disputeID",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "_ruling",
                type: "uint256",
            },
        ],
        name: "rule",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "newImplementation",
                type: "address",
            },
            {
                internalType: "bytes",
                name: "data",
                type: "bytes",
            },
        ],
        name: "upgradeToAndCall",
        outputs: [],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [],
        name: "veaInbox",
        outputs: [
            {
                internalType: "contract IVeaInbox",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "version",
        outputs: [
            {
                internalType: "string",
                name: "",
                type: "string",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class HomeGateway__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    getDeployTransaction(overrides) {
        return super.getDeployTransaction(overrides || {});
    }
    deploy(overrides) {
        return super.deploy(overrides || {});
    }
    connect(runner) {
        return super.connect(runner);
    }
    static bytecode = _bytecode;
    static abi = _abi;
    static createInterface() {
        return new ethers_1.Interface(_abi);
    }
    static connect(address, runner) {
        return new ethers_1.Contract(address, _abi, runner);
    }
}
exports.HomeGateway__factory = HomeGateway__factory;
