Repository navigation
Comparing changes
Open a pull request
base repository: KBryan/uniswap-python
base: master
head repository: uniswap-python/uniswap-python
compare: master
- 19 commits
- 63 files changed
- 8 contributors
Commits on Jul 28, 2026
-
V4 support (uniswap-python#418)
* v4 support pre-alpha * v4 support pre-alpha * Revert "v4 support pre-alpha" This reverts commit fa75632. * Revert "v4 support pre-alpha" This reverts commit de63ce4. * Update __init__.py * Add files via upload * Add Uniswap4 to module exports * Delete uniswap/uniswap-v4 directory * Add files via upload * Refactor uniswap4.py by removing unused imports Removed unused imports and cleaned up code formatting. * Add files via upload Pool manager contract ABI * Delete uniswap/configs/evmuniV4_permit2.ini Deleted due to naming fix * Delete uniswap/configs/evmuniV4_chains.ini Deleted due to naming fix * Delete uniswap/configs/evmuniV4_quoter.ini Deleted due to naming fix * Delete uniswap/configs/evmuniV4_router.ini Deleted due to naming fix * Delete uniswap/configs/evmuniV4_stateview.ini Deleted due to naming fix * Add files via upload Naming fix * Add files via upload Liquidity pools list management class added, UniswapV4 improvements. * Delete uniswap/uni4base.py refactor * Delete uniswap/configs/chains.ini refactor * Delete uniswap/configs directory refactor * Beta refactoring+bug fixes * Add files via upload * Add files via upload * Delete uniswap/v4pools.py moved to util * Delete uniswap/v4types.py moved to types * Delete uniswap/v4constants.py moved to constants * Add files via upload Structure refactoring; fixes; StateView contract support added * Formmating fixes, naming fixes * fix constants * Fix util * technical commit * Technical fixes * pre-commit formatter/linter * fix pyproject.toml * ci: update GitHub Actions to supported versions * ci: fix python version output quoting in workflow * build(deps): update poetry.lock * typecheck fixes * review fixes * poetry.lock update * more typecheck fixes * more typecheck * get_token fix * PositionDescriptor support; PositionManager read methods support; misc * fixes * PositionManager full support; PoolManager full support; contracts-related methods naming improvement. * fixes * review fixes * extra fix * poetry.lock fix * v4 test prototype * Update uniswap/uniswap4.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Update tests/v4tests.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * fix * tech commit * tech fix * fix(ci): replace rate-limited Infura with public RPC (uniswap-python#431) * fix(ci): replace rate-limited Infura with public RPC and fix type errors - Switch PROVIDER_MAINNET fallback from Infura to ethereum.publicnode.com (Infura public key was hitting "Too Many Requests" rate limits) - Add dev/v4 and dev/v4-fin branches to CI triggers - Fix mypy errors: use str() for bytes fallback in token name/symbol decode, add type: ignore for web3 get_logs attribute Co-authored-by: Bob <bob@superuserlabs.org> * fix(ci): switch Arbitrum RPC and resolve mypy warning * fix(ci): stop push runs from preferring stale mainnet secret (uniswap-python#432) * Added multi-hop quotes support * review fixes * Checks improvements, small logic fix, multi-hop tests added * Added multi-hop swaps support; added market pricing functions similar to main class; removed hardcoded zero values regarding hooks; impoved pool data fetching process; misc improvement * review fix * typecheck fix * Improved exceptions handling; get_logs() glitch fix * Added swap tests; added liquidity read functions; added liquidity tests * typo fix * Fixes: get_poolkeys_sublist() - addresses comparison; estimate_price_impact() - route param removed; decode_position_info() - imcorrect input value handling * Fix: decode_position_info() - truncated poolID decoding * Add get_position_value() and get_minted_token_id(); related tests; tick math improved; misc * get_amounts_for_liquidity_by_ticks() refactoring; review suggestions added * typecheck glitch fix * typo * typo * get_sqrt_ratio_at_tick() moved to util.py as it is shared with v3; get_minted_token_id() refactoring to support multiple mints * review suggestion * review suggestion * Add liquidity management methods; add router commands and pool actions constants * quick self-fix * typos * typos * Changed direct contract call methods naming to improve usability * typo * Improve log processing in fetch_poolkey_data(); typos fixed * Add fetch_poolkey_data() reconnect functionality * Change fetch_poolkey_data(): param/var renamed and docstring changed for better clarity; tests exceptions handling improved slightly. * Add universal router prerequisites * quick fix * Add universal router support * Review fixes * review suggestions * Review suggestions * Review suggestions * Fixed custom recipient' logic in swaps; fixed ABIs constants. * review fixes * Removed custom recipent in swaps; tests added. * quick fix * misc fixes * Switch from ganachr to foundry-anvil for v4 tests * fix * fix * fix * fix * fix * fix * fix * fix * fix * Add custom transactions' nonce; custom delay time within approve(); universal router' commands and actions ABIs clarified * fix * ABI fix * fix * Add more v4 tests * fix * fix * fix * fix * fix * fix * fix * Add more tests * fix * Add liquidity tests * fix * Add swap tests * fix * fix * fix * fix * Add fetch pool data test * Add the rest of pool data tests * Add liquidity postions management tests. * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * Add StateView and PositionDescriptor tests; liquidity tests reorg. * fix * fix * fix * fix * Add Universal_router_execute() tests * fix * fix * Add positive slippage collection * Fix comments * Fix positive slippage recipient * Minor fixes. * Fix * RC * fix * Docstrings clarification, comments on universal_router_execute() usage * fix * Fix position_manager_permit2_single() * Fix constructor network handling * fix * Docstrings clarification * fix * Add testnets, minor constructor improvements * Docstrings clarification * Add router v2.1.1 support; add X Layer, Tempo, Robinhood networks support; removes Blast and testnets support. * fix * abi fix for multihop swap * fix * fix * tests fix * fix singlehop swaps abi, method and tests * unversal router execute() test fix * Add ReservesLens support * draft fixes * getPoolTVLBatch fix * getPoolTVLBatch params refactoring * docstring clarification * Fix ruff versions clownshow; docstring clarificatiom --------- Co-authored-by: Erik Bjäreholt <erik@bjareho.lt> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Co-authored-by: Bob <bob@superuserlabs.org>
Configuration menu - View commit details
-
Copy full SHA for 4c42f1f - Browse repository at this point
Copy the full SHA 4c42f1fView commit details -
docs: update README with v4 support — remove stale CTA, add to Suppor…
…ts list (uniswap-python#470) - Remove "Want to help implement v4?" callout (v4 shipped in uniswap-python#418) - Add Uniswap v4 (as of v0.8.0, beta) to the Supports section with a brief feature list (swaps, quoting, liquidity, pool cache service)
Configuration menu - View commit details
-
Copy full SHA for 4542f83 - Browse repository at this point
Copy the full SHA 4542f83View commit details -
docs: v4 narrative guide, v2/v3 examples, and runnable example tests (u…
…niswap-python#471) * docs: add v4 narrative guide and fill examples page with v2/v3 snippets - docs/v4.rst: new page covering PoolKey concept, connecting Uniswap4, spot price, quoting (exact-in/out, single-hop and multi-hop), price impact estimation, making swaps, pool discovery, and full liquidity lifecycle (create pool, mint, read, collect, decrease, burn) - docs/examples.rst: was empty ('No examples here yet!'); now has v2 and v3 examples for prices, swaps, multi-hop, and liquidity management - docs/index.rst: add v4 to the toctree * test(v4): add runnable example tests against Anvil mainnet fork Five example test classes covering the most common v4 workflows: - TestExampleSpotPrice: get_token_token_spot_price (reads sqrtPriceX96) - TestExampleQuote: get_price_input / get_price_output (single-hop and 2-hop ETH→USDC→USDT route via the on-chain Quoter) - TestExamplePriceImpact: estimate_price_impact (small vs large trade) - TestExampleStateView: stateview_get_slot0 / stateview_get_liquidity - TestExamplePoolDiscovery: V4pools.fetch_poolkey_data / get_poolkeys_sublist These serve as executable documentation (mirror of docs/v4.rst) and run in CI as part of the UNISWAP_VERSION=4 matrix job. Port 10997 is used so this file can run in parallel with test_uniswap4.py (which occupies 10998). * fix(tests): add missing hooks arg to stateview_get_slot0/liquidity calls * fix(docs): correct API mismatches flagged by Greptile review - docs/v4.rst: fix position lifecycle — get_position_info has no 'liquidity' key; use position_manager_get_position_liquidity() instead. get_position_value requires token decimals. collect_fees, decrease_liquidity, and burn_position all require pool_key as first arg plus amount*_min args. - docs/v4.rst: add missing hooks=ZERO_HOOK to stateview_get_slot0 and stateview_get_liquidity calls (both methods require hooks with no default). - docs/examples.rst: remove unsupported route= kwarg from v3 make_trade call; show two sequential single-hop trades instead. - docs/examples.rst: fix misleading v2 comment ("ETH → USDC → WBTC"); v2 routes through WETH automatically, not USDC. - tests/test_v4_examples.py: bound pool discovery scan with last_block to avoid scanning from deployment to chain tip (thousands of RPC calls). * fix(tests): avoid archive RPC in pool discovery example * fix(docs): make routed swaps executable * fix(docs): remove full liquidity before burn_position
Configuration menu - View commit details
-
Copy full SHA for de275ed - Browse repository at this point
Copy the full SHA de275edView commit details -
refactor(tests): replace ganache with anvil for v1–v3 tests (uniswap-…
…python#472) * refactor(tests): replace ganache with anvil for v1-v3 tests Ganache is an npm-maintained tool that has fallen behind foundry's anvil in maintenance and compatibility. Anvil is already used for v4 tests (test_uniswap4.py) and is installed via the foundry-toolchain GitHub Action in CI. - Replace GanacheInstance with AnvilInstance in tests/test_uniswap.py - Swap the ganache fixture for an anvil fixture (same port 10999, Foundry's default test mnemonic account uniswap-python#9 instead of ganache's --wallet.seed account) - Remove `npm install -g ganache@7.5.0` and Node setup from CI workflow - Update README to reference Anvil/Foundry instead of ganache-cli * docs: make Foundry install work in fresh shells * docs: invoke foundryup from installed path * docs: add Foundry binaries to current PATH * fix(tests): pre-populate gas before build_transaction to fix v1 InvalidJump web3.py calls eth_estimateGas internally during build_transaction when no gas field is present in tx_params. Anvil's strict EVM rejects this for Vyper v1 exchange contracts with EVM error InvalidJump (computed jump tables used by old Vyper don't pass strict JUMPDEST validation during simulation). The existing use_estimate_gas=False path set a 250k gas fallback AFTER build_transaction had already made — and failed — the estimateGas call. Fix: pre-populate gas in tx_params before calling build_transaction when use_estimate_gas=False, so web3's internal estimate is never triggered. * test: xfail v1 token-to-ETH cases incompatible with Anvil revm Anvil's revm enforces strict JUMPDEST validation, which rejects the computed jump tables used by old Vyper-compiled Uniswap v1 exchange contracts in the tokenToEth code path (EvmError: InvalidJump). Ganache was more permissive and executed these without error. The ETH-to-token direction works fine; only token-to-ETH triggers the incompatibility. Mark the two failing test cases as xfail so CI is green while keeping the test coverage visible. * test: try 500k gas fallback for v1 token-to-ETH, remove xfail liquid-8 observed out-of-gas in the e792149 CI run rather than a hard InvalidJump at execution. Raise the no-estimate-gas fallback from 250k to 500k — the same direction that resolved similar v4 gas issues — and remove the xfail marks so CI validates the fix directly. If this run still fails, the root cause is confirmed as an EVM bytecode incompatibility rather than insufficient gas, and the xfail approach is the right interim. * test: re-add xfail for v1 token-to-ETH (Anvil revm InvalidJump) 500k gas still hits InvalidJump — it's not a gas issue. Anvil's strict revm rejects the non-standard JUMP patterns in Uniswap v1 Vyper 0.1.x bytecode; Ganache was permissive about these. Gas increase cannot fix this class of failure. xfail on `client.version == 1 and output_token == ETH_ADDRESS` in both test_make_trade and test_make_trade_output, with an explicit reason string pointing at the deprecation track.
Configuration menu - View commit details
-
Copy full SHA for 2ef33e2 - Browse repository at this point
Copy the full SHA 2ef33e2View commit details
Commits on Jul 29, 2026
-
fix: avoid duplicate WETH in swap path when input/output is WETH (closes
uniswap-python#363) (uniswap-python#459) * fix: avoid duplicate WETH in swap path when input/output is WETH (closes uniswap-python#363) * fix: also avoid duplicate WETH in _token_to_token_swap_output (closes uniswap-python#363) * fix: use is_same_address() for WETH comparison in _token_to_token_swap_output Raw == fails when input_token/output_token is bytes or lowercase hex, falling through to the wrong 3-hop path. Consistent with the rest of the codebase (line 746 and the v3 path use is_same_address). * Update uniswap/uniswap.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --------- Co-authored-by: botbikamordehai2-sketch <mbotbika9@gmail.com> Co-authored-by: Yohan K <72107640+liquid-8@users.noreply.github.com> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for e771a29 - Browse repository at this point
Copy the full SHA e771a29View commit details -
build(deps): bump minimum Python to 3.12, update deps, drop typed_ast (…
…uniswap-python#473) * build(deps): bump Python to 3.12, drop typed_ast and ruff-replaced linters - Require Python ^3.12 (from ^3.7.2) - Drop typing-extensions: Concatenate/ParamSpec now in stdlib typing (3.10+) - Drop black and flake8: superseded by ruff (already in pre-commit config) - Bump pytest ^6 → ^8, Sphinx * → ^9 (requires Python 3.12) - Unpin pydata-sphinx-theme (sphinx-book-theme#711 long resolved) - Drop allow-prereleases on web3 (stable 6.x line is sufficient) - Loosen click ^8.0.3 → ^8 - Update build backend: poetry.masonry.api → poetry.core.masonry.api - CI: test and typecheck jobs now use Python 3.12 - Move [tool.ruff] → [tool.ruff.lint] (deprecation fix) - Silence unused _token_two variable (second-token approval was never wired up) Note: web3 7.x upgrade deferred (major async-first rewrite, breaking API changes). * ci: fix Poetry 2.x compat and bump docs to Python 3.12 - Remove deprecated 'installer.modern-installation' setting (removed in Poetry 2.0) - Bump docs.yml from Python 3.8 to 3.12 to match the new package floor (Python 3.8 + cytoolz 0.12.1 failed to build via Cython under PEP 517) * fix(makefile): replace flake8/black with ruff lint/format targets flake8 and black were removed as direct dependencies in the Python 3.12 dep bump; the Makefile still referenced them. Ruff already handles both roles. * fix(deps): add explicit floors for Python 3.12-incompatible Cython packages cytoolz 0.12.1, frozenlist 1.3.3, yarl 1.8.2, and multidict 6.0.4 all declare python-versions=>=3.6 but have no pre-built cp312 wheels, causing Cython compilation failures when installing under Python 3.12. Add explicit minimum constraints in pyproject.toml so poetry resolves to versions that ship cp312 wheels: - cytoolz >=0.12.3 (locked to 1.1.0) - frozenlist >=1.5.0 (locked to 1.8.0) - multidict >=6.0.5 (locked to 6.7.1) - yarl >=1.10.0 (locked to 1.24.5) propcache 0.5.2 added as a new transitive dep from yarl 1.24.5. * fix(deps): add aiohttp floor to unblock Python 3.12 CI aiohttp 3.8.4 (transitive via web3) has no cp312 wheels and fails to build from source on Python 3.12 — PyLongObject.ob_digit was removed in 3.12. Added aiohttp = ">=3.9.0" (first release with cp312 wheels) as a direct dependency constraint; poetry re-locked to 3.14.3 which ships cp312 wheels. This fixes all 6 failing CI jobs (build + 4 test matrix + typecheck). * fix(deps): pin setuptools<82 and bump doc theme versions for Python 3.12 CI Two independent CI failures after the Python 3.12 bump: - Test/typecheck jobs: eth-keyfile (pulled in via web3->eth-account) still imports pkg_resources, which setuptools dropped starting in 82.0.0 (last shipped in 81.0.0). eth-account>=0.12 fixes this upstream but requires hexbytes>=1.2.0, which conflicts with web3 6.x's hexbytes<0.4.0 pin — that needs the (deliberately deferred) web3 7.x migration. Pin setuptools<82 as a stopgap; also floor typing-extensions>=4.12.0, since 4.5.0 crashes under Python 3.12.13's stricter TypeVar base-class check (docs build failure). - Docs build: sphinx-book-theme was resolving to 0.0.11 (a 2020-era release, incompatible with Sphinx 9's theme API — missing 'get_edit_url'). Floor it to ^1.1, which also pulls a compatible pydata-sphinx-theme (0.20.0). Along the way, Sphinx 9 hard-fails on the old implicit-%s extlinks caption format ("issue #" -> "issue #%s"). Verified locally: full install, docs build (make html), pytest collection (250 tests), and mypy --pretty all pass in an isolated poetry venv. * fix(deps): add ruff as explicit dev dependency Makefile lint/format targets call `poetry run ruff` but ruff was absent from [tool.poetry.dev-dependencies]. A fresh `poetry install` would succeed without it, making `make lint` fail immediately. Lock file regenerated with Poetry 2.3.2 / Python 3.12.3.
Configuration menu - View commit details
-
Copy full SHA for dee6a77 - Browse repository at this point
Copy the full SHA dee6a77View commit details
Commits on Aug 5, 2026
-
docs: disclose project funding history in README (uniswap-python#476)
Replaces the stale 'Support our continued work' Gitcoin CTA with a Funding section covering the Uniswap Grants Program grant (v3, 2021), community Gitcoin donations, and Superuser Labs' sponsorship of continued development including the v4 work.
Configuration menu - View commit details
-
Copy full SHA for 56ba3eb - Browse repository at this point
Copy the full SHA 56ba3ebView commit details -
fix(deps): bump lru-dict to 1.2.0 in lockfile for Python 3.13 (uniswa…
…p-python#475) lru-dict 1.1.8 ships no wheels for recent Python and its source fails to compile under modern clang (incompatible-function-pointer-types on the popitem method table; amitdev/lru-dict#76), breaking 'poetry install' on Python 3.13. 1.2.0 contains the fix and stays within web3 6.x's 'lru-dict <1.3.0' constraint.
Configuration menu - View commit details
-
Copy full SHA for bc8fdf4 - Browse repository at this point
Copy the full SHA bc8fdf4View commit details
Commits on Oct 12, 2026
-
feat(metrics): adoption baseline snapshot script + daily workflow (UF…
… grant D3/D4) (uniswap-python#480) * feat(metrics): adoption baseline snapshot script and daily workflow Adds scripts/adoption_snapshot.py (stdlib-only) that captures: - GitHub stars, forks, watchers, open issues - GitHub Traffic: clones/views (14-day window; requires push-access token — the bundled GH Actions workflow captures this automatically) - PyPI downloads last day/week/month (pypistats.org) - Recent release versions and dates Modes: Snapshot (default): emits metrics/adoption-YYYY-MM-DD.{json,md} Report (--report BASELINE.json): prints deltas vs baseline for D4 Also adds .github/workflows/adoption-snapshot.yml (daily at 06:00 UTC) that runs with the repo's GITHUB_TOKEN so traffic data accumulates before the 14-day window rolls off. Initial bootstrap snapshot included (2026-09-02): 1011 stars, 375 forks, 1044 PyPI downloads/month. Per-version download splits require BigQuery (documented in script TODO). Co-authored-by: Erik Bjäreholt <erik@bjareho.lt> Git-Session-Id: 3b38 * fix(metrics): fail closed on traffic auth and collector errors The default Actions GITHUB_TOKEN cannot read /traffic/* (always 403). The workflow now prefers ADOPTION_GITHUB_TOKEN (PAT), runs --strict so failed/skipped collectors do not commit N/A snapshots, retries 429s, and includes traffic deltas in --report. Push path rebases on conflict. * test: xfail v1 UNI-exchange price-output cases (no liquidity) Same fix as uniswap-python#479 — the v1 UNI exchange has no remaining liquidity so get_price_output raises EVM error InvalidJump on mainnet fork. Git-Session-Id: 8f77 * fix(metrics): reconstruct traffic period totals from daily series GitHub Traffic is a rolling 14-day window, not a cumulative counter. Subtracting two windows produced misleading D4 deltas. Store the daily breakdown (per=day) and union it across snapshots for period clone/view counts. Unique visitors stay point-in-time — they are not additive. * fix(metrics): exclude partial current UTC day from period totals Report mode included today's still-accumulating GitHub Traffic row in D4 period totals, understating clones/views on every 06:00 UTC run. Drop that day from the reconstructed range and label it excluded. * fix(metrics): pin collection clock so midnight cannot include a partial day complete_period_end() re-read datetime.now() after collect_metrics() had already stamped snapshot_at. A report that started before UTC midnight and finished after kept the earlier snapshot day, skipped exclusion, and published that day's still-accumulating Traffic row as a complete total. Use one collected_at for snapshot_at, the filename, and period-end exclusion. When now is omitted, key off the snapshot day rather than a fresh clock. --------- Co-authored-by: Erik Bjäreholt <erik@bjareho.lt>
Configuration menu - View commit details
-
Copy full SHA for 43420bc - Browse repository at this point
Copy the full SHA 43420bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for de4e08d - Browse repository at this point
Copy the full SHA de4e08dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ac1b83 - Browse repository at this point
Copy the full SHA 2ac1b83View commit details
Commits on Oct 13, 2026
-
Configuration menu - View commit details
-
Copy full SHA for c96d1b0 - Browse repository at this point
Copy the full SHA c96d1b0View commit details -
test(v4): poll Anvil startup instead of a fixed sleep (uniswap-python…
…#486) * test(v4): poll Anvil startup instead of a fixed sleep Both v4 test modules started anvil and then slept 3 seconds before connecting. On a slow fork that is not enough and the matrix fails with ConnectionRefusedError; on a fast machine it wastes time; and when anvil dies at genesis the fixture still waits out the sleep and then fails on the connection instead of the real cause. Poll the RPC port for up to 60s, fail immediately with the exit code if the process exits first, and kill it on timeout. Git-Session-Id: 9d44438c-8705-491c-9930-947968df9a94 * fix(tests): reap timed-out Anvil and use monotonic deadlines Git-Session-Id: 0fead8e2-e37e-58e4-b158-56598d831c9d
Configuration menu - View commit details
-
Copy full SHA for aa2c09a - Browse repository at this point
Copy the full SHA aa2c09aView commit details
Commits on Oct 14, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 2e5aee3 - Browse repository at this point
Copy the full SHA 2e5aee3View commit details -
feat(v4): UF grant work — async clients, ReservesLens, CI/test fixes …
…(clean branch) (uniswap-python#491) * feat(v4): UF grant work — async clients, ReservesLens, CI/test fixes Clean branch off master containing liquid-8's changes from dev/v4-fin: - Async Uniswap v2/v3/v4 clients (asyncuniswap.py, asyncuniswap4.py) - ReservesLens support and getPoolTVLBatch improvements - Universal Router and single/multi-hop swap fixes - Test suite fixes (RPC switch, Anvil startup, fixture fixes) - Adoption metrics snapshot script + daily workflow (UF grant D3/D4) - README updates Clean squash of dev/v4-fin changes reapplied on top of current master, resolving the 244-commit ancestry confusion from the original v4-fin squash merge (4c42f1f). Also fixes duplicate Generator import in tests/test_uniswap.py (ruff F811). Git-Session-Id: 15b18137-18fa-53a4-92e2-759ce27705c7 * fix: address Greptile P1/P2 findings from review - Restore @check_approval on make_trade/make_trade_output/add_liquidity/ remove_liquidity (P1: first token trades fail without router allowance) - Remove path overwrite after cost calculation in V2 exact-output branch (P1: custom route was silently replaced with default WETH route) - Raise ValueError when V3 route is given without fees in get_price and make_trade (P1: incomplete routes silently fell back to single-pool quote) - Fix async client init to derive provider URL from supplied AsyncWeb3 so PROVIDER env var is not required when web3 is given (P1) - Add asyncio.Lock (_nonce_lock) in AsyncUniswap4 and reserve nonce inside the lock before yielding to prevent concurrent trades sharing a nonce (P1) - Remove incorrect await on bytes32 _name.decode()/_symbol.decode() in AsyncUniswap4.get_token — decode() returns str, not awaitable (P2) - Restore Anvil startup readiness poll in test_uniswap4.py fixture, replacing sleep(3) that was reverted from uniswap-python#486 (P2) - Cache get_weth_address result per client instance to avoid repeated RPC calls on every quote/swap path (P2) Co-Authored-By: Bob <bob@superuserlabs.org> Git-Session-Id: d44b7f42-192e-588b-98db-435d6ad11d1c * fix(typecheck): remove unused type: ignore[return-value] on get_weth_address _weth_address_cache is typed as ChecksumAddress (same as return type), so the ignore comment is now redundant and mypy correctly flags it. Git-Session-Id: c95ac4a4-64bd-42b3-9f79-c55ca4dfb9cf
Configuration menu - View commit details
-
Copy full SHA for 02c0368 - Browse repository at this point
Copy the full SHA 02c0368View commit details
Commits on Oct 15, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 346767c - Browse repository at this point
Copy the full SHA 346767cView commit details
Commits on Oct 16, 2026
-
Configuration menu - View commit details
-
Copy full SHA for d0a100e - Browse repository at this point
Copy the full SHA d0a100eView commit details
Commits on Oct 17, 2026
-
Configuration menu - View commit details
-
Copy full SHA for a3ca335 - Browse repository at this point
Copy the full SHA a3ca335View commit details
Commits on Oct 18, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 9d81d95 - Browse repository at this point
Copy the full SHA 9d81d95View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...master