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

feat(wallet-api): LLM & LLD server implementation [LIVE-4394] #1900

Merged
merged 30 commits into from Dec 20, 2022

Conversation

Justkant
Copy link
Contributor

@Justkant Justkant commented Nov 21, 2022

πŸ“ Description

We keep the old behaviour and codebase for v1 (live-app & live-app-sdk) and only use the Wallet API for v2 compatible manifests.

❓ Context

  • Impacted projects: ledger-live-desktop, ledger-live-mobile, ledger-live-common
  • Linked resource(s): LIVE-4394

βœ… Checklist

πŸ“Έ Demo

Manifest example for the new wallet-api debugger

{
  "id": "debugger",
  "name": "Debugger",
  "url": "https://platform-app-debug-git-wallet-api-conversion-ledgerhq.vercel.app/",
  "homepageUrl": "https://platform-app-debug-git-wallet-api-conversion-ledgerhq.vercel.app/",
  "icon": "",
  "platform": "all",
  "apiVersion": "^2.0.0 || ~0.0.1",
  "manifestVersion": "1",
  "branch": "experimental",
  "categories": [],
  "currencies": ["*"],
  "content": {
    "shortDescription": {
      "en": ""
    },
    "description": {
      "en": ""
    }
  },
  "permissions": [
    "account.list",
    "account.receive",
    "account.request",
    "currency.list",
    "device.close",
    "device.exchange",
    "device.transport",
    "message.sign",
    "transaction.sign",
    "transaction.signAndBroadcast",
    "wallet.capabilities"
  ],
  "domains": ["http://", "https://"]
}

πŸš€ 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.

@changeset-bot
Copy link

changeset-bot bot commented Nov 21, 2022

πŸ¦‹ Changeset detected

Latest commit: 54587ae

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

This PR includes changesets to release 6 packages
Name Type
ledger-live-desktop Minor
@ledgerhq/live-cli Minor
@ledgerhq/live-common Minor
live-mobile Minor
dummy-wallet-app Patch
live-common-tools 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 common Has changes in live-common mobile Has changes in LLM labels Nov 21, 2022
@Justkant Justkant changed the title feat(wallet-api): LLM implementation feat(wallet-api): LLM implementation [LIVE-4394] Nov 21, 2022
@vercel
Copy link

vercel bot commented Nov 21, 2022

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated
live-common-tools ❌ Failed (Inspect) Dec 20, 2022 at 7:27PM (UTC)
3 Ignored Deployments
Name Status Preview Comments Updated
ledger-live-github-bot ⬜️ Ignored (Inspect) Dec 20, 2022 at 7:27PM (UTC)
native-ui-storybook ⬜️ Ignored (Inspect) Dec 20, 2022 at 7:27PM (UTC)
react-ui-storybook ⬜️ Ignored (Inspect) Dec 20, 2022 at 7:27PM (UTC)

@github-actions
Copy link

github-actions bot commented Nov 21, 2022

@Justkant

Screenshots: ❌

It seems this PR contains screenshots that are different from the base branch.
If you are sure all those changes are correct, you can comment on this PR with /generate-screenshots to update those screenshots.

Make sure all the changes are correct before running the command, as it will commit and push the new result to the PR.

windows

Actual Diff Expected
live-disclaimer-accepted-actual live-disclaimer-accepted-diff live-disclaimer-accepted-expected
live-disclaimer-accepted-actual live-disclaimer-accepted-diff live-disclaimer-accepted-expected

Justkant and others added 25 commits December 20, 2022 20:26
already present in dummy-wallet-app
LLD is not setup for typescript, especially eslint
* add @types/uuid dev dep

* hash the account id and create a uuidToAccountId map

avoid sending account ids to a live app by creating a unique uuid from
said account id and storing this uuid / account id pair in a map for
easy retrival

* add changeset

* update existing test cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli common Has changes in live-common desktop Has changes in LLD mobile Has changes in LLM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants