/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
  SkinnyOptimisticOracleInterface,
  SkinnyOptimisticOracleInterfaceInterface,
} from "../SkinnyOptimisticOracleInterface";

const _abi = [
  {
    type: "function",
    name: "ancillaryBytesLimit",
    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: "uint32",
        internalType: "uint32",
      },
      {
        name: "ancillaryData",
        type: "bytes",
        internalType: "bytes",
      },
      {
        name: "request",
        type: "tuple",
        internalType: "struct SkinnyOptimisticOracleInterface.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: "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",
          },
        ],
      },
    ],
    outputs: [
      {
        name: "totalBond",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "disputePriceFor",
    inputs: [
      {
        name: "identifier",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "timestamp",
        type: "uint32",
        internalType: "uint32",
      },
      {
        name: "ancillaryData",
        type: "bytes",
        internalType: "bytes",
      },
      {
        name: "request",
        type: "tuple",
        internalType: "struct SkinnyOptimisticOracleInterface.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: "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",
          },
        ],
      },
      {
        name: "disputer",
        type: "address",
        internalType: "address",
      },
      {
        name: "requester",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [
      {
        name: "totalBond",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "getState",
    inputs: [
      {
        name: "requester",
        type: "address",
        internalType: "address",
      },
      {
        name: "identifier",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "timestamp",
        type: "uint32",
        internalType: "uint32",
      },
      {
        name: "ancillaryData",
        type: "bytes",
        internalType: "bytes",
      },
      {
        name: "request",
        type: "tuple",
        internalType: "struct SkinnyOptimisticOracleInterface.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: "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",
          },
        ],
      },
    ],
    outputs: [
      {
        name: "",
        type: "uint8",
        internalType: "enum OptimisticOracleInterface.State",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "hasPrice",
    inputs: [
      {
        name: "requester",
        type: "address",
        internalType: "address",
      },
      {
        name: "identifier",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "timestamp",
        type: "uint32",
        internalType: "uint32",
      },
      {
        name: "ancillaryData",
        type: "bytes",
        internalType: "bytes",
      },
      {
        name: "request",
        type: "tuple",
        internalType: "struct SkinnyOptimisticOracleInterface.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: "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",
          },
        ],
      },
    ],
    outputs: [
      {
        name: "",
        type: "bool",
        internalType: "bool",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "proposePrice",
    inputs: [
      {
        name: "requester",
        type: "address",
        internalType: "address",
      },
      {
        name: "identifier",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "timestamp",
        type: "uint32",
        internalType: "uint32",
      },
      {
        name: "ancillaryData",
        type: "bytes",
        internalType: "bytes",
      },
      {
        name: "request",
        type: "tuple",
        internalType: "struct SkinnyOptimisticOracleInterface.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: "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",
          },
        ],
      },
      {
        name: "proposedPrice",
        type: "int256",
        internalType: "int256",
      },
    ],
    outputs: [
      {
        name: "totalBond",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "proposePriceFor",
    inputs: [
      {
        name: "requester",
        type: "address",
        internalType: "address",
      },
      {
        name: "identifier",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "timestamp",
        type: "uint32",
        internalType: "uint32",
      },
      {
        name: "ancillaryData",
        type: "bytes",
        internalType: "bytes",
      },
      {
        name: "request",
        type: "tuple",
        internalType: "struct SkinnyOptimisticOracleInterface.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: "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",
          },
        ],
      },
      {
        name: "proposer",
        type: "address",
        internalType: "address",
      },
      {
        name: "proposedPrice",
        type: "int256",
        internalType: "int256",
      },
    ],
    outputs: [
      {
        name: "totalBond",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "requestAndProposePriceFor",
    inputs: [
      {
        name: "identifier",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "timestamp",
        type: "uint32",
        internalType: "uint32",
      },
      {
        name: "ancillaryData",
        type: "bytes",
        internalType: "bytes",
      },
      {
        name: "currency",
        type: "address",
        internalType: "contract IERC20",
      },
      {
        name: "reward",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "bond",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "customLiveness",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "proposer",
        type: "address",
        internalType: "address",
      },
      {
        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: "uint32",
        internalType: "uint32",
      },
      {
        name: "ancillaryData",
        type: "bytes",
        internalType: "bytes",
      },
      {
        name: "currency",
        type: "address",
        internalType: "contract IERC20",
      },
      {
        name: "reward",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "bond",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "customLiveness",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    outputs: [
      {
        name: "totalBond",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "settle",
    inputs: [
      {
        name: "requester",
        type: "address",
        internalType: "address",
      },
      {
        name: "identifier",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "timestamp",
        type: "uint32",
        internalType: "uint32",
      },
      {
        name: "ancillaryData",
        type: "bytes",
        internalType: "bytes",
      },
      {
        name: "request",
        type: "tuple",
        internalType: "struct SkinnyOptimisticOracleInterface.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: "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",
          },
        ],
      },
    ],
    outputs: [
      {
        name: "payout",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "resolvedPrice",
        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: "pure",
  },
] as const;

export class SkinnyOptimisticOracleInterface__factory {
  static readonly abi = _abi;
  static createInterface(): SkinnyOptimisticOracleInterfaceInterface {
    return new utils.Interface(
      _abi
    ) as SkinnyOptimisticOracleInterfaceInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): SkinnyOptimisticOracleInterface {
    return new Contract(
      address,
      _abi,
      signerOrProvider
    ) as SkinnyOptimisticOracleInterface;
  }
}
