Skip to content

Commit 90c8b71

Browse files
authored
Merge branch 'dev' into feat/add-stake-set-event-and-type
2 parents 250ac14 + fd62531 commit 90c8b71

20 files changed

+460
-257
lines changed

.github/workflows/codeql.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
steps:
4040
- name: Harden Runner
41-
uses: step-security/harden-runner@446798f8213ac2e75931c1b0769676d927801858 # v2.10.3
41+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
4242
with:
4343
egress-policy: audit
4444

@@ -47,7 +47,7 @@ jobs:
4747

4848
# Initializes the CodeQL tools for scanning.
4949
- name: Initialize CodeQL
50-
uses: github/codeql-action/init@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
50+
uses: github/codeql-action/init@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1
5151
with:
5252
languages: ${{ matrix.language }}
5353
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -61,7 +61,7 @@ jobs:
6161
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
6262
# If this step fails, then you should remove it and run the build manually (see below)
6363
- name: Autobuild
64-
uses: github/codeql-action/autobuild@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
64+
uses: github/codeql-action/autobuild@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1
6565

6666
# ℹ️ Command-line programs to run using the OS shell.
6767
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -74,6 +74,6 @@ jobs:
7474
# ./location_of_script_within_repo/buildscript.sh
7575

7676
- name: Perform CodeQL Analysis
77-
uses: github/codeql-action/analyze@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
77+
uses: github/codeql-action/analyze@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1
7878
with:
7979
category: "/language:${{matrix.language}}"

.github/workflows/contracts-testing.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Harden Runner
27-
uses: step-security/harden-runner@446798f8213ac2e75931c1b0769676d927801858 # v2.10.3
27+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
2828
with:
2929
disable-sudo: true
3030
egress-policy: block
@@ -50,13 +50,13 @@ jobs:
5050
yarn set version 4.5.1
5151
5252
- name: Setup Node.js environment
53-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
53+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
5454
with:
5555
node-version: 20.x
5656
cache: yarn
5757

5858
- name: Cache node modules
59-
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
59+
uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
6060
env:
6161
cache-name: cache-node-modules
6262
with:
@@ -71,7 +71,7 @@ jobs:
7171
run: yarn workspace @kleros/kleros-v2-contracts install
7272

7373
- name: Install Foundry
74-
uses: foundry-rs/foundry-toolchain@8f1998e9878d786675189ef566a2e4bf24869773 # v1.2.0
74+
uses: foundry-rs/foundry-toolchain@de808b1eea699e761c404bda44ba8f21aba30b2c # v1.3.1
7575

7676
- name: Install lcov
7777
run: sudo apt-get install -y lcov
@@ -81,7 +81,7 @@ jobs:
8181
working-directory: contracts
8282

8383
- name: Upload a build artifact
84-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
84+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
8585
with:
8686
name: code-coverage-report
8787
path: contracts/coverage

.github/workflows/dependency-review.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Harden Runner
22-
uses: step-security/harden-runner@446798f8213ac2e75931c1b0769676d927801858 # v2.10.3
22+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
2323
with:
2424
disable-sudo: true
2525
egress-policy: block

.github/workflows/deploy-bots.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Harden Runner
11-
uses: step-security/harden-runner@446798f8213ac2e75931c1b0769676d927801858 # v2.10.3
11+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
1212
with:
1313
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
1414

.github/workflows/deploy-subgraph.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
environment: ${{ inputs.graph_environment }}
3636
steps:
3737
- name: Harden Runner
38-
uses: step-security/harden-runner@446798f8213ac2e75931c1b0769676d927801858 # v2.10.3
38+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
3939
with:
4040
egress-policy: audit
4141

.github/workflows/scorecards.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
steps:
3434
- name: Harden Runner
35-
uses: step-security/harden-runner@446798f8213ac2e75931c1b0769676d927801858 # v2.10.3
35+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
3636
with:
3737
disable-sudo: true
3838
egress-policy: block
@@ -56,7 +56,7 @@ jobs:
5656
persist-credentials: false
5757

5858
- name: "Run analysis"
59-
uses: ossf/scorecard-action@483ef80eb98fb506c348f7d62e28055e49fe2398 # v2.3.0
59+
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
6060
with:
6161
results_file: results.sarif
6262
results_format: sarif
@@ -78,14 +78,14 @@ jobs:
7878
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
7979
# format to the repository Actions tab.
8080
- name: "Upload artifact"
81-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
81+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
8282
with:
8383
name: SARIF file
8484
path: results.sarif
8585
retention-days: 5
8686

8787
# Upload the results to GitHub's code scanning dashboard.
8888
- name: "Upload to code-scanning"
89-
uses: github/codeql-action/upload-sarif@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
89+
uses: github/codeql-action/upload-sarif@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1
9090
with:
9191
sarif_file: results.sarif

.github/workflows/sentry-release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
version: ${{ steps.set-version.outputs.version }}
1818
steps:
1919
- name: Harden Runner
20-
uses: step-security/harden-runner@446798f8213ac2e75931c1b0769676d927801858 # v2.10.3
20+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
2121
with:
2222
disable-sudo: true
2323
egress-policy: block
@@ -44,13 +44,13 @@ jobs:
4444
yarn set version 4.5.1
4545
4646
- name: Setup Node.js environment
47-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
47+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
4848
with:
4949
node-version: 20.x
5050
cache: yarn
5151

5252
- name: Cache node modules
53-
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
53+
uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
5454
env:
5555
cache-name: cache-node-modules
5656
with:
@@ -72,7 +72,7 @@ jobs:
7272
working-directory: web
7373

7474
- name: Create Sentry release
75-
uses: getsentry/action-release@f6dfa3d84a1c740b94aa45255c5e032b744a095d # v1.9.0
75+
uses: getsentry/action-release@ffb64465339ef6fb868e2fc261318d78ae0ed8d9 # v1.10.5
7676
env:
7777
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
7878
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}

.github/workflows/sonarcloud.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Harden Runner
22-
uses: step-security/harden-runner@446798f8213ac2e75931c1b0769676d927801858 # v2.10.3
22+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
2323
with:
2424
egress-policy: audit
2525

contracts/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"node": ">=16.0.0"
1212
},
1313
"volta": {
14-
"node": "18.19.0"
14+
"node": "18.20.6"
1515
},
1616
"publishConfig": {
1717
"access": "public",
@@ -73,7 +73,7 @@
7373
"@kleros/kleros-v2-eslint-config": "workspace:^",
7474
"@kleros/kleros-v2-prettier-config": "workspace:^",
7575
"@kleros/kleros-v2-tsconfig": "workspace:^",
76-
"@logtail/pino": "^0.4.22",
76+
"@logtail/pino": "^0.5.0",
7777
"@nomicfoundation/hardhat-chai-matchers": "^2.0.8",
7878
"@nomicfoundation/hardhat-ethers": "^3.0.8",
7979
"@nomiclabs/hardhat-solhint": "^4.0.1",

kleros-app/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kleros/kleros-app",
3-
"version": "2.0.2",
3+
"version": "2.1.0",
44
"description": "Library for Kleros DApps with reusable abstractions and components.",
55
"repository": "[email protected]:kleros/kleros-v2.git",
66
"homepage": "https://github.com/kleros/kleros-v2/tree/master/kleros-app#readme",
@@ -14,7 +14,7 @@
1414
],
1515
"type": "module",
1616
"volta": {
17-
"node": "20.18.2"
17+
"node": "20.18.3"
1818
},
1919
"publishConfig": {
2020
"access": "public",
@@ -49,7 +49,7 @@
4949
"typescript": "^5.6.3",
5050
"vite": "^5.4.11",
5151
"vite-plugin-dts": "^4.3.0",
52-
"vite-plugin-node-polyfills": "^0.22.0",
52+
"vite-plugin-node-polyfills": "^0.23.0",
5353
"wagmi": "^2.14.0"
5454
},
5555
"dependencies": {

kleros-sdk/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kleros/kleros-sdk",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"description": "SDK for Kleros version 2",
55
"repository": "[email protected]:kleros/kleros-v2.git",
66
"homepage": "https://github.com/kleros/kleros-v2/tree/master/kleros-sdk#readme",
@@ -15,7 +15,7 @@
1515
],
1616
"type": "commonjs",
1717
"volta": {
18-
"node": "20.18.2"
18+
"node": "20.18.3"
1919
},
2020
"publishConfig": {
2121
"access": "public",

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
],
3030
"packageManager": "[email protected]",
3131
"volta": {
32-
"node": "20.18.2",
32+
"node": "20.18.3",
3333
"yarn": "4.6.0"
3434
},
3535
"devDependencies": {
@@ -57,10 +57,10 @@
5757
"minimatch@npm:3.0.4": "npm:3.0.8",
5858
"minimatch@npm:^3.0.4": "npm:3.0.8",
5959
"nanoid^3.3.1": "npm:3.3.4",
60-
"node-fetch": "npm:2.6.7",
60+
"node-fetch": "npm:[email protected]",
6161
"underscore@npm^3.0.4": "npm:1.12.1",
6262
"eth-sig-util@npm:^1.4.2": "npm:3.0.0",
63-
"fast-xml-parser": "npm:4.2.5",
63+
"fast-xml-parser": "npm:[email protected]",
6464
"@babel/traverse:^7.22.5": "npm:7.23.6",
6565
"yargs-unparser@npm:1.6.0": "npm:1.6.4",
6666
"dompurify@npm:^2.4.0": "npm:2.5.7",
@@ -74,7 +74,8 @@
7474
"@openzeppelin/contracts-upgradeable@npm:4.7.3": "npm:4.9.6",
7575
"@openzeppelin/contracts-upgradeable@npm:4.8.3": "npm:4.9.6",
7676
"@openzeppelin/contracts-upgradeable@npm:4.9.3": "npm:4.9.6",
77-
"elliptic@npm:6.5.4": "npm:6.6.1"
77+
"elliptic@npm:6.5.4": "npm:6.6.1",
78+
"word-wrap@npm:~1.2.3": "npm:1.2.5"
7879
},
7980
"scripts": {
8081
"check-prerequisites": "scripts/check-prerequisites.sh",

services/graph-node/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ services:
2525
GRAPH_LOG: info
2626
stop_grace_period: 5s
2727
ipfs:
28-
image: ipfs/go-ipfs:v0.22.0
28+
image: ipfs/go-ipfs:v0.33.2
2929
ports:
3030
- "5001:5001"
3131
volumes:

subgraph/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"stop-local-indexer": "docker compose -f ../services/graph-node/docker-compose.yml down && rm -rf ../services/graph-node/data"
7070
},
7171
"volta": {
72-
"node": "20.18.2"
72+
"node": "20.18.3"
7373
},
7474
"dependencies": {
7575
"@graphprotocol/graph-ts": "^0.37.0"

web-devtools/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"license": "MIT",
99
"type": "module",
1010
"volta": {
11-
"node": "20.18.2",
12-
"yarn": "4.5.1"
11+
"node": "20.18.3",
12+
"yarn": "4.6.0"
1313
},
1414
"scripts": {
1515
"clean": "rimraf .next src/graphql-generated src/hooks/contracts/generated.ts",
@@ -55,10 +55,10 @@
5555
"@tanstack/react-query": "^5.61.0",
5656
"@wagmi/connectors": "^5.5.0",
5757
"@wagmi/core": "^2.16.3",
58-
"@yornaath/batshit": "^0.9.0",
58+
"@yornaath/batshit": "^0.10.0",
5959
"graphql": "^16.9.0",
6060
"graphql-request": "^7.1.2",
61-
"next": "14.2.18",
61+
"next": "14.2.21",
6262
"react": "^18.3.1",
6363
"react-dom": "^18.3.1",
6464
"react-is": "^18.3.1",
@@ -68,7 +68,7 @@
6868
"react-use": "^17.5.1",
6969
"styled-components": "^5.3.3",
7070
"typewriter-effect": "^2.21.0",
71-
"vanilla-jsoneditor": "^0.21.6",
71+
"vanilla-jsoneditor": "^0.23.0",
7272
"viem": "^2.21.50",
7373
"wagmi": "^2.14.10"
7474
}

web/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"rimraf": "^6.0.1",
7575
"typescript": "^5.6.3",
7676
"vite": "^5.4.11",
77-
"vite-plugin-node-polyfills": "^0.21.0",
77+
"vite-plugin-node-polyfills": "^0.23.0",
7878
"vite-plugin-svgr": "^4.3.0",
7979
"vite-tsconfig-paths": "^4.3.2"
8080
},
@@ -98,7 +98,7 @@
9898
"@types/react-modal": "^3.16.3",
9999
"@wagmi/connectors": "^5.5.0",
100100
"@wagmi/core": "^2.16.3",
101-
"@yornaath/batshit": "^0.9.0",
101+
"@yornaath/batshit": "^0.10.0",
102102
"chart.js": "^3.9.1",
103103
"chartjs-adapter-moment": "^1.0.1",
104104
"chartjs-plugin-datalabels": "^2.2.0",
@@ -124,7 +124,7 @@
124124
"react-toastify": "^9.1.3",
125125
"react-use": "^17.5.1",
126126
"styled-components": "^5.3.3",
127-
"subgraph-status": "^1.2.3",
127+
"subgraph-status": "^1.2.4",
128128
"viem": "^2.21.54",
129129
"wagmi": "^2.14.10"
130130
}

web/src/components/Popup/index.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ const Popup: React.FC<PopupProps & IPopup> = ({
239239
const closePopup = () => {
240240
setIsOpen(false);
241241
resetValue();
242+
// dispute data is cleared, so if popup is closed the preview will show empty,
243+
// instead redirect to start point.
244+
if (popupType === PopupType.DISPUTE_CREATED) navigate("/resolver");
242245
};
243246

244247
return (

web/src/context/NewDisputeContext.tsx

+6-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ interface INewDisputeContext {
6060
setIsPolicyUploading: (isPolicyUploading: boolean) => void;
6161
}
6262

63-
const initialDisputeData: IDisputeData = {
63+
const getInitialDisputeData = (): IDisputeData => ({
6464
numberOfJurors: 3,
6565
title: "",
6666
description: "",
@@ -72,7 +72,9 @@ const initialDisputeData: IDisputeData = {
7272
],
7373
aliasesArray: [{ name: "", address: "", id: "1" }],
7474
version: "1.0",
75-
};
75+
});
76+
77+
const initialDisputeData = getInitialDisputeData();
7678

7779
const NewDisputeContext = createContext<INewDisputeContext | undefined>(undefined);
7880

@@ -92,7 +94,8 @@ export const NewDisputeProvider: React.FC<{ children: React.ReactNode }> = ({ ch
9294
const disputeTemplate = useMemo(() => constructDisputeTemplate(disputeData), [disputeData]);
9395

9496
const resetDisputeData = useCallback(() => {
95-
setDisputeData(initialDisputeData);
97+
const freshData = getInitialDisputeData();
98+
setDisputeData(freshData);
9699
}, [setDisputeData]);
97100

98101
const contextValues = useMemo(

0 commit comments

Comments
 (0)