Skip to content

Commit 668f37e

Browse files
rebrand delegation toolkit to smart accounts kit
1 parent 69fef87 commit 668f37e

File tree

59 files changed

+410
-411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+410
-411
lines changed

delegation-toolkit/index.md

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

docusaurus.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ const config = {
203203
'@docusaurus/plugin-content-docs',
204204
{
205205
id: 'gator',
206-
path: 'delegation-toolkit',
207-
routeBasePath: 'delegation-toolkit',
206+
path: 'smart-accounts-kit',
207+
routeBasePath: 'smart-accounts-kit',
208208
editUrl: 'https://github.com/MetaMask/metamask-docs/edit/main/',
209209
sidebarPath: require.resolve('./gator-sidebar.js'),
210210
breadcrumbs: false,
@@ -453,8 +453,8 @@ const config = {
453453
to: '/wallet',
454454
},
455455
{
456-
label: 'Delegation Toolkit',
457-
to: '/delegation-toolkit',
456+
label: 'MetaMaskSmart Accounts Kit',
457+
to: '/smart-accounts-kit',
458458
},
459459
{
460460
label: 'Embedded Wallets',
@@ -490,8 +490,8 @@ const config = {
490490
href: 'https://github.com/MetaMask/metamask-sdk/',
491491
},
492492
{
493-
label: 'Delegation Toolkit GitHub',
494-
href: 'https://github.com/MetaMask/delegation-toolkit',
493+
label: 'Smart Accounts Kit GitHub',
494+
href: 'https://github.com/MetaMask/smart-accounts-kit',
495495
},
496496
{
497497
label: 'MetaMask mobile GitHub',

embedded-wallets/features/smart-accounts.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Create and manage smart accounts for your users with just a single toggle on the
1818

1919
## Getting Started
2020

21-
Our native smart accounts powered by [MetaMask Delegation Toolkit](/delegation-toolkit) simplify setup, enabling you to create and manage smart accounts effortlessly with popular libraries like Viem, Ethers, and Wagmi —no need for third-party packages to achieve ERC-4337 compatibility.
21+
Our native smart accounts powered by [MetaMask Smart Accounts kit](/smart-accounts-kit) simplify setup, enabling you to create and manage smart accounts effortlessly with popular libraries like Viem, Ethers, and Wagmi —no need for third-party packages to achieve ERC-4337 compatibility.
2222

2323
We are working closely with different partners in the account abstraction ecosystem and will provide support for evolving standards like EIP-7702, ERC-7579 (Modular Accounts), and ERC-7555 (account discovery) as they get finalized.
2424

File renamed without changes.

delegation-toolkit/concepts/delegation/caveat-enforcers.md renamed to smart-accounts-kit/concepts/delegation/caveat-enforcers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ keywords: [caveats, caveat enforcers, delegation]
55

66
# Caveat enforcers
77

8-
The MetaMask Delegation Toolkit provides *caveat enforcers*, which are smart contracts that implement rules and restrictions (*caveats*) on delegations.
8+
The MetaMask Smart Acocunts Kit provides *caveat enforcers*, which are smart contracts that implement rules and restrictions (*caveats*) on delegations.
99
They serve as the underlying mechanism that enables conditional execution within the [Delegation Framework](./index.md#delegation-framework).
1010

1111
A caveat enforcer acts as a gate that validates whether a delegation can be used for a particular execution. When a delegate attempts to execute an action on behalf of a delegator, each caveat enforcer specified in the delegation evaluates whether the execution meets its defined criteria.
@@ -119,7 +119,7 @@ This "all-or-nothing" approach ensures that delegations only execute exactly as
119119

120120
## Caveat builder
121121

122-
While caveat enforcers operate at the smart contract level, most developers interact with them through the `CaveatBuilder` interface in the MetaMask Delegation Toolkit.
122+
While caveat enforcers operate at the smart contract level, most developers interact with them through the `CaveatBuilder` interface in the MetaMask Smart Accounts Kit.
123123

124124
The `CaveatBuilder` provides a developer-friendly TypeScript API that:
125125

@@ -152,7 +152,7 @@ When designing delegations with caveats, consider these best practices:
152152

153153
## Available caveat enforcers
154154

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

158158
- Limiting target addresses and methods.

delegation-toolkit/concepts/delegation/index.md renamed to smart-accounts-kit/concepts/delegation/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Learn about delegation, the delegation lifecycle, and the Delegation Framework.
33
toc_max_heading_level: 2
4-
keywords: [delegation toolkit, delegation, delegator, delegate, delegation framework]
4+
keywords: [smart accounts kit, delegation, delegator, delegate, delegation framework]
55
---
66

77
import Tabs from "@theme/Tabs";
@@ -14,7 +14,7 @@ or externally owned account (EOA) to perform specific executions on its behalf.
1414
The account that grants the permission is called the *delegator account*, while the account that receives the permission
1515
is called the *delegate account*.
1616

17-
The MetaMask Delegation Toolkit follows the [ERC-7710](https://eips.ethereum.org/EIPS/eip-7710) standard for smart contract delegation.
17+
The MetaMask Smart Accounts Kit follows the [ERC-7710](https://eips.ethereum.org/EIPS/eip-7710) standard for smart contract delegation.
1818
In addition, users can use [caveat enforcers](caveat-enforcers.md) to apply rules and restrictions to delegations.
1919
For example: Alice delegates the ability to spend her USDC to Bob, limiting the amount to 100 USDC.
2020

@@ -65,7 +65,7 @@ You can create the following delegation types:
6565

6666
## Delegation Framework
6767

68-
The MetaMask Delegation Toolkit includes the Delegation Framework, which is a
68+
The MetaMask Smart Accounts Kit includes the Delegation Framework, which is a
6969
[set of comprehensively audited smart contracts](https://github.com/MetaMask/delegation-framework) that
7070
collectively handle delegator account creation, the delegation lifecycle,
7171
and caveat enforcement.
@@ -152,7 +152,7 @@ sequenceDiagram
152152
## Execution modes
153153

154154
When redeeming a delegation using [`redeemDelegations`](../../reference/delegation/index.md#redeemdelegations), you must pass an execution mode for each delegation chain you pass to the method.
155-
The Delegation Toolkit supports the following execution modes, based on [ERC-7579](https://erc7579.com/):
155+
The Smart Accounts Kit supports the following execution modes, based on [ERC-7579](https://erc7579.com/):
156156

157157
| Execution mode | Number of delegation chains passed to `redeemDelegations` | Processing method | Does user operation continue execution if redemption reverts? |
158158
|--|--|--|--|
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ keywords: [ERC-7715, 7715, permissions, wallet, smart account]
55

66
# ERC-7715 permissions
77

8-
The Delegation Toolkit supports [ERC-7715](https://eips.ethereum.org/EIPS/eip-7715), which lets you request fine-grained permissions from a MetaMask user to execute transactions on their behalf.
8+
The Smart Accounts Kit supports [ERC-7715](https://eips.ethereum.org/EIPS/eip-7715), which lets you request fine-grained permissions from a MetaMask user to execute transactions on their behalf.
99
For example, a user can grant your dapp permission to spend 10 USDC per day to buy ETH over the course of a month.
1010
Once the permission is granted, your dapp can use the allocated 10 USDC each day to purchase ETH directly from the MetaMask user's account.
1111

@@ -23,7 +23,7 @@ Dapps can use this method to request a wallet to grant the dapp permission to ex
2323
`wallet_grantPermissions` requires a `signer` parameter, which identifies the entity requesting or managing the permission.
2424
Common signer implementations include wallet signers, single key and multisig signers, and account signers.
2525

26-
The Delegation Toolkit supports multiple types of signers, but [an account signer is used in this documentation's examples](../guides/erc7715/execute-on-metamask-users-behalf.md) as a common implementation.
26+
The Smart Accounts Kit supports multiple types of signers, but [an account signer is used in this documentation's examples](../guides/erc7715/execute-on-metamask-users-behalf.md) as a common implementation.
2727
With an account signer, a session account is created and used for the single purpose of requesting and redeeming ERC-7715 permissions, and does not contain tokens.
2828
The session account can be granted with permissions and redeem them as specified in [ERC-7710](https://eips.ethereum.org/EIPS/eip-7710).
2929
The session account can be a smart account or an externally owned account (EOA).
@@ -56,7 +56,7 @@ The ERC-7715 permissions lifecycle is as follows:
5656
It can be a [smart account](smart-accounts.md) or an externally owned account (EOA).
5757

5858
2. **Request permissions** - Request permissions from the user.
59-
The Delegation Toolkit supports [ERC-20 token permissions](../guides/erc7715/use-permissions/erc20-token.md) and
59+
The Smart Accounts Kit supports [ERC-20 token permissions](../guides/erc7715/use-permissions/erc20-token.md) and
6060
[native token permissions](../guides/erc7715/use-permissions/native-token.md).
6161

6262
4. **Redeem permissions** - Once the permission is granted, the session account can redeem the permission, executing on the user's behalf.

delegation-toolkit/concepts/smart-accounts.md renamed to smart-accounts-kit/concepts/smart-accounts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ keywords: [MetaMask, smart accounts, account abstraction, ERC-4337]
55

66
# MetaMask Smart Accounts
77

8-
The MetaMask Delegation Toolkit enables you to create and manage MetaMask Smart Accounts.
8+
The MetaMask Smart Accounts Kit enables you to create and manage MetaMask Smart Accounts.
99
MetaMask Smart Accounts are [ERC-4337](https://eips.ethereum.org/EIPS/eip-4337) smart contract accounts
1010
that support programmable account behavior and advanced features such as multi-signature approvals,
1111
automated transaction batching, and custom security policies.
@@ -37,7 +37,7 @@ ERC-4337 introduces the following concepts:
3737

3838
## Smart account implementation types
3939

40-
The MetaMask Delegation Toolkit supports three types of MetaMask Smart Accounts, each offering unique features and use cases.
40+
The MetaMask Smart Acocunts Kit supports three types of MetaMask Smart Accounts, each offering unique features and use cases.
4141

4242
See [Create a smart account](../guides/smart-accounts/create-smart-account.md) to learn how to use these different account types.
4343

File renamed without changes.

delegation-toolkit/experimental/erc-7710-redeem-delegations.md renamed to smart-accounts-kit/experimental/erc-7710-redeem-delegations.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This is an experimental feature and may change in future releases.
1414
[ERC-7710](https://eip.tools/eip/7710) introduces a standard way for MetaMask Smart Accounts to delegate capabilities to other
1515
smart accounts or externally owned accounts (EOAs).
1616

17-
The MetaMask Delegation Toolkit provides two experimental functions, `erc7710BundlerActions()` and `erc7710WalletActions()`, that let
17+
The MetaMask Smart Accounts Kit provides two experimental functions, `erc7710BundlerActions()` and `erc7710WalletActions()`, that let
1818
a caller redeem delegations granted by MetaMask's permissions system.
1919

2020
## Extract relevant data
@@ -128,8 +128,8 @@ import { createPublicClient, http, createBundlerClient } from "viem";
128128
import { generatePrivateKey, privateKeyToAccount } from "viem/accounts";
129129
import { sepolia as chain } from "viem/chains";
130130
import { createBundlerClient } from "viem/account-abstraction";
131-
import { erc7710BundlerActions } from "@metamask/delegation-toolkit/experimental";
132-
import { toMetaMaskSmartAccount, Implementation } from "@metamask/delegation-toolkit";
131+
import { erc7710BundlerActions } from "@metamask/smart-accounts-kit/experimental";
132+
import { toMetaMaskSmartAccount, Implementation } from "@metamask/smart-accounts-kit";
133133

134134
export const publicClient = createPublicClient({
135135
chain: chain,
@@ -212,7 +212,7 @@ const hash = walletClient.sendTransactionWithDelegation({
212212
import { http, createPublicClient, createWalletClient } from "viem";
213213
import { generatePrivateKey, privateKeyToAccount } from "viem/accounts";
214214
import { sepolia as chain } from "viem/chains";
215-
import { erc7710WalletActions } from "@metamask/delegation-toolkit/experimental";
215+
import { erc7710WalletActions } from "@metamask/smart-accounts-kit/experimental";
216216

217217
export const publicClient = createPublicClient({
218218
chain,

0 commit comments

Comments
 (0)