Skip to content
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

[LIVE-5135] Migrate Ethereum family implementation to EVM family #4285

Merged
merged 58 commits into from
Sep 12, 2023

Conversation

chabroA
Copy link
Contributor

@chabroA chabroA commented Aug 10, 2023

📝 Description

This PR removes the ethereum family from the Ledger Live codebase and use the coin-evm implementation instead.

General overview of changes:

  • Remove ethereum family from the Ledger Live codebase
  • Update evm family components on LLD to match what was present in ethereum family featurewise
  • Update evm family components on LLM to match what was present in ethereum family featurewise
  • Update currencies configs to use evm instead of ethereum
  • Update bot specs accordingly
  • Update wallet-api and live-app-sdk to use evm family instead of ethereum

📝 List of all related PRs (including merged and draft ones) to easily keeps track of whet's ongoing on that topic:


📝 Notes on bot results 🤖:

cf.:
#4285 (comment)
#4285 (comment)
#4285 (comment)
#4285 (comment)


TODO:

  • Add changelog (just before merging this in develop si it's the most relevant / up to date)

❓ Context

✅ Checklist

  • Test coverage
  • Atomic delivery
  • No breaking changes - Even though we are migrating a family implementation, there should not be breaking changes. It should be seamless

📸 Demo

🚀 Expectations to reach

Please make sure you follow these Important Steps.

Pull Requests must pass the CI and be internally validated in order to be merged.

@chabroA chabroA requested a review from a team as a code owner August 10, 2023 08:53
@vercel
Copy link

vercel bot commented Aug 10, 2023

Deployment failed with the following error:

Too many requests - try again in 35 seconds (more than 60, code: "api-deployments-flood").

@changeset-bot
Copy link

changeset-bot bot commented Aug 10, 2023

🦋 Changeset detected

Latest commit: 533b0b3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 19 packages
Name Type
@ledgerhq/cryptoassets Major
ledger-live-desktop Major
live-mobile Major
@ledgerhq/live-common Major
@ledgerhq/types-cryptoassets Minor
@ledgerhq/coin-framework Minor
@ledgerhq/coin-evm Minor
@ledgerhq/live-cli Minor
@ledgerhq/live-env Minor
@ledgerhq/coin-algorand Patch
@ledgerhq/coin-polkadot Patch
@ledgerhq/domain-service Patch
@ledgerhq/evm-tools Patch
@ledgerhq/hw-app-eth Patch
@ledgerhq/web-tools Patch
@ledgerhq/test-utils Patch
dummy-wallet-app Patch
@ledgerhq/live-network Patch
@ledgerhq/swift-bridge-hw-app-eth Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added desktop Has changes in LLD mobile Has changes in LLM common Has changes in live-common labels Aug 10, 2023
@chabroA chabroA changed the title [WIP] EVM Family has same capability as Ethereum Family (#4001) [LIVE-5135] Merge ethereum family in EVM family Aug 10, 2023
@chabroA chabroA marked this pull request as draft August 10, 2023 09:08
@vercel
Copy link

vercel bot commented Aug 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ledger-live-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2023 9:46am
live-common-tools ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2023 9:46am
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Sep 12, 2023 9:46am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Sep 12, 2023 9:46am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Sep 12, 2023 9:46am

@github-actions github-actions bot added ledgerjs Has changes in the ledgerjs open source libs cli labels Aug 10, 2023
@chabroA chabroA force-pushed the feat/live-5135-merge-ethereum-in-evm-family branch from 98d350b to 15d6b16 Compare August 10, 2023 18:51
@chabroA chabroA added the WIP Work in progress label Aug 11, 2023
@chabroA chabroA changed the title [LIVE-5135] Merge ethereum family in EVM family [WIP 🚧 ][LIVE-5135] Merge ethereum family in EVM family Aug 11, 2023
@chabroA chabroA marked this pull request as ready for review August 11, 2023 11:17
@chabroA chabroA force-pushed the feat/live-5135-merge-ethereum-in-evm-family branch from 0cae97c to 7028960 Compare August 17, 2023 07:49
disable rounding for estimated fees on LLD tx confirm screen
otherwise the fees are not similar between what is shown on
LLD and on the nano device, because the value is not rounded on the
nano device
Avoid duplication between legacy and EIP1559 tx type by using describe.each
and reorder tests cases to improve readability
Fixup of ef171ec that originally
introduced this change
BOT_FILTER_FAMILIES is always defined in this line since we check it in the
line just above
Since ethereum familly does not exist anymore
Now filters on a select list of currencies (the ones previously tested
by the ethereum specs) instead of the whole evm familly
remove the use for hardcoded currencies unit in minBalancePerCurrencyId.
Use the unit defined in currency config instead.
More reliable and future-proof
… coin-evm/logic

Remove duplication of MessageProperties type definition and
getMessageProperties function definition between LLD and LLM
Since only evm currencies seem to use getMessageProperties as of today,
it has been moved to coin-evm
@chabroA chabroA force-pushed the feat/live-5135-merge-ethereum-in-evm-family branch from c7dc091 to 533b0b3 Compare September 12, 2023 09:43
@chabroA chabroA merged commit 533278e into develop Sep 12, 2023
45 of 50 checks passed
@chabroA chabroA deleted the feat/live-5135-merge-ethereum-in-evm-family branch September 12, 2023 10:57
lvndry added a commit that referenced this pull request Sep 14, 2023
Co-authored-by: lvndry <[email protected]>
Co-authored-by: Alexandre Chabrolin <[email protected]>
Co-authored-by: Landry Monga <[email protected]>
@ghost ghost restored the feat/live-5135-merge-ethereum-in-evm-family branch November 3, 2023 15:04
@KVNLS KVNLS deleted the feat/live-5135-merge-ethereum-in-evm-family branch April 2, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation CI/CD stuff cli common Has changes in live-common desktop Has changes in LLD ledgerjs Has changes in the ledgerjs open source libs mobile Has changes in LLM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants