Builds a add liquidity call data for a given add liquidity parameters.
Promise resolving to add liquidity call data including calldata and value
Builds a remove liquidity call data for a given remove liquidity parameters.
Promise resolving to remove liquidity call data including calldata and value
Builds a swap call data for a given swap parameters.
Promise resolving to swap call data including calldata and value
Returns the current chain ID.
The chain ID currently configured.
Returns the current PublicClient instance.
The current PublicClient.
Retrieves the ABI for a specific contract. This method uses dynamic imports to load ABIs on demand, reducing the initial bundle size.
Promise resolving to the contract's ABI
Returns the address of a specific contract.
The address of the specified contract.
Returns the current set of contract addresses.
An object containing the configured contract addresses.
Retrieves a Uniswap V4 pool instance for a given token pair.
Promise resolving to pool data
Retrieves a Uniswap V4 pool key from a given pool ID.
Promise resolving to pool key data including pool address, token0, token1, and fee
Retrieves a Uniswap V4 position information for a given token ID.
Promise resolving to position data including pool, token0, token1, poolId, and tokenId
Retrieves a Uniswap V4 quote for a given token pair and amount in.
Promise resolving to quote data including amount out, estimated gas used, and timestamp
Prepares the permit2 batch data for multiple tokens. (Used to add liquidity) Use toSign.values to sign the permit2 batch data.
Promise resolving to permit2 batch data
Prepares the permit2 simple data for a single token. (Used to swap) Use toSign.values to sign the permit2 simple data.
Promise resolving to permit2 simple data
Main class for interacting with Uniswap V4 contracts. Provides a flexible and scalable way to interact with different chains and contracts without requiring multiple instances.