mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
a52c6a4908
* Bump snaps-skunkworks to 0.19.0 * Improve snap_getBip32Entropy UI * Remove console.log * Update LavaMoat policy * Dedupe Yarn lock * Update LavaMoat policy again * Fix tests * Update policies and e2e tests * Update policy again * Update iframe-execution-environment * Dedupe yarn.lock * Update snapshots * Fix PR comments * Add TODO * Trigger CI
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
export const CaveatTypes = Object.freeze({
|
|
restrictReturnedAccounts: 'restrictReturnedAccounts' as const,
|
|
});
|
|
|
|
export const RestrictedMethods = Object.freeze({
|
|
eth_accounts: 'eth_accounts',
|
|
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
|
snap_confirm: 'snap_confirm',
|
|
snap_notify: 'snap_notify',
|
|
snap_manageState: 'snap_manageState',
|
|
snap_getBip32Entropy: 'snap_getBip32Entropy',
|
|
'snap_getBip44Entropy_*': 'snap_getBip44Entropy_*',
|
|
'wallet_snap_*': 'wallet_snap_*',
|
|
///: END:ONLY_INCLUDE_IN
|
|
} as const);
|
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
|
export const PermissionNamespaces = Object.freeze({
|
|
snap_getBip44Entropy_: 'snap_getBip44Entropy_*',
|
|
wallet_snap_: 'wallet_snap_*',
|
|
} as const);
|
|
|
|
export const EndowmentPermissions = Object.freeze({
|
|
'endowment:network-access': 'endowment:network-access',
|
|
'endowment:long-running': 'endowment:long-running',
|
|
} as const);
|
|
|
|
// Methods / permissions in external packages that we are temporarily excluding.
|
|
export const ExcludedSnapPermissions = new Set([]);
|
|
///: END:ONLY_INCLUDE_IN
|