depositEvent

Creates an event object for the Deposit event.

Example

import { getContractEvents } from "thirdweb";
import { depositEvent } from "thirdweb/extensions/erc4626";
const events = await getContractEvents({
contract,
events: [
depositEvent({
caller: ...,
owner: ...,
})
],
});
function depositEvent(
filters: Partial<{ caller: string; owner: string }>,
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "caller";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "owner";
readonly type: "address";
},
{ readonly name: "assets"; readonly type: "uint256" },
{ readonly name: "shares"; readonly type: "uint256" },
];
readonly name: "Deposit";
readonly type: "event";
}>;

Parameters

Optional filters to apply to the event.

Type

let filters: Partial<{ caller: string; owner: string }>;

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "caller";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "owner";
readonly type: "address";
},
{ readonly name: "assets"; readonly type: "uint256" },
{ readonly name: "shares"; readonly type: "uint256" },
];
readonly name: "Deposit";
readonly type: "event";
}>;

The prepared event object.