mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +01:00
4d015de43e
* Fence snaps endowments and permissions for stable/flask * Fix lint * Fix tests * Actually fix tests * Fix another test
22 lines
683 B
TypeScript
22 lines
683 B
TypeScript
export const CaveatTypes = Object.freeze({
|
|
restrictReturnedAccounts: 'restrictReturnedAccounts' as const,
|
|
});
|
|
|
|
export const RestrictedMethods = Object.freeze({
|
|
eth_accounts: 'eth_accounts',
|
|
///: BEGIN:ONLY_INCLUDE_IN(snaps)
|
|
snap_dialog: 'snap_dialog',
|
|
snap_notify: 'snap_notify',
|
|
snap_manageState: 'snap_manageState',
|
|
snap_getBip32PublicKey: 'snap_getBip32PublicKey',
|
|
snap_getBip32Entropy: 'snap_getBip32Entropy',
|
|
snap_getBip44Entropy: 'snap_getBip44Entropy',
|
|
snap_getEntropy: 'snap_getEntropy',
|
|
wallet_snap: 'wallet_snap',
|
|
///: END:ONLY_INCLUDE_IN
|
|
} as const);
|
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(snaps)
|
|
export * from './snaps/permissions';
|
|
///: END:ONLY_INCLUDE_IN
|