Closed CedarMist closed 3 weeks ago
Name | Link |
---|---|
Latest commit | d956ad7de0a2bc1c1d37857a7cf17e4fa6a158f5 |
Latest deploy log | https://app.netlify.com/sites/oasisprotocol-sapphire-paratime/deploys/66a86876ff5f210008cbaece |
Feedback from Matevz
integrations
* tag current branch as 1.x / stable * new stuff goes as 2.x / beta?
Sleeping over this, I would name the stable branch as clients/js/1.3.x
and keep the new refactored codebase inside the main
branch. If we find anything worth fixing in the stable branch as well, then we backport the fix from main
to clients/js/1.3.x
. If the fix is solely for 1.3.x, then we just fix the issue on the branch directly.
Description
Add support for Viem v2 and Wagmi v2. Remove Ethers dependency.
Replaces https://github.com/oasisprotocol/sapphire-paratime/pull/164
Details
Simplified
sapphire-paratime
dependenciesethers
, this reduces bundled size significantly when used standalone or with Viemtweetnacl.js
, extracted necessary functions intomunacl.ts
sapphire.wrap
function, it now exposeswrapEthereumProvider
which 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-v2
Removed 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