#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 37/week @ 2024-09-25 203/week @ 2024-10-02 34/week @ 2024-10-09 198/week @ 2024-10-16 61/week @ 2024-10-23 65/week @ 2024-10-30 287/week @ 2024-11-06 60/week @ 2024-11-13 89/week @ 2024-11-20 137/week @ 2024-11-27 418/week @ 2024-12-04 613/week @ 2024-12-11 172/week @ 2024-12-18 155/week @ 2024-12-25 72/week @ 2025-01-01 135/week @ 2025-01-08

620 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
~731K SLoC