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
Copy file name to clipboardExpand all lines: delegation-toolkit/concepts/caveat-enforcers.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,7 @@ This "all-or-nothing" approach ensures that delegations only execute exactly as
119
119
120
120
## Caveat builder
121
121
122
-
While caveat enforcers operate at the smart contract level, most developers interact with them through the [`CaveatBuilder`](../how-to/create-delegation/restrict-delegation.md) interface in the MetaMask Delegation Toolkit.
122
+
While caveat enforcers operate at the smart contract level, most developers interact with them through the [`CaveatBuilder`](../guides/create-delegation/restrict-delegation.md) interface in the MetaMask Delegation Toolkit.
123
123
124
124
The `CaveatBuilder` provides a developer-friendly TypeScript API that:
125
125
@@ -160,11 +160,11 @@ for common restriction patterns, including:
160
160
- Restricting token transfers and approvals.
161
161
- Limiting execution frequency.
162
162
163
-
For more complex scenarios, you can also [create custom caveat enforcers](../how-to/create-delegation/create-custom-caveat-enforcer.md) by implementing the `ICaveatEnforcer` interface.
163
+
For more complex scenarios, you can also [create custom caveat enforcers](../guides/create-delegation/create-custom-caveat-enforcer.md) by implementing the `ICaveatEnforcer` interface.
164
164
165
165
## Attenuating authority with redelegations
166
166
167
-
When [creating chains of delegations](../how-to/create-delegation/index.md#create-a-redelegation), it's important to understand how authority flows and can be restricted.
167
+
When [creating chains of delegations](../guides/create-delegation/index.md#create-a-redelegation), it's important to understand how authority flows and can be restricted.
168
168
169
169
Caveats applied to a chain of delegations are *accumulative*—they stack on top of each other:
Copy file name to clipboardExpand all lines: delegation-toolkit/concepts/environment.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ See the changelog of the toolkit version you are using (in the left sidebar) for
71
71
72
72
Alternatively, you can use the [`getDelegatorEnvironment`](../reference/api/delegation.md#getdelegatorenvironment) function to resolve the environment.
73
73
This function is especially useful if your delegator is not a smart account when
74
-
[creating a redelegation](../how-to/create-delegation/index.md#create-a-redelegation).
74
+
[creating a redelegation](../guides/create-delegation/index.md#create-a-redelegation).
Copy file name to clipboardExpand all lines: delegation-toolkit/experimental/erc-7710-redeem-delegations.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ Redeem a delegation with a [MetaMask smart account](#redeem-with-a-metamask-smar
84
84
85
85
### Redeem with a MetaMask smart account
86
86
87
-
To redeem a delegation with a MetaMask smart account, [create a smart account](../how-to/create-smart-account.md)
87
+
To redeem a delegation with a MetaMask smart account, [create a smart account](../guides/smart-accounts/create-smart-account.md)
88
88
and a [Viem Bundler Client](https://viem.sh/account-abstraction/clients/bundler).
89
89
90
90
After setting up your Bundler Client, you can extend its functionality with `erc7710BundlerActions` actions to support ERC-7710. Once extended, use [`sendUserOperationWithDelegation`](../reference/api/experimental-actions/bundler-client.md#senduseroperationwithdelegation) to redeem the permission.
The session account can now [redeem the delegation](../how-to/redeem-delegation.md). The redeem transaction is sent to the `DelegationManager` contract, which validates the delegation and executes actions on the user's behalf.
133
+
The session account can now [redeem the delegation](../guides/redeem-delegation.md). The redeem transaction is sent to the `DelegationManager` contract, which validates the delegation and executes actions on the user's behalf.
134
134
135
135
To redeem the permissions, you can use the `sendUserOperationWithDelegation` bundler client action.
Send a user operation using Viem's [`sendUserOperation`](https://viem.sh/account-abstraction/actions/bundler/sendUserOperation) method.
69
69
70
-
See [Send a user operation](../../how-to/send-user-operation.md) to learn how to estimate fee per gas, and wait for the transaction receipt.
70
+
See [Send a user operation](../../guides/smart-accounts/send-user-operation.md) to learn how to estimate fee per gas, and wait for the transaction receipt.
71
71
72
72
The smart account will remain counterfactual until the first user operation. If the smart account is not
73
73
deployed, it will be automatically deployed upon the sending first user operation.
0 commit comments