mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
01a3a5d2c1
* Bump Snaps packages * Add endowment:lifecycle-hooks permission * Run yarn lint:fix * Fix unit test * Update LavaMoat policies --------- Co-authored-by: MetaMask Bot <metamaskbot@users.noreply.github.com>
37 lines
1.5 KiB
TypeScript
37 lines
1.5 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',
|
|
'endowment:lifecycle-hooks': 'endowment:lifecycle-hooks',
|
|
///: 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/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/issues/945.',
|
|
'endowment:lifecycle-hooks':
|
|
'This endowment is experimental and therefore not available.',
|
|
///: END:ONLY_INCLUDE_IN
|
|
});
|
|
|
|
export const DynamicSnapPermissions = Object.freeze(['eth_accounts']);
|