Skip to content

Commit f18184a

Browse files
committed
Merge branch 'main' into 2198-sdk-7702-tutorial
# Conflicts: # delegation-toolkit/get-started/smart-account-quickstart/eip7702.md
2 parents e466717 + b4ca1d3 commit f18184a

File tree

10 files changed

+54
-226
lines changed

10 files changed

+54
-226
lines changed

delegation-toolkit/get-started/delegation-quickstart.md

Lines changed: 0 additions & 174 deletions
This file was deleted.

delegation-toolkit/get-started/erc7715-quickstart.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
22
description: Learn how to use ERC-7715 to request permissions.
3-
sidebar_position: 5
3+
sidebar_position: 3
44
sidebar_label: ERC-7715 quickstart
55
---
66

77
# ERC-7715 quickstart
88

9-
This page demonstrates how to use [ERC-7715](https://eips.ethereum.org/EIPS/eip-7715) to request permissions
10-
from a wallet, and execute transactions on a user's behalf.
9+
The Delegation Toolkit supports [ERC-7715](https://eips.ethereum.org/EIPS/eip-7715), which enables you to request permissions from MetaMask and execute transactions on a user's behalf.
10+
This quickstart demonstrates how to request and redeem ERC-7715 permissions.
1111

1212
## Prerequisites
1313

1414
- [Install and set up the Delegation Toolkit.](install.md)
15-
- [Install MetaMask Flask 12.14.2 or later](/snaps/get-started/install-flask).
15+
- [Install MetaMask Flask 12.14.2 or later.](/snaps/get-started/install-flask)
1616

1717
## Steps
1818

@@ -160,3 +160,7 @@ const userOperationHash = await bundlerClient.sendUserOperationWithDelegation({
160160
accountMetadata,
161161
});
162162
```
163+
164+
## Next steps
165+
166+
To quickly bootstrap an ERC-7715 project, [use the CLI](use-the-cli.md).

delegation-toolkit/get-started/install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ Add `@metamask/delegation-framework/=lib/metamask/delegation-framework/` in your
4444

4545
### 3. Get started
4646

47-
You're now ready to start using MetaMask Smart Accounts.
48-
Check out the [quickstart](quickstart.md) to walk through a simple example.
47+
You're now ready to start using the Delegation Toolkit.
48+
See the [MetaMask Smart Accounts quickstart](smart-account-quickstart/index.md) to walk through a simple example.

delegation-toolkit/get-started/llm-context.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

delegation-toolkit/get-started/eip7702-quickstart.md renamed to delegation-toolkit/get-started/smart-account-quickstart/eip7702.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
22
description: Upgrade an externally owned account (EOA) to a smart account
3-
sidebar_position: 4
3+
sidebar_position: 1
44
sidebar_label: EIP-7702 quickstart
55
---
66

77
# EIP-7702 quickstart
88

9-
This page demonstrates how to upgrade your externally owned account (EOA) to support MetaMask Smart Accounts
9+
This quickstart demonstrates how to upgrade your externally owned account (EOA) to support MetaMask Smart Accounts
1010
functionality using an [EIP-7702](https://eips.ethereum.org/EIPS/eip-7702) transaction. This enables your EOA to leverage the benefits of account
11-
abstraction, such as batch transactions, gas sponsorship, and [ERC-7710 delegation capabilities](./../concepts/delegation.md).
11+
abstraction, such as batch transactions, gas sponsorship, and [ERC-7710 delegation capabilities](../../concepts/delegation.md).
1212

1313
## Prerequisites
1414

15-
- [Install and set up the Delegation Toolkit.](install.md)
16-
- [Install Viem](https://viem.sh/)
15+
- [Install and set up the Delegation Toolkit.](../install.md)
16+
- [Install Viem.](https://viem.sh/)
1717

1818
## Steps
1919

@@ -154,6 +154,8 @@ const userOperationHash = await bundlerClient.sendUserOperation({
154154
});
155155
```
156156

157-
:::info
158-
You can also [use MetaMask SDK to upgrade an EOA to a smart account](/sdk/tutorials/upgrade-eoa-to-smart-account).
159-
:::
157+
## Next steps
158+
159+
- To grant specific permissions to other accounts from your smart account, [create a delegation](../../how-to/create-delegation/index.md).
160+
- To quickly bootstrap a MetaMask Smart Accounts project, [use the CLI](../use-the-cli.md).
161+
- You can also [use MetaMask SDK to upgrade an EOA to a smart account](/sdk/tutorials/upgrade-eoa-to-smart-account).

delegation-toolkit/get-started/quickstart.md renamed to delegation-toolkit/get-started/smart-account-quickstart/index.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ sidebar_label: Smart account quickstart
66

77
# MetaMask Smart Accounts quickstart
88

9-
This page demonstrates how to get started quickly with [MetaMask Smart Accounts](../concepts/smart-accounts.md), and send the first user operation.
9+
You can get started quickly with [MetaMask Smart Accounts](../../concepts/smart-accounts.md) by creating your first smart account and sending a user operation.
1010

1111
## Prerequisites
1212

13-
[Install and set up the Delegation Toolkit.](install.md)
13+
[Install and set up the Delegation Toolkit.](../install.md)
1414

1515
## Steps
1616

@@ -43,7 +43,7 @@ const bundlerClient = createBundlerClient({
4343

4444
### 3. Create a MetaMask smart account
4545

46-
[Create a MetaMask smart account](../how-to/create-smart-account.md) to send the first user operation.
46+
[Create a MetaMask smart account](../../how-to/create-smart-account.md) to send the first user operation.
4747

4848
This example configures a Hybrid smart account,
4949
which is a flexible smart account implementation that supports both an externally owned account (EOA) owner and any number of P256 (passkey) signers:
@@ -63,15 +63,11 @@ const smartAccount = await toMetaMaskSmartAccount({
6363
});
6464
```
6565

66-
:::note
67-
See [how to configure other smart account types](../how-to/create-smart-account.md).
68-
:::
69-
7066
### 4. Send a user operation
7167

7268
Send a user operation using Viem's [`sendUserOperation`](https://viem.sh/account-abstraction/actions/bundler/sendUserOperation) method.
7369

74-
See [send 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](../../how-to/send-user-operation.md) to learn how to estimate fee per gas, and wait for the transaction receipt.
7571

7672
The smart account will remain counterfactual until the first user operation. If the smart account is not
7773
deployed, it will be automatically deployed upon the sending first user operation.
@@ -94,4 +90,12 @@ const userOperationHash = await bundlerClient.sendUserOperation({
9490
maxFeePerGas,
9591
maxPriorityFeePerGas,
9692
});
97-
```
93+
```
94+
95+
## Next steps
96+
97+
- To grant specific permissions to other accounts from your smart account, [create a delegation](../../how-to/create-delegation/index.md).
98+
- This quickstart example uses a Hybrid smart account.
99+
You can also [configure other smart account types](../../how-to/create-smart-account/configure-accounts-signers.md).
100+
- To upgrade an EOA to a smart account, see the [EIP-7702 quickstart](eip7702-quickstart.md).
101+
- To quickly bootstrap a MetaMask Smart Accounts project, [use the CLI](../use-the-cli.md).

delegation-toolkit/get-started/supported-networks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Supported networks
33
sidebar_label: Supported networks
44
description: Supported networks for Delegation Toolkit.
5-
sidebar_position: 7
5+
sidebar_position: 5
66
---
77

88
The following tables display the networks supported by each version of the MetaMask Delegation Toolkit.

delegation-toolkit/get-started/cli-quickstart.md renamed to delegation-toolkit/get-started/use-the-cli.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
description: Get started with the MetaMask Delegation Toolkit using the `@metamask/create-gator-app` CLI.
3-
sidebar_position: 6
4-
sidebar_label: CLI quickstart
3+
sidebar_position: 4
4+
sidebar_label: Use the CLI
55
---
66

7-
# Delegation Toolkit CLI quickstart
7+
# Use the Delegation Toolkit CLI
88

99
Use the `@metamask/create-gator-app` interactive CLI to bootstrap a project with the MetaMask Delegation Toolkit in under two minutes.
1010
The CLI automatically installs the required dependencies and sets up a project structure using a selected template,
@@ -94,4 +94,4 @@ Currently, only Cursor and Windsurf are supported.
9494
|----------------------------------------------------|---------|------------|
9595
| MetaMask Smart Accounts Starter | ✅ | ✅ |
9696
| MetaMask Smart Accounts & Delegation Starter | ✅ | ✅ |
97-
| Experimental: ERC7715 Permissions starter | ✅ | |
97+
| Experimental: ERC7715 Permissions starter | ✅ | |

delegation-toolkit/index.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,12 @@ Check out the following guides to get started with the MetaMask Delegation Toolk
4646
description: "Install and set up the MetaMask Delegation Toolkit.",
4747
},
4848
{
49-
href: "get-started/quickstart",
49+
href: "get-started/smart-account-quickstart",
5050
title: "MetaMask Smart Accounts quickstart",
5151
description: "Create a MetaMask smart account and send a user operation.",
5252
},
5353
{
54-
href: "get-started/delegation-quickstart",
55-
title: "Delegation quickstart",
56-
description: "Create, sign, and redeem a delegation.",
57-
},
58-
{
59-
href: "get-started/eip7702-quickstart",
54+
href: "get-started/smart-account-quickstart/eip7702",
6055
title: "EIP-7702 quickstart",
6156
description: "Upgrade an externally owned account to a smart account.",
6257
},
@@ -66,8 +61,8 @@ Check out the following guides to get started with the MetaMask Delegation Toolk
6661
description: "Request permissions from MetaMask and execute transactions on a user's behalf.",
6762
},
6863
{
69-
href: "get-started/cli-quickstart",
70-
title: "CLI quickstart",
64+
href: "get-started/use-the-cli",
65+
title: "Use the CLI",
7166
description: "Use the Delegation Toolkit CLI to bootstrap a project.",
7267
}
7368
]}

0 commit comments

Comments
 (0)