Skip to content

Commit 350b8c9

Browse files
committed
edits
1 parent 93d44ce commit 350b8c9

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

smart-accounts-kit/guides/advanced-permissions/execute-on-metamask-users-behalf.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const sessionAccount = privateKeyToAccount("0x...");
9797
### 4. Check the EOA account code
9898

9999
Advanced Permissions support the automatic upgrading of a MetaMask user's account to a [MetaMask smart account](../../concepts/smart-accounts.md)
100-
from MetaMask Flask version 13.9.0 onwards. If you're using a version below 13.9.0, you must ensure that the
100+
from MetaMask Flask version 13.9.0 onwards. For earlier versions, you must ensure that the
101101
user is upgraded to a smart account before requesting Advanced Permissions.
102102

103103
If the user has not yet been upgraded, you can handle the upgrade [programmatically](/wallet/how-to/send-transactions/send-batch-transactions/#about-atomic-batch-transactions) or ask the
@@ -141,9 +141,7 @@ if (code) {
141141
### 5. Request Advanced Permissions
142142

143143
Request Advanced Permissions from the user. In this example, you'll request an
144-
[ERC-20 periodic permission](use-permissions/erc20-token.md#erc-20-periodic-permission) using the Wallet Client's `requestExecutionPermissions` action.
145-
146-
See [`requestExecutionPermissions`](../../reference/advanced-permissions/wallet-client.md#requestexecutionpermissions) API reference to learn more.
144+
[ERC-20 periodic permission](use-permissions/erc20-token.md#erc-20-periodic-permission) using the Wallet Client's [`requestExecutionPermissions`](../../reference/advanced-permissions/wallet-client.md#requestexecutionpermissions) action.
147145

148146
```typescript
149147
import { sepolia as chain } from "viem/chains";
@@ -238,7 +236,6 @@ To redeem the permissions, use the client action based on your session account t
238236
A smart account uses the Bundler Client's [`sendUserOperationWithDelegation`](../../reference/advanced-permissions/bundler-client.md#senduseroperationwithdelegation) action,
239237
and an EOA uses the Wallet Client's [`sendTransactionWithDelegation`](../../reference/advanced-permissions/wallet-client.md#sendtransactionwithdelegation) action:
240238

241-
See [`sendUserOperationWithDelegation`](../../reference/advanced-permissions/bundler-client.md#senduseroperationwithdelegation) and [`sendTransactionWithDelegation`](../../reference/advanced-permissions/wallet-client.md#sendtransactionwithdelegation) API reference to learn more.
242239
<Tabs>
243240
<TabItem value="Smart account">
244241

smart-accounts-kit/guides/advanced-permissions/use-permissions/erc20-token.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@ permissions for ERC-20 token transfers with time-based (periodic) or streaming c
1919

2020
## ERC-20 periodic permission
2121

22-
This permission type ensures a per-period limit for ERC-20 token transfers. At the start of each new period, the allowance resets.
22+
The [ERC-20 periodic permission](../../../reference/advanced-permissions/permissions.md#erc-20-periodic-permission) ensures a per-period limit for ERC-20 token transfers. At the start of each new period, the allowance resets.
2323

2424
For example, a user signs an ERC-7715 permission that lets a dapp spend up to 10 USDC on their behalf each day. The dapp can transfer a total of
2525
10 USDC per day; the limit resets at the beginning of the next day.
2626

27-
See [`erc20-token-periodic`](../../../reference/advanced-permissions/permissions.md#erc-20-periodic-permission) API reference to learn more.
28-
2927
<Tabs>
3028
<TabItem value="example.ts">
3129

@@ -87,15 +85,13 @@ export const walletClient = createWalletClient({
8785

8886
## ERC-20 stream permission
8987

90-
This permission type ensures a linear streaming transfer limit for ERC-20 tokens. Token transfers are blocked until the
88+
The [ERC-20 stream permission](../../../reference/advanced-permissions/permissions.md#erc-20-stream-permission) ensures a linear streaming transfer limit for ERC-20 tokens. Token transfers are blocked until the
9189
defined start timestamp. At the start, a specified initial amount is released, after which tokens accrue linearly at the
9290
configured rate, up to the maximum allowed amount.
9391

9492
For example, a user signs an ERC-7715 permission that allows a dapp to spend 0.1 USDC per second, starting with an initial amount
9593
of 1 USDC, up to a maximum of 2 USDC.
9694

97-
See [`erc20-token-stream`](../../../reference/advanced-permissions/permissions.md#erc-20-stream-permission) API reference to learn more.
98-
9995
<Tabs>
10096
<TabItem value="example.ts">
10197

smart-accounts-kit/guides/advanced-permissions/use-permissions/native-token.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@ permissions for native token transfers with time-based (periodic) or streaming c
1919

2020
## Native token periodic permission
2121

22-
This permission type ensures a per-period limit for native token transfers. At the start of each new period, the allowance resets.
22+
The [native token periodic permission](../../../reference/advanced-permissions/permissions.md#native-token-periodic-permission) ensures a per-period limit for native token transfers. At the start of each new period, the allowance resets.
2323

2424
For example, a user signs an ERC-7715 permission that lets a dapp spend up to 0.001 ETH on their behalf each day. The dapp can transfer a total of
2525
0.001 USDC per day; the limit resets at the beginning of the next day.
2626

27-
See [`native-token-periodic`](../../../reference/advanced-permissions/permissions.md#native-token-periodic-permission) API reference to learn more.
28-
2927
<Tabs>
3028
<TabItem value="example.ts">
3129

@@ -84,15 +82,13 @@ export const walletClient = createWalletClient({
8482

8583
## Native token stream permission
8684

87-
This permission type ensures a linear streaming transfer limit for native tokens. Token transfers are blocked until the
85+
The [native token stream permission](../../../reference/advanced-permissions/permissions.md#native-token-stream-permission) type ensures a linear streaming transfer limit for native tokens. Token transfers are blocked until the
8886
defined start timestamp. At the start, a specified initial amount is released, after which tokens accrue linearly at the
8987
configured rate, up to the maximum allowed amount.
9088

9189
For example, a user signs an ERC-7715 permission that allows a dapp to spend 0.0001 ETH per second, starting with an initial amount
9290
of 0.1 ETH, up to a maximum of 1 ETH.
9391

94-
See [`native-token-stream`](../../../reference/advanced-permissions/permissions.md#native-token-stream-permission) API reference to learn more.
95-
9692
<Tabs>
9793
<TabItem value="example.ts">
9894

0 commit comments

Comments
 (0)