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

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

const _abi = [
  {
    inputs: [
      {
        internalType: "address",
        name: "new_controller",
        type: "address",
      },
    ],
    name: "changeController",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_price_bump_numerator",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_price_bump_denominator",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_decay_constant",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_min_price",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_registration_duration",
        type: "uint256",
      },
    ],
    name: "changeParameters",
    outputs: [
      {
        internalType: "bool",
        name: "_success",
        type: "bool",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [],
    name: "controller",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "currentPrice",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "decay_constant",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_set_price",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_seconds_passed",
        type: "uint256",
      },
    ],
    name: "decayedPrice",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "deprecated",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "min_price",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "price_bump_denominator",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "price_bump_numerator",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "registration_duration",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "setDeprecationSwitch",
    outputs: [
      {
        internalType: "bool",
        name: "_success",
        type: "bool",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [],
    name: "set_price",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "set_price_at",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
];

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