forked from Aperture-Finance/Aperture-Lens
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Refactor test cases and update alloy dependency (#3)
The commit includes code refactoring in tests of `src/pool_lens.rs` to avoid repeating the provider creation. The provider is created using a Lazy static variable. A previously commented out test case `test_get_positions_slots` is enabled and updated. The alloy library feature 'transports' is added in dependencies, replacing 'provider-http'. Some rust warning settings are also added to `lib.rs`. The project is renamed from 'Aperture-Lens' to 'Uniswap-Lens'.
- Loading branch information
Showing
4 changed files
with
75 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Aperture-Lens | ||
# Uniswap-Lens | ||
|
||
[![Foundry](https://github.com/Aperture-Finance/Aperture-Lens/actions/workflows/foundry.yml/badge.svg)](https://github.com/Aperture-Finance/Aperture-Lens/actions/workflows/foundry.yml) | ||
[![Node.js](https://github.com/Aperture-Finance/Aperture-Lens/actions/workflows/nodejs.yml/badge.svg)](https://github.com/Aperture-Finance/Aperture-Lens/actions/workflows/nodejs.yml) | ||
[![Rust](https://github.com/Aperture-Finance/Aperture-Lens/actions/workflows/rust.yml/badge.svg)](https://github.com/Aperture-Finance/Aperture-Lens/actions/workflows/rust.yml) | ||
[![Foundry](https://github.com/shuhuiluo/uniswap-lens-rs/actions/workflows/foundry.yml/badge.svg)](https://github.com/shuhuiluo/uniswap-lens-rs/actions/workflows/foundry.yml) | ||
[![Node.js](https://github.com/shuhuiluo/uniswap-lens-rs/actions/workflows/nodejs.yml/badge.svg)](https://github.com/shuhuiluo/uniswap-lens-rs/actions/workflows/nodejs.yml) | ||
[![Rust](https://github.com/shuhuiluo/uniswap-lens-rs/actions/workflows/rust.yml/badge.svg)](https://github.com/shuhuiluo/uniswap-lens-rs/actions/workflows/rust.yml) | ||
|
||
[![npm version](https://img.shields.io/npm/v/aperture-lens/latest.svg)](https://www.npmjs.com/package/aperture-lens/v/latest) | ||
[![crates.io](https://img.shields.io/crates/v/aperture-lens.svg)](https://crates.io/crates/aperture-lens) | ||
[![crates.io](https://img.shields.io/crates/v/uniswap-lens.svg)](https://crates.io/crates/uniswap-lens) | ||
|
||
Contains ephemeral lens contracts that can be called without deployment and their interfaces in various Web3 libraries. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters