currencyApprovedForListingEvent

Creates an event object for the CurrencyApprovedForListing event.

Example

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

Parameters

Optional filters to apply to the event.

Type

let filters: Partial<{ currency: string; listingId: bigint }>;

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "listingId";
readonly type: "uint256";
},
{
readonly indexed: true;
readonly name: "currency";
readonly type: "address";
},
{ readonly name: "pricePerToken"; readonly type: "uint256" },
];
readonly name: "CurrencyApprovedForListing";
readonly type: "event";
}>;

The prepared event object.