View Source Ethers.Contracts.ERC721.EventFilters (Ethers v0.5.5)

Events for Ethers.Contracts.ERC721

Summary

Functions

Create event filter for Approval(address owner, address approved, uint256 tokenId)

Create event filter for ApprovalForAll(address owner, address operator, bool approved)

Create event filter for Transfer(address from, address to, uint256 tokenId)

Functions

approval(owner, approved, token_id)

@spec approval(
  Ethers.Types.t_address() | nil,
  Ethers.Types.t_address() | nil,
  non_neg_integer() | nil
) ::
  Ethers.EventFilter.t()

Create event filter for Approval(address owner, address approved, uint256 tokenId)

For each indexed parameter you can either pass in the value you want to filter or nil if you don't want to filter.

Parameter Types (Event indexed topics)

  • owner: :address
  • approved: :address
  • tokenId: {:uint, 256}

Event data Types (when called with Ethers.get_logs/2)

These are non-indexed topics (often referred to as data) of the event log.

This event does not contain any values!

approval_for_all(owner, operator)

@spec approval_for_all(Ethers.Types.t_address() | nil, Ethers.Types.t_address() | nil) ::
  Ethers.EventFilter.t()

Create event filter for ApprovalForAll(address owner, address operator, bool approved)

For each indexed parameter you can either pass in the value you want to filter or nil if you don't want to filter.

Parameter Types (Event indexed topics)

  • owner: :address
  • operator: :address

Event data Types (when called with Ethers.get_logs/2)

These are non-indexed topics (often referred to as data) of the event log.

  • approved: :bool

transfer(from, to, token_id)

@spec transfer(
  Ethers.Types.t_address() | nil,
  Ethers.Types.t_address() | nil,
  non_neg_integer() | nil
) ::
  Ethers.EventFilter.t()

Create event filter for Transfer(address from, address to, uint256 tokenId)

For each indexed parameter you can either pass in the value you want to filter or nil if you don't want to filter.

Parameter Types (Event indexed topics)

  • from: :address
  • to: :address
  • tokenId: {:uint, 256}

Event data Types (when called with Ethers.get_logs/2)

These are non-indexed topics (often referred to as data) of the event log.

This event does not contain any values!