-
Notifications
You must be signed in to change notification settings - Fork 542
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING: Remove
wallet_enable
and wallet_installSnaps
in favor o…
…f `wallet_requestSnaps` (#909) * Remove wallet_enable in favor of wallet_installSnaps * Rename to wallet_requestSnaps * Fix build * Fix typing issues
- Loading branch information
1 parent
2407423
commit 47e738f
Showing
9 changed files
with
310 additions
and
361 deletions.
There are no files selected for viewing
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
63 changes: 1 addition & 62 deletions
63
packages/rpc-methods/src/permitted/common/snapInstallation.ts
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
import { enableWalletHandler, EnableWalletHooks } from './enable'; | ||
import { getAppKeyHandler, GetAppKeyHooks } from './getAppKey'; | ||
import { getSnapsHandler, GetSnapsHooks } from './getSnaps'; | ||
import { installSnapsHandler, InstallSnapsHooks } from './installSnaps'; | ||
import { requestSnapsHandler, RequestSnapsHooks } from './requestSnaps'; | ||
import { invokeSnapSugarHandler } from './invokeSnapSugar'; | ||
|
||
export type PermittedRpcMethodHooks = EnableWalletHooks & | ||
GetAppKeyHooks & | ||
export type PermittedRpcMethodHooks = GetAppKeyHooks & | ||
GetSnapsHooks & | ||
InstallSnapsHooks; | ||
RequestSnapsHooks; | ||
|
||
export const handlers = [ | ||
enableWalletHandler, | ||
getAppKeyHandler, | ||
getSnapsHandler, | ||
installSnapsHandler, | ||
requestSnapsHandler, | ||
invokeSnapSugarHandler, | ||
]; |
Oops, something went wrong.