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

const _abi = [
  {
    inputs: [],
    stateMutability: "nonpayable",
    type: "constructor",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_loops",
        type: "uint256",
      },
    ],
    name: "extcall",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [],
    name: "implementation",
    outputs: [
      {
        internalType: "address",
        name: "_impl",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "increment",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [],
    name: "incsums",
    outputs: [
      {
        internalType: "uint256",
        name: "_a",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_b",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_c",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_d",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_e",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_f",
        type: "uint256",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_self",
        type: "address",
      },
    ],
    name: "initialize",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_loops",
        type: "uint256",
      },
    ],
    name: "intcall",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [],
    name: "retsums",
    outputs: [
      {
        internalType: "uint256",
        name: "_a",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_b",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_c",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_d",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_e",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_f",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_a",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_b",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_c",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_d",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_e",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_f",
        type: "uint256",
      },
    ],
    name: "sums",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [],
    name: "value",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    stateMutability: "payable",
    type: "receive",
  },
];

const _bytecode =
  " ";

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

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

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

  override deploy(
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<SampleForward> {
    return super.deploy(overrides || {}) as Promise<SampleForward>;
  }
  override getDeployTransaction(
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): TransactionRequest {
    return super.getDeployTransaction(overrides || {});
  }
  override attach(address: string): SampleForward {
    return super.attach(address) as SampleForward;
  }
  override connect(signer: Signer): SampleForward__factory {
    return super.connect(signer) as SampleForward__factory;
  }

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