"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.OptimisticOracleInterface__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "function",
        name: "ancillaryBytesLimit",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "defaultLiveness",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "disputePrice",
        inputs: [
            {
                name: "requester",
                type: "address",
                internalType: "address",
            },
            {
                name: "identifier",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [
            {
                name: "totalBond",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "disputePriceFor",
        inputs: [
            {
                name: "disputer",
                type: "address",
                internalType: "address",
            },
            {
                name: "requester",
                type: "address",
                internalType: "address",
            },
            {
                name: "identifier",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [
            {
                name: "totalBond",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "finder",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract FinderInterface",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "getCurrentTime",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "getRequest",
        inputs: [
            {
                name: "requester",
                type: "address",
                internalType: "address",
            },
            {
                name: "identifier",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [
            {
                name: "",
                type: "tuple",
                internalType: "struct OptimisticOracleInterface.Request",
                components: [
                    {
                        name: "proposer",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "disputer",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "currency",
                        type: "address",
                        internalType: "contract IERC20",
                    },
                    {
                        name: "settled",
                        type: "bool",
                        internalType: "bool",
                    },
                    {
                        name: "refundOnDispute",
                        type: "bool",
                        internalType: "bool",
                    },
                    {
                        name: "proposedPrice",
                        type: "int256",
                        internalType: "int256",
                    },
                    {
                        name: "resolvedPrice",
                        type: "int256",
                        internalType: "int256",
                    },
                    {
                        name: "expirationTime",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "reward",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "finalFee",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "bond",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "customLiveness",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "getState",
        inputs: [
            {
                name: "requester",
                type: "address",
                internalType: "address",
            },
            {
                name: "identifier",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [
            {
                name: "",
                type: "uint8",
                internalType: "enum OptimisticOracleInterface.State",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "hasPrice",
        inputs: [
            {
                name: "requester",
                type: "address",
                internalType: "address",
            },
            {
                name: "identifier",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [
            {
                name: "",
                type: "bool",
                internalType: "bool",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "proposePrice",
        inputs: [
            {
                name: "requester",
                type: "address",
                internalType: "address",
            },
            {
                name: "identifier",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "proposedPrice",
                type: "int256",
                internalType: "int256",
            },
        ],
        outputs: [
            {
                name: "totalBond",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "proposePriceFor",
        inputs: [
            {
                name: "proposer",
                type: "address",
                internalType: "address",
            },
            {
                name: "requester",
                type: "address",
                internalType: "address",
            },
            {
                name: "identifier",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "proposedPrice",
                type: "int256",
                internalType: "int256",
            },
        ],
        outputs: [
            {
                name: "totalBond",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "requestPrice",
        inputs: [
            {
                name: "identifier",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "currency",
                type: "address",
                internalType: "contract IERC20",
            },
            {
                name: "reward",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [
            {
                name: "totalBond",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "requests",
        inputs: [
            {
                name: "",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        outputs: [
            {
                name: "proposer",
                type: "address",
                internalType: "address",
            },
            {
                name: "disputer",
                type: "address",
                internalType: "address",
            },
            {
                name: "currency",
                type: "address",
                internalType: "contract IERC20",
            },
            {
                name: "settled",
                type: "bool",
                internalType: "bool",
            },
            {
                name: "refundOnDispute",
                type: "bool",
                internalType: "bool",
            },
            {
                name: "proposedPrice",
                type: "int256",
                internalType: "int256",
            },
            {
                name: "resolvedPrice",
                type: "int256",
                internalType: "int256",
            },
            {
                name: "expirationTime",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "reward",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "finalFee",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "bond",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "customLiveness",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "setBond",
        inputs: [
            {
                name: "identifier",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "bond",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [
            {
                name: "totalBond",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setCustomLiveness",
        inputs: [
            {
                name: "identifier",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "customLiveness",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setRefundOnDispute",
        inputs: [
            {
                name: "identifier",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "settle",
        inputs: [
            {
                name: "requester",
                type: "address",
                internalType: "address",
            },
            {
                name: "identifier",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [
            {
                name: "payout",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "settleAndGetPrice",
        inputs: [
            {
                name: "identifier",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [
            {
                name: "",
                type: "int256",
                internalType: "int256",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "stampAncillaryData",
        inputs: [
            {
                name: "ancillaryData",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "requester",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [
            {
                name: "",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "event",
        name: "DisputePrice",
        inputs: [
            {
                name: "requester",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "proposer",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "disputer",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "identifier",
                type: "bytes32",
                indexed: false,
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "proposedPrice",
                type: "int256",
                indexed: false,
                internalType: "int256",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "ProposePrice",
        inputs: [
            {
                name: "requester",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "proposer",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "identifier",
                type: "bytes32",
                indexed: false,
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "proposedPrice",
                type: "int256",
                indexed: false,
                internalType: "int256",
            },
            {
                name: "expirationTimestamp",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "currency",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "RequestPrice",
        inputs: [
            {
                name: "requester",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "identifier",
                type: "bytes32",
                indexed: false,
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "currency",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "reward",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "finalFee",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "Settle",
        inputs: [
            {
                name: "requester",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "proposer",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "disputer",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "identifier",
                type: "bytes32",
                indexed: false,
                internalType: "bytes32",
            },
            {
                name: "timestamp",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "ancillaryData",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "price",
                type: "int256",
                indexed: false,
                internalType: "int256",
            },
            {
                name: "payout",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
        ],
        anonymous: false,
    },
];
class OptimisticOracleInterface__factory {
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.OptimisticOracleInterface__factory = OptimisticOracleInterface__factory;
OptimisticOracleInterface__factory.abi = _abi;
