#solidity #alloy #uniswap #ethereum

no-std uniswap-lens

A library for querying Uniswap V3 using ephemeral lens contracts

10 releases (breaking)

0.7.0 Nov 8, 2024
0.6.0 Nov 6, 2024
0.5.0 Oct 20, 2024
0.4.0 Oct 4, 2024
0.0.2 Jul 21, 2024

#848 in Magic Beans

Download history 10/week @ 2024-07-29 139/week @ 2024-08-26 193/week @ 2024-09-02 149/week @ 2024-09-09 45/week @ 2024-09-16 18/week @ 2024-09-23 210/week @ 2024-09-30 41/week @ 2024-10-07 165/week @ 2024-10-14 78/week @ 2024-10-21 83/week @ 2024-10-28 258/week @ 2024-11-04 73/week @ 2024-11-11

631 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

~40MB
~728K SLoC