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

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

const _abi = [
  {
    inputs: [
      {
        internalType: "address",
        name: "_token_address",
        type: "address",
      },
      {
        internalType: "address",
        name: "_service_registry_address",
        type: "address",
      },
      {
        internalType: "address",
        name: "_udc_address",
        type: "address",
      },
      {
        internalType: "address",
        name: "_token_network_registry_address",
        type: "address",
      },
    ],
    stateMutability: "nonpayable",
    type: "constructor",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "address",
        name: "token_network_address",
        type: "address",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "channel_identifier",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "reward_amount",
        type: "uint256",
      },
      {
        indexed: true,
        internalType: "uint256",
        name: "nonce",
        type: "uint256",
      },
      {
        indexed: true,
        internalType: "address",
        name: "ms_address",
        type: "address",
      },
      {
        indexed: true,
        internalType: "address",
        name: "raiden_node_address",
        type: "address",
      },
    ],
    name: "NewBalanceProofReceived",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "address",
        name: "ms_address",
        type: "address",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "amount",
        type: "uint256",
      },
      {
        indexed: true,
        internalType: "bytes32",
        name: "reward_identifier",
        type: "bytes32",
      },
    ],
    name: "RewardClaimed",
    type: "event",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "channel_identifier",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "token_network_address",
        type: "address",
      },
      {
        internalType: "address",
        name: "closing_participant",
        type: "address",
      },
      {
        internalType: "address",
        name: "non_closing_participant",
        type: "address",
      },
    ],
    name: "claimReward",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "contract_address",
        type: "address",
      },
    ],
    name: "contractExists",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "a",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "b",
        type: "uint256",
      },
    ],
    name: "failsafe_addition",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "pure",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "a",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "b",
        type: "uint256",
      },
    ],
    name: "failsafe_subtract",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "pure",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "closed_at_timestamp",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "settle_timeout",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "participant1",
        type: "address",
      },
      {
        internalType: "address",
        name: "participant2",
        type: "address",
      },
      {
        internalType: "address",
        name: "monitoring_service_address",
        type: "address",
      },
    ],
    name: "firstTimestampAllowedToMonitor",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "pure",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "contract TokenNetwork",
        name: "token_network",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "channel_identifier",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "closing_participant",
        type: "address",
      },
      {
        internalType: "address",
        name: "non_closing_participant",
        type: "address",
      },
      {
        internalType: "address",
        name: "monitoring_service_address",
        type: "address",
      },
    ],
    name: "firstTimestampAllowedToMonitorChannel",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "a",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "b",
        type: "uint256",
      },
    ],
    name: "max",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "pure",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "a",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "b",
        type: "uint256",
      },
    ],
    name: "min",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "pure",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "closing_participant",
        type: "address",
      },
      {
        internalType: "address",
        name: "non_closing_participant",
        type: "address",
      },
      {
        internalType: "bytes32",
        name: "balance_hash",
        type: "bytes32",
      },
      {
        internalType: "uint256",
        name: "nonce",
        type: "uint256",
      },
      {
        internalType: "bytes32",
        name: "additional_hash",
        type: "bytes32",
      },
      {
        internalType: "bytes",
        name: "closing_signature",
        type: "bytes",
      },
      {
        internalType: "bytes",
        name: "non_closing_signature",
        type: "bytes",
      },
      {
        internalType: "uint256",
        name: "reward_amount",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "token_network_address",
        type: "address",
      },
      {
        internalType: "bytes",
        name: "reward_proof_signature",
        type: "bytes",
      },
    ],
    name: "monitor",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [],
    name: "service_registry",
    outputs: [
      {
        internalType: "contract ServiceRegistry",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "signature_prefix",
    outputs: [
      {
        internalType: "string",
        name: "",
        type: "string",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "token",
    outputs: [
      {
        internalType: "contract Token",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "token_network_registry",
    outputs: [
      {
        internalType: "contract TokenNetworkRegistry",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "user_deposit",
    outputs: [
      {
        internalType: "contract UserDeposit",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
];

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