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

Update Manifest schema [LIVE-9719] #334

Merged
merged 9 commits into from
Apr 9, 2024

Conversation

Wozacosta
Copy link
Contributor

@Wozacosta Wozacosta commented Apr 2, 2024

https://gist.github.com/Wozacosta/c0960fcbc624db81929509ff9282ff10

changelog

  • schema is a javascript object
  • currencies are taken from @ledgerhq/cryptoassets instead of the seemingly random mix of currencies we had before there.
  • .params field check is cleaned up, only checking params field if url: { pattern: ".*dapp-browser.apps.ledger.com.*" } },
  • urls fields are checked to be actual urls
  • useless regex pattern ("pattern": "^.*$", )checks are removed
  • .type field removed
  • .platform field fixed (https://gist.github.com/Wozacosta/c0960fcbc624db81929509ff9282ff10#platforms)
  • fix content fields not taking i18n into account
  • fix permissions check
  • rename version field to manifestVersion field (which seems to be standard in the doc and usage)

next steps

Copy link

changeset-bot bot commented Apr 2, 2024

🦋 Changeset detected

Latest commit: 8f7f78b

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

This PR includes changesets to release 9 packages
Name Type
@ledgerhq/wallet-api-manifest-validator Minor
@ledgerhq/wallet-api-core Patch
@ledgerhq/wallet-api-manifest-validator-cli Patch
@ledgerhq/wallet-api-client Patch
@ledgerhq/wallet-api-server Patch
@ledgerhq/wallet-api-simulator Patch
@ledgerhq/wallet-api-tools Patch
@ledgerhq/wallet-api-client-react Patch
@ledgerhq/client-nextjs 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

Copy link

vercel bot commented Apr 2, 2024

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

Name Status Preview Comments Updated (UTC)
wallet-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2024 8:56am
wallet-api-wallet-api-tools ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2024 8:56am

ajv checks urls, simplifies regex

schema update

import ts schema in validator
@Wozacosta Wozacosta force-pushed the chore/LIVE-9719-update-manifest-schema branch from 6ec98b2 to 286f827 Compare April 4, 2024 14:51
@Wozacosta Wozacosta marked this pull request as ready for review April 4, 2024 14:51
Copy link
Collaborator

@Justkant Justkant left a comment

Choose a reason for hiding this comment

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

LGTM I think we just miss the provider field

Comment on lines 130 to 141
dapp: {
type: "object",
properties: {
nanoApp: {
minLength: 1,
maxLength: 50,
type: "string",
},
networks,
},
required: ["nanoApp", "networks"],
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

We are missing the provider field here I think, like provider: "evm"

@Wozacosta Wozacosta merged commit 091cf53 into main Apr 9, 2024
9 checks passed
@Wozacosta Wozacosta deleted the chore/LIVE-9719-update-manifest-schema branch April 9, 2024 10:10
@github-actions github-actions bot mentioned this pull request Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants