FilterOptions.events constructor

FilterOptions.events({
  1. required DeployedContract contract,
  2. required ContractEvent event,
  3. BlockNum? fromBlock,
  4. BlockNum? toBlock,
})

Implementation

FilterOptions.events({
  required DeployedContract contract,
  required ContractEvent event,
  this.fromBlock,
  this.toBlock,
})  : address = contract.address,
      topics = [
        [bytesToHex(event.signature, padToEvenLength: true, include0x: true)],
      ];