Skip to content

Commit 0ab61c9

Browse files
authored
Merge branch 'ethereum:dev' into 13199-node-clients
2 parents 540e55c + 6bcd149 commit 0ab61c9

File tree

3,744 files changed

+219958
-108649
lines changed

Some content is hidden

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

3,744 files changed

+219958
-108649
lines changed

.all-contributorsrc

Lines changed: 378 additions & 3 deletions
Large diffs are not rendered by default.

.env.example

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
# GOOGLE_API_KEY=
1717
# GOOGLE_CALENDAR_ID=
1818

19+
# Dune Analytics API key (required for total eth staked)
20+
# DUNE_API_KEY=
21+
1922
# Matomo environment (URL and site ID required for analytics)
2023
NEXT_PUBLIC_MATOMO_URL=
2124
NEXT_PUBLIC_MATOMO_SITE_ID=
@@ -30,4 +33,11 @@ BUILD_LOCALES=
3033

3134
# If resource constraints are being hit during builds, change LIMIT_CPUS to a
3235
# fixed number of CPUs (e.g. 2) to limit the demand during build time
33-
LIMIT_CPUS=
36+
LIMIT_CPUS=
37+
38+
# Enables the bundle analyzer
39+
ANALYZE=false
40+
41+
# Use mock data for development. Set to "false" to use live data but you must have the
42+
# environment variables set to make api requests
43+
USE_MOCK_DATA=true

.eslintrc.json

Lines changed: 24 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99
"env": {
1010
"es6": true
1111
},
12-
"plugins": [
13-
"simple-import-sort",
14-
"@typescript-eslint",
15-
"unused-imports"
16-
],
12+
"plugins": ["simple-import-sort", "@typescript-eslint", "unused-imports"],
1713
"parser": "@typescript-eslint/parser",
1814
"rules": {
1915
"simple-import-sort/imports": [
@@ -26,55 +22,29 @@
2622
],
2723
// Packages. `react` related packages come first.
2824
// Also, put `react-icons` in sorting order not with `react`
29-
[
30-
"^react(?!-.)$",
31-
"^\\w",
32-
"^@\\w"
33-
],
25+
["^react(?!-.)$", "^\\w", "^@\\w"],
3426
// The Chakra theme directory if imported to story file or other places
35-
[
36-
"^@/@chakra-ui"
37-
],
27+
["^@/@chakra-ui"],
3828
// From the `types` directory.
39-
[
40-
"^@/lib/types",
41-
"^@/lib/interfaces"
42-
],
29+
["^@/lib/types", "^@/lib/interfaces"],
4330
// From the `components` directory.
44-
[
45-
"^@/components"
46-
],
31+
["^@/components"],
4732
// From the `utils` directory.
48-
[
49-
"^@/lib/utils"
50-
],
33+
["^@/lib/utils"],
5134
// From the `data` directory.
52-
[
53-
"^@/data"
54-
],
35+
["^@/data"],
5536
// From the `constants` directory.
5637
["^@/lib/constants"],
5738
// From the `.storybook/utils` file
5839
["^@/storybook-utils"],
5940
// Parent imports. Put `..` last.
60-
[
61-
"^\\.\\.(?!/?$)",
62-
"^\\.\\./?$"
63-
],
41+
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
6442
// Other relative imports. Put same-folder imports and `.` last.
65-
[
66-
"^\\./(?=.*/)(?!/?$)",
67-
"^\\.(?!/?$)",
68-
"^\\./?$"
69-
],
43+
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
7044
// Style imports.
71-
[
72-
"^.+\\.s?css$"
73-
],
45+
["^.+\\.s?css$"],
7446
// Side effect imports.
75-
[
76-
"^\\u0000"
77-
]
47+
["^\\u0000"]
7848
]
7949
}
8050
],
@@ -89,13 +59,23 @@
8959
],
9060
"unused-imports/no-unused-vars": [
9161
"error",
92-
{
62+
{
9363
"args": "all",
9464
"argsIgnorePattern": "^_$",
9565
"varsIgnorePattern": "^_$"
9666
}
9767
],
98-
"unused-imports/no-unused-imports-ts": "warn"
68+
"unused-imports/no-unused-imports-ts": "warn",
69+
"no-restricted-imports": [
70+
"warn",
71+
{
72+
"paths": [
73+
{
74+
"name": "react-i18next",
75+
"message": "Please use next-i18next instead of react-i18next."
76+
}
77+
]
78+
}
79+
]
9980
}
10081
}
101-

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# These owners will be the default owners for everything in
77
# the repo. Unless a later match takes precedence,
8-
* @wackerow @corwintines @pettinarip @minimalsm @nhsz
8+
* @wackerow @corwintines @pettinarip @minimalsm
99

1010
# Owners of specific files
1111
/src/data/consensus-bounty-hunters.json @djrtwo @asanso @fredriksvantes

.github/ISSUE_TEMPLATE/suggest_wallet.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ body:
264264
- type: input
265265
id: wallet_l2_support
266266
attributes:
267-
label: Does the wallet support Ethereum layer 2 networks?
267+
label: Which Ethereum Layer 2 networks does the wallet support?
268268
description: Please provide documentation on Ethereum layer 2 networks this wallet supports.
269269
validations:
270270
required: true

.github/workflows/chromatic.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ on:
1717
- "src/layouts/**/*"
1818
- "src/@chakra-ui/**/*"
1919
- ".storybook/**/*"
20+
- "tailwind.config.ts"
21+
- "src/styles/**/*"
2022

2123
# List of jobs
2224
jobs:

.github/workflows/non-english-warning.yml

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

.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."

.lintstagedrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ const buildEslintCommand = (filenames) =>
55
.map((f) => path.relative(process.cwd(), f))
66
.join(" --file ")}`
77

8+
const formatCommand = "prettier --write"
9+
810
module.exports = {
9-
"*.{js,jsx,ts,tsx}": [buildEslintCommand],
11+
"*.{js,jsx,ts,tsx}": [buildEslintCommand, formatCommand],
1012
}

.prettierrc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"semi": false,
44
"singleQuote": false,
55
"tabWidth": 2,
6-
"trailingComma": "es5"
7-
}
6+
"trailingComma": "es5",
7+
"plugins": [
8+
"prettier-plugin-tailwindcss"
9+
]
10+
}

0 commit comments

Comments
 (0)