Skip to content

Commit 764f6bc

Browse files
committed
address reviewer comments
1 parent 13bfde0 commit 764f6bc

File tree

5 files changed

+20
-16
lines changed

5 files changed

+20
-16
lines changed

delegation-toolkit/guides/delegation/use-delegation-scopes/function-call.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to use the function call scope for a delegation.
55
# Use the function call scope
66

77
The function call scope defines the specific methods, contract addresses, and calldata that are allowed for the delegation.
8-
For example, Alice delegates to Bob the ability to call the approve function on the USDC contract, with the approval amount set to `0`.
8+
For example, Alice delegates to Bob the ability to call the `approve` function on the USDC contract, with the approval amount set to `0`.
99

1010
Internally, this scope uses the [`allowedTargets`](../../../reference/caveats.md#allowedtargets) and [`allowedMethods`](../../../reference/caveats.md#allowedmethods) caveat enforcers, and
1111
optionally uses the [`allowedCalldata`](../../../reference/caveats.md#allowedcalldata) or [`exactCalldata`](../../../reference/caveats.md#exactcalldata) caveat enforcers when those parameters are specified.

delegation-toolkit/guides/delegation/use-delegation-scopes/ownership-transfer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Learn how to use the ownership transfer scope for a delegation.
77
The ownership transfer scope restricts a delegation to ownership transfer calls only.
88
For example, Alice has deployed a smart contract, and she delegates to Bob the ability to transfer ownership of that contract.
99

10-
Internally, this scope uses the [`ownershipTransfer`](../../../reference/caveats.md#ownershiptransfer) caveat enfrocer.
10+
Internally, this scope uses the [`ownershipTransfer`](../../../reference/caveats.md#ownershiptransfer) caveat enforcer.
1111

1212
## Prerequisites
1313

delegation-toolkit/guides/delegation/use-delegation-scopes/refine-scope.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import TabItem from "@theme/TabItem";
99

1010
# Refine a delegation scope
1111

12-
You can apply [caveat enforcers](../../concepts/delegation/caveat-enforcers.md) to a delegation, refining the initial authority specified by a [delegation scope](index.md).
13-
Caveat enforcers enable you to apply specific rules and restrictions, ensuring that delegated executions are only performed under predefined circumstances.
12+
Apply [caveat enforcers](../../concepts/delegation/caveat-enforcers.md) to a delegation to refine the initial authority defined by its [delegation scope](index.md).
13+
Caveat enforcers ensure delegated executions are only performed under specific, predefined circumstances.
1414

1515
A delegation has a `caveats` property, which is an array of `Caveat` objects.
1616
Each caveat is specified as follows:

delegation-toolkit/guides/delegation/use-delegation-scopes/spending-limit.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: Learn how to use the spending limit scopes for a delegation.
44

55
# Use spending limit scopes
66

7-
Spending limit scopes define how much a delegate can spend in native, ERC-20, or ERC-721 tokens.
8-
The toolkit provides multiple types of spending limit scopes tailored for different use cases.
7+
Spending limit scopes define how much a delegate can spend in native, ERC-20, or ERC-721 tokens.
8+
You can set transfer limits with or without time-based (periodic) or streaming conditions, depending on your use case.
99

1010
## Prerequisites
1111

@@ -16,9 +16,11 @@ The toolkit provides multiple types of spending limit scopes tailored for differ
1616

1717
## ERC-20 periodic scope
1818

19-
This scope ensures that ERC-20 token transfers remain within a predefined limit during a specified time window.
20-
At the start of each new period, the transfer allowance resets.
21-
For example, Alice creates a delegation that allows Bob to spend 10 USDC on her behalf each day, week, or month.
19+
This scope ensures a per-period limit for ERC-20 token transfers.
20+
You set the amount and the time window.
21+
At the start of each new period, the allowance resets.
22+
For example, Alice creates a delegation that lets Bob spend up to 10 USDC on her behalf each day.
23+
Bob can transfer a total of 10 USDC per day; the limit resets at the beginning of the next day.
2224

2325
When this scope is applied, the toolkit automatically disables native token transfers (sets the native token transfer limit to `0`).
2426

@@ -116,9 +118,11 @@ const delegation = createDelegation({
116118

117119
## Native token periodic scope
118120

119-
This scope ensures that native token transfers remain within a predefined limit during a specified time window.
120-
At the start of each new period, the transfer allowance resets.
121-
For example, Alice creates a delegation that allows Bob to spend 0.01 ETH on her behalf each day, week, or month.
121+
This scope ensures a per-period limit for native token transfers.
122+
You set the amount and the time window.
123+
At the start of each new period, the allowance resets.
124+
For example, Alice creates a delegation that lets Bob spend up to 0.01 ETH on her behalf each day.
125+
Bob can transfer a total of 0.01 ETH per day; the limit resets at the beginning of the next day.
122126

123127
When this scope is applied, the toolkit automatically disables ERC-20 and ERC-721 token transfers (sets the allowed calldata to `0x`).
124128

delegation-toolkit/reference/delegation-scopes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Learn [how to use delegation scopes](../guides/delegation/use-delegation-scopes/
1111

1212
### ERC-20 periodic scope
1313

14-
Ensures that ERC-20 token transfers remain within a predefined limit during a specified time window.
15-
At the start of each new period, the transfer allowance resets.
14+
Ensures a per-period limit for ERC-20 token transfers.
15+
At the start of each new period, the allowance resets.
1616

1717
#### Example
1818

@@ -92,8 +92,8 @@ const delegation = createDelegation({
9292

9393
### Native token periodic scope
9494

95-
Ensures that native token transfers remain within a predefined limit during a specified time window.
96-
At the start of each new period, the transfer allowance resets.
95+
Ensures a per-period limit for native token transfers.
96+
At the start of each new period, the allowance resets.
9797

9898
#### Example
9999

0 commit comments

Comments
 (0)