Creates an event object for the OwnerUpdated event.
import { getContractEvents } from "thirdweb";import { ownerUpdatedEvent } from "thirdweb/extensions/common"; const events = await getContractEvents({contract,events: [ ownerUpdatedEvent({ prevOwner: ..., newOwner: ...,})],});
function ownerUpdatedEvent( filters: Partial<{ newOwner: string; prevOwner: string }>,): PreparedEvent<{ readonly inputs: readonly [ { readonly indexed: true; readonly name: "prevOwner"; readonly type: "address"; }, { readonly indexed: true; readonly name: "newOwner"; readonly type: "address"; }, ]; readonly name: "OwnerUpdated"; readonly type: "event";}>;
Optional filters to apply to the event.
let filters: Partial<{ newOwner: string; prevOwner: string }>;
let returnType: PreparedEvent<{ readonly inputs: readonly [ { readonly indexed: true; readonly name: "prevOwner"; readonly type: "address"; }, { readonly indexed: true; readonly name: "newOwner"; readonly type: "address"; }, ]; readonly name: "OwnerUpdated"; readonly type: "event";}>;
The prepared event object.