roleGrantedEvent
Creates an event object for the RoleGranted event.
import { getContractEvents } from "thirdweb";import { roleGrantedEvent } from "thirdweb/extensions/permissions"; const events = await getContractEvents({contract,events: [ roleGrantedEvent({ role: ..., account: ..., sender: ...,})],});
function roleGrantedEvent( 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: "RoleGranted"; readonly type: "event";}>;
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: "RoleGranted"; readonly type: "event";}>;
The prepared event object.