mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
f829f0069d
* Add support for snap authorship component at the top of PermissionConnect * Add PermissionCellOptions * Add details popover * Add action for revoking dynamic permissions * Improve UI and revoke logic * Better eth_accounts screen support * Fix tests * Fix lint * More linting fixes * Fix missing fence * Add another fence * Unnest permission page to fix weird CSS issues * Hide footer on permissions connect when using a snap
34 lines
1.4 KiB
TypeScript
34 lines
1.4 KiB
TypeScript
export const EndowmentPermissions = Object.freeze({
|
|
'endowment:network-access': 'endowment:network-access',
|
|
'endowment:transaction-insight': 'endowment:transaction-insight',
|
|
'endowment:cronjob': 'endowment:cronjob',
|
|
'endowment:ethereum-provider': 'endowment:ethereum-provider',
|
|
'endowment:rpc': 'endowment:rpc',
|
|
'endowment:webassembly': 'endowment:webassembly',
|
|
///: BEGIN:ONLY_INCLUDE_IN(build-flask)
|
|
'endowment:long-running': 'endowment:long-running',
|
|
///: END:ONLY_INCLUDE_IN
|
|
} as const);
|
|
|
|
// Methods / permissions in external packages that we are temporarily excluding.
|
|
export const ExcludedSnapPermissions = Object.freeze({
|
|
// TODO: Enable in Flask
|
|
///: BEGIN:ONLY_INCLUDE_IN(build-main)
|
|
snap_manageAccounts:
|
|
'This permission is still in development and therefore not available.',
|
|
///: END:ONLY_INCLUDE_IN
|
|
eth_accounts:
|
|
'eth_accounts is disabled. For more information please see https://github.com/MetaMask/snaps-monorepo/issues/990.',
|
|
});
|
|
|
|
export const ExcludedSnapEndowments = Object.freeze({
|
|
///: BEGIN:ONLY_INCLUDE_IN(build-main)
|
|
'endowment:keyring':
|
|
'This endowment is still in development therefore not available.',
|
|
'endowment:long-running':
|
|
'endowment:long-running is deprecated. For more information please see https://github.com/MetaMask/snaps-monorepo/issues/945.',
|
|
///: END:ONLY_INCLUDE_IN
|
|
});
|
|
|
|
export const DynamicSnapPermissions = Object.freeze(['eth_accounts']);
|