Skip to content

Commit c44e583

Browse files
authored
Merge branch 'main' into add-credit-cost
2 parents 673764e + 3b885a5 commit c44e583

158 files changed

Lines changed: 6170 additions & 15370 deletions

File tree

Some content is hidden

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

delegation-toolkit/concepts/environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ import {
206206
// remove-end
207207

208208
// add-start
209-
+ const evniroment: DeleGatorEnvironment = {
209+
+ const environment: DeleGatorEnvironment = {
210210
+ SimpleFactory: "0x124..",
211211
+ // ...
212212
+ implementations: {

delegation-toolkit/experimental/erc-7710-redeem-delegations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ if (accountMetadata?.length !== 0) {
188188

189189
// This transaction will deploy the delegator account.
190190
const hash = walletClient.sendTransaction({
191-
to: accountMetadata.factory,
192-
data: accountMetadata.factoryData,
191+
to: accountMetadata[0].factory,
192+
data: accountMetadata[0].factoryData,
193193
});
194194

195195
// You should wait for transaction to be successfully executed.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: Supported networks
3+
sidebar_label: Supported networks
4+
description: Supported networks for Delegation Toolkit.
5+
sidebar_position: 5
6+
---
7+
8+
The following tables display the networks supported by each version of the MetaMask Delegation Toolkit.
9+
10+
If you don't see the network you're looking for, you can request support by emailing hellogators@consensys.net.
11+
12+
## Mainnet networks
13+
14+
| Network Name | v0.10.1 | v0.10.2 | v0.11.0 |
15+
| ------------------- | ------- | ------- | ------- |
16+
| Ethereum ||||
17+
| Polygon ||||
18+
| Binance Smart Chain ||||
19+
| Optimism ||||
20+
| Arbitrum ||||
21+
| Linea ||||
22+
| Base ||||
23+
| Gnosis Chain ||||
24+
25+
## Testnet networks
26+
27+
| Network Name | v0.10.1 | v0.10.2 | v0.11.0 |
28+
| ---------------- | ------- | ------- | ------- |
29+
| Ethereum Sepolia ||||
30+
| Linea Sepolia ||||
31+
| Base Sepolia ||||
32+
| MegaEth ||||
33+
| Gnosis Chiado ||||

delegation-toolkit/how-to/create-delegation/create-custom-caveat-enforcer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ import {
9292
import { toHex } from "viem";
9393
import { delegatorSmartAccount } from "./config.ts";
9494

95-
const environment = delegatorSmartAccount.enviroment;
95+
const environment = delegatorSmartAccount.environment;
9696

9797
// Replace this with the address where the AfterTimestampEnforcer.sol contract is deployed.
9898
const afterTimestampEnforcer = "0x22Ae4c4919C3aB4B5FC309713Bf707569B74876F";

delegation-toolkit/how-to/redeem-delegation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ import {
8686
toMetaMaskSmartAccount,
8787
} from "@metamask/delegation-toolkit";
8888
import { privateKeyToAccount } from "viem/accounts";
89-
improt { publicClient } from "./client.ts"
89+
import { publicClient } from "./client.ts"
9090

9191
const delegateAccount = privateKeyToAccount("0x...");
9292

delegation-toolkit/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
title: Introduction to the MetaMask Delegation Toolkit
2+
title: Delegation Toolkit introduction
33
sidebar_label: Introduction
44
description: High-level overview of the Delegation Toolkit, its benefits, and where to start in the documentation.
55
sidebar_position: 1
66
---
77

88
import CardList from "@site/src/components/CardList"
99

10-
# MetaMask Delegation Toolkit
10+
# Embed smart accounts using the Delegation Toolkit
1111

1212
The MetaMask Delegation Toolkit is a [Viem](https://viem.sh/)-based collection of tools for integrating
1313
embedded smart contract wallets, known as [MetaMask smart accounts](concepts/smart-accounts.md),

delegation-toolkit/reference/api/experimental-actions/wallet-client.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ if (accountMetadata?.length !== 0) {
123123

124124
// This transaction will deploy the delegator account.
125125
const hash = walletClient.sendTransaction({
126-
to: accountMetadata.factory,
127-
data: accountMetadata.factoryData,
126+
to: accountMetadata[0].factory,
127+
data: accountMetadata[0].factoryData,
128128
});
129129

130130
// You should wait for transaction to be successfully executed.

developer-tools/dashboard/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
22
sidebar_label: Introduction
3+
title: Developer dashboard introduction
34
description: Documentation for using the MetaMask Developer dashboard
45
sidebar_position: 1
56
---
67

78
import CardList from '@site/src/components/CardList'
89
import Banner from '@site/src/components/Banner'
910

10-
# Developer dashboard documentation
11+
# Introduction
1112

1213
The [MetaMask Developer dashboard](https://developer.metamask.io/) provides developers with a
1314
comprehensive overview and control of their Infura service.

docusaurus.config.js

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ const codeTheme = themes.dracula
1515
const remarkCodesandbox = require('remark-codesandbox')
1616
const isProd = process.env.NODE_ENV === 'production'
1717
const helpDropdown = fs.readFileSync("./src/components/NavDropdown/DeveloperTools.html", "utf-8");
18+
const connectDropdown = fs.readFileSync("./src/components/NavDropdown/ConnectMetaMask.html", "utf-8");
19+
const embedDropdown = fs.readFileSync("./src/components/NavDropdown/EmbedMetaMask.html", "utf-8");
20+
const extendDropdown = fs.readFileSync("./src/components/NavDropdown/ExtendScale.html", "utf-8");
1821
/** @type {import('@docusaurus/types').Config} */
1922
const config = {
2023
title: 'MetaMask developer documentation',
@@ -212,46 +215,53 @@ const config = {
212215
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
213216
({
214217
metadata: [
215-
{
216-
name: 'og:image',
217-
content: '/img/metamaskog.jpeg'
218-
},
219218
{
220219
name: "keywords",
221220
content: "MetaMask, SDK, Wallet, API, Dapp, App, Connect, Delegation, Toolkit, Documentation, Smart, Account, Snaps, Infura, Services, Dashboard",
222221
},
223222
],
223+
image: '/img/metamaskog.jpeg',
224224
colorMode: {
225225
respectPrefersColorScheme: true,
226226
},
227227
navbar: {
228-
title: ' │ ‎ Documentation',
229228
logo: {
230229
alt: 'MetaMask logo',
231230
src: 'img/metamask-logo.svg',
232231
srcDark: 'img/metamask-logo-dark.svg',
233232
width: 150,
234233
},
234+
hideOnScroll: true,
235235
items: [
236236
{
237-
to: 'sdk',
238-
label: 'SDK',
239-
},
240-
{
241-
to: 'wallet',
242-
label: 'Wallet API',
243-
},
244-
{
245-
to: 'delegation-toolkit',
246-
label: 'Delegation Toolkit',
237+
type: 'dropdown',
238+
label: 'Connect to MetaMask',
239+
items: [
240+
{
241+
type: "html",
242+
value: connectDropdown,
243+
},
244+
],
247245
},
248246
{
249-
to: 'snaps',
250-
label: 'Snaps',
247+
type: 'dropdown',
248+
label: 'Embed MetaMask',
249+
items: [
250+
{
251+
type: "html",
252+
value: embedDropdown,
253+
},
254+
],
251255
},
252256
{
253-
to: 'services',
254-
label: 'Services',
257+
type: 'dropdown',
258+
label: 'Extend and scale',
259+
items: [
260+
{
261+
type: "html",
262+
value: extendDropdown,
263+
},
264+
],
255265
},
256266
{
257267
type: 'dropdown',
@@ -333,15 +343,15 @@ const config = {
333343
href: 'https://github.com/MetaMask/metamask-docs',
334344
},
335345
{
336-
label: 'MetaMask wallet GitHub',
346+
label: 'MetaMask extension GitHub',
337347
href: 'https://github.com/MetaMask/metamask-extension/',
338348
},
339349
{
340350
label: 'MetaMask SDK GitHub',
341351
href: 'https://github.com/MetaMask/metamask-sdk/',
342352
},
343353
{
344-
label: 'MetaMask Mobile GitHub',
354+
label: 'MetaMask mobile GitHub',
345355
href: 'https://github.com/MetaMask/metamask-mobile',
346356
},
347357
{

gator_versioned_docs/version-0.10.0/changelog/0.10.0.md

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

0 commit comments

Comments
 (0)