Skip to content

Commit 57a7cf1

Browse files
committedSep 23, 2024··
fix: linting, frontend packages version bump
1 parent a941696 commit 57a7cf1

File tree

9 files changed

+1143
-694
lines changed

9 files changed

+1143
-694
lines changed
 

‎.github/workflows/sonarcloud.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Harden Runner
23-
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
23+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
2424
with:
2525
egress-policy: audit
2626

27-
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
27+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2828
with:
2929
# Disabling shallow clone is recommended for improving relevancy of reporting
3030
fetch-depth: 0
31+
3132
- name: SonarCloud Scan
32-
uses: sonarsource/sonarcloud-github-action@9c0534dd12d09f22d69fbb301a1955249e49d910 # master
33+
uses: sonarsource/sonarcloud-github-action@eb211723266fe8e83102bac7361f0a05c3ac1d1b # v3.0.0
3334
env:
3435
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3536
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

‎.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# misc
2+
.DS_Store
3+
.env
4+
.env.test
5+
.env.testnet
6+
.env.devnet
7+
.env.local
8+
.env.development.local
9+
.env.test.local
10+
.env.production.local
11+
12+
113
#------------------------------------
214
# FILE GENERATED AS FOLLOWS
315
# curl -sL https://www.toptal.com/developers/gitignore/api/vim,node,visualstudiocode,yarn | sed 's|\(!.yarn/cache\)|#\1|' > .gitignore

‎.vscode/settings.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@
1010
],
1111
"prettier.configPath": ".prettierrc.json",
1212
"eslint.alwaysShowStatus": true,
13-
"eslint.packageManager": "yarn"
13+
"eslint.packageManager": "yarn",
14+
"shellcheck.customArgs": [
15+
"--external-sources"
16+
]
1417
}

‎contracts/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kleros/vea-contracts",
3-
"version": "0.1.14",
3+
"version": "0.4.0",
44
"description": "Smart contracts for Vea",
55
"repository": {
66
"type": "git",
@@ -79,7 +79,7 @@
7979
"@typescript-eslint/parser": "^5.59.1",
8080
"chai": "^4.3.7",
8181
"chai-ethers": "^0.0.1",
82-
"dotenv": "^16.0.3",
82+
"dotenv": "^16.4.5",
8383
"ethereumjs-util": "^7.1.5",
8484
"ethers": "^5.7.2",
8585
"hardhat": "^2.14.0",
@@ -93,11 +93,11 @@
9393
"hardhat-watcher": "^2.5.0",
9494
"json-schema": "^0.4.0",
9595
"mocha": "^10.2.0",
96-
"node-fetch": "^3.3.1",
96+
"node-fetch": "^3.3.2",
9797
"shelljs": "^0.8.5",
9898
"solhint": "^3.4.1",
9999
"solidity-coverage": "^0.8.2",
100-
"ts-node": "^10.9.1",
100+
"ts-node": "^10.9.2",
101101
"typechain": "^8.1.1",
102102
"typescript": "^4.9.5"
103103
}

‎relayer-cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"@kleros/vea-contracts": "workspace:^",
1717
"@typechain/ethers-v5": "^10.2.0",
18-
"dotenv": "^16.0.3",
18+
"dotenv": "^16.4.5",
1919
"pm2": "^5.2.2",
2020
"typescript": "^4.9.5",
2121
"web3": "^1.10.4",

‎validator-cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@flashbots/ethers-provider-bundle": "^0.6.2",
2020
"@kleros/vea-contracts": "workspace:^",
2121
"@typechain/ethers-v5": "^10.2.0",
22-
"dotenv": "^16.0.3",
22+
"dotenv": "^16.4.5",
2323
"pm2": "^5.2.2",
2424
"typescript": "^4.9.5",
2525
"web3": "^1.10.4",

‎veascan-web/package.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"license": "MIT",
1616
"packageManager": "yarn@4.2.2",
1717
"volta": {
18-
"node": "18.20.3",
18+
"node": "18.20.4",
1919
"yarn": "4.2.2"
2020
},
2121
"alias": {
@@ -31,7 +31,7 @@
3131
"queries": "./src/hooks/queries"
3232
},
3333
"scripts": {
34-
"clean": "rm -rf dist/bundle.js .parcel-cache",
34+
"clean": "rm -rf dist/ .parcel-cache ../.parcel-cache",
3535
"start": "yarn start-devnet",
3636
"start-devnet": "scripts/runEnv.sh devnet 'yarn parcel'",
3737
"start-testnet": "scripts/runEnv.sh testnet 'yarn parcel'",
@@ -54,11 +54,11 @@
5454
"@graphql-codegen/client-preset": "^3.0.1",
5555
"@graphql-codegen/typescript": "^2.8.8",
5656
"@graphql-codegen/typescript-operations": "^2.5.13",
57-
"@parcel/transformer-svg-react": "^2.8.3",
58-
"@parcel/watcher": "^2.1.0",
59-
"@types/react": "^18.2.0",
60-
"@types/react-dom": "^18.2.1",
61-
"@types/styled-components": "^5.1.26",
57+
"@parcel/transformer-svg-react": "^2.12.0",
58+
"@parcel/watcher": "^2.4.1",
59+
"@types/react": "^18.3.8",
60+
"@types/react-dom": "^18.3.0",
61+
"@types/styled-components": "^5.1.34",
6262
"@typescript-eslint/eslint-plugin": "^5.59.1",
6363
"@typescript-eslint/parser": "^5.59.1",
6464
"@typescript-eslint/utils": "^5.59.1",
@@ -71,12 +71,12 @@
7171
"eslint-plugin-react-hooks": "^4.6.0",
7272
"eslint-plugin-security": "^1.7.1",
7373
"eslint-utils": "^3.0.0",
74-
"parcel": "^2.8.3",
74+
"parcel": "^2.12.0",
7575
"prettier": "^2.8.8",
7676
"typescript": "^4.9.5"
7777
},
7878
"dependencies": {
79-
"@kleros/ui-components-library": "^2.12.0",
79+
"@kleros/ui-components-library": "^2.14.0",
8080
"@kleros/vea-contracts": "workspace:^",
8181
"@sentry/react": "^7.37.2",
8282
"@sentry/tracing": "^7.37.2",
@@ -86,14 +86,14 @@
8686
"ethers": "^5.7.2",
8787
"graphql": "^16.8.1",
8888
"graphql-request": "^6.1.0",
89-
"react": "^18.2.0",
90-
"react-dom": "^18.2.0",
91-
"react-is": "^18.2.0",
89+
"react": "^18.3.1",
90+
"react-dom": "^18.3.1",
91+
"react-is": "^18.3.1",
9292
"react-jazzicon": "^1.0.4",
93-
"react-loading-skeleton": "^3.2.1",
94-
"react-router-dom": "^6.11.0",
95-
"react-use": "^17.4.0",
93+
"react-loading-skeleton": "^3.5.0",
94+
"react-router-dom": "^6.26.2",
95+
"react-use": "^17.5.1",
9696
"styled-components": "^5.3.10",
97-
"swr": "^2.1.3"
97+
"swr": "^2.2.5"
9898
}
9999
}

‎veascan-web/scripts/runEnv.sh

+8-7
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,27 @@ NC='\033[0m'
77

88
deployment="$1"
99
shift
10-
commands="$@"
10+
commands="$*"
1111

1212
if [[ -z "$deployment" ]]; then
13-
echo "usage: $(basename $0) <local|devnet|testnet|mainnet>"
13+
echo "usage: $(basename "$0") <local|devnet|testnet|mainnet>"
1414
exit 1
1515
fi
1616

1717
valid_deployments=("local" "devnet" "testnet" "mainnet")
18-
if [[ ! " ${valid_deployments[@]} " =~ " ${deployment} " ]]; then
19-
echo "Invalid deployment option. Please choose either: ${valid_deployments[@]}."
18+
if [[ ! " ${valid_deployments[*]} " =~ ${deployment} ]]; then
19+
echo "Invalid deployment option. Please choose either: ${valid_deployments[*]}."
2020
exit 1
2121
fi
2222

2323
function sourceEnvFile() { #envFile
2424
envFile="$1"
2525
if [ -f "$envFile" ]; then
26-
echo -e "${GREEN}${NC} $(basename $envFile)"
27-
. $envFile
26+
echo -e "${GREEN}${NC} $(basename "$envFile")"
27+
# shellcheck source=SCRIPTDIR/../.env.devnet
28+
. "$envFile"
2829
else
29-
echo -e "${RED}${NC} $(basename $envFile)"
30+
echo -e "${RED}${NC} $(basename "$envFile")"
3031
fi
3132
}
3233

‎yarn.lock

+1,093-661
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.