Comments (5)
@apuigsech nope, delayed the project and we just support ethersv5 for now. But these guys told me they did it (i haven't looked through their code though) https://github.com/0xsquid/squid-sdk
from ethers.js.
@ricmoo Could I get some guidance on this? Is this feasible, to take in an ethers v5 Signer object and 1-1 map it to an ethers v6 Signer object?
My stopgap solution is to have 2 versions of the sdk, one for ethers v5 and one for ethers v6, but it's quite painful to maintain.
Any other ideas highly welcome
from ethers.js.
Heya! Sorry, this fell off my radar.
When comparing the TypeScript type incompatibilities, what does it complain about? I think they should be mostly already compatible, except the _signTypedData
became signTypedData
and the getNonce
should point to the getTransactionCount
.
The other option you have is to sub-class the AbstractSigner
which accepts an v5 Signer and just fill in the abstract methods to point to the equivalent methods?
Ideally more people would move to v6. Do you know of any hang ups? I can help anyone that needs migrating, especially frameworks and such. :)
from ethers.js.
Heya! Sorry, this fell off my radar.
When comparing the TypeScript type incompatibilities, what does it complain about? I think they should be mostly already compatible, except the
_signTypedData
becamesignTypedData
and thegetNonce
should point to thegetTransactionCount
.The other option you have is to sub-class the
AbstractSigner
which accepts an v5 Signer and just fill in the abstract methods to point to the equivalent methods?Ideally more people would move to v6. Do you know of any hang ups? I can help anyone that needs migrating, especially frameworks and such. :)
The docs are the bottleneck in migrating :(
even though ur probably doing a good job developing
from ethers.js.
I need to do exactly the same.
@Hugo0 did you make any progress?
from ethers.js.
Related Issues (20)
- JsonRpcProvider returns empty response
- Update Node Test Targets HOT 1
- Error: insufficient funds for intrinsic transaction cost
- Support encoding ERC 4337 signatures HOT 1
- Error: BIP39 Wordlist for en FAILED HOT 18
- How to decode revert data?
- Some polishment in contract section HOT 2
- AlchemyProvider does not support Arbitrum Sepolia.
- "Could not detect network" error on Next.js 14 API endpoint with `JsonRpcProvider`
- Intermittent Event Listening Issue with WebSocketProvider in Ethers.jsAdd Bug Title Here HOT 4
- Replicate maxPriorityFeePerGas and maxFeePerGas Calculation in v5
- Lack of fields: Size in block, gas in Transaction
- Human generated abi format created with ethers v6 throws an error HOT 5
- Negative values are not allowed when using signer._signTypedData
- signer.signTypedData require a provider HOT 2
- Wrong field in formatTransactionResponse
- Invalid BigNumberish value when using wagmi with a rainbow wallet and ethers
- support for extended eth_subscribe logs HOT 7
- Remove old, unsupported documentation
- getFeeData bug HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ethers.js.