Skip to content

Commit d40013d

Browse files
Merge branch 'ethereum:dev' into dev
2 parents 9b110bf + 66100fb commit d40013d

File tree

803 files changed

+25529
-26355
lines changed

Some content is hidden

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

803 files changed

+25529
-26355
lines changed

.all-contributorsrc

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12398,6 +12398,105 @@
1239812398
"contributions": [
1239912399
"content"
1240012400
]
12401+
},
12402+
{
12403+
"login": "yannggg",
12404+
"name": "Yann Gerardi",
12405+
"avatar_url": "https://avatars.githubusercontent.com/u/29145014?v=4",
12406+
"profile": "https://www.mtpelerin.com",
12407+
"contributions": [
12408+
"code"
12409+
]
12410+
},
12411+
{
12412+
"login": "panditdhamdhere",
12413+
"name": "Pandit Dhamdhere",
12414+
"avatar_url": "https://avatars.githubusercontent.com/u/85685981?v=4",
12415+
"profile": "https://github.com/panditdhamdhere",
12416+
"contributions": [
12417+
"code"
12418+
]
12419+
},
12420+
{
12421+
"login": "ferreiramarcelo",
12422+
"name": "M@rC3L0",
12423+
"avatar_url": "https://avatars.githubusercontent.com/u/11818521?v=4",
12424+
"profile": "http://linkedin.com/in/fmarcelo",
12425+
"contributions": [
12426+
"ideas"
12427+
]
12428+
},
12429+
{
12430+
"login": "Refdeveloper",
12431+
"name": "DevOFtoken",
12432+
"avatar_url": "https://avatars.githubusercontent.com/u/87125773?v=4",
12433+
"profile": "https://github.com/Refdeveloper",
12434+
"contributions": [
12435+
"ideas"
12436+
]
12437+
},
12438+
{
12439+
"login": "vvvvvv1vvvvvv",
12440+
"name": "vvvvvv1vvvvvv",
12441+
"avatar_url": "https://avatars.githubusercontent.com/u/86296331?v=4",
12442+
"profile": "https://github.com/vvvvvv1vvvvvv",
12443+
"contributions": [
12444+
"doc"
12445+
]
12446+
},
12447+
{
12448+
"login": "abraj",
12449+
"name": "Abhishek Raj",
12450+
"avatar_url": "https://avatars.githubusercontent.com/u/8170980?v=4",
12451+
"profile": "https://raj.me",
12452+
"contributions": [
12453+
"content"
12454+
]
12455+
},
12456+
{
12457+
"login": "p1kalys",
12458+
"name": "Pavan Emani",
12459+
"avatar_url": "https://avatars.githubusercontent.com/u/85685112?v=4",
12460+
"profile": "https://github.com/p1kalys",
12461+
"contributions": [
12462+
"content"
12463+
]
12464+
},
12465+
{
12466+
"login": "makoshan",
12467+
"name": "Mako Shan",
12468+
"avatar_url": "https://avatars.githubusercontent.com/u/7024451?v=4",
12469+
"profile": "https://v2eth.com/",
12470+
"contributions": [
12471+
"content"
12472+
]
12473+
},
12474+
{
12475+
"login": "cratiu222",
12476+
"name": "Christina",
12477+
"avatar_url": "https://avatars.githubusercontent.com/u/156356273?v=4",
12478+
"profile": "https://github.com/cratiu222",
12479+
"contributions": [
12480+
"content"
12481+
]
12482+
},
12483+
{
12484+
"login": "nipunh",
12485+
"name": "Nipun Hedaoo",
12486+
"avatar_url": "https://avatars.githubusercontent.com/u/26524611?v=4",
12487+
"profile": "https://github.com/nipunh",
12488+
"contributions": [
12489+
"code"
12490+
]
12491+
},
12492+
{
12493+
"login": "chenjiali-april",
12494+
"name": "april",
12495+
"avatar_url": "https://avatars.githubusercontent.com/u/132745538?v=4",
12496+
"profile": "https://github.com/chenjiali-april",
12497+
"contributions": [
12498+
"doc"
12499+
]
1240112500
}
1240212501
],
1240312502
"contributorsPerLine": 7,

.env.example

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@ BUILD_LOCALES=
3535
# fixed number of CPUs (e.g. 2) to limit the demand during build time
3636
LIMIT_CPUS=
3737

38-
# Sentry auth token required for error tracking
39-
SENTRY_AUTH_TOKEN=
40-
NEXT_PUBLIC_SENTRY_DSN=
41-
4238
# Enables the bundle analyzer
4339
ANALYZE=false

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
// Other relative imports. Put same-folder imports and `.` last.
4343
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
4444
// Style imports.
45-
["^.+s?css$"],
45+
["^.+\\.s?css$"],
4646
// Side effect imports.
4747
["^\\u0000"]
4848
]

.github/workflows/wallets-check.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Check Wallet Data for new_to_crypto
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "src/data/wallets/wallet-data.ts"
7+
8+
jobs:
9+
check_new_to_crypto:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
15+
- name: Check for new_to_crypto
16+
id: check_new_to_crypto
17+
run: |
18+
if git diff --name-only HEAD^ | grep -q "data/wallets/wallet-data.ts"; then
19+
if git diff -U0 HEAD^ HEAD data/wallets/wallet-data.ts | grep -q "+.*new_to_crypto: true"; then
20+
echo "New wallet added with 'new_to_crypto: true'"
21+
echo "new_to_crypto_found=true" >> $GITHUB_OUTPUT
22+
else
23+
echo "new_to_crypto_found=false" >> $GITHUB_OUTPUT
24+
fi
25+
fi
26+
27+
- name: Comment on PR if new_to_crypto is added
28+
if: steps.check_new_to_crypto.outputs.new_to_crypto_found == 'true'
29+
uses: actions-ecosystem/action-add-comment@v1
30+
with:
31+
github-token: ${{ secrets.GITHUB_TOKEN }}
32+
body: "A wallet has been added with 'new_to_crypto: true'. Please ensure this meets our guidelines."

.storybook/i18next.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const ns = [
2222
"page-developers-index",
2323
"page-what-is-ethereum",
2424
"page-upgrades-index",
25+
"page-developers-docs",
2526
] as const
2627
const supportedLngs = Object.keys(baseLocales)
2728

.storybook/modes.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import pickBy from "lodash/pickBy"
2+
13
import { baseLocales } from "./i18next"
24
import { breakpointSet } from "./preview"
35

@@ -12,7 +14,9 @@ export const viewportModes = breakpointSet.reduce<{
1214
}
1315
}, {})
1416

15-
export const langModes = Object.keys(baseLocales).reduce<{
17+
const localesToTest = ["en", "fa"]
18+
const locales = pickBy(baseLocales, (_, key) => localesToTest.includes(key))
19+
export const langModes = Object.keys(locales).reduce<{
1620
[locale: string]: { locale: string }
1721
}>((arr, curr) => {
1822
return {

.storybook/preview.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import isChromatic from "chromatic/isChromatic"
22
import { MotionGlobalConfig } from "framer-motion"
3-
import { withThemeByDataAttribute } from "@storybook/addon-themes"
43
import type { Preview } from "@storybook/react"
54

65
import ThemeProvider from "@/components/ThemeProvider"
6+
import { TooltipProvider } from "@/components/ui/tooltip"
77

88
import i18n, { baseLocales } from "./i18next"
9+
import { withNextThemes } from "./withNextThemes"
910

10-
import "@docsearch/css"
1111
import "../src/styles/global.css"
1212
import "../src/styles/fonts.css"
1313
import "../src/styles/docsearch.css"
1414

15+
import "@docsearch/css"
16+
1517
MotionGlobalConfig.skipAnimations = isChromatic()
1618

1719
export const breakpointSet: [token: string, value: string][] = [
@@ -29,7 +31,7 @@ const preview: Preview = {
2931
locales: baseLocales,
3032
},
3133
decorators: [
32-
withThemeByDataAttribute({
34+
withNextThemes({
3335
themes: {
3436
light: "light",
3537
dark: "dark",
@@ -38,7 +40,9 @@ const preview: Preview = {
3840
}),
3941
(Story) => (
4042
<ThemeProvider>
41-
<Story />
43+
<TooltipProvider>
44+
<Story />
45+
</TooltipProvider>
4246
</ThemeProvider>
4347
),
4448
],

.storybook/withNextThemes.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { useEffect } from "react"
2+
import { useTheme } from "next-themes"
3+
import {
4+
type DataAttributeStrategyConfiguration,
5+
DecoratorHelpers,
6+
} from "@storybook/addon-themes"
7+
import type { Decorator } from "@storybook/react/*"
8+
9+
const { initializeThemeState, pluckThemeFromContext } = DecoratorHelpers
10+
11+
export const withNextThemes = ({
12+
themes,
13+
defaultTheme,
14+
}: DataAttributeStrategyConfiguration): Decorator => {
15+
initializeThemeState(Object.keys(themes), defaultTheme)
16+
17+
return (getStory, context) => {
18+
const selectedTheme = pluckThemeFromContext(context)
19+
const selected = selectedTheme || defaultTheme
20+
const { setTheme } = useTheme()
21+
22+
useEffect(() => {
23+
setTheme(selected)
24+
}, [selected, setTheme])
25+
26+
return getStory(context)
27+
}
28+
}

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Netlify Status](https://api.netlify.com/api/v1/badges/e8f2e766-888b-4954-8500-1b647d84db99/deploy-status)](https://app.netlify.com/sites/ethereumorg/deploys)
22
[![All Contributors](https://img.shields.io/github/all-contributors/ethereum/ethereum-org-website?color=orange&style=flat-square)](#contributors-)
33
[![Discord](https://img.shields.io/discord/714888181740339261?color=1C1CE1&label=ethereum.org%20%7C%20Discord%20%F0%9F%91%8B%20&style=flat-square)](https://discord.gg/ethereum-org)
4-
[![Twitter Follow](https://img.shields.io/twitter/follow/ethdotorg.svg?style=social)](https://twitter.com/ethdotorg)
4+
[![Twitter Follow](https://img.shields.io/twitter/follow/ethdotorg.svg?style=social)](https://x.com/ethdotorg)
55
[![Crowdin](https://badges.crowdin.net/ethereum-org/localized.svg)](https://crowdin.com/project/ethereum-org)
66
[![gitpoap badge](https://public-api.gitpoap.io/v1/repo/ethereum/ethereum-org-website/badge)](https://www.gitpoap.io/gh/ethereum/ethereum-org-website)
77

@@ -119,7 +119,7 @@ git push
119119
- In your PR description, reference the issue it resolves (see [linking a pull request to an issue using a keyword](https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword))
120120
- ex. `Updates out of date content [Fixes #1234]`
121121
- Netlify (our hosting service for build previews) deploys all PRs to a publicly accessible preview URL, e.g.: ![Netlify deploy preview](public/images/preview-deploy.png)
122-
- _Confirm your Netlify preview deploy looks & functions as expected_
122+
- _Confirm that your Netlify preview deploy looks and functions as expected_
123123
- Why not say hi and draw attention to your PR in [our discord server](https://discord.gg/ethereum-org)?
124124

125125
### 6. Wait for review
@@ -1896,6 +1896,21 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
18961896
<td align="center" valign="top" width="14.28%"><a href="https://github.com/sanjanaynvsdl"><img src="https://avatars.githubusercontent.com/u/142678317?v=4?s=100" width="100px;" alt="Sanjana"/><br /><sub><b>Sanjana</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Asanjanaynvsdl" title="Bug reports">🐛</a></td>
18971897
<td align="center" valign="top" width="14.28%"><a href="https://www.zaryabs.com/"><img src="https://avatars.githubusercontent.com/u/42082608?v=4?s=100" width="100px;" alt="Zaryab"/><br /><sub><b>Zaryab</b></sub></a><br /><a href="#content-zaryab2000" title="Content">🖋</a></td>
18981898
</tr>
1899+
<tr>
1900+
<td align="center" valign="top" width="14.28%"><a href="https://www.mtpelerin.com"><img src="https://avatars.githubusercontent.com/u/29145014?v=4?s=100" width="100px;" alt="Yann Gerardi"/><br /><sub><b>Yann Gerardi</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=yannggg" title="Code">💻</a></td>
1901+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/panditdhamdhere"><img src="https://avatars.githubusercontent.com/u/85685981?v=4?s=100" width="100px;" alt="Pandit Dhamdhere"/><br /><sub><b>Pandit Dhamdhere</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=panditdhamdhere" title="Code">💻</a></td>
1902+
<td align="center" valign="top" width="14.28%"><a href="http://linkedin.com/in/fmarcelo"><img src="https://avatars.githubusercontent.com/u/11818521?v=4?s=100" width="100px;" alt="M@rC3L0"/><br /><sub><b>M@rC3L0</b></sub></a><br /><a href="#ideas-ferreiramarcelo" title="Ideas, Planning, & Feedback">🤔</a></td>
1903+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Refdeveloper"><img src="https://avatars.githubusercontent.com/u/87125773?v=4?s=100" width="100px;" alt="DevOFtoken"/><br /><sub><b>DevOFtoken</b></sub></a><br /><a href="#ideas-Refdeveloper" title="Ideas, Planning, & Feedback">🤔</a></td>
1904+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/vvvvvv1vvvvvv"><img src="https://avatars.githubusercontent.com/u/86296331?v=4?s=100" width="100px;" alt="vvvvvv1vvvvvv"/><br /><sub><b>vvvvvv1vvvvvv</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=vvvvvv1vvvvvv" title="Documentation">📖</a></td>
1905+
<td align="center" valign="top" width="14.28%"><a href="https://raj.me"><img src="https://avatars.githubusercontent.com/u/8170980?v=4?s=100" width="100px;" alt="Abhishek Raj"/><br /><sub><b>Abhishek Raj</b></sub></a><br /><a href="#content-abraj" title="Content">🖋</a></td>
1906+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/p1kalys"><img src="https://avatars.githubusercontent.com/u/85685112?v=4?s=100" width="100px;" alt="Pavan Emani"/><br /><sub><b>Pavan Emani</b></sub></a><br /><a href="#content-p1kalys" title="Content">🖋</a></td>
1907+
</tr>
1908+
<tr>
1909+
<td align="center" valign="top" width="14.28%"><a href="https://v2eth.com/"><img src="https://avatars.githubusercontent.com/u/7024451?v=4?s=100" width="100px;" alt="Mako Shan"/><br /><sub><b>Mako Shan</b></sub></a><br /><a href="#content-makoshan" title="Content">🖋</a></td>
1910+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/cratiu222"><img src="https://avatars.githubusercontent.com/u/156356273?v=4?s=100" width="100px;" alt="Christina"/><br /><sub><b>Christina</b></sub></a><br /><a href="#content-cratiu222" title="Content">🖋</a></td>
1911+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/nipunh"><img src="https://avatars.githubusercontent.com/u/26524611?v=4?s=100" width="100px;" alt="Nipun Hedaoo"/><br /><sub><b>Nipun Hedaoo</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=nipunh" title="Code">💻</a></td>
1912+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/chenjiali-april"><img src="https://avatars.githubusercontent.com/u/132745538?v=4?s=100" width="100px;" alt="april"/><br /><sub><b>april</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=chenjiali-april" title="Documentation">📖</a></td>
1913+
</tr>
18991914
</tbody>
19001915
</table>
19011916

instrumentation.ts

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

0 commit comments

Comments
 (0)