adminUpdatedEvent

Creates an event object for the AdminUpdated event.

Example

import { getContractEvents } from "thirdweb";
import { adminUpdatedEvent } from "thirdweb/extensions/erc4337";
const events = await getContractEvents({
contract,
events: [
adminUpdatedEvent({
signer: ...,
})
],
});
function adminUpdatedEvent(
filters: Partial<{ signer: string }>,
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "signer";
readonly type: "address";
},
{ readonly name: "isAdmin"; readonly type: "bool" },
];
readonly name: "AdminUpdated";
readonly type: "event";
}>;

Parameters

Optional filters to apply to the event.

Type

let filters: Partial<{ signer: string }>;

Returns

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.