setValidatorEvent

Creates an event object for the SetValidator event.

Example

import { getContractEvents } from "thirdweb";
import { setValidatorEvent } from "thirdweb/extensions/farcaster";
const events = await getContractEvents({
contract,
events: [setValidatorEvent()],
});
function setValidatorEvent(): PreparedEvent<{
readonly inputs: readonly [
{ readonly name: "keyType"; readonly type: "uint32" },
{ readonly name: "metadataType"; readonly type: "uint8" },
{ readonly name: "oldValidator"; readonly type: "address" },
{ readonly name: "newValidator"; readonly type: "address" },
];
readonly name: "SetValidator";
readonly type: "event";
}>;

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{ readonly name: "keyType"; readonly type: "uint32" },
{ readonly name: "metadataType"; readonly type: "uint8" },
{ readonly name: "oldValidator"; readonly type: "address" },
{ readonly name: "newValidator"; readonly type: "address" },
];
readonly name: "SetValidator";
readonly type: "event";
}>;

The prepared event object.