Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update viem version to ^2.8.4 to accommodate wagmi for frontend. #14

Merged
merged 3 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@aperture_finance/uni-v3-lib": "^2.0.1",
"@openzeppelin/contracts": "^5.0.2",
"ethers": "5.7.2",
"viem": "^2.9.6",
"viem": "^2.8.4",
"zod":"^3.22.4"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion test/hardhat/pcsv3_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ describe("Pool lens test with PCSV3 on BSC", () => {

it("Test getting all positions by owner", async () => {
const totalSupply = await npm.read.totalSupply({ blockNumber });
const owner = await npm.read.ownerOf([totalSupply - 1n], { blockNumber });
const tokenId = await npm.read.tokenByIndex([totalSupply - 1n], { blockNumber });
const owner = await npm.read.ownerOf([tokenId], { blockNumber });
const posArr = await getAllPositionsByOwner(PCSV3_NPM, owner, publicClient, blockNumber);
await verifyPositionDetails(posArr);
});
Expand Down
3 changes: 2 additions & 1 deletion test/hardhat/univ3_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ describe("Pool lens test with UniV3 on mainnet", () => {

it("Test getting all positions by owner", async () => {
const totalSupply = await npm.read.totalSupply({ blockNumber });
const owner = await npm.read.ownerOf([totalSupply - 1n], { blockNumber });
const tokenId = await npm.read.tokenByIndex([totalSupply - 1n], { blockNumber });
const owner = await npm.read.ownerOf([tokenId], { blockNumber });
const posArr = await getAllPositionsByOwner(UNIV3_NPM, owner, publicClient, blockNumber);
await verifyPositionDetails(posArr);
});
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2811,10 +2811,10 @@ viem@1.19.11:
isows "1.0.3"
ws "8.13.0"

viem@^2.9.6:
version "2.9.6"
resolved "https://registry.yarnpkg.com/viem/-/viem-2.9.6.tgz#66819684e878b6ea659ad9c49a0a864512859190"
integrity sha512-VVFWjGQei2wnWTvAB/xrIf22m6flCwxeBr8LnwejXMTSSi1EORWEswrw2lfKTmw3TlRPSG4uSiQMa/d0l0DKRg==
viem@^2.8.4:
version "2.9.15"
resolved "https://registry.yarnpkg.com/viem/-/viem-2.9.15.tgz#a176f3c3504a6785333ac0f948666854c3a29e30"
integrity sha512-7kcmHqybc3JhpjL8gKY7YxBYpZt1//qhoTZIU5Ez9JdyRCnYMMnJu20s7wd7Gv6a3zPbq8jV8dCp94a/NLJJcA==
dependencies:
"@adraffy/ens-normalize" "1.10.0"
"@noble/curves" "1.2.0"
Expand Down