#solidity #alloy #uniswap #ethereum

no-std uniswap-lens

A library for querying Uniswap V3 using ephemeral lens contracts

13 releases (breaking)

0.10.0 Dec 31, 2024
0.8.0 Dec 10, 2024
0.7.0 Nov 8, 2024
0.1.0 Jul 22, 2024

#2 in #uniswap

Download history 49/week @ 2024-09-27 193/week @ 2024-10-04 33/week @ 2024-10-11 211/week @ 2024-10-18 67/week @ 2024-10-25 155/week @ 2024-11-01 195/week @ 2024-11-08 63/week @ 2024-11-15 86/week @ 2024-11-22 250/week @ 2024-11-29 573/week @ 2024-12-06 427/week @ 2024-12-13 69/week @ 2024-12-20 166/week @ 2024-12-27 88/week @ 2025-01-03 211/week @ 2025-01-10

581 downloads per month
Used in 2 crates (via uniswap-v3-sdk)

Apache-2.0

4MB
81K 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

~30–41MB
~732K SLoC