Skip to content

Commit 04c5751

Browse files
authored
chore: disable alloy default features (#21)
* chore: disable alloy default features Updated dependencies to disable default features for better control over included functionality. Adjusted version constraints and added specific features to ensure compatibility and maintain intended behavior. * fix hardhat test
1 parent 68a5d55 commit 04c5751

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.toml

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

1414
[dependencies]
15-
alloy = { version = "0.11", features = ["contract", "json-rpc", "rpc-types"] }
15+
alloy = { version = "0.11", default-features = false, features = ["contract", "json-rpc", "rpc-types"] }
1616
thiserror = { version = "2", default-features = false }
1717

1818
[features]
1919
default = []
2020
std = ["alloy/std", "thiserror/std"]
2121

2222
[dev-dependencies]
23-
alloy = { version = "0.11", features = ["transport-http"] }
23+
alloy = { version = "0.11", default-features = false, features = ["transport-http", "reqwest"] }
2424
dotenv = "0.15"
2525
futures = "0.3"
2626
once_cell = "1.20"

test/hardhat/univ3_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TickMath, computePoolAddress } from "@uniswap/v3-sdk";
1+
import { computePoolAddress } from "@uniswap/v3-sdk";
22
import { expect } from "chai";
33
import { Address, ContractFunctionReturnType, createPublicClient, getContract, http, toHex } from "viem";
44
import {
@@ -158,7 +158,7 @@ describe("Pool lens test with UniV3 on mainnet", () => {
158158
});
159159

160160
it("Test getting populated ticks slots", async () => {
161-
const slots = await getTicksSlots(AMM, pool, TickMath.MIN_TICK, TickMath.MAX_TICK, publicClient, blockNumber);
161+
const slots = await getTicksSlots(AMM, pool, 0, 0, publicClient, blockNumber);
162162
await verifySlots(slots);
163163
});
164164

0 commit comments

Comments
 (0)