You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Install [Yarn](https://yarnpkg.com/), [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm), or another package manager.
17
+
- If you plan to use any smart contracts (for example, to [create a custom caveat enforcer](../how-to/create-delegation/create-custom-caveat-enforcer.md)), install [Foundry](https://book.getfoundry.sh/getting-started/installation).
22
18
23
19
## Steps
24
20
25
21
### 1. Install the toolkit
26
22
27
23
Install the [MetaMask Delegation Toolkit](https://github.com/MetaMask/delegation-toolkit) dependencies:
28
24
29
-
<Tabs>
30
-
<TabItemvalue="npm">
31
-
32
-
```bash
33
-
npm install @metamask/delegation-toolkit
34
-
```
35
-
36
-
</TabItem>
37
-
<TabItemvalue="yarn">
38
-
39
-
```bash
40
-
yarn add @metamask/delegation-toolkit
41
-
```
42
-
43
-
</TabItem>
44
-
</Tabs>
25
+
```bash npm2yarn
26
+
npm install @metamask/delegation-toolkit
27
+
```
45
28
46
29
### 2. (Optional) Install the contracts
47
30
48
-
If you plan to extend the Delegation Framework smart contracts (for example, to
49
-
[create a custom caveat enforcer](../how-to/create-delegation/create-custom-caveat-enforcer.md)), install the contract
50
-
package using Foundry's command-line tool, Forge:
31
+
If you plan to extend the Delegation Framework smart contracts (for example, to [create a custom caveat enforcer](../how-to/create-delegation/create-custom-caveat-enforcer.md)), install the contract package using Foundry's command-line tool, Forge:
@@ -57,5 +38,4 @@ Add `@metamask/delegation-framework/=lib/metamask/delegation-framework/` in your
57
38
58
39
### 3. Get started
59
40
60
-
You're now ready to start using the MetaMask Delegation Toolkit.
61
-
Check out the [Delegation Toolkit quickstart](quickstart.md) to walk through a simple example.
41
+
You're now ready to start using the MetaMask Delegation Toolkit. Check out the [Delegation Toolkit quickstart](quickstart.md) to walk through a simple example.
0 commit comments