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