File tree 12 files changed +595
-241
lines changed
12 files changed +595
-241
lines changed Original file line number Diff line number Diff line change 41
41
42
42
steps :
43
43
- name : Harden Runner
44
- uses : step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5
44
+ uses : step-security/harden-runner@c8454efe5d0bdefd25384362fe217428ca277d57
45
45
with :
46
46
disable-sudo : true
47
47
egress-policy : block
@@ -52,11 +52,11 @@ jobs:
52
52
github.com:443
53
53
54
54
- name : Checkout repository
55
- uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
55
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
56
56
57
57
# Initializes the CodeQL tools for scanning.
58
58
- name : Initialize CodeQL
59
- uses : github/codeql-action/init@4238421316c33d73aeea2801274dd286f157c2bb
59
+ uses : github/codeql-action/init@17573ee1cc1b9d061760f3a006fc4aac4f944fd5
60
60
with :
61
61
languages : ${{ matrix.language }}
62
62
# If you wish to specify custom queries, you can do so here or in a config file.
67
67
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
68
68
# If this step fails, then you should remove it and run the build manually (see below)
69
69
- name : Autobuild
70
- uses : github/codeql-action/autobuild@4238421316c33d73aeea2801274dd286f157c2bb
70
+ uses : github/codeql-action/autobuild@17573ee1cc1b9d061760f3a006fc4aac4f944fd5
71
71
72
72
# ℹ️ Command-line programs to run using the OS shell.
73
73
# 📚 https://git.io/JvXDl
81
81
# make release
82
82
83
83
- name : Perform CodeQL Analysis
84
- uses : github/codeql-action/analyze@4238421316c33d73aeea2801274dd286f157c2bb
84
+ uses : github/codeql-action/analyze@17573ee1cc1b9d061760f3a006fc4aac4f944fd5
Original file line number Diff line number Diff line change 17
17
runs-on : ubuntu-latest
18
18
steps :
19
19
- name : Harden Runner
20
- uses : step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5
20
+ uses : step-security/harden-runner@c8454efe5d0bdefd25384362fe217428ca277d57
21
21
with :
22
22
disable-sudo : true
23
23
egress-policy : block
@@ -31,14 +31,14 @@ jobs:
31
31
registry.yarnpkg.com:443
32
32
33
33
- name : Setup Node.js environment
34
- uses : actions/setup-node@8c91899e586c5b171469028077307d293428b516
34
+ uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
35
35
with :
36
36
node-version : 16.x
37
37
38
- - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
38
+ - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
39
39
40
40
- name : Cache node modules
41
- uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
41
+ uses : actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0
42
42
env :
43
43
cache-name : cache-node-modules
44
44
with :
69
69
working-directory : contracts
70
70
71
71
- name : Upload a build artifact
72
- uses : actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb
72
+ uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
73
73
with :
74
74
name : code-coverage-report
75
75
path : contracts/coverage
Original file line number Diff line number Diff line change 8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- name : Harden Runner
11
- uses : step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5
11
+ uses : step-security/harden-runner@c8454efe5d0bdefd25384362fe217428ca277d57
12
12
with :
13
13
egress-policy : audit # TODO: change to 'egress-policy: block' after couple of runs
14
14
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
18
18
- uses : aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838
19
19
with :
20
20
aws-access-key-id : ${{ secrets.STAGING_AWS_ACCESS_KEY }}
Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ jobs:
32
32
33
33
steps :
34
34
- name : " Checkout code"
35
- uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
35
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.1.0
36
36
with :
37
37
persist-credentials : false
38
38
39
39
- name : " Run analysis"
40
- uses : ossf/scorecard-action@99c53751e09b9529366343771cc321ec74e9bd3d # v2.0.6
40
+ uses : ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # v2.1.2
41
41
with :
42
42
results_file : results.sarif
43
43
results_format : sarif
@@ -59,14 +59,14 @@ jobs:
59
59
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
60
60
# format to the repository Actions tab.
61
61
- name : " Upload artifact"
62
- uses : actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
62
+ uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.0
63
63
with :
64
64
name : SARIF file
65
65
path : results.sarif
66
66
retention-days : 5
67
67
68
68
# Upload the results to GitHub's code scanning dashboard.
69
69
- 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
71
71
with :
72
72
sarif_file : results.sarif
Original file line number Diff line number Diff line change @@ -16,18 +16,35 @@ jobs:
16
16
outputs :
17
17
version : ${{ steps.set-version.outputs.version }}
18
18
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 }}-
20
33
21
34
- name : Set up Node.js
22
- uses : actions/setup-node@v2
35
+ uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
23
36
with :
24
37
node-version : 16
25
38
26
39
- 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
28
43
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
31
48
32
49
- name : Set version
33
50
id : set-version
Original file line number Diff line number Diff line change 19
19
"node" : " >=16.13.0"
20
20
},
21
21
"devDependencies" : {
22
- "@dappnode/dappnodesdk" : " ^0.2.68 "
22
+ "@dappnode/dappnodesdk" : " ^0.2.71 "
23
23
}
24
24
}
Original file line number Diff line number Diff line change @@ -4,4 +4,12 @@ src = 'src'
4
4
out = ' out'
5
5
libs = [' ../node_modules' , ' lib' ]
6
6
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
+
7
15
# See more config options https://book.getfoundry.sh/reference/config.html
Original file line number Diff line number Diff line change 39
39
"@types/chai" : " ^4.3.3" ,
40
40
"@types/mocha" : " ^10.0.0" ,
41
41
"@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" ,
44
44
"chai" : " ^4.3.6" ,
45
45
"chai-ethers" : " ^0.0.1" ,
46
46
"dotenv" : " ^16.0.3" ,
59
59
"hardhat-watcher" : " ^2.5.0" ,
60
60
"json-schema" : " ^0.4.0" ,
61
61
"mocha" : " ^10.1.0" ,
62
- "node-fetch" : " ^3.2.10 " ,
62
+ "node-fetch" : " ^3.3.0 " ,
63
63
"npm-run-all" : " ^4.1.5" ,
64
64
"shelljs" : " ^0.8.5" ,
65
65
"solhint" : " ^3.3.7" ,
Original file line number Diff line number Diff line change 45
45
"eslint-plugin-promise" : " ^5.1.1" ,
46
46
"eslint-utils" : " ^3.0.0" ,
47
47
"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 " ,
50
50
"prettier-plugin-solidity" : " ^1.0.0-rc.1" ,
51
51
"solhint-plugin-prettier" : " ^0.0.5"
52
52
},
Original file line number Diff line number Diff line change 1
- import { BigInt , Address } from "@graphprotocol/graph-ts" ;
1
+ import { BigInt , Address , log } from "@graphprotocol/graph-ts" ;
2
2
import { KlerosCore } from "../../generated/KlerosCore/KlerosCore" ;
3
3
import { Court , JurorTokensPerCourt } from "../../generated/schema" ;
4
4
import { updateActiveJurors , getDelta , updateStakedPNK } from "../datapoint" ;
Original file line number Diff line number Diff line change 38
38
"@types/react" : " ^18.0.25" ,
39
39
"@types/react-dom" : " ^18.0.9" ,
40
40
"@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" ,
44
44
"eslint" : " ^8.27.0" ,
45
45
"eslint-config-prettier" : " ^8.3.0" ,
46
46
"eslint-import-resolver-parcel" : " ^1.10.6" ,
51
51
"eslint-plugin-security" : " ^1.4.0" ,
52
52
"eslint-utils" : " ^3.0.0" ,
53
53
"lru-cache" : " ^7.8.0" ,
54
- "prettier" : " ^2.5.1 " ,
54
+ "prettier" : " ^2.8.4 " ,
55
55
"typescript" : " ^4.5.5"
56
56
},
57
57
"dependencies" : {
58
- "@graphql-codegen/cli" : " ^2.13.11 " ,
58
+ "@graphql-codegen/cli" : " ^3.2.1 " ,
59
59
"@graphql-codegen/typescript" : " ^2.8.1" ,
60
60
"@graphql-codegen/typescript-operations" : " ^2.5.6" ,
61
61
"@kleros/kleros-v2-contracts" : " workspace:^" ,
You can’t perform that action at this time.
0 commit comments