-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into use-with-keyring
- Loading branch information
Showing
158 changed files
with
11,609 additions
and
3,629 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Run integration tests | ||
|
||
on: | ||
push: | ||
branches: [develop, master] | ||
pull_request: | ||
types: [opened,reopened,synchronize] | ||
|
||
jobs: | ||
test-integration: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup environment | ||
uses: ./.github/actions/setup-environment | ||
|
||
- name: test:integration:coverage | ||
run: yarn test:integration:coverage |
This file contains 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 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 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
2,630 changes: 0 additions & 2,630 deletions
2,630
.yarn/patches/@metamask-gas-fee-controller-npm-15.1.2-db4d2976aa.patch
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { SnapId } from '@metamask/snaps-sdk'; | ||
import { Sender } from '@metamask/keyring-api'; | ||
import { HandlerType } from '@metamask/snaps-utils'; | ||
import { Json, JsonRpcRequest } from '@metamask/utils'; | ||
// This dependency is still installed as part of the `package.json`, however | ||
// the Snap is being pre-installed only for Flask build (for the moment). | ||
import BitcoinWalletSnap from '@metamask/bitcoin-wallet-snap/dist/preinstalled-snap.json'; | ||
import { handleSnapRequest } from '../../../../ui/store/actions'; | ||
|
||
export const BITCOIN_WALLET_SNAP_ID: SnapId = | ||
BitcoinWalletSnap.snapId as SnapId; | ||
|
||
export class BitcoinWalletSnapSender implements Sender { | ||
send = async (request: JsonRpcRequest): Promise<Json> => { | ||
// We assume the caller of this module is aware of this. If we try to use this module | ||
// without having the pre-installed Snap, this will likely throw an error in | ||
// the `handleSnapRequest` action. | ||
return (await handleSnapRequest({ | ||
origin: 'metamask', | ||
snapId: BITCOIN_WALLET_SNAP_ID, | ||
handler: HandlerType.OnKeyringRequest, | ||
request, | ||
})) as Json; | ||
}; | ||
} |
This file contains 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.