Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NFTDriverTxFactory

Hierarchy

  • NFTDriverTxFactory

Implements

  • INFTDriverTxFactory

Index

Constructors

Properties

#driver: NFTDriver
#driverAddress: string
#signer: Signer

Accessors

  • get driverAddress(): string
  • get signer(): undefined | Signer

Methods

  • collect(tokenId: PromiseOrValue<BigNumberish>, erc20: PromiseOrValue<string>, transferTo: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
  • Parameters

    • tokenId: PromiseOrValue<BigNumberish>
    • erc20: PromiseOrValue<string>
    • transferTo: PromiseOrValue<string>
    • overrides: Overrides & { from?: PromiseOrValue<string> } = {}

    Returns Promise<PopulatedTransaction>

  • emitUserMetadata(tokenId: PromiseOrValue<BigNumberish>, userMetadata: UserMetadataStruct[], overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
  • Parameters

    • tokenId: PromiseOrValue<BigNumberish>
    • userMetadata: UserMetadataStruct[]
    • overrides: Overrides & { from?: PromiseOrValue<string> } = {}

    Returns Promise<PopulatedTransaction>

  • give(tokenId: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<BigNumberish>, erc20: PromiseOrValue<string>, amt: PromiseOrValue<BigNumberish>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
  • Parameters

    • tokenId: PromiseOrValue<BigNumberish>
    • receiver: PromiseOrValue<BigNumberish>
    • erc20: PromiseOrValue<string>
    • amt: PromiseOrValue<BigNumberish>
    • overrides: Overrides & { from?: PromiseOrValue<string> } = {}

    Returns Promise<PopulatedTransaction>

  • mint(to: PromiseOrValue<string>, userMetadata: UserMetadataStruct[], overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
  • Parameters

    • to: PromiseOrValue<string>
    • userMetadata: UserMetadataStruct[]
    • overrides: Overrides & { from?: PromiseOrValue<string> } = {}

    Returns Promise<PopulatedTransaction>

  • safeMint(to: PromiseOrValue<string>, userMetadata: UserMetadataStruct[], overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
  • Parameters

    • to: PromiseOrValue<string>
    • userMetadata: UserMetadataStruct[]
    • overrides: Overrides & { from?: PromiseOrValue<string> } = {}

    Returns Promise<PopulatedTransaction>

  • setDrips(tokenId: PromiseOrValue<BigNumberish>, erc20: PromiseOrValue<string>, currReceivers: DripsReceiverStruct[], balanceDelta: PromiseOrValue<BigNumberish>, newReceivers: DripsReceiverStruct[], maxEndHint1: PromiseOrValue<BigNumberish>, maxEndHint2: PromiseOrValue<BigNumberish>, transferTo: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
  • Parameters

    • tokenId: PromiseOrValue<BigNumberish>
    • erc20: PromiseOrValue<string>
    • currReceivers: DripsReceiverStruct[]
    • balanceDelta: PromiseOrValue<BigNumberish>
    • newReceivers: DripsReceiverStruct[]
    • maxEndHint1: PromiseOrValue<BigNumberish>
    • maxEndHint2: PromiseOrValue<BigNumberish>
    • transferTo: PromiseOrValue<string>
    • overrides: Overrides & { from?: PromiseOrValue<string> } = {}

    Returns Promise<PopulatedTransaction>

  • setSplits(tokenId: PromiseOrValue<BigNumberish>, receivers: SplitsReceiverStruct[], overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
  • Parameters

    • tokenId: PromiseOrValue<BigNumberish>
    • receivers: SplitsReceiverStruct[]
    • overrides: Overrides & { from?: PromiseOrValue<string> } = {}

    Returns Promise<PopulatedTransaction>

  • Creates a new immutable NFTDriverTxFactory instance.

    throws

    {@link DripsErrors.initializationError} if the initialization fails.

    Parameters

    • signer: Signer

      The signer that will be used to sign the generated transactions.

      The singer must be connected to a provider.

      The supported networks are:

      • 'mainnet': chain ID 1
      • 'goerli': chain ID 5
      • 'polygon-mumbai': chain ID 80001
    • Optional customDriverAddress: string

      Overrides the NFTDriver contract address. If it's undefined (default value), the address will be automatically selected based on the signer.provider's network.

    Returns Promise<NFTDriverTxFactory>

    A Promise which resolves to the new client instance.

Generated using TypeDoc