Skip to content

Commit beec665

Browse files
committed
Merge branch 'feat(subgraph)/add-fields' of github.com:kleros/kleros-v2 into feat(subgraph)/add-fields
2 parents 8884704 + 36aa561 commit beec665

12 files changed

+595
-241
lines changed

.github/workflows/codeql-analysis.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
steps:
4343
- name: Harden Runner
44-
uses: step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5
44+
uses: step-security/harden-runner@c8454efe5d0bdefd25384362fe217428ca277d57
4545
with:
4646
disable-sudo: true
4747
egress-policy: block
@@ -52,11 +52,11 @@ jobs:
5252
github.com:443
5353
5454
- name: Checkout repository
55-
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
55+
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
5656

5757
# Initializes the CodeQL tools for scanning.
5858
- name: Initialize CodeQL
59-
uses: github/codeql-action/init@4238421316c33d73aeea2801274dd286f157c2bb
59+
uses: github/codeql-action/init@17573ee1cc1b9d061760f3a006fc4aac4f944fd5
6060
with:
6161
languages: ${{ matrix.language }}
6262
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -67,7 +67,7 @@ jobs:
6767
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6868
# If this step fails, then you should remove it and run the build manually (see below)
6969
- name: Autobuild
70-
uses: github/codeql-action/autobuild@4238421316c33d73aeea2801274dd286f157c2bb
70+
uses: github/codeql-action/autobuild@17573ee1cc1b9d061760f3a006fc4aac4f944fd5
7171

7272
# ℹ️ Command-line programs to run using the OS shell.
7373
# 📚 https://git.io/JvXDl
@@ -81,4 +81,4 @@ jobs:
8181
# make release
8282

8383
- name: Perform CodeQL Analysis
84-
uses: github/codeql-action/analyze@4238421316c33d73aeea2801274dd286f157c2bb
84+
uses: github/codeql-action/analyze@17573ee1cc1b9d061760f3a006fc4aac4f944fd5

.github/workflows/contracts-testing.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Harden Runner
20-
uses: step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5
20+
uses: step-security/harden-runner@c8454efe5d0bdefd25384362fe217428ca277d57
2121
with:
2222
disable-sudo: true
2323
egress-policy: block
@@ -31,14 +31,14 @@ jobs:
3131
registry.yarnpkg.com:443
3232
3333
- name: Setup Node.js environment
34-
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516
34+
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
3535
with:
3636
node-version: 16.x
3737

38-
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
38+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
3939

4040
- name: Cache node modules
41-
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
41+
uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0
4242
env:
4343
cache-name: cache-node-modules
4444
with:
@@ -69,7 +69,7 @@ jobs:
6969
working-directory: contracts
7070

7171
- name: Upload a build artifact
72-
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb
72+
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
7373
with:
7474
name: code-coverage-report
7575
path: contracts/coverage

.github/workflows/deploy-bots.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Harden Runner
11-
uses: step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5
11+
uses: step-security/harden-runner@c8454efe5d0bdefd25384362fe217428ca277d57
1212
with:
1313
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
1414

15-
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
16-
- uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984
17-
- uses: aws-actions/setup-sam@8dbd164261576216897020cd750587e50e4d2136
15+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
16+
- uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435
17+
- uses: aws-actions/setup-sam@2993f015a7af30461b7641a256042fe0c6fc0c2e
1818
- uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838
1919
with:
2020
aws-access-key-id: ${{ secrets.STAGING_AWS_ACCESS_KEY }}

.github/workflows/scorecards.yml

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

3333
steps:
3434
- name: "Checkout code"
35-
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
35+
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.1.0
3636
with:
3737
persist-credentials: false
3838

3939
- name: "Run analysis"
40-
uses: ossf/scorecard-action@99c53751e09b9529366343771cc321ec74e9bd3d # v2.0.6
40+
uses: ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # v2.1.2
4141
with:
4242
results_file: results.sarif
4343
results_format: sarif
@@ -59,14 +59,14 @@ jobs:
5959
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6060
# format to the repository Actions tab.
6161
- name: "Upload artifact"
62-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
62+
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.0
6363
with:
6464
name: SARIF file
6565
path: results.sarif
6666
retention-days: 5
6767

6868
# Upload the results to GitHub's code scanning dashboard.
6969
- name: "Upload to code-scanning"
70-
uses: github/codeql-action/upload-sarif@807578363a7869ca324a79039e6db9c843e0e100 # v2.1.27
70+
uses: github/codeql-action/upload-sarif@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.1.27
7171
with:
7272
sarif_file: results.sarif

.github/workflows/sentry-release.yml

+22-5
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,35 @@ jobs:
1616
outputs:
1717
version: ${{ steps.set-version.outputs.version }}
1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
20+
21+
- name: Cache node modules
22+
uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0
23+
env:
24+
cache-name: cache-node-modules
25+
with:
26+
path: |
27+
~/.npm
28+
**/node_modules
29+
key: |
30+
${{ runner.os }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}
31+
restore-keys: |
32+
${{ runner.os }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-
2033
2134
- name: Set up Node.js
22-
uses: actions/setup-node@v2
35+
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
2336
with:
2437
node-version: 16
2538

2639
- name: Install dependencies
27-
run: yarn workspace @kleros/kleros-v2-web install
40+
run: |
41+
yarn workspace @kleros/kleros-v2-contracts install
42+
yarn workspace @kleros/kleros-v2-web install
2843
29-
- name: Build and deploy subgraph
30-
run: yarn @kleros/kleros-v2-web build
44+
- name: Build
45+
run: |
46+
yarn workspace @kleros/kleros-v2-contracts build
47+
yarn workspace @kleros/kleros-v2-web build
3148
3249
- name: Set version
3350
id: set-version

bot-pinner/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"node": ">=16.13.0"
2020
},
2121
"devDependencies": {
22-
"@dappnode/dappnodesdk": "^0.2.68"
22+
"@dappnode/dappnodesdk": "^0.2.71"
2323
}
2424
}

contracts/foundry.toml

+8
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,12 @@ src = 'src'
44
out = 'out'
55
libs = ['../node_modules', 'lib']
66

7+
[rpc_endpoints]
8+
arbitrumGoerli = "https://goerli-rollup.arbitrum.io/rpc"
9+
arbitrum = "https://arb1.arbitrum.io/rpc"
10+
goerli = "https://goerli.infura.io/v3/${process.env.INFURA_API_KEY}"
11+
mainnet = "https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}"
12+
chiado = "https://rpc.chiadochain.net"
13+
gnosischain = "https://xdai-rpc.gateway.pokt.network"
14+
715
# See more config options https://book.getfoundry.sh/reference/config.html

contracts/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"@types/chai": "^4.3.3",
4040
"@types/mocha": "^10.0.0",
4141
"@types/node": "^16",
42-
"@typescript-eslint/eslint-plugin": "^5.43.0",
43-
"@typescript-eslint/parser": "^5.41.0",
42+
"@typescript-eslint/eslint-plugin": "^5.53.0",
43+
"@typescript-eslint/parser": "^5.53.0",
4444
"chai": "^4.3.6",
4545
"chai-ethers": "^0.0.1",
4646
"dotenv": "^16.0.3",
@@ -59,7 +59,7 @@
5959
"hardhat-watcher": "^2.5.0",
6060
"json-schema": "^0.4.0",
6161
"mocha": "^10.1.0",
62-
"node-fetch": "^3.2.10",
62+
"node-fetch": "^3.3.0",
6363
"npm-run-all": "^4.1.5",
6464
"shelljs": "^0.8.5",
6565
"solhint": "^3.3.7",

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"eslint-plugin-promise": "^5.1.1",
4646
"eslint-utils": "^3.0.0",
4747
"husky": "^8.0.2",
48-
"lint-staged": "^11.0.0",
49-
"prettier": "^2.4.1",
48+
"lint-staged": "^13.1.2",
49+
"prettier": "^2.8.4",
5050
"prettier-plugin-solidity": "^1.0.0-rc.1",
5151
"solhint-plugin-prettier": "^0.0.5"
5252
},

subgraph/src/entities/JurorTokensPerCourt.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BigInt, Address } from "@graphprotocol/graph-ts";
1+
import { BigInt, Address, log } from "@graphprotocol/graph-ts";
22
import { KlerosCore } from "../../generated/KlerosCore/KlerosCore";
33
import { Court, JurorTokensPerCourt } from "../../generated/schema";
44
import { updateActiveJurors, getDelta, updateStakedPNK } from "../datapoint";

web/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
"@types/react": "^18.0.25",
3939
"@types/react-dom": "^18.0.9",
4040
"@types/styled-components": "^5.1.26",
41-
"@typescript-eslint/eslint-plugin": "^5.43.0",
42-
"@typescript-eslint/parser": "^5.43.0",
43-
"@typescript-eslint/utils": "^5.43.0",
41+
"@typescript-eslint/eslint-plugin": "^5.53.0",
42+
"@typescript-eslint/parser": "^5.53.0",
43+
"@typescript-eslint/utils": "^5.53.0",
4444
"eslint": "^8.27.0",
4545
"eslint-config-prettier": "^8.3.0",
4646
"eslint-import-resolver-parcel": "^1.10.6",
@@ -51,11 +51,11 @@
5151
"eslint-plugin-security": "^1.4.0",
5252
"eslint-utils": "^3.0.0",
5353
"lru-cache": "^7.8.0",
54-
"prettier": "^2.5.1",
54+
"prettier": "^2.8.4",
5555
"typescript": "^4.5.5"
5656
},
5757
"dependencies": {
58-
"@graphql-codegen/cli": "^2.13.11",
58+
"@graphql-codegen/cli": "^3.2.1",
5959
"@graphql-codegen/typescript": "^2.8.1",
6060
"@graphql-codegen/typescript-operations": "^2.5.6",
6161
"@kleros/kleros-v2-contracts": "workspace:^",

0 commit comments

Comments
 (0)