#solidity #alloy #uniswap #ethereum

no-std uniswap-lens

A library for querying Uniswap V3 using ephemeral lens contracts

12 releases (breaking)

0.9.0 Dec 11, 2024
0.7.0 Nov 8, 2024
0.1.0 Jul 22, 2024

#750 in Magic Beans

Download history 313/week @ 2024-08-31 136/week @ 2024-09-07 73/week @ 2024-09-14 19/week @ 2024-09-21 180/week @ 2024-09-28 66/week @ 2024-10-05 34/week @ 2024-10-12 208/week @ 2024-10-19 78/week @ 2024-10-26 225/week @ 2024-11-02 116/week @ 2024-11-09 72/week @ 2024-11-16 96/week @ 2024-11-23 252/week @ 2024-11-30 611/week @ 2024-12-07 405/week @ 2024-12-14

1,378 downloads per month
Used in 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

~20–27MB
~523K SLoC