Add Viem v2 & Wagmi v2 packages, and remove Ethers dependency#303
Add Viem v2 & Wagmi v2 packages, and remove Ethers dependency#303
Conversation
✅ Deploy Preview for oasisprotocol-sapphire-paratime canceled.
|
|
Feedback from Matevz
|
aefhm
left a comment
There was a problem hiding this comment.
Comments cover client code. Will send notes on integrations next. Still need to QA as well.
Sleeping over this, I would name the stable branch as |
f1ffea9 to
d05539d
Compare
aefhm
left a comment
There was a problem hiding this comment.
I took a QA pass around examples and the Hardhat fork which worked great :)
aefhm
left a comment
There was a problem hiding this comment.
I vote to merge, and we can iterate from there.
5125cf5 to
1555cc0
Compare
matevz
left a comment
There was a problem hiding this comment.
I tried the SIWE mechanism as an alternative to the signed queries that were removed in this PR. I can confirm the alternative is viable, so feel free to merge this.
1555cc0 to
c1c060c
Compare
153f1f9 to
4273653
Compare
4273653 to
2a77f25
Compare
fa86469 to
d956ad7
Compare
…darMist/client-refactor Add Viem v2 & Wagmi v2 packages, and remove Ethers dependency 2f4ce26
…edarMist/client-refactor Add Viem v2 & Wagmi v2 packages, and remove Ethers dependency 2f4ce26
Description
Add support for Viem v2 and Wagmi v2. Remove Ethers dependency.
Replaces #164
Details
Simplified
sapphire-paratimedependenciesethers, this reduces bundled size significantly when used standalone or with Viemtweetnacl.js, extracted necessary functions intomunacl.tssapphire.wrapfunction, it now exposeswrapEthereumProviderwhich only wraps EIP-1193 compatible providersTests:
clients/js/scripts/proxy.ts) which will die if any unencrypted transactions, calls or gas estimates are made.Integrations:
@oasisprotocol/sapphire-ethers-v6@oasisprotocol/wagmi-v2@oasisprotocol/viem-v2Removed duplicate example projects (e.g. where two projects use the exact same underlying libraries)
hardhat-viem(Hardhat + Viem)onchain-signer(Hardhat + Ignition + Ethers v6)hardhat-boilerplate(Hardhat + Ethers v5 + frontend & bundling)wagmi-v2(Wagmi + frontend & bundling)wagmi-v1