Metadata-Version: 2.1
Name: goat-sdk-plugin-uniswap
Version: 0.1.1
Summary: Goat plugin for uniswap
Home-page: https://ohmygoat.dev/
Keywords: goat,sdk,agents,ai,uniswap
Author: Your Name
Author-email: your_email@example.com
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: aiohttp (>=3.0,<4.0)
Requires-Dist: goat-sdk (>=0.1.0,<0.2.0)
Requires-Dist: goat-sdk-plugin-erc20 (>=0.1.0,<0.2.0)
Requires-Dist: goat-sdk-wallet-evm (>=0.1.1,<0.2.0)
Project-URL: Bug Tracker, https://github.com/goat-sdk/goat/issues
Project-URL: Repository, https://github.com/goat-sdk/goat
Description-Content-Type: text/markdown

# Uniswap Plugin for GOAT SDK

A plugin for the GOAT SDK that provides Uniswap DEX functionality for token swaps and liquidity operations.

## Installation

```bash
# Install the plugin
poetry add goat-sdk-plugin-uniswap

# Install required dependencies
poetry add goat-sdk-wallet-evm
poetry add goat-sdk-plugin-erc20
```

## Usage

```python
from goat_plugins.uniswap import uniswap, UniswapPluginOptions

# Initialize the plugin
options = UniswapPluginOptions(
    api_key="${UNISWAP_API_KEY}",  # Optional: API key for higher rate limits
    rpc_url="${RPC_PROVIDER_URL}"   # Your EVM RPC provider URL
)
plugin = uniswap(options)

# Get token price
price = await plugin.get_token_price(
    token_address="0x6B175474E89094C44Da98b954EedeAC495271d0F",  # DAI
    chain_id=1  # Ethereum mainnet
)

# Get swap quote
quote = await plugin.get_swap_quote(
    chain_id=1,
    token_in="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",   # WETH
    token_out="0x6B175474E89094C44Da98b954EedeAC495271d0F",  # DAI
    amount="1000000000000000000",  # 1 WETH in wei
    slippage=50  # 0.5% slippage tolerance
)
```

## Features

- Token price discovery
- Swap quote generation
- Token swap execution
- Liquidity pool information
- Position management
- Supported chains:
  - Ethereum
  - Polygon
  - Arbitrum
  - Optimism
  - Base
  - All Uniswap v3 supported networks

## License

This project is licensed under the terms of the MIT license.

