roleRevokedEvent

Creates an event object for the RoleRevoked event.

Example

import { getContractEvents } from "thirdweb";
import { roleRevokedEvent } from "thirdweb/extensions/permissions";
const events = await getContractEvents({
contract,
events: [
roleRevokedEvent({
role: ...,
account: ...,
sender: ...,
})
],
});
function roleRevokedEvent(
filters: Partial<{
account: string;
role: `0x${string}`;
sender: string;
}>,
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "role";
readonly type: "bytes32";
},
{
readonly indexed: true;
readonly name: "account";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "sender";
readonly type: "address";
},
];
readonly name: "RoleRevoked";
readonly type: "event";
}>;

Parameters

Optional filters to apply to the event.

Type

let filters: Partial<{
account: string;
role: `0x${string}`;
sender: string;
}>;

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "role";
readonly type: "bytes32";
},
{
readonly indexed: true;
readonly name: "account";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "sender";
readonly type: "address";
},
];
readonly name: "RoleRevoked";
readonly type: "event";
}>;

The prepared event object.