#solidity #alloy #uniswap #ethereum

no-std uniswap-lens

A library for querying Uniswap V3 using ephemeral lens contracts

16 releases (breaking)

new 0.12.0 Mar 8, 2025
0.10.0 Dec 31, 2024
0.7.0 Nov 8, 2024
0.1.0 Jul 22, 2024

#428 in Magic Beans

Download history 78/week @ 2024-11-17 90/week @ 2024-11-24 289/week @ 2024-12-01 594/week @ 2024-12-08 390/week @ 2024-12-15 32/week @ 2024-12-22 170/week @ 2024-12-29 94/week @ 2025-01-05 268/week @ 2025-01-12 341/week @ 2025-01-19 243/week @ 2025-01-26 644/week @ 2025-02-02 285/week @ 2025-02-09 687/week @ 2025-02-16 587/week @ 2025-02-23 574/week @ 2025-03-02

2,156 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
~815K SLoC