-
Notifications
You must be signed in to change notification settings - Fork 1
chore: solana wallet snap integrate packages #72
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
Open
Battambang
wants to merge
25
commits into
main
Choose a base branch
from
chore/solana-wallet-snap-integrate-packages
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
7a62a6b
chore: move solana-wallet-snap into packages/
Battambang 21a87f7
chore: align solana-wallet-snap package fields with yarn constraints
Battambang 4d47487
chore: align solana shared dependency ranges with other snaps
Battambang 65b284e
chore: merge main into solana integrate-packages branch
Battambang 4ee514c
chore: pin solana snaps-sdk and jest-transform-stub ranges
Battambang 4d16e2b
chore: align root @types/lodash with solana-wallet-snap
Battambang 89d83b8
chore: bump root and sample rimraf to match solana
Battambang 5e2df88
chore: align solana snaps-cli range with other snaps
Battambang 9baaecd
chore: merge main into solana integrate-packages branch
Battambang 5fa6bb9
chore: align solana deps with post-keyring-v2 monorepo ranges
Battambang 053e021
chore: bump solana key-tree to match other snaps
Battambang 929ea67
chore: add eslint suppressions for solana-wallet-snap
Battambang 84d06f6
chore: add solana-wallet-snap to CODEOWNERS
Battambang b39965b
chore: add solana-wallet-snap to root README package list
Battambang f47f850
chore: dedupe yarn.lock dependencies
Battambang f92f679
chore: link solana migration changelog entry to PR #72
Battambang 1bfebbf
Merge branch 'main' into chore/solana-wallet-snap-integrate-packages
Battambang a62a583
chore: wire solana CI env as secrets and vars
Battambang ae35424
chore: refresh snap.manifest shasums after solana integration
Battambang 46658f7
fix: run solana jest tests in band
Battambang fecb49a
fix: serialize solana jest via maxWorkers
Battambang 35865d1
Merge branch 'main' into chore/solana-wallet-snap-integrate-packages
Battambang 5391a0e
chore: dual-license solana-wallet-snap (MIT OR Apache-2.0)
Battambang cb80c6e
fix: build solana tests with ENVIRONMENT=test
Battambang 0f89516
chore: document bitcoin snap.manifest shasum refresh in changelog
Battambang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Test job overrides ENVIRONMENT only for @metamask/solana-wallet-snap:
Why Solana needs this (Bitcoin/Tron do not in this CI path)
Solana feature tests (snaps-jest / installSnap) call the snap as a localhost dapp (http://localhost:3000) and exercise send/confirmation RPCs. Solana’s permissions.ts allowlists that origin and those methods only when the baked-in environment is local or test. With production, dapp permissions are empty → CI fails with Permission denied (4100).
ENVIRONMENT is injected at snap build time, so the Test job must rebuild Solana with ENVIRONMENT=test. Matching the source snap-solana-wallet CI Test job.
Bitcoin: no ENVIRONMENT-gated origin allowlist.
Tron: has a similar gate, but its suites in this workflow mostly don’t depend on localhost dapp permissions the way Solana’s feature UI tests do (often unit tests or metamask origin, which stays allowed in production).