ownerUpdatedEvent

Creates an event object for the OwnerUpdated event.

Example

import { getContractEvents } from "thirdweb";
import { ownerUpdatedEvent } from "thirdweb/extensions/common";
const events = await getContractEvents({
contract,
events: [
ownerUpdatedEvent({
prevOwner: ...,
newOwner: ...,
})
],
});
function ownerUpdatedEvent(
filters: Partial<{ newOwner: string; prevOwner: string }>,
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "prevOwner";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "newOwner";
readonly type: "address";
},
];
readonly name: "OwnerUpdated";
readonly type: "event";
}>;

Parameters

Optional filters to apply to the event.

Type

let filters: Partial<{ newOwner: string; prevOwner: string }>;

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "prevOwner";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "newOwner";
readonly type: "address";
},
];
readonly name: "OwnerUpdated";
readonly type: "event";
}>;

The prepared event object.