/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
  Signer,
  utils,
  Contract,
  ContractFactory,
  BytesLike,
  Overrides,
} from "ethers";
import type { Provider, TransactionRequest } from "@ethersproject/providers";
import type { PromiseOrValue } from "../../../../common";
import type {
  ChugSplashDictator,
  ChugSplashDictatorInterface,
} from "../../../../contracts/L1/deployment/ChugSplashDictator";

const _abi = [
  {
    inputs: [
      {
        internalType: "contract L1ChugSplashProxy",
        name: "_target",
        type: "address",
      },
      {
        internalType: "address",
        name: "_finalOwner",
        type: "address",
      },
      {
        internalType: "bytes32",
        name: "_codeHash",
        type: "bytes32",
      },
      {
        internalType: "bytes32",
        name: "_messengerSlotKey",
        type: "bytes32",
      },
      {
        internalType: "bytes32",
        name: "_messengerSlotVal",
        type: "bytes32",
      },
      {
        internalType: "bytes32",
        name: "_bridgeSlotKey",
        type: "bytes32",
      },
      {
        internalType: "bytes32",
        name: "_bridgeSlotVal",
        type: "bytes32",
      },
    ],
    stateMutability: "nonpayable",
    type: "constructor",
  },
  {
    inputs: [],
    name: "bridgeSlotKey",
    outputs: [
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "bridgeSlotVal",
    outputs: [
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "codeHash",
    outputs: [
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes",
        name: "_code",
        type: "bytes",
      },
    ],
    name: "doActions",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [],
    name: "finalOwner",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "isUpgrading",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "messengerSlotKey",
    outputs: [
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "messengerSlotVal",
    outputs: [
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "returnOwnership",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [],
    name: "target",
    outputs: [
      {
        internalType: "contract L1ChugSplashProxy",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
];

const _bytecode =
  " ";

type ChugSplashDictatorConstructorParams =
  | [signer?: Signer]
  | ConstructorParameters<typeof ContractFactory>;

const isSuperArgs = (
  xs: ChugSplashDictatorConstructorParams
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;

export class ChugSplashDictator__factory extends ContractFactory {
  constructor(...args: ChugSplashDictatorConstructorParams) {
    if (isSuperArgs(args)) {
      super(...args);
    } else {
      super(_abi, _bytecode, args[0]);
    }
  }

  override deploy(
    _target: PromiseOrValue<string>,
    _finalOwner: PromiseOrValue<string>,
    _codeHash: PromiseOrValue<BytesLike>,
    _messengerSlotKey: PromiseOrValue<BytesLike>,
    _messengerSlotVal: PromiseOrValue<BytesLike>,
    _bridgeSlotKey: PromiseOrValue<BytesLike>,
    _bridgeSlotVal: PromiseOrValue<BytesLike>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ChugSplashDictator> {
    return super.deploy(
      _target,
      _finalOwner,
      _codeHash,
      _messengerSlotKey,
      _messengerSlotVal,
      _bridgeSlotKey,
      _bridgeSlotVal,
      overrides || {}
    ) as Promise<ChugSplashDictator>;
  }
  override getDeployTransaction(
    _target: PromiseOrValue<string>,
    _finalOwner: PromiseOrValue<string>,
    _codeHash: PromiseOrValue<BytesLike>,
    _messengerSlotKey: PromiseOrValue<BytesLike>,
    _messengerSlotVal: PromiseOrValue<BytesLike>,
    _bridgeSlotKey: PromiseOrValue<BytesLike>,
    _bridgeSlotVal: PromiseOrValue<BytesLike>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): TransactionRequest {
    return super.getDeployTransaction(
      _target,
      _finalOwner,
      _codeHash,
      _messengerSlotKey,
      _messengerSlotVal,
      _bridgeSlotKey,
      _bridgeSlotVal,
      overrides || {}
    );
  }
  override attach(address: string): ChugSplashDictator {
    return super.attach(address) as ChugSplashDictator;
  }
  override connect(signer: Signer): ChugSplashDictator__factory {
    return super.connect(signer) as ChugSplashDictator__factory;
  }

  static readonly bytecode = _bytecode;
  static readonly abi = _abi;
  static createInterface(): ChugSplashDictatorInterface {
    return new utils.Interface(_abi) as ChugSplashDictatorInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): ChugSplashDictator {
    return new Contract(address, _abi, signerOrProvider) as ChugSplashDictator;
  }
}
