tokensMintedWithSignatureEvent

Creates an event object for the TokensMintedWithSignature event.

Example

import { getContractEvents } from "thirdweb";
import { tokensMintedWithSignatureEvent } from "thirdweb/extensions/erc20";
const events = await getContractEvents({
contract,
events: [
tokensMintedWithSignatureEvent({
signer: ...,
mintedTo: ...,
})
],
});
function tokensMintedWithSignatureEvent(
filters: Partial<{ mintedTo: string; signer: string }>,
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "signer";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "mintedTo";
readonly type: "address";
},
{
readonly components: readonly [
{ readonly name: "to"; readonly type: "address" },
{
readonly name: "primarySaleRecipient";
readonly type: "address";
},
{ readonly name: "quantity"; readonly type: "uint256" },
{ readonly name: "price"; readonly type: "uint256" },
{ readonly name: "currency"; readonly type: "address" },
{
readonly name: "validityStartTimestamp";
readonly type: "uint128";
},
{
readonly name: "validityEndTimestamp";
readonly type: "uint128";
},
{ readonly name: "uid"; readonly type: "bytes32" },
];
readonly name: "mintRequest";
readonly type: "tuple";
},
];
readonly name: "TokensMintedWithSignature";
readonly type: "event";
}>;

Parameters

Optional filters to apply to the event.

Type

let filters: Partial<{ mintedTo: string; signer: string }>;

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "signer";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "mintedTo";
readonly type: "address";
},
{
readonly components: readonly [
{ readonly name: "to"; readonly type: "address" },
{
readonly name: "primarySaleRecipient";
readonly type: "address";
},
{ readonly name: "quantity"; readonly type: "uint256" },
{ readonly name: "price"; readonly type: "uint256" },
{ readonly name: "currency"; readonly type: "address" },
{
readonly name: "validityStartTimestamp";
readonly type: "uint128";
},
{
readonly name: "validityEndTimestamp";
readonly type: "uint128";
},
{ readonly name: "uid"; readonly type: "bytes32" },
];
readonly name: "mintRequest";
readonly type: "tuple";
},
];
readonly name: "TokensMintedWithSignature";
readonly type: "event";
}>;

The prepared event object.