Skip to content

Commit aac794f

Browse files
authored
Merge pull request #1813 from kleros/dev
Release v2-testnet-4.0.4
2 parents 4269a5c + c106865 commit aac794f

File tree

85 files changed

+8313
-304
lines changed

Some content is hidden

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

85 files changed

+8313
-304
lines changed

.github/workflows/contracts-testing.yml

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,16 @@ jobs:
4040
54.185.253.63:443
4141
4242
- name: Setup Node.js environment
43-
uses: actions/setup-node@v4
43+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
4444
with:
4545
node-version: 18.x
4646

47-
- uses: actions/checkout@v4
47+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
48+
with:
49+
submodules: recursive
4850

4951
- name: Cache node modules
50-
uses: actions/cache@v4
52+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
5153
env:
5254
cache-name: cache-node-modules
5355
with:
@@ -57,28 +59,22 @@ jobs:
5759
key: ${{ runner.os }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}
5860
restore-keys: |
5961
${{ runner.os }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-
60-
61-
#- name: Install parent dependencies
62-
# run: |
63-
# echo "current dir: $PWD"
64-
# yarn install
65-
62+
6663
- name: Install contracts dependencies
67-
run: |
68-
yarn workspace @kleros/kleros-v2-contracts install
69-
70-
- name: Compile
71-
run: |
72-
yarn hardhat compile
73-
working-directory: contracts
74-
75-
- name: Test with coverage
76-
run: |
77-
yarn hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --testfiles './test/**/*.ts' --show-stack-traces
78-
working-directory: contracts
64+
run: yarn workspace @kleros/kleros-v2-contracts install
65+
66+
- name: Install Foundry
67+
uses: foundry-rs/foundry-toolchain@8f1998e9878d786675189ef566a2e4bf24869773 # v1.2.0
7968

69+
- name: Install lcov
70+
run: sudo apt-get install -y lcov
71+
72+
- name: Run Hardhat and Foundry tests with coverage
73+
run: yarn coverage
74+
working-directory: contracts
75+
8076
- name: Upload a build artifact
81-
uses: actions/upload-artifact@v4
77+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
8278
with:
8379
name: code-coverage-report
8480
path: contracts/coverage

contracts/.solcover.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const shell = require("shelljs");
55
// The environment variables are loaded in hardhat.config.ts
66

77
module.exports = {
8-
istanbulReporter: ["html"],
8+
istanbulReporter: ["lcov"],
99
onCompileComplete: async function (_config) {
1010
await run("typechain");
1111
},
@@ -14,7 +14,7 @@ module.exports = {
1414
shell.rm("-rf", "./artifacts");
1515
shell.rm("-rf", "./typechain");
1616
},
17-
skipFiles: ["mocks", "test"],
17+
skipFiles: ["test", "token", "kleros-v1", "proxy/mock", "gateway/mock", "rng/mock"],
1818
mocha: {
1919
timeout: 20000,
2020
grep: "@skip-on-coverage", // Find everything with this tag

contracts/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ Refresh the list of deployed contracts by running `./scripts/generateDeployments
1414
- [ChainlinkRNG](https://arbiscan.io/address/0x897d83a7d5F23555eFA15e1BE297d5503522cbA3)
1515
- [DisputeKitClassicNeo: proxy](https://arbiscan.io/address/0x70B464be85A547144C72485eBa2577E5D3A45421), [implementation](https://arbiscan.io/address/0xAF0325dbBFa812a574743Bb5A085266D31e3e03a)
1616
- [DisputeResolverNeo](https://arbiscan.io/address/0xb5526D022962A1fFf6eD32C93e8b714c901F4323)
17+
- [DisputeResolverRulerNeo](https://arbiscan.io/address/0xb3a5FdEAF461c42caCe148e978e6FBCa97bE6140)
1718
- [DisputeTemplateRegistry: proxy](https://arbiscan.io/address/0x0cFBaCA5C72e7Ca5fFABE768E135654fB3F2a5A2), [implementation](https://arbiscan.io/address/0x57EfD43DAfCeb6C58Df57932b2B299f46fef5c87)
1819
- [EvidenceModule: proxy](https://arbiscan.io/address/0x48e052B4A6dC4F30e90930F1CeaAFd83b3981EB3), [implementation](https://arbiscan.io/address/0xE22500Fa27f696d06702367246bd17Bd2C8a4c5d)
1920
- [KlerosCoreNeo: proxy](https://arbiscan.io/address/0x991d2df165670b9cac3B022f4B68D65b664222ea), [implementation](https://arbiscan.io/address/0x17c39AB53A7072b167A74a85D47b30385c98ae89)
21+
- [KlerosCoreRulerNeo: proxy](https://arbiscan.io/address/0xc0169e0B19aE02ac4fADD689260CF038726DFE13), [implementation](https://arbiscan.io/address/0x85093b5EDa4F2e2E2fEDae34Da91239D6a08e324)
2022
- [KlerosV2NeoEarlyUser](https://arbiscan.io/address/0xfE34a72c55e512601E7d491A9c5b36373cE34d63)
2123
- [Pinakion](https://arbiscan.io/address/0x330bD769382cFc6d50175903434CCC8D206DCAE5)
2224
- [PolicyRegistry: proxy](https://arbiscan.io/address/0x553dcbF6aB3aE06a1064b5200Df1B5A9fB403d3c), [implementation](https://arbiscan.io/address/0x15E5964C7751dF8563eA4bC000301582C79BC454)

0 commit comments

Comments
 (0)