/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumber,
  BigNumberish,
  BytesLike,
  CallOverrides,
  PopulatedTransaction,
  Signer,
  utils,
} from "ethers";
import type { FunctionFragment, Result } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
  TypedEventFilter,
  TypedEvent,
  TypedListener,
  OnEvent,
  PromiseOrValue,
} from "../../common";

export interface BigNumInterface extends utils.Interface {
  functions: {
    "absdiff(bytes,bytes)": FunctionFragment;
    "add(bytes,bytes)": FunctionFragment;
    "asBytes(bytes,uint256)": FunctionFragment;
    "byteLength(bytes)": FunctionFragment;
    "cmp(bytes,bytes)": FunctionFragment;
    "fromBytes(bytes)": FunctionFragment;
    "fromUint(uint256)": FunctionFragment;
    "minimalByteLength(bytes)": FunctionFragment;
    "modexp(bytes,bytes,bytes)": FunctionFragment;
    "modmul(bytes,bytes,bytes)": FunctionFragment;
    "rightShift(bytes)": FunctionFragment;
  };

  getFunction(
    nameOrSignatureOrTopic:
      | "absdiff"
      | "add"
      | "asBytes"
      | "byteLength"
      | "cmp"
      | "fromBytes"
      | "fromUint"
      | "minimalByteLength"
      | "modexp"
      | "modmul"
      | "rightShift"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "absdiff",
    values: [PromiseOrValue<BytesLike>, PromiseOrValue<BytesLike>]
  ): string;
  encodeFunctionData(
    functionFragment: "add",
    values: [PromiseOrValue<BytesLike>, PromiseOrValue<BytesLike>]
  ): string;
  encodeFunctionData(
    functionFragment: "asBytes",
    values: [PromiseOrValue<BytesLike>, PromiseOrValue<BigNumberish>]
  ): string;
  encodeFunctionData(
    functionFragment: "byteLength",
    values: [PromiseOrValue<BytesLike>]
  ): string;
  encodeFunctionData(
    functionFragment: "cmp",
    values: [PromiseOrValue<BytesLike>, PromiseOrValue<BytesLike>]
  ): string;
  encodeFunctionData(
    functionFragment: "fromBytes",
    values: [PromiseOrValue<BytesLike>]
  ): string;
  encodeFunctionData(
    functionFragment: "fromUint",
    values: [PromiseOrValue<BigNumberish>]
  ): string;
  encodeFunctionData(
    functionFragment: "minimalByteLength",
    values: [PromiseOrValue<BytesLike>]
  ): string;
  encodeFunctionData(
    functionFragment: "modexp",
    values: [
      PromiseOrValue<BytesLike>,
      PromiseOrValue<BytesLike>,
      PromiseOrValue<BytesLike>
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "modmul",
    values: [
      PromiseOrValue<BytesLike>,
      PromiseOrValue<BytesLike>,
      PromiseOrValue<BytesLike>
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "rightShift",
    values: [PromiseOrValue<BytesLike>]
  ): string;

  decodeFunctionResult(functionFragment: "absdiff", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "add", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "asBytes", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "byteLength", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "cmp", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "fromBytes", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "fromUint", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "minimalByteLength",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "modexp", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "modmul", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "rightShift", data: BytesLike): Result;

  events: {};
}

export interface BigNum extends BaseContract {
  connect(signerOrProvider: Signer | Provider | string): this;
  attach(addressOrName: string): this;
  deployed(): Promise<this>;

  interface: BigNumInterface;

  queryFilter<TEvent extends TypedEvent>(
    event: TypedEventFilter<TEvent>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TEvent>>;

  listeners<TEvent extends TypedEvent>(
    eventFilter?: TypedEventFilter<TEvent>
  ): Array<TypedListener<TEvent>>;
  listeners(eventName?: string): Array<Listener>;
  removeAllListeners<TEvent extends TypedEvent>(
    eventFilter: TypedEventFilter<TEvent>
  ): this;
  removeAllListeners(eventName?: string): this;
  off: OnEvent<this>;
  on: OnEvent<this>;
  once: OnEvent<this>;
  removeListener: OnEvent<this>;

  functions: {
    absdiff(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<[string]>;

    add(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<[string]>;

    asBytes(
      _value: PromiseOrValue<BytesLike>,
      size: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<[string]>;

    byteLength(
      _a: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    cmp(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    fromBytes(
      _value: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<[string]>;

    fromUint(
      _value: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<[string]>;

    minimalByteLength(
      _a: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    modexp(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      _c: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<[string]>;

    modmul(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      _c: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<[string]>;

    rightShift(
      _a: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<[string]>;
  };

  absdiff(
    _a: PromiseOrValue<BytesLike>,
    _b: PromiseOrValue<BytesLike>,
    overrides?: CallOverrides
  ): Promise<string>;

  add(
    _a: PromiseOrValue<BytesLike>,
    _b: PromiseOrValue<BytesLike>,
    overrides?: CallOverrides
  ): Promise<string>;

  asBytes(
    _value: PromiseOrValue<BytesLike>,
    size: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides
  ): Promise<string>;

  byteLength(
    _a: PromiseOrValue<BytesLike>,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  cmp(
    _a: PromiseOrValue<BytesLike>,
    _b: PromiseOrValue<BytesLike>,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  fromBytes(
    _value: PromiseOrValue<BytesLike>,
    overrides?: CallOverrides
  ): Promise<string>;

  fromUint(
    _value: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides
  ): Promise<string>;

  minimalByteLength(
    _a: PromiseOrValue<BytesLike>,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  modexp(
    _a: PromiseOrValue<BytesLike>,
    _b: PromiseOrValue<BytesLike>,
    _c: PromiseOrValue<BytesLike>,
    overrides?: CallOverrides
  ): Promise<string>;

  modmul(
    _a: PromiseOrValue<BytesLike>,
    _b: PromiseOrValue<BytesLike>,
    _c: PromiseOrValue<BytesLike>,
    overrides?: CallOverrides
  ): Promise<string>;

  rightShift(
    _a: PromiseOrValue<BytesLike>,
    overrides?: CallOverrides
  ): Promise<string>;

  callStatic: {
    absdiff(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<string>;

    add(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<string>;

    asBytes(
      _value: PromiseOrValue<BytesLike>,
      size: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<string>;

    byteLength(
      _a: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    cmp(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    fromBytes(
      _value: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<string>;

    fromUint(
      _value: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<string>;

    minimalByteLength(
      _a: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    modexp(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      _c: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<string>;

    modmul(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      _c: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<string>;

    rightShift(
      _a: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<string>;
  };

  filters: {};

  estimateGas: {
    absdiff(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    add(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    asBytes(
      _value: PromiseOrValue<BytesLike>,
      size: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    byteLength(
      _a: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    cmp(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    fromBytes(
      _value: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    fromUint(
      _value: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    minimalByteLength(
      _a: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    modexp(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      _c: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    modmul(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      _c: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    rightShift(
      _a: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    absdiff(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    add(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    asBytes(
      _value: PromiseOrValue<BytesLike>,
      size: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    byteLength(
      _a: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    cmp(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    fromBytes(
      _value: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    fromUint(
      _value: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    minimalByteLength(
      _a: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    modexp(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      _c: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    modmul(
      _a: PromiseOrValue<BytesLike>,
      _b: PromiseOrValue<BytesLike>,
      _c: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    rightShift(
      _a: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;
  };
}
