adminResetEvent

Creates an event object for the AdminReset event.

Example

import { getContractEvents } from "thirdweb";
import { adminResetEvent } from "thirdweb/extensions/farcaster";
const events = await getContractEvents({
contract,
events: [
adminResetEvent({
fid: ...,
key: ...,
})
],
});
function adminResetEvent(
filters: Partial<{ fid: bigint; key: `0x${string}` }>,
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "fid";
readonly type: "uint256";
},
{
readonly indexed: true;
readonly name: "key";
readonly type: "bytes";
},
{ readonly name: "keyBytes"; readonly type: "bytes" },
];
readonly name: "AdminReset";
readonly type: "event";
}>;

Parameters

Optional filters to apply to the event.

Type

let filters: Partial<{ fid: bigint; key: `0x${string}` }>;

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "fid";
readonly type: "uint256";
},
{
readonly indexed: true;
readonly name: "key";
readonly type: "bytes";
},
{ readonly name: "keyBytes"; readonly type: "bytes" },
];
readonly name: "AdminReset";
readonly type: "event";
}>;

The prepared event object.