ownerChangedEvent

Creates an event object for the OwnerChanged event.

Example

import { getContractEvents } from "thirdweb";
import { ownerChangedEvent } from "thirdweb/extensions/uniswap";
const events = await getContractEvents({
contract,
events: [
ownerChangedEvent({
oldOwner: ...,
newOwner: ...,
})
],
});

Parameters

Returns

The prepared event object.