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

chore(js-ts): Convert app/core/Vault.js to TypeScript #11789

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Oct 14, 2024

Description

This PR converts the file app/core/Vault.js to TypeScript (app/core/Vault.ts). The conversion includes:

  • Adding type annotations to functions and variables
  • Converting for loops to for...of loops where appropriate
  • Adding an interface for LedgerBridgeKeyringOptions
  • Handling unknown types with appropriate comments and type assertions

Changes Made

  • Renamed Vault.js to Vault.ts
  • Added type annotations to function parameters and return types
  • Converted any types to more specific types where possible
  • Added comments explaining the use of unknown types where necessary
  • Updated import statements to include required types from @metamask/keyring-controller

Notes

Some types remain as unknown or use type assertions due to the complexity of the KeyringController and its methods. Further investigation into the @metamask/keyring-controller package may be needed to fully type these areas.

Testing

  • yarn lint:tsc passes without errors
  • yarn lint passes without errors (warnings are present but ignored as per instructions)

Link to Devin run

https://preview.devin.ai/devin/f1d5b69e820749a3b70eea9f0b1d87a9

This Devin run was requested by naveen

If you have any feedback, you can leave comments in the PR and I'll address them in the app!

@devin-ai-integration devin-ai-integration bot added needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) team-mobile-platform No QA Needed Apply this label when your PR does not need any QA effort. labels Oct 14, 2024
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@github-actions github-actions bot added the team-ai AI team (for the Devin AI bot) label Oct 14, 2024
@devin-ai-integration devin-ai-integration bot added skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. Run Smoke E2E Triggers smoke e2e on Bitrise labels Oct 14, 2024
Copy link
Contributor

github-actions bot commented Oct 14, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: dd6113c
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/5e738709-ef81-4fce-af8d-8864b97329d0

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@devin-ai-integration devin-ai-integration bot marked this pull request as ready for review October 15, 2024 06:45
@devin-ai-integration devin-ai-integration bot requested a review from a team as a code owner October 15, 2024 06:45
Copy link

sonarcloud bot commented Oct 15, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
20.3% Coverage on New Code (required ≥ 40%)

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) No QA Needed Apply this label when your PR does not need any QA effort. Run Smoke E2E Triggers smoke e2e on Bitrise skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. team-ai AI team (for the Devin AI bot) team-mobile-platform
Projects
Status: Needs dev review
Development

Successfully merging this pull request may close these issues.

0 participants