You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. DApp calls `wallet_requestExecutionPermissions` on the Kernel Snap.
48
-
2. Kernel makes async RPC calls to all registered permission provider snaps using `permissionProvider_getPermissionOffers` to fetch permission offers.
49
-
1. A standard `permissionProvider_getPermissionOffers` rpc must be implemented by the permission provider snap to participate in the permission system.
48
+
2. Kernel makes async RPC calls to all registered permission provider snaps using `permissionsProvider_getPermissionOffers` to fetch permission offers.
49
+
1. A standard `permissionsProvider_getPermissionOffers` rpc must be implemented by the permission provider snap to participate in the permission system.
50
50
1. If the permission provider snap returns with an error, it does not support the RPC and will not participate in the permission system.
51
51
2. If the permission provider snap returns an invalid result, it will not participate in the permission system.
52
52
3. The kernel will aggregate all valid responses from the permission provider snap as an in-memory registry.
@@ -59,12 +59,12 @@ sequenceDiagram
59
59
60
60
### **The requirement for permission provider snaps to opt into the permission system**
61
61
62
-
1. Support `permissionProvider_getPermissionOffers` RPC
62
+
1. Support `permissionsProvider_getPermissionOffers` RPC
63
63
2. Support `permissionsProvider_grantPermissions` RPC to allow the kernel to forward `wallet_grantPermission` payload.
64
64
65
65
### **The requirement to leave the permission system**
66
66
67
-
1. The permission provider snap will no longer return a valid response for the `permissionProvider_getPermissionOffers` RPC.
67
+
1. The permission provider snap will no longer return a valid response for the `permissionsProvider_getPermissionOffers` RPC.
68
68
1. Opt-out can be implemented as an update to the developer's permission provider snap or through more dynamic solutions that support HTTPS network calls to toggle support.
errorMessage: `The following permissions can not be granted by the permission provider: ${missingPermissions.map((permission)=>permission.permission.type).join(', ')}`,
175
+
errorMessage: `The following permissions can not be granted by the permissions provider: ${missingPermissions.map((permission)=>permission.permission.type).join(', ')}`,
0 commit comments