Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v2-testnet-4.0.4 #1813

Merged
merged 40 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
6b24daa
feat(KC): add foundry test file
unknownunknown1 Dec 2, 2024
7d8e858
fix(SortitionModule): delayed stake frontrun bug
unknownunknown1 Dec 11, 2024
87eacc1
feat(kleros-app): add-restrictions-check-in-upload-file
Harman-singh-waraich Dec 12, 2024
b454a3c
fix: size-calculation
Harman-singh-waraich Dec 12, 2024
236f9e1
Merge branch 'dev' into feat/foundry-tests
jaybuidl Dec 13, 2024
917b82e
docs: license pragma
jaybuidl Dec 13, 2024
6437726
fix: typos
jaybuidl Dec 13, 2024
889cf63
chore: github actions workflow to run the foundry tests
jaybuidl Dec 13, 2024
b9810b2
test: combined test coverage reports from Hardhat and Foundry
jaybuidl Dec 13, 2024
9025a05
test: fix
jaybuidl Dec 13, 2024
2b62297
chore: temporarily disabling foundry tests in Github CI due to a stra…
jaybuidl Dec 13, 2024
b4fcc4e
test: attempt to fix randomly failing tx due to duplicate nounce
jaybuidl Dec 14, 2024
f281135
test: coverage script
jaybuidl Dec 14, 2024
229ed9c
Merge branch 'dev' into feat/foundry-tests
jaybuidl Dec 14, 2024
8e916d0
Merge branch 'dev' into feat/foundry-tests
jaybuidl Dec 16, 2024
fed3d93
chore: testing workflow debugging
jaybuidl Dec 18, 2024
0220cc2
chore: testing workflow debugging
jaybuidl Dec 18, 2024
f9cb5a6
Merge pull request #1765 from kleros/feat/foundry-tests
jaybuidl Dec 18, 2024
c4916c2
refactor(web): min-stake-check
Harman-singh-waraich Dec 19, 2024
5c43453
Merge branch 'dev' into feat/restriction-roles
Harman-singh-waraich Dec 19, 2024
efedc56
refactor(web): rabbit-feedback
Harman-singh-waraich Dec 19, 2024
424c143
fix(web): file-viewer-pdf-controls
Harman-singh-waraich Dec 19, 2024
4a84994
Merge pull request #1785 from kleros/feat/restriction-roles
alcercu Dec 19, 2024
a744c1f
Merge pull request #1806 from kleros/refactor/min-stake-check
alcercu Dec 19, 2024
f52ed9c
Merge pull request #1807 from kleros/fix/file-viewer-pdf-controls
alcercu Dec 19, 2024
d93e2ff
fix: better mobile margins, more hovers, cosmetic changes, slight bug…
kemuru Dec 19, 2024
2a1f4d0
Merge branch 'dev' into feat/ui-improvements
kemuru Dec 19, 2024
36c3af4
Merge pull request #1809 from kleros/feat/ui-improvements
alcercu Dec 19, 2024
53435b7
chore: slight adjustments, experiment with thinner border in mobile
kemuru Dec 19, 2024
b1c7f2a
Merge branch 'dev' into feat/ui-improvements
kemuru Dec 19, 2024
6ec0c93
chore: remove the thinner border
kemuru Dec 19, 2024
37d768d
chore: nitpick in evidence cards
kemuru Dec 19, 2024
b4628aa
Merge pull request #1811 from kleros/feat/ui-improvements
alcercu Dec 20, 2024
1f96c0f
feat: ruler deployment on arbitrum, aligned configuration between cou…
jaybuidl Dec 20, 2024
1bbb3c4
fix: type issue with DEFAULT_CHAIN
jaybuidl Dec 20, 2024
e9ba8b3
fix(web-devtools): incorrect-wagmi-config
Harman-singh-waraich Dec 20, 2024
f00f73d
chore: netlify script
jaybuidl Dec 20, 2024
e1a0f5f
chore(kleros-app): release @kleros/[email protected]
jaybuidl Dec 20, 2024
a46c19d
fix: minor fixes to keep coderabbit happy
jaybuidl Dec 20, 2024
c106865
chore: lockfile
jaybuidl Dec 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 18 additions & 22 deletions .github/workflows/contracts-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,16 @@ jobs:
54.185.253.63:443

- name: Setup Node.js environment
uses: actions/setup-node@v4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 18.x

- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive

- name: Cache node modules
uses: actions/cache@v4
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
env:
cache-name: cache-node-modules
with:
Expand All @@ -57,28 +59,22 @@ jobs:
key: ${{ runner.os }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-

#- name: Install parent dependencies
# run: |
# echo "current dir: $PWD"
# yarn install


- name: Install contracts dependencies
run: |
yarn workspace @kleros/kleros-v2-contracts install

- name: Compile
run: |
yarn hardhat compile
working-directory: contracts

- name: Test with coverage
run: |
yarn hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --testfiles './test/**/*.ts' --show-stack-traces
working-directory: contracts
run: yarn workspace @kleros/kleros-v2-contracts install

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@8f1998e9878d786675189ef566a2e4bf24869773 # v1.2.0

- name: Install lcov
run: sudo apt-get install -y lcov

- name: Run Hardhat and Foundry tests with coverage
run: yarn coverage
working-directory: contracts

- name: Upload a build artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: code-coverage-report
path: contracts/coverage
4 changes: 2 additions & 2 deletions contracts/.solcover.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const shell = require("shelljs");
// The environment variables are loaded in hardhat.config.ts

module.exports = {
istanbulReporter: ["html"],
istanbulReporter: ["lcov"],
onCompileComplete: async function (_config) {
await run("typechain");
},
Expand All @@ -14,7 +14,7 @@ module.exports = {
shell.rm("-rf", "./artifacts");
shell.rm("-rf", "./typechain");
},
skipFiles: ["mocks", "test"],
skipFiles: ["test", "token", "kleros-v1", "proxy/mock", "gateway/mock", "rng/mock"],
mocha: {
timeout: 20000,
grep: "@skip-on-coverage", // Find everything with this tag
Expand Down
2 changes: 2 additions & 0 deletions contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ Refresh the list of deployed contracts by running `./scripts/generateDeployments
- [ChainlinkRNG](https://arbiscan.io/address/0x897d83a7d5F23555eFA15e1BE297d5503522cbA3)
- [DisputeKitClassicNeo: proxy](https://arbiscan.io/address/0x70B464be85A547144C72485eBa2577E5D3A45421), [implementation](https://arbiscan.io/address/0xAF0325dbBFa812a574743Bb5A085266D31e3e03a)
- [DisputeResolverNeo](https://arbiscan.io/address/0xb5526D022962A1fFf6eD32C93e8b714c901F4323)
- [DisputeResolverRulerNeo](https://arbiscan.io/address/0xb3a5FdEAF461c42caCe148e978e6FBCa97bE6140)
- [DisputeTemplateRegistry: proxy](https://arbiscan.io/address/0x0cFBaCA5C72e7Ca5fFABE768E135654fB3F2a5A2), [implementation](https://arbiscan.io/address/0x57EfD43DAfCeb6C58Df57932b2B299f46fef5c87)
- [EvidenceModule: proxy](https://arbiscan.io/address/0x48e052B4A6dC4F30e90930F1CeaAFd83b3981EB3), [implementation](https://arbiscan.io/address/0xE22500Fa27f696d06702367246bd17Bd2C8a4c5d)
- [KlerosCoreNeo: proxy](https://arbiscan.io/address/0x991d2df165670b9cac3B022f4B68D65b664222ea), [implementation](https://arbiscan.io/address/0x17c39AB53A7072b167A74a85D47b30385c98ae89)
- [KlerosCoreRulerNeo: proxy](https://arbiscan.io/address/0xc0169e0B19aE02ac4fADD689260CF038726DFE13), [implementation](https://arbiscan.io/address/0x85093b5EDa4F2e2E2fEDae34Da91239D6a08e324)
- [KlerosV2NeoEarlyUser](https://arbiscan.io/address/0xfE34a72c55e512601E7d491A9c5b36373cE34d63)
- [Pinakion](https://arbiscan.io/address/0x330bD769382cFc6d50175903434CCC8D206DCAE5)
- [PolicyRegistry: proxy](https://arbiscan.io/address/0x553dcbF6aB3aE06a1064b5200Df1B5A9fB403d3c), [implementation](https://arbiscan.io/address/0x15E5964C7751dF8563eA4bC000301582C79BC454)
Expand Down
Loading
Loading