cancelledOfferEvent

Creates an event object for the CancelledOffer event.

Example

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

Parameters

Optional filters to apply to the event.

Type

let filters: Partial<{ offerId: bigint; offeror: string }>;

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "offeror";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "offerId";
readonly type: "uint256";
},
];
readonly name: "CancelledOffer";
readonly type: "event";
}>;

The prepared event object.