Skip to content

Commit 3cbbc40

Browse files
committed
Merge branch 'dev'
2 parents e9331db + 4dd363b commit 3cbbc40

File tree

845 files changed

+141430
-37106
lines changed

Some content is hidden

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

845 files changed

+141430
-37106
lines changed

.github/workflows/contracts-testing.yml

Lines changed: 7 additions & 7 deletions
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@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.5.0
27+
uses: step-security/harden-runner@v2.10.1
2828
with:
2929
disable-sudo: true
3030
egress-policy: block
@@ -40,14 +40,14 @@ jobs:
4040
54.185.253.63:443
4141
4242
- name: Setup Node.js environment
43-
uses: actions/setup-node@2a017f350dbf6c4b6bb4508cc83809719115162e
43+
uses: actions/setup-node@v4
4444
with:
45-
node-version: 16.x
45+
node-version: 18.x
4646

47-
- uses: actions/checkout@7739b9ba2efcda9dde65ad1e3c2dbe65b41dfba7
47+
- uses: actions/checkout@v4
4848

4949
- name: Cache node modules
50-
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
50+
uses: actions/cache@v4
5151
env:
5252
cache-name: cache-node-modules
5353
with:
@@ -74,11 +74,11 @@ jobs:
7474

7575
- name: Test with coverage
7676
run: |
77-
yarn hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --testfiles \"./test/**/*.ts\" --show-stack-traces
77+
yarn hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --testfiles './test/**/*.ts' --show-stack-traces
7878
working-directory: contracts
7979

8080
- name: Upload a build artifact
81-
uses: actions/upload-artifact@65d862660abb392b8c4a3d1195a2108db131dd05
81+
uses: actions/upload-artifact@v4
8282
with:
8383
name: code-coverage-report
8484
path: contracts/coverage

.github/workflows/dependabot-automerge.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
merge_group:
44
pull_request:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
dependabot:
811
runs-on: ubuntu-latest

.github/workflows/deploy-subgraph.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Set up Node.js
5050
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
5151
with:
52-
node-version: 16
52+
node-version: 20
5353

5454
- name: Install Yarn if running locally
5555
if: ${{ env.ACT }}
@@ -84,5 +84,16 @@ jobs:
8484
working-directory: subgraph
8585

8686
- name: Deploy the subgraph
87-
run: yarn deploy:${{ inputs.subgraph }}:${{ vars.NETWORK }}
87+
run: |
88+
# working around a graph bug which doesn't exit 1 on error: https://github.com/graphprotocol/graph-tooling/issues/1570
89+
error=$(yarn deploy:${{ inputs.subgraph }}:${{ vars.NETWORK }})
90+
echo "$error"
91+
if [[ $error == *"Error"* ]]
92+
then
93+
echo "exiting..."
94+
exit 1
95+
else
96+
echo "deployed successfully"
97+
exit 0
98+
fi
8899
working-directory: subgraph

.github/workflows/pr-labels.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Add PR labels
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited]
6+
branches-ignore:
7+
- 'dependabot/**'
8+
- 'renovate/**'
9+
10+
permissions: # added using https://github.com/step-security/secure-workflows
11+
contents: read
12+
issues: read
13+
pull-requests: write
14+
15+
jobs:
16+
copy-labels:
17+
runs-on: ubuntu-latest
18+
name: Copy labels from linked issues
19+
steps:
20+
- name: Harden Runner
21+
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.5.0
22+
with:
23+
disable-sudo: true
24+
egress-policy: block
25+
allowed-endpoints: >
26+
yarnpkg.com:443
27+
github.com:443
28+
nightly.yarnpkg.com:443
29+
nodejs.org:443
30+
objects.githubusercontent.com:443
31+
registry.yarnpkg.com:443
32+
registry.npmjs.org:443
33+
54.185.253.63:443
34+
35+
- name: copy-labels
36+
uses: michalvankodev/copy-issue-labels@f54e957e58fc976eba5ffa36e1a1030572dbb78d # v1.3.0
37+
with:
38+
repo-token: ${{ secrets.GITHUB_TOKEN }}
39+

.github/workflows/sonarcloud.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,28 @@ on:
77
pull_request:
88
types: [opened, synchronize, reopened]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
sonarcloud:
15+
permissions:
16+
contents: read # for actions/checkout to fetch code
17+
pull-requests: read # for SonarSource/sonarcloud-github-action to determine which PR to decorate
1218
name: SonarCloud
1319
runs-on: ubuntu-latest
1420
steps:
15-
- uses: actions/checkout@v3
21+
- name: Harden Runner
22+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
23+
with:
24+
egress-policy: audit
25+
26+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1627
with:
1728
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
1829

1930
- name: SonarCloud Scan
20-
uses: SonarSource/sonarcloud-github-action@master
31+
uses: SonarSource/sonarcloud-github-action@9f9bba2c7aaf7a55eac26abbac906c3021d211b2 # master
2132
env:
2233
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
2334
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ web_modules/
8383
.env.test
8484
.env.production
8585

86-
# parcel-bundler cache (https://parceljs.org/)
87-
.cache
88-
.parcel-cache
89-
9086
# Next.js build output
9187
.next
9288
out

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
20

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@
1212
"sonarlint.connectedMode.project": {
1313
"connectionId": "kleros",
1414
"projectKey": "kleros_kleros-v2"
15+
},
16+
"editor.codeActionsOnSave": {
17+
"source.fixAll.eslint": "explicit"
1518
}
1619
}

.yarn/plugins/@yarnpkg/plugin-typescript.cjs

Lines changed: 9 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/releases/yarn-3.7.0.cjs

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

0 commit comments

Comments
 (0)