newOfferEvent
Creates an event object for the NewOffer event.
import { getContractEvents } from "thirdweb";import { newOfferEvent } from "thirdweb/extensions/marketplace"; const events = await getContractEvents({contract,events: [ newOfferEvent({ offeror: ..., offerId: ..., assetContract: ...,})],});
function newOfferEvent( filters: Partial<{ assetContract: string; 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 indexed: true; readonly name: "assetContract"; readonly type: "address"; }, { readonly components: readonly [ { readonly name: "offerId"; readonly type: "uint256" }, { readonly name: "tokenId"; readonly type: "uint256" }, { readonly name: "quantity"; readonly type: "uint256" }, { readonly name: "totalPrice"; readonly type: "uint256" }, { readonly name: "expirationTimestamp"; readonly type: "uint256"; }, { readonly name: "offeror"; readonly type: "address" }, { readonly name: "assetContract"; readonly type: "address" }, { readonly name: "currency"; readonly type: "address" }, { readonly name: "tokenType"; readonly type: "uint8" }, { readonly name: "status"; readonly type: "uint8" }, ]; readonly name: "offer"; readonly type: "tuple"; }, ]; readonly name: "NewOffer"; readonly type: "event";}>;
readonly inputs: readonly [ { readonly indexed: true; readonly name: "offeror"; readonly type: "address"; }, { readonly indexed: true; readonly name: "offerId"; readonly type: "uint256"; }, { readonly indexed: true; readonly name: "assetContract"; readonly type: "address"; }, { readonly components: readonly [ { readonly name: "offerId"; readonly type: "uint256" }, { readonly name: "tokenId"; readonly type: "uint256" }, { readonly name: "quantity"; readonly type: "uint256" }, { readonly name: "totalPrice"; readonly type: "uint256" }, { readonly name: "expirationTimestamp"; readonly type: "uint256"; }, { readonly name: "offeror"; readonly type: "address" }, { readonly name: "assetContract"; readonly type: "address" }, { readonly name: "currency"; readonly type: "address" }, { readonly name: "tokenType"; readonly type: "uint8" }, { readonly name: "status"; readonly type: "uint8" }, ]; readonly name: "offer"; readonly type: "tuple"; }, ]; readonly name: "NewOffer"; readonly type: "event";}>;
The prepared event object.