-
Notifications
You must be signed in to change notification settings - Fork 4
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
✨ (signer-eth) [DSDK-617]: Remove ethers dependency from api and accept only raw tx #591
base: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
"@ledgerhq/device-signer-kit-ethereum": minor | ||
--- | ||
|
||
Breaking change: remove ethers from api dependency and use only raw tx for signTransaction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if 'breaking change' wording is compatible to minor versioning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree but basically for signers we shouldn't have release v1.0 it was more 1.0-rc
@@ -46,7 +46,7 @@ describe("DefaultSignerEth", () => { | |||
it("should sign a transaction", async () => { | |||
// GIVEN | |||
const derivationPath = "derivationPath"; | |||
const transaction = {} as Transaction; | |||
const transaction = new Uint8Array(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[COULD] I think the 0
parameter is not necessary to initialise a fake data, new Uint8Array()
is OK, but not important.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
📝 Description
This PR aims to remove the multiple
ethers
dependency from the api.From now on, we only need to provide the raw transaction to a
signTransaction
. TheTransaction
object fromethers
versionsv5
andv6
are no longer supported, and there are no plans to integrate other Ethereum libraries since they all provide ways to retrieve the raw transaction.We internally use
ethers
v6
for parsing. We don't need it anymore on thesample
side as we use directly raw format.❓ Context
✅ Checklist
Pull Requests must pass CI checks and undergo code review. Set the PR as Draft if it is not yet ready for review.
signTransaction
takes now a raw transaction instead ofethers
Transaction
object.🧐 Checklist for the PR Reviewers