Skip to content

Commit 57a46c3

Browse files
authored
Merge branch 'main' into 2483-embedded-wallets-pass
2 parents 237a8ee + 8fc2621 commit 57a46c3

File tree

118 files changed

+7688
-4538
lines changed

Some content is hidden

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

118 files changed

+7688
-4538
lines changed

.linkspector.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ ignorePatterns:
3232
- pattern: '^/snaps/'
3333
- pattern: '^/wallet/'
3434
- pattern: '^/tutorials/'
35+
- pattern: 'https://web3onboard.thirdweb.com'
36+
- pattern: 'https://0xfury.com/privacy'
3537
aliveStatusCodes:
3638
- 200
3739
- 206

CONTRIBUTING.md

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ guide in some places.
1010
- [Contribution workflow](#contribution-workflow)
1111
- [Preview locally](#preview-locally)
1212
- [Style guide](#style-guide)
13+
- [Format links](#format-links)
1314
- [Add images](#add-images)
1415
- [Update the interactive API reference](#update-the-interactive-api-reference)
1516
- [Update `MetaMask/api-specs`](#update-metamaskapi-specs)
@@ -71,10 +72,10 @@ To contribute changes:
7172

7273
> **Notes:**
7374
>
74-
> - All documentation content is located in the `wallet`, `sdk`, `snaps`, `services`, and
75-
> `developer-tools` directories.
76-
> - If you add a new documentation page, edit `wallet-sidebar.js`, `sdk-sidebar.js`, `snaps-sidebar.js`,
77-
> `services-sidebar.js`, or `dashboard-sidebar.js` to add the page to the
75+
> - All documentation content is located in the `sdk`, `wallet`, `embedded-wallets`, `smart-accounts-kit`, `services`,
76+
> `developer-tools`, `snaps`, and `src/pages` directories.
77+
> - If you add a new documentation page, edit `sdk-sidebar.js`, `wallet-sidebar.js`, `ew-sidebar.js`, `gator-sidebar.js`,
78+
> `services-sidebar.js`, `dashboard-sidebar.js`, or `snaps-sidebar.js` to add the page to the
7879
> [sidebar](https://docs-template.consensys.io/create/configure-docusaurus#sidebar).
7980
> - If you delete, rename, or move a documentation file, add a
8081
> [redirect](https://vercel.com/docs/edge-network/redirects#configuration-redirects).
@@ -116,10 +117,38 @@ To contribute changes:
116117

117118
Refer to the [Consensys documentation style guide](https://docs-template.consensys.net/contribute/style-guide).
118119

120+
## Format links
121+
122+
Most links in the Markdown pages use *relative file paths*, for example:
123+
124+
```md
125+
You can enable users to create a [MetaMask smart account](../../concepts/smart-accounts.md) directly in your dapp.
126+
```
127+
128+
However, when linking between different product sections or using the `CardList` component, use *absolute URL paths*. For example:
129+
130+
```md
131+
When a dapp requests to submit a batch of transactions atomically, MetaMask may prompt users to upgrade their
132+
externally owned account (EOA) to a [MetaMask smart account](/smart-accounts-kit/concepts/smart-accounts).
133+
```
134+
135+
```md
136+
<CardList
137+
items={[
138+
{
139+
href: '/snaps/learn/about-snaps',
140+
title: 'About Snaps',
141+
description: 'See a high-level, technical overview of the Snaps system.',
142+
},
143+
...
144+
]}
145+
/>
146+
```
147+
119148
## Add images
120149

121-
All images are located in the `wallet/assets`, `sdk/_assets`, `snaps/assets`, `services/images`, and
122-
`developer-tools/images` directories.
150+
All images are located in the `sdk/_assets`, `wallet/assets`, `smart-accounts-kit/assets`, `services/images`,
151+
`developer-tools/images`, `snaps/assets`, and `static/img` directories.
123152
When adding a new image, such as a screenshot or diagram, make sure the image has a white or
124153
`#1b1b1d` color background in order for it to be compatible with the site's light and dark modes.
125154

developer-tools/dashboard/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ Select one of the cards below to learn more about using the dashboard.
2424
<CardList
2525
items={[
2626
{
27-
href: "./get-started/create-api",
27+
href: "/developer-tools/dashboard/get-started/create-api",
2828
title: "Create an API key",
2929
description: "Learn how to create an API key that allows you to make API calls."
3030
},
3131
{
32-
href: "./how-to/secure-an-api/api-key",
32+
href: "/developer-tools/dashboard/how-to/secure-an-api/api-key",
3333
title: "Secure your API key",
3434
description: "Learn how to secure your API key to avoid unwanted costs and unauthorized access."
3535
},
3636
{
37-
href: "./how-to/dashboard-stats",
37+
href: "/developer-tools/dashboard/how-to/dashboard-stats",
3838
title: "Monitor API call stats",
3939
description: "Learn how to use the dashboard to view API call stats."
4040
}

docusaurus.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ const config = {
213213
sidebarCollapsed: false,
214214
includeCurrentVersion: true,
215215
// Set to the latest release.
216-
lastVersion: '0.13.0',
216+
lastVersion: '0.1.0',
217217
versions: {
218218
// Defaults to the ./docs folder.
219219
// Using "development" instead of "next" as path.
@@ -222,8 +222,8 @@ const config = {
222222
path: 'development',
223223
},
224224
// The latest release.
225-
'0.13.0': {
226-
label: 'latest (0.13.0)',
225+
'0.1.0': {
226+
label: 'latest (0.1.0)',
227227
},
228228
},
229229
},

embedded-wallets/dashboard/advanced/key-export.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Private key export functionality allows applications to retrieve users' private
2525

2626
**Programmatic Export (Configurable):**
2727

28-
- Access via `eth_private_key` JSON-RPC method
28+
- Access via `private_key` JSON-RPC method
2929
- Requires explicit user consent
3030
- Can be enabled/disabled per project
3131
- Controlled through dashboard settings
@@ -70,7 +70,7 @@ if ((await web3auth.status) !== 'connected') {
7070
// Request private key (requires user consent)
7171
try {
7272
const privateKey = await web3auth.provider.request({
73-
method: 'eth_private_key',
73+
method: 'private_key',
7474
})
7575

7676
// Handle the private key securely
@@ -99,7 +99,7 @@ class SecureKeyManager {
9999

100100
// Retrieve private key
101101
const privateKey = await web3auth.provider.request({
102-
method: 'eth_private_key',
102+
method: 'private_key',
103103
})
104104

105105
// Process key securely (encrypt, transmit, etc.)

0 commit comments

Comments
 (0)