Skip to content

chore: solana wallet snap integrate packages - #72

Merged
taran-a merged 22 commits into
mainfrom
chore/solana-wallet-snap-integrate-packages
Aug 4, 2026
Merged

chore: solana wallet snap integrate packages#72
taran-a merged 22 commits into
mainfrom
chore/solana-wallet-snap-integrate-packages

Conversation

@Battambang

@Battambang Battambang commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

This pull request integrates the Solana Wallet Snap into the monorepo, updates related configuration and documentation, and aligns dependencies and workflows to support the new package. It also includes license files for the Solana package and minor dependency updates for other packages.

Solana Wallet Snap Integration and Licensing:

  • Added the @metamask/solana-wallet-snap package to the monorepo, including its README and changelog, and updated the package list in README.md.
  • Added dual licensing (MIT and Apache 2.0) for the Solana Wallet Snap by including LICENSE, LICENSE.APACHE2, and referencing LICENSE.MIT.

Monorepo and Ownership Updates:

  • Added packages/solana-wallet-snap to .github/CODEOWNERS for ownership tracking.

CI/CD Workflow Enhancements:

  • Updated GitHub Actions workflows (lint-build-test.yml, main.yml, publish-release.yml, publish-preview.yml) to inject new Solana-related environment variables, handle Solana-specific test builds, and restore the Solana snap manifest after test builds.

Dependency and Manifest Updates:

  • Updated rimraf and @types/lodash dependencies in root and sample package manifests for improved compatibility and security.
  • Refreshed the snap.manifest.json shasum for the Bitcoin Wallet Snap after aligning Solana dependencies.

Changelog and Documentation:

  • Updated changelogs for both Bitcoin and Solana Wallet Snaps to reflect the migration and manifest refresh.

@socket-security

socket-security Bot commented Jul 30, 2026

Copy link
Copy Markdown

@socket-security

socket-security Bot commented Jul 30, 2026

Copy link
Copy Markdown

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

Ignoring alerts on:

  • npm/@solana-program/compute-budget@0.7.0
  • npm/@solana-program/system@0.7.0
  • npm/@solana/rpc-transport-http@2.1.0
  • npm/@solana/rpc-transport-http@2.3.0
  • npm/@types/express-serve-static-core@5.1.2
  • npm/glob@13.0.6

View full report

@Battambang Battambang changed the title Chore/solana wallet snap integrate packages chore: solana wallet snap integrate packages Jul 30, 2026
Battambang added a commit that referenced this pull request Jul 30, 2026
Satisfy the Check changelog CI requirement that Unreleased entries
reference the current pull request.
@Battambang

Copy link
Copy Markdown
Contributor Author

@SocketSecurity ignore npm/@types/express-serve-static-core@5.1.2 package used in core repo

@Battambang

Copy link
Copy Markdown
Contributor Author

@SocketSecurity ignore npm/glob@13.0.6 package used in core repo

@Battambang

Copy link
Copy Markdown
Contributor Author

@SocketSecurity ignore npm/@solana/rpc-transport-http@2.1.0 socket.dev security reporting has all security metrics very high score confidence (all metrics green >96)

@Battambang

Copy link
Copy Markdown
Contributor Author

@SocketSecurity ignore npm/@solana-program/compute-budget@0.7.0 socket.dev is showing the solana-devs author group with several package score confidence.

@Battambang

Copy link
Copy Markdown
Contributor Author

@SocketSecurity ignore npm/@solana/rpc-transport-http@2.3.0 socket.dev security reporting has all security metrics very high score confidence (all metrics green >96)

@Battambang

Copy link
Copy Markdown
Contributor Author

@SocketSecurity ignore npm/@solana-program/system@0.7.0 socket.dev is showing the solana-devs author group with several package score confidence.

@Battambang
Battambang force-pushed the chore/solana-wallet-snap-integrate-packages branch from c968237 to fecb49a Compare July 30, 2026 17:06
Battambang added a commit that referenced this pull request Jul 30, 2026
Link the Unreleased entry to #72 so Check changelog passes for the
collateral bitcoin-wallet-snap change.
@Battambang
Battambang marked this pull request as ready for review July 30, 2026 17:44
@Battambang
Battambang requested review from a team as code owners July 30, 2026 17:44
Comment thread .github/workflows/lint-build-test.yml Outdated
Place the snap under packages/ so Yarn workspaces can resolve it, and
update yarn.lock for the new workspace dependencies.
Match description, keywords, and test scripts to the monorepo
workspace constraints used by the other snaps.
Bump concurrently, dotenv, @metamask/superstruct, and bignumber.js to
match bitcoin-/tron-wallet-snap and clear yarn constraints mismatches.
Refresh snap.manifest.json after rebuild (shasum, repository, platformVersion).
Match bitcoin-/tron-wallet-snap exact ranges (11.1.1 and 2.0.0) so yarn
constraints version consistency passes for these deps.
Bump root @types/lodash to ^4.17.15 so yarn constraints version
consistency matches the Solana workspace declaration.
Align rimraf to ^6.0.1 across workspaces that declare it so yarn
constraints version consistency passes and installs a single v6.
Narrow @metamask/snaps-cli to ^8.3.0 so yarn constraints version
consistency matches bitcoin-/tron-/sample-snap (still resolves to 8.4.1).
Bump snaps-cli, snaps-sdk, superstruct, keyring-api, and
keyring-snap-sdk declarations to match bitcoin-/tron-wallet-snap
after #43 (installed versions unchanged).
Align @metamask/key-tree to ^10.1.1 with bitcoin-/tron-wallet-snap so
yarn constraints pass.
Absorb existing Solana snap lint findings into eslint-suppressions.json,
and apply minor autofixes from eslint --fix.
Assign @MetaMask/networks as owners for packages/solana-wallet-snap,
matching bitcoin- and tron-wallet-snap.
Update the generated packages section so readme-content:check passes
with the new workspace.
Collapse ignore, minipass, and package-json-from-dist to their highest
resolved versions so yarn dedupe --check passes in CI.
Battambang and others added 8 commits August 4, 2026 17:30
Satisfy the Check changelog CI requirement that Unreleased entries
reference the current pull request.
Treat Infura-keyed mainnet/devnet RPC and websocket URLs as secrets;
keep public testnet, localnet, and explorer URLs as repository vars.
Update solana and bitcoin shasums so yarn build leaves a clean tree
in CI (bitcoin drifts due to shared yarn.lock changes).
Avoid parallel workers colliding on the mock RPC port 8899 in CI,
matching the source snap-solana-wallet test script.
Keep the monorepo-required test script string, and run Solana tests
serially in jest.config to avoid mock RPC port 8899 collisions.
Match bitcoin-/tron-/sample-snap after #75: split LICENSE.MIT /
LICENSE.APACHE2 and set package.json license to (MIT OR Apache-2.0).
Override production for Solana test matrix builds so snaps-jest gets
dev permissions, matching the source snap CI. Restore the production
snap.manifest shasum before the dirty-tree check.
<!--
Thanks for your contribution! Take a moment to answer these questions so
that reviewers have the information they need to properly understand
your changes:

* What is the current state of things and why does it need to change?
* What is the solution your changes offer and how does it work?
* Are there any changes whose purpose might not obvious to those
unfamiliar with the domain?
* If your primary goal was to update one package but you found you had
to update another one along the way, why did you do so?
* If you had to upgrade a dependency, why did you do so?
-->

Skip tests which use `installSnap` and external API calls.
Revert `lint-build-test.yml` to use common setup.

<!--
Are there any issues that this pull request is tied to?
Are there other links that reviewers should consult to understand these
changes better?
Are there client or consumer pull requests to adopt any breaking
changes?

For example:

* Fixes #12345
* Related to #67890
-->

- [ ] I've updated the test suite for new or updated code as appropriate
- [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [ ] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/internal-snaps/tree/main/docs/processes/updating-changelogs.md)
- [ ] I've introduced [breaking
changes](https://github.com/MetaMask/internal-snaps/tree/main/docs/processes/breaking-changes.md)
in this PR and have prepared draft pull requests for clients and
consumer packages to resolve them
@taran-a
taran-a force-pushed the chore/solana-wallet-snap-integrate-packages branch from 5ec018c to 0917508 Compare August 4, 2026 15:34
@taran-a
taran-a added this pull request to the merge queue Aug 4, 2026
Merged via the queue into main with commit 69a28de Aug 4, 2026
50 of 51 checks passed
@taran-a
taran-a deleted the chore/solana-wallet-snap-integrate-packages branch August 4, 2026 16:11
@taran-a taran-a mentioned this pull request Aug 4, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants