#solidity #ethereum #alloy #uniswap

no-std uniswap-lens

A library for querying Uniswap V3 using ephemeral lens contracts

17 releases (breaking)

new 0.13.0 Apr 8, 2025
0.12.0 Mar 8, 2025
0.11.1 Feb 5, 2025
0.10.0 Dec 31, 2024
0.1.0 Jul 22, 2024

#774 in Magic Beans

Download history 33/week @ 2024-12-23 178/week @ 2024-12-30 90/week @ 2025-01-06 271/week @ 2025-01-13 340/week @ 2025-01-20 295/week @ 2025-01-27 599/week @ 2025-02-03 299/week @ 2025-02-10 702/week @ 2025-02-17 636/week @ 2025-02-24 635/week @ 2025-03-03 624/week @ 2025-03-10 742/week @ 2025-03-17 754/week @ 2025-03-24 632/week @ 2025-03-31 1009/week @ 2025-04-07

3,187 downloads per month
Used in 3 crates (via uniswap-v3-sdk)

Apache-2.0

4MB
82K SLoC

Uniswap-Lens

Foundry Node.js Rust

npm version crates.io

A library for querying Uniswap V3 using ephemeral lens contracts.

Features

  • Lens contracts in Solidity using the revert-in-constructor pattern
  • Rust SDK for querying lens contracts using alloy-rs
  • TypeScript SDK for querying lens contracts using viem

Note on no_std

By default, this library does not depend on the standard library (std). However, the std feature can be enabled via the std feature flag.

Dependencies

~52MB
~823K SLoC