poolCreatedEvent
Creates an event object for the PoolCreated event.
import { getContractEvents } from "thirdweb";import { poolCreatedEvent } from "thirdweb/extensions/uniswap"; const events = await getContractEvents({contract,events: [ poolCreatedEvent({ token0: ..., token1: ..., sender: ...,})],});
function poolCreatedEvent( filters: Partial<{ sender: string; token0: string; token1: string; }>, readonly inputs: readonly [ { readonly indexed: true; readonly name: "token0"; readonly type: "address"; }, { readonly indexed: true; readonly name: "token1"; readonly type: "address"; }, { readonly name: "fee"; readonly type: "uint24" }, { readonly name: "tickLower"; readonly type: "int24" }, { readonly name: "tickUpper"; readonly type: "int24" }, { readonly name: "liquidity"; readonly type: "uint128" }, { readonly indexed: true; readonly name: "sender"; readonly type: "address"; }, ]; readonly name: "PoolCreated"; readonly type: "event";}>;
readonly inputs: readonly [ { readonly indexed: true; readonly name: "token0"; readonly type: "address"; }, { readonly indexed: true; readonly name: "token1"; readonly type: "address"; }, { readonly name: "fee"; readonly type: "uint24" }, { readonly name: "tickLower"; readonly type: "int24" }, { readonly name: "tickUpper"; readonly type: "int24" }, { readonly name: "liquidity"; readonly type: "uint128" }, { readonly indexed: true; readonly name: "sender"; readonly type: "address"; }, ]; readonly name: "PoolCreated"; readonly type: "event";}>;
The prepared event object.