Skip to content

Commit ace5397

Browse files
committed
address reviewer comments
1 parent 3fad189 commit ace5397

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

delegation-toolkit/concepts/caveat-enforcers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,15 @@ When designing delegations with caveats, consider these best practices:
152152

153153
## Available caveat enforcers
154154

155-
The Delegation Toolkit provides [many out-of-the-box caveat enforcers](../reference/caveats.md)
155+
The Delegation Toolkit provides [out-of-the-box caveat enforcers](../reference/caveats.md)
156156
for common restriction patterns, including:
157157

158158
- Limiting target addresses and methods.
159159
- Setting time or block number constraints.
160160
- Restricting token transfers and approvals.
161161
- Limiting execution frequency.
162162

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.
163+
For other restriction patterns, you can also [create custom caveat enforcers](../tutorials/create-custom-caveat-enforcer.md) by implementing the `ICaveatEnforcer` interface.
164164

165165
## Attenuating authority with redelegations
166166

delegation-toolkit/guides/create-delegation/restrict-delegation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,5 @@ const delegation = createDelegation({
105105
});
106106
```
107107

108-
For more granular or custom control, you can also [create custom caveat enforcers](create-custom-caveat-enforcer.md)
108+
For more specific or custom control, you can also [create custom caveat enforcers](../../tutorials/create-custom-caveat-enforcer.md)
109109
and add them to the caveat builder.

delegation-toolkit/tutorials/create-custom-caveat-enforcer.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import TabItem from "@theme/TabItem";
1010

1111
This tutorial walks you through creating a custom [caveat enforcer](../concepts/caveat-enforcers.md) and applying it to a [delegation](../concepts/delegation.md).
1212

13-
The MetaMask Delegation Toolkit provides some [out-of-the-box caveat enforcers](../reference/caveats.md) that define rules and restrictions for common use cases.
14-
For more granular or custom control, you can create custom caveat enforcers from scratch.
15-
This tutorial walks you through creating and applying a caveat enforcer that only allows a delegation to be redeemed after a specific timestamp.
13+
The MetaMask Delegation Toolkit includes [out-of-the-box caveat enforcers](../reference/caveats.md) that define rules and restrictions for common use cases.
14+
For more specific control or other use cases, you can create custom caveat enforcers.
15+
In this tutorial, you'll create and apply a caveat enforcer that only allows a delegation to be redeemed after a specific timestamp.
1616

1717
## Prerequisites
1818

@@ -87,11 +87,11 @@ The Forge CLI will display the address of the deployed caveat enforcer.
8787

8888
### 3. Apply the caveat enforcer
8989

90-
Specify the address where your `AfterTimestampEnforcer.sol` contract is deployed, add it to the caveat builder, and create a delegation.
90+
Specify the address of the deployed `AfterTimestampEnforcer.sol` contract, add it to the caveat builder, and create a delegation.
9191
Learn more about [applying caveats to a delegation](../guides/create-delegation/restrict-delegation.md).
9292

9393
The following code snippet uses the custom caveat enforcer to create a delegation granting
94-
an allowance of 1,000,000 wei that can only be spent after one hour from when the delegation is created:
94+
a 1,000,000 wei allowance that becomes spendable one hour after it is created:
9595

9696
<Tabs>
9797
<TabItem value="delegation.ts">
@@ -106,7 +106,7 @@ import { delegatorSmartAccount } from "./config.ts";
106106

107107
const environment = delegatorSmartAccount.environment;
108108

109-
// Replace this with the address where your AfterTimestampEnforcer.sol contract is deployed.
109+
// Replace this with the address of the deployed AfterTimestampEnforcer.sol contract.
110110
const afterTimestampEnforcer = "0x22Ae4c4919C3aB4B5FC309713Bf707569B74876F";
111111

112112
const caveatBuilder = createCaveatBuilder(environment);

0 commit comments

Comments
 (0)