Creates an event object for the PackUpdated event.
import { getContractEvents } from "thirdweb";import { packUpdatedEvent } from "thirdweb/extensions/erc1155"; const events = await getContractEvents({contract,events: [ packUpdatedEvent({ packId: ...,})],});
function packUpdatedEvent( filters: Partial<{ packId: bigint }>,): PreparedEvent<{ readonly inputs: readonly [ { readonly indexed: true; readonly name: "packId"; readonly type: "uint256"; }, { readonly name: "recipient"; readonly type: "address" }, { readonly name: "totalPacksCreated"; readonly type: "uint256" }, ]; readonly name: "PackUpdated"; readonly type: "event";}>;
Optional filters to apply to the event.
let filters: Partial<{ packId: bigint }>;
let returnType: PreparedEvent<{ readonly inputs: readonly [ { readonly indexed: true; readonly name: "packId"; readonly type: "uint256"; }, { readonly name: "recipient"; readonly type: "address" }, { readonly name: "totalPacksCreated"; readonly type: "uint256" }, ]; readonly name: "PackUpdated"; readonly type: "event";}>;
The prepared event object.