Skip to content

Use side effects for wallet_snap permission#1301

Merged
FrederikBolding merged 13 commits into
mainfrom
gr/use-side-effects
Mar 29, 2023
Merged

Use side effects for wallet_snap permission#1301
FrederikBolding merged 13 commits into
mainfrom
gr/use-side-effects

Conversation

@GuillaumeRx
Copy link
Copy Markdown
Contributor

@GuillaumeRx GuillaumeRx commented Mar 24, 2023

This allows wallet_snap to install the requested snaps as a side-effect and reworks the requestSnaps method to let the wallet_snap side effect handle the snap install in most cases.

Fixes #1306

@GuillaumeRx GuillaumeRx requested a review from a team as a code owner March 24, 2023 10:17
@GuillaumeRx GuillaumeRx force-pushed the gr/use-side-effects branch 2 times, most recently from 2ec5a57 to f35995f Compare March 28, 2023 15:09
@GuillaumeRx GuillaumeRx changed the title [WIP] Use side effects for wallet_snap permission Use side effects for wallet_snap permission Mar 28, 2023
@GuillaumeRx
Copy link
Copy Markdown
Contributor Author

Waiting on a release of @metamask/permission-controller to merge

Comment thread packages/snaps-controllers/src/snaps/SnapController.ts
Comment thread packages/rpc-methods/src/permitted/requestSnaps.ts
Comment thread packages/rpc-methods/src/restricted/invokeSnap.ts
Comment thread packages/rpc-methods/src/restricted/invokeSnap.test.ts Outdated
Comment thread packages/rpc-methods/src/restricted/invokeSnap.test.ts Outdated
Comment thread packages/rpc-methods/src/permitted/requestSnaps.ts
Comment thread packages/rpc-methods/src/permitted/requestSnaps.ts
Comment thread packages/rpc-methods/src/permitted/requestSnaps.ts
@GuillaumeRx GuillaumeRx force-pushed the gr/use-side-effects branch from 95f29b7 to 66679ac Compare March 29, 2023 14:22
@FrederikBolding FrederikBolding merged commit d77759d into main Mar 29, 2023
@FrederikBolding FrederikBolding deleted the gr/use-side-effects branch March 29, 2023 17:05
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.

Implement snap install side-effects in snaps-monorepo

2 participants