|
|
@ -1,5 +1,5 @@ |
|
|
|
export const CaveatTypes = Object.freeze({ |
|
|
|
export const CaveatTypes = Object.freeze({ |
|
|
|
restrictReturnedAccounts: 'restrictReturnedAccounts', |
|
|
|
restrictReturnedAccounts: 'restrictReturnedAccounts' as const, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
export const RestrictedMethods = Object.freeze({ |
|
|
|
export const RestrictedMethods = Object.freeze({ |
|
|
@ -11,18 +11,18 @@ export const RestrictedMethods = Object.freeze({ |
|
|
|
'snap_getBip44Entropy_*': 'snap_getBip44Entropy_*', |
|
|
|
'snap_getBip44Entropy_*': 'snap_getBip44Entropy_*', |
|
|
|
'wallet_snap_*': 'wallet_snap_*', |
|
|
|
'wallet_snap_*': 'wallet_snap_*', |
|
|
|
///: END:ONLY_INCLUDE_IN
|
|
|
|
///: END:ONLY_INCLUDE_IN
|
|
|
|
}); |
|
|
|
} as const); |
|
|
|
|
|
|
|
|
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
|
|
|
export const PermissionNamespaces = Object.freeze({ |
|
|
|
export const PermissionNamespaces = Object.freeze({ |
|
|
|
snap_getBip44Entropy_: 'snap_getBip44Entropy_*', |
|
|
|
snap_getBip44Entropy_: 'snap_getBip44Entropy_*', |
|
|
|
wallet_snap_: 'wallet_snap_*', |
|
|
|
wallet_snap_: 'wallet_snap_*', |
|
|
|
}); |
|
|
|
} as const); |
|
|
|
|
|
|
|
|
|
|
|
export const EndowmentPermissions = Object.freeze({ |
|
|
|
export const EndowmentPermissions = Object.freeze({ |
|
|
|
'endowment:network-access': 'endowment:network-access', |
|
|
|
'endowment:network-access': 'endowment:network-access', |
|
|
|
'endowment:long-running': 'endowment:long-running', |
|
|
|
'endowment:long-running': 'endowment:long-running', |
|
|
|
}); |
|
|
|
} as const); |
|
|
|
|
|
|
|
|
|
|
|
// Methods / permissions in external packages that we are temporarily excluding.
|
|
|
|
// Methods / permissions in external packages that we are temporarily excluding.
|
|
|
|
export const ExcludedSnapPermissions = new Set([]); |
|
|
|
export const ExcludedSnapPermissions = new Set([]); |