Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Remove native dependency #3156

Merged

Conversation

nebojsa94
Copy link
Contributor

This PR removes bip39 package and instead uses js-ethereum-cryptography

Copy link
Contributor

@CruzMolina CruzMolina left a comment

Choose a reason for hiding this comment

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

Hey @nebojsa94 👋, thanks for this!
Looks like you need to update your remote branch. The mocha monorepo devDeps got bumped to a version incompatible with Node 8 (thus, the node 8 CLI jobs failing).

@nebojsa94 nebojsa94 force-pushed the remove-native-dependencies branch 4 times, most recently from e5b302d to bd875d5 Compare July 10, 2020 08:59
@eggplantzzz
Copy link
Contributor

Hey @nebojsa94, thanks again for another PR! Can you tell me why we want to make this change?

@nebojsa94
Copy link
Contributor Author

Hey @eggplantzzz, sure thing.

There is an ongoing effort in ethereum js community that is focused on removing native dependencies.
Due to the popularity of this package, we decided to update dependencies.

Pretty soon ethereumjs-util, ethereumjs-wallet and web3 packages won't relly on node-gyp during installation.
bip39 is the last dependency that requires compilation during install.

@nebojsa94 nebojsa94 marked this pull request as ready for review July 10, 2020 18:09
@eggplantzzz
Copy link
Contributor

Ok, thanks @nebojsa94! Let's see if we can get this reviewed.

Copy link
Contributor

@CruzMolina CruzMolina left a comment

Choose a reason for hiding this comment

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

@nebojsa94 I notice bip39 is removed from @truffle/hdwallet-provider, but not @truffle/core. Is there a reason for this?

Copy link
Contributor

@CruzMolina CruzMolina left a comment

Choose a reason for hiding this comment

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

As an aside, I've been able to verify the changes in @truffle/hdwallet-provider work well!

@nebojsa94
Copy link
Contributor Author

nebojsa94 commented Jul 12, 2020

@CruzMolina I've updated @truffle/core as well, can you also check out trufflesuite/truffle-hdwallet-provider#108

Copy link
Contributor

@CruzMolina CruzMolina left a comment

Choose a reason for hiding this comment

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

@nebojsa94 , thanks for submitting that extra PR! I wouldn't worry about trufflesuite/truffle-hdwallet-provider since the independent repos for truffle related pkgs have been deprecated and pulled into this monorepo.

Copy link
Contributor

@CruzMolina CruzMolina left a comment

Choose a reason for hiding this comment

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

Sweeeet, thanks again @nebojsa94 ! LGTM 🏆

@gnidan
Copy link
Contributor

gnidan commented Jul 13, 2020

@eggplantzzz you were looking at this too, right? When you get back to the office later this week, could we get your review here also please?

@nebojsa94 current plan is to include this in the release this week, likely Thursday!

@nebojsa94
Copy link
Contributor Author

@CruzMolina yeah, I saw the deprecation notice in trufflesuite/truffle-hdwallet-provider, but it's still pretty popular in the community, can we make another 1.x release?

@gnidan
Copy link
Contributor

gnidan commented Jul 15, 2020

@nebojsa94 just FYI: hdwallet-provider itself isn't deprecated, only that repo. The package has been moved to packages/hdwallet-provider in this repo.

@eggplantzzz
Copy link
Contributor

This looks good to me, I like it!

@eggplantzzz eggplantzzz self-requested a review July 16, 2020 15:44
@eggplantzzz eggplantzzz merged commit 320e3c3 into trufflesuite:develop Jul 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants