"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DisputeResolverRuler__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: "contract IArbitratorV2",
                name: "_arbitrator",
                type: "address",
            },
            {
                internalType: "contract IDisputeTemplateRegistry",
                name: "_templateRegistry",
                type: "address",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        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: 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",
    },
    {
        inputs: [],
        name: "arbitrator",
        outputs: [
            {
                internalType: "contract IArbitratorV2",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        name: "arbitratorDisputeIDToLocalID",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "contract IArbitratorV2",
                name: "_arbitrator",
                type: "address",
            },
        ],
        name: "changeArbitrator",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_governor",
                type: "address",
            },
        ],
        name: "changeGovernor",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "contract IDisputeTemplateRegistry",
                name: "_templateRegistry",
                type: "address",
            },
        ],
        name: "changeTemplateRegistry",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bytes",
                name: "_arbitratorExtraData",
                type: "bytes",
            },
            {
                internalType: "string",
                name: "_disputeTemplate",
                type: "string",
            },
            {
                internalType: "string",
                name: "_disputeTemplateDataMappings",
                type: "string",
            },
            {
                internalType: "uint256",
                name: "_numberOfRulingOptions",
                type: "uint256",
            },
        ],
        name: "createDisputeForTemplate",
        outputs: [
            {
                internalType: "uint256",
                name: "disputeID",
                type: "uint256",
            },
        ],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bytes",
                name: "_arbitratorExtraData",
                type: "bytes",
            },
            {
                internalType: "string",
                name: "_disputeTemplateUri",
                type: "string",
            },
            {
                internalType: "uint256",
                name: "_numberOfRulingOptions",
                type: "uint256",
            },
        ],
        name: "createDisputeForTemplateUri",
        outputs: [
            {
                internalType: "uint256",
                name: "disputeID",
                type: "uint256",
            },
        ],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        name: "disputes",
        outputs: [
            {
                internalType: "bytes",
                name: "arbitratorExtraData",
                type: "bytes",
            },
            {
                internalType: "bool",
                name: "isRuled",
                type: "bool",
            },
            {
                internalType: "uint256",
                name: "ruling",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "numberOfRulingOptions",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "governor",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_arbitratorDisputeID",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "_ruling",
                type: "uint256",
            },
        ],
        name: "rule",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "templateRegistry",
        outputs: [
            {
                internalType: "contract IDisputeTemplateRegistry",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class DisputeResolverRuler__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    getDeployTransaction(_arbitrator, _templateRegistry, overrides) {
        return super.getDeployTransaction(_arbitrator, _templateRegistry, overrides || {});
    }
    deploy(_arbitrator, _templateRegistry, overrides) {
        return super.deploy(_arbitrator, _templateRegistry, 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.DisputeResolverRuler__factory = DisputeResolverRuler__factory;
