/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
  Signer,
  utils,
  Contract,
  ContractFactory,
  Overrides,
  BigNumberish,
} from "ethers";
import { Provider, TransactionRequest } from "@ethersproject/providers";
import type { ThirdwebFees, ThirdwebFeesInterface } from "../ThirdwebFees";

const _abi = [
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_defaultRoyaltyFeeBps",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "_defaultRoyaltyFeeRecipient",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_defaultSalesFeeBps",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "_defaultSalesFeeRecipient",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_defaultSplitsFeeBps",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "_defaultSplitsFeeRecipient",
        type: "address",
      },
    ],
    stateMutability: "nonpayable",
    type: "constructor",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "uint256",
        name: "feeBps",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "address",
        name: "moduleInstance",
        type: "address",
      },
      {
        indexed: false,
        internalType: "enum ThirdwebFees.FeeType",
        name: "feeType",
        type: "uint8",
      },
    ],
    name: "FeeForModuleInstance",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "uint256",
        name: "feeBps",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "bytes32",
        name: "moduleType",
        type: "bytes32",
      },
      {
        indexed: false,
        internalType: "enum ThirdwebFees.FeeType",
        name: "feeType",
        type: "uint8",
      },
    ],
    name: "FeeForModuleType",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "address",
        name: "previousOwner",
        type: "address",
      },
      {
        indexed: true,
        internalType: "address",
        name: "newOwner",
        type: "address",
      },
    ],
    name: "OwnershipTransferred",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "address",
        name: "recipient",
        type: "address",
      },
      {
        indexed: false,
        internalType: "address",
        name: "moduleInstance",
        type: "address",
      },
      {
        indexed: false,
        internalType: "enum ThirdwebFees.FeeType",
        name: "feeType",
        type: "uint8",
      },
    ],
    name: "RecipientForModuleInstance",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "address",
        name: "recipient",
        type: "address",
      },
      {
        indexed: false,
        internalType: "bytes32",
        name: "moduleType",
        type: "bytes32",
      },
      {
        indexed: false,
        internalType: "enum ThirdwebFees.FeeType",
        name: "feeType",
        type: "uint8",
      },
    ],
    name: "RecipientForModuleType",
    type: "event",
  },
  {
    inputs: [],
    name: "MAX_BPS",
    outputs: [
      {
        internalType: "uint128",
        name: "",
        type: "uint128",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "defaultRoyaltyFeeBps",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "defaultRoyaltyFeeRecipient",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "defaultSalesFeeBps",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "defaultSalesFeeRecipient",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "defaultSplitsFeeBps",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "defaultSplitsFeeRecipient",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
      {
        internalType: "enum ThirdwebFees.FeeType",
        name: "",
        type: "uint8",
      },
    ],
    name: "feeBpsByModuleInstance",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
      {
        internalType: "enum ThirdwebFees.FeeType",
        name: "",
        type: "uint8",
      },
    ],
    name: "feeBpsByModuleType",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
      {
        internalType: "enum ThirdwebFees.FeeType",
        name: "",
        type: "uint8",
      },
    ],
    name: "feeRecipientByModuleInstance",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
      {
        internalType: "enum ThirdwebFees.FeeType",
        name: "",
        type: "uint8",
      },
    ],
    name: "feeRecipientByModuleType",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_module",
        type: "address",
      },
    ],
    name: "getRoyaltyFeeBps",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_module",
        type: "address",
      },
    ],
    name: "getRoyaltyFeeRecipient",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_module",
        type: "address",
      },
    ],
    name: "getSalesFeeBps",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_module",
        type: "address",
      },
    ],
    name: "getSalesFeeRecipient",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_module",
        type: "address",
      },
    ],
    name: "getSplitsFeeBps",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_module",
        type: "address",
      },
    ],
    name: "getSplitsFeeRecipient",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "maxFeeBps",
    outputs: [
      {
        internalType: "uint128",
        name: "",
        type: "uint128",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "owner",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "renounceOwnership",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_moduleInstance",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_feeBps",
        type: "uint256",
      },
      {
        internalType: "enum ThirdwebFees.FeeType",
        name: "_feeType",
        type: "uint8",
      },
    ],
    name: "setFeeForModuleInstance",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "_moduleType",
        type: "bytes32",
      },
      {
        internalType: "uint256",
        name: "_feeBps",
        type: "uint256",
      },
      {
        internalType: "enum ThirdwebFees.FeeType",
        name: "_feeType",
        type: "uint8",
      },
    ],
    name: "setFeeForModuleType",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_moduleInstance",
        type: "address",
      },
      {
        internalType: "address",
        name: "_recipient",
        type: "address",
      },
      {
        internalType: "enum ThirdwebFees.FeeType",
        name: "_feeType",
        type: "uint8",
      },
    ],
    name: "setRecipientForModuleInstance",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "_moduleType",
        type: "bytes32",
      },
      {
        internalType: "address",
        name: "_recipient",
        type: "address",
      },
      {
        internalType: "enum ThirdwebFees.FeeType",
        name: "_feeType",
        type: "uint8",
      },
    ],
    name: "setRecipientForModuleType",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    name: "takeNoFee",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "newOwner",
        type: "address",
      },
    ],
    name: "transferOwnership",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
];

const _bytecode =
  " ";

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

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

export class ThirdwebFees__factory extends ContractFactory {
  constructor(...args: ThirdwebFeesConstructorParams) {
    if (isSuperArgs(args)) {
      super(...args);
    } else {
      super(_abi, _bytecode, args[0]);
    }
    this.contractName = "ThirdwebFees";
  }

  deploy(
    _defaultRoyaltyFeeBps: BigNumberish,
    _defaultRoyaltyFeeRecipient: string,
    _defaultSalesFeeBps: BigNumberish,
    _defaultSalesFeeRecipient: string,
    _defaultSplitsFeeBps: BigNumberish,
    _defaultSplitsFeeRecipient: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ThirdwebFees> {
    return super.deploy(
      _defaultRoyaltyFeeBps,
      _defaultRoyaltyFeeRecipient,
      _defaultSalesFeeBps,
      _defaultSalesFeeRecipient,
      _defaultSplitsFeeBps,
      _defaultSplitsFeeRecipient,
      overrides || {}
    ) as Promise<ThirdwebFees>;
  }
  getDeployTransaction(
    _defaultRoyaltyFeeBps: BigNumberish,
    _defaultRoyaltyFeeRecipient: string,
    _defaultSalesFeeBps: BigNumberish,
    _defaultSalesFeeRecipient: string,
    _defaultSplitsFeeBps: BigNumberish,
    _defaultSplitsFeeRecipient: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): TransactionRequest {
    return super.getDeployTransaction(
      _defaultRoyaltyFeeBps,
      _defaultRoyaltyFeeRecipient,
      _defaultSalesFeeBps,
      _defaultSalesFeeRecipient,
      _defaultSplitsFeeBps,
      _defaultSplitsFeeRecipient,
      overrides || {}
    );
  }
  attach(address: string): ThirdwebFees {
    return super.attach(address) as ThirdwebFees;
  }
  connect(signer: Signer): ThirdwebFees__factory {
    return super.connect(signer) as ThirdwebFees__factory;
  }
  static readonly contractName: "ThirdwebFees";
  public readonly contractName: "ThirdwebFees";
  static readonly bytecode = _bytecode;
  static readonly abi = _abi;
  static createInterface(): ThirdwebFeesInterface {
    return new utils.Interface(_abi) as ThirdwebFeesInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): ThirdwebFees {
    return new Contract(address, _abi, signerOrProvider) as ThirdwebFees;
  }
}
