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 to use stable Viem / Wagmi versions #63

Merged
merged 26 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5196b06
Update tests
zencephalon Feb 14, 2024
bd5f860
Fix type errors
zencephalon Feb 14, 2024
4c86edc
Bump to first major release
zencephalon Feb 14, 2024
6ad627d
Lint use of boolean coercion
zencephalon Feb 14, 2024
3452039
Update peer dependency specification
zencephalon Feb 14, 2024
f9b8a96
Rewrite useWriteFinalizeWithdrawalTransaction.ts to use Viem config
zencephalon Feb 15, 2024
106e032
Refactor useWriteDepositETH
zencephalon Feb 15, 2024
117c873
Check point, huge refactor
zencephalon Feb 15, 2024
218da87
Add validateChains util
zencephalon Feb 15, 2024
56e8d51
Fix useWriteDepositERC20
zencephalon Feb 15, 2024
d09d79d
Remove goerli chains
zencephalon Feb 15, 2024
e2b9f04
Update chain configs
zencephalon Feb 15, 2024
01956fe
Use validation in useWriteFinalizeWithdrawalTransaction
zencephalon Feb 15, 2024
4e377ee
Update chain config example
zencephalon Feb 15, 2024
db02306
Update error messages
zencephalon Feb 15, 2024
efc948c
Try allowing Anvil more time to startup
zencephalon Feb 15, 2024
c416e38
Start in parallel, longer deadline
zencephalon Feb 15, 2024
7374a11
Fix vitest failed to terminate worker
zencephalon Feb 15, 2024
87fbf7a
Hopefully fix flaky tests
zencephalon Feb 15, 2024
b83eeed
Return the promises to await
zencephalon Feb 15, 2024
69f0c58
Use viem 2.7.11 for l1StandardBridge support, update docs to reflect
zencephalon Feb 20, 2024
1e1c5ae
Delete unnecessary OpConfig code
zencephalon Feb 20, 2024
6d567ef
Update example site
zencephalon Feb 20, 2024
cabb074
Refactor example app to use Sepolia, add useSelectedNetwork hook
zencephalon Feb 21, 2024
d1e0a8d
Remove lint ala Lukas
zencephalon Feb 21, 2024
1590bec
Add changeset
zencephalon Feb 21, 2024
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
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "git",
"url": "https://github.com/base-org/op-wagmi.git"
},
"version": "0.2.3",
"version": "1.0.0",
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down Expand Up @@ -52,7 +52,7 @@
"@types/use-sync-external-store": "^0.0.3",
"@viem/anvil": "^0.0.7",
"@vitest/coverage-v8": "^1.2.2",
"@wagmi/cli": "beta",
"@wagmi/cli": "^2.1.1",
"dprint": "^0.42.5",
"ethers": "^5.7.0",
"happy-dom": "^12.10.3",
Expand All @@ -65,7 +65,8 @@
"typescript": "5.0.4",
"vitest": "^1.2.2",
"@testing-library/react-hooks": "^8.0.1",
"@tanstack/react-query": ">=5.0.0"
"@tanstack/react-query": ">=5.0.0",
"@wagmi/connectors": "^4.1.14"
},
"scripts": {
"build": "pnpm run clean && pnpm run build:cjs && pnpm run build:esm && pnpm run build:types",
Expand Down Expand Up @@ -99,11 +100,11 @@
},
"peerDependencies": {
"@tanstack/react-query": ">=5.0.0",
"@wagmi/core": "beta",
"@wagmi/core": "^2.6.5",
"op-viem": "1.3.1-alpha",
"typescript": ">=5.0.4",
"viem": "beta",
"wagmi": "beta"
"viem": "^2.7.9",
"wagmi": "^2.5.7"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think these be 2.x? that's what we have in op-viem and how wagmi has their peer dependencies set up

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can change it to that, my understanding of the ^ operator is that ^2.7.9 and ^2.x have the same effect as they both allow any minor and patch version within 2

},
"peerDependenciesMeta": {
"typescript": {
Expand Down
Loading
Loading