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
| Access control list | Type: allowlist <br /> The list starts empty. When the allowlist is empty, all calls will be denied. |
42
-
| Time range | Unlimited |
43
-
| Native token spend limit | 0 <br /> This means all calls spending the native token will be denied, unless the limit is updated or removed. |
44
-
| ERC-20 spend limit | Unset. If you want to enabled an ERC-20 spend limit, add the ERC-20 token contract to the access control list and set the spending limit amount. |
45
-
| Gas spend limits | Unset. When defining the session key’s permissions, you should specify either a gas spending limit or a required paymaster. |
| Access control list | Type: allowlist <br /> The list starts empty. When the allowlist is empty, all calls will be denied. |
42
+
| Time range | Unlimited |
43
+
| Native token spend limit | 0 <br /> This means all calls spending the native token will be denied, unless the limit is updated or removed. |
44
+
| ERC-20 spend limit | Unset. If you want to enable an ERC-20 spend limit, add the ERC-20 token contract to the access control list and set the spending limit amount. |
45
+
| Gas spend limits | Unset. When defining the session key’s permissions, you should specify either a gas spending limit or a required paymaster. |
46
46
47
47
## Using the PermissionsBuilder
48
48
49
49
To construct the data to set a key's permissions, you will need to use the `SessionKeyPermissionBuilder` class. This will allow you to specify a series of updates, and when complete, you may generate the encoded data to perform all updates at once.
50
50
51
51
The permissions data may be specified in 3 places:
52
52
53
-
- In the Session Key Plugin's `onInstall` data, setting the intial permissions for a session key added at install time.
53
+
- In the Session Key Plugin's `onInstall` data, setting the initial permissions for a session key added at install time.
54
54
- As data for the initial permissions of a session key added via `addSessionKey`.
55
55
- As a parameter to the `updateKeyPermissions` function, to change the permissions of an existing key.
0 commit comments