Skip to content

Commit 4916449

Browse files
authored
chore: update dependencies, compiler settings, and config files (#19)
Removed unused imports in Rust and Solidity files, upgraded Solidity compiler version to 0.8.28, and adjusted Foundry and Hardhat configs. Incremented package version to 0.10.0 and upgraded Alloy dependency to version 0.9.
1 parent dbdd44e commit 4916449

File tree

6 files changed

+7
-12
lines changed

6 files changed

+7
-12
lines changed

Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "uniswap-lens"
3-
version = "0.9.0"
3+
version = "0.10.0"
44
edition = "2021"
55
authors = ["Shuhui Luo <twitter.com/aureliano_law>"]
66
description = "A library for querying Uniswap V3 using ephemeral lens contracts."
@@ -12,16 +12,15 @@ keywords = ["alloy", "ethereum", "solidity", "uniswap"]
1212
include = ["src/**/*.rs"]
1313

1414
[dependencies]
15-
alloy = { version = "0.8", features = ["contract", "json-rpc", "rpc-types"] }
16-
anyhow = "1"
15+
alloy = { version = "0.9", features = ["contract", "json-rpc", "rpc-types"] }
1716
thiserror = { version = "2", default-features = false }
1817

1918
[features]
2019
default = []
2120
std = ["alloy/std", "thiserror/std"]
2221

2322
[dev-dependencies]
24-
alloy = { version = "0.8", features = ["transport-http"] }
23+
alloy = { version = "0.9", features = ["transport-http"] }
2524
dotenv = "0.15"
2625
futures = "0.3"
2726
once_cell = "1.20"

contracts/PositionUtils.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ pragma solidity ^0.8.0;
33

44
import {IUniswapV3NonfungiblePositionManager as INPM} from "@aperture_finance/uni-v3-lib/src/interfaces/IUniswapV3NonfungiblePositionManager.sol";
55
import {NPMCaller, PositionFull} from "@aperture_finance/uni-v3-lib/src/NPMCaller.sol";
6-
import {PoolAddress} from "@aperture_finance/uni-v3-lib/src/PoolAddress.sol";
7-
import {PoolAddressPancakeSwapV3} from "@aperture_finance/uni-v3-lib/src/PoolAddressPancakeSwapV3.sol";
86
import {IUniswapV3PoolState, V3PoolCallee} from "@aperture_finance/uni-v3-lib/src/PoolCaller.sol";
97
import {IUniswapV3Factory} from "@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol";
108
import {ERC20Callee} from "./libraries/ERC20Caller.sol";

foundry.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ libs = ['lib']
55
test = 'test/foundry'
66
cache = true
77

8+
solc = "0.8.28"
89
evm_version = 'paris'
910
optimizer = true
1011
optimizer_runs = 4294967295
11-
via-ir = true
12+
via-ir = false
1213
bytecode_hash = 'none'
1314
cbor_metadata = false
1415
sparse_mode = true
@@ -29,6 +30,5 @@ runs = 16
2930

3031
[rpc_endpoints]
3132
mainnet = "${MAINNET_RPC_URL}"
32-
bnb_smart_chain = "${BNB_RPC_URL}"
3333

3434
# See more config options https://github.com/foundry-rs/foundry/tree/master/config

hardhat.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ import { SolidityUserConfig } from "hardhat/types/config";
99
*/
1010
const config: HardhatUserConfig = {
1111
solidity: {
12-
version: "0.8.26",
12+
version: "0.8.28",
1313
settings: {
1414
optimizer: {
1515
enabled: true,
1616
runs: 4294967295,
1717
},
18-
viaIR: true,
18+
viaIR: false,
1919
evmVersion: "paris",
2020
metadata: {
2121
appendCBOR: false,

src/pool_lens.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ use alloy::{
3232
sol_types::SolCall,
3333
transports::{Transport, TransportError},
3434
};
35-
use anyhow::Result;
3635

3736
/// Get the populated ticks in a tick range.
3837
///

src/position_lens.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ use alloy::{
2929
sol_types::SolCall,
3030
transports::{Transport, TransportError},
3131
};
32-
use anyhow::Result;
3332

3433
/// Get the details of a position given the token ID.
3534
///

0 commit comments

Comments
 (0)