Ethers.Contracts.ERC20.EventFilters (Ethers v1.0.0)

Copy Markdown View Source

Events for Ethers.Contracts.ERC20

Summary

Functions

Create event filter for Approval(address owner, address spender, uint256 value)

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

Functions

approval(owner, spender)

Create event filter for Approval(address owner, address spender, uint256 value)

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
  • spender: :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.

  • value: {:uint, 256}

transfer(from, to)

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

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

ETH transfer logs (EIP-7708)

On networks with EIP-7708 active, native ETH transfers emit logs with this event signature. Without an address (the :address option or a default address), Ethers.get_logs/2 can return them as well. See Ethers.Event.eth_transfer_log?/1.

Parameter Types (Event indexed topics)

  • from: :address
  • to: :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.

  • value: {:uint, 256}