#solidity #alloy #uniswap #ethereum

no-std uniswap-lens

A library for querying Uniswap V3 using ephemeral lens contracts

5 unstable releases

new 0.2.1 Sep 2, 2024
0.2.0 Sep 1, 2024
0.1.0 Jul 22, 2024
0.0.2 Jul 21, 2024
0.0.1 Jul 21, 2024

#362 in Magic Beans

Download history 308/week @ 2024-07-17 66/week @ 2024-07-24 5/week @ 2024-07-31 277/week @ 2024-08-28

277 downloads per month
Used in uniswap-v3-sdk

Apache-2.0

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

~28–38MB
~721K SLoC