cancelledAuctionEvent

Creates an event object for the CancelledAuction event.

Example

import { getContractEvents } from "thirdweb";
import { cancelledAuctionEvent } from "thirdweb/extensions/marketplace";
const events = await getContractEvents({
contract,
events: [
cancelledAuctionEvent({
auctionCreator: ...,
auctionId: ...,
})
],
});
function cancelledAuctionEvent(
filters: Partial<{ auctionCreator: string; auctionId: bigint }>,
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "auctionCreator";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "auctionId";
readonly type: "uint256";
},
];
readonly name: "CancelledAuction";
readonly type: "event";
}>;

Parameters

Optional filters to apply to the event.

Type

let filters: Partial<{ auctionCreator: string; auctionId: bigint }>;

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "auctionCreator";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "auctionId";
readonly type: "uint256";
},
];
readonly name: "CancelledAuction";
readonly type: "event";
}>;

The prepared event object.