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

Testnet-2 Release and Redeployment #1279

Closed
wants to merge 211 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
410428c
chore(web): make skeleton style global
alcercu Aug 18, 2023
f0264ef
feat(web): modularize cases query and add My cases section to dashboard
alcercu Aug 18, 2023
47223eb
style(web): improve color for light mode skeleton
alcercu Aug 18, 2023
e574146
Merge branch 'dev' into feat(web)/cases-filtering
alcercu Aug 18, 2023
c04e8c7
fix: empty CasesGrid when user has never staked
jaybuidl Aug 22, 2023
465cd8a
feat: implement filtering and search logic
nhestrompia Aug 25, 2023
cbd5b6f
fix(web): skeleton styling and small css fixes
kemuru Aug 26, 2023
f6c2582
feat: disputor bot which creates a dispute every 12 hours on testnet
jaybuidl Aug 28, 2023
3026e87
fix(web): vote-stake-data
nhestrompia Aug 28, 2023
4bbf258
fix: fraction digits
nhestrompia Aug 28, 2023
91351b6
fix(web): dashboard dont show my courts if no staked anymore
kemuru Aug 28, 2023
1bdd14a
chore(web): abstract variables
kemuru Aug 28, 2023
4bed1b3
refactor: clear naming for condition
nhestrompia Aug 28, 2023
c6e32a3
feat(web): add svg header for mobile, desktop
kemuru Aug 28, 2023
9afac7c
Merge branch 'dev' into fix(web)/skeletons-styling-dark-and-light-modes
kemuru Aug 28, 2023
3a3745a
fix(web): code scalability and abstractions
kemuru Aug 29, 2023
979adbe
fix(web): code scalability and abstractions
kemuru Aug 29, 2023
9f92071
chore(web): spread operator as component parameter
kemuru Aug 29, 2023
6f9a5db
feat(web): notification-system
nhestrompia Aug 31, 2023
214f51d
chore: better variable name
kemuru Aug 31, 2023
0927267
refactor: netlify function
nhestrompia Aug 31, 2023
f1ff5e6
Merge branch 'dev' into feat(web)/mobile-and-desktop-svg-banner-homepage
kemuru Sep 1, 2023
368fc70
fix(web): price-fetching
nhestrompia Aug 25, 2023
2c8c071
refactor: mainnet contract addresses
nhestrompia Sep 1, 2023
e2e0943
refactor: useContractAddress() is not concerned with the network anymore
jaybuidl Sep 1, 2023
01a540d
fix(web): add disconnect wallet button to navbar
kemuru Aug 29, 2023
4b5f1ea
chore: disconnect button centered vertically
jaybuidl Sep 1, 2023
72d64dd
feat(web): navbar and footer for desktop
kemuru Sep 2, 2023
7968527
fix(web): merge conflicts and fix new bugs
kemuru Sep 2, 2023
653793e
fix(web): make sure you are connected before settings notifications c…
kemuru Sep 2, 2023
167d342
fix(web): stats-juror-icon
nhestrompia Aug 28, 2023
9db8b0f
fix(web): better code structure, optimizations, community section, po…
kemuru Sep 2, 2023
d133b69
Merge branch 'dev' into feat(web)/desktop-navbar-and-responsiveness
kemuru Sep 2, 2023
0b69de6
fix: some layout adjustments
nhestrompia Sep 2, 2023
26e761b
fix(web): dont display chain on tablet
kemuru Sep 3, 2023
b810481
fix(web): css top property adjustment on navbar popups
kemuru Sep 3, 2023
d31c249
feat: formatting of the PNK balance, stake and amount in input field
jaybuidl Sep 2, 2023
18766cd
chore(web): minor adjustments
kemuru Sep 2, 2023
6b6eaf4
fix: keeper bot hardening to better handle many iterations for delaye…
jaybuidl Sep 4, 2023
d0612bc
fix(web): dashboard juror info desktop responsive
kemuru Sep 4, 2023
fbe85a3
Merge branch 'dev' into feat(web)/desktop-navbar-and-responsiveness
kemuru Sep 4, 2023
8cc0eb0
fix(web): make dashboard look less spacew on desktop
kemuru Sep 4, 2023
4a4e402
fix(web): accurate paddings and distances between components in desktop
kemuru Sep 4, 2023
36c736b
fix(web): show some separator in case of not being staked anywhere
kemuru Sep 4, 2023
758807d
fix(web): community section more tablet responsive
kemuru Sep 5, 2023
1700914
fix(web): bug in desktop view community section
kemuru Sep 5, 2023
61bae81
fix(web): stats paddings adjustments for desktop
kemuru Sep 6, 2023
caafd1d
feat(web): cases-grid-and-list-display
nhestrompia Sep 6, 2023
6fd16e8
refactor(web): use different hook for window size
kemuru Sep 7, 2023
3650b3d
feat(web): add nonce to message
kemuru Sep 7, 2023
ee63a36
chore(web): yarn lock problem
kemuru Sep 7, 2023
7cc3dd4
fix(web): change update settings to viem
kemuru Sep 7, 2023
bcbf73b
fix(web): payload json stringified
kemuru Sep 7, 2023
2b6cfe4
fix(web): wrong netlify folder path
kemuru Sep 7, 2023
ef94986
chore(web): remove new lines on message
kemuru Sep 8, 2023
bdc9403
chore(web): remove logs and add settings type
kemuru Sep 8, 2023
b799786
refactor(web): account abstraction for verifymessage
kemuru Sep 8, 2023
b0ee92d
refactor(web): function name change
kemuru Sep 8, 2023
06eb085
feat(web): multiple changes to css across all frontend
kemuru Sep 9, 2023
8cb7245
test: reproduction of the staking and locked stakes bug
jaybuidl Sep 9, 2023
73782d9
fix(KlerosCore): staking logic fix
unknownunknown1 Aug 16, 2023
17d7a81
fix(KlerosCore): drawing iterations don't repeat
unknownunknown1 Aug 16, 2023
62e4e75
fix(KC): small bug fixes
unknownunknown1 Aug 29, 2023
5534768
refactor: minor refactor and fixed the tests
jaybuidl Sep 6, 2023
66dce00
fix(subgraph): update subgraph with contract changes
kemuru Sep 7, 2023
7d90db7
fix: subgraph update script
jaybuidl Sep 9, 2023
b714c12
fix: accounting of round.drawIterations
jaybuidl Sep 10, 2023
f27a98d
fix: mobile responsiveness
nhestrompia Sep 10, 2023
a69b335
feat: add court selection filtering and subgraph update
nhestrompia Sep 11, 2023
40ec2ca
refactor: code smell and some refactor
nhestrompia Sep 11, 2023
041c945
fix: page number and query param
nhestrompia Sep 11, 2023
96245e3
feat(web): round info on dispute card
kemuru Sep 7, 2023
f946f6e
feat(web): adding missing round inside case overview
kemuru Sep 9, 2023
dff027b
feat(web): disable appeal tab on last round and add info message
kemuru Aug 23, 2023
b91ec3a
fix: last appeal round
nhestrompia Aug 25, 2023
d628e21
refactor(web): make website mobile first, landscape, portrait later, …
kemuru Sep 11, 2023
6d76597
fix(web): font-weight of wallet address and margin top on Navbar
kemuru Sep 11, 2023
f708cfe
fix(web): center vertically middle side component of desktop header
kemuru Sep 11, 2023
d05f196
fix(web): weird min-height property causing problems
kemuru Sep 11, 2023
d7c876c
refactor(web): remove classname syntax for boolean in styled components
kemuru Sep 11, 2023
633f50f
fix: responsive layout
nhestrompia Sep 12, 2023
dff0822
fix: dashboard list view
nhestrompia Sep 12, 2023
d233f69
fix: code smell
nhestrompia Sep 12, 2023
92f09ad
refactor(web): remove header link classname
alcercu Sep 12, 2023
2407264
Merge branch 'dev' into feat(web)/desktop-navbar-and-responsiveness
alcercu Sep 12, 2023
bca7542
fix(web): useToggle instead of useState to avoid re-renders
alcercu Sep 12, 2023
505d322
Merge branch 'feat(web)/desktop-navbar-and-responsiveness' of github.…
alcercu Sep 12, 2023
0a7e5ce
fix(web): memoize mobile header context to improve performance
alcercu Sep 12, 2023
bfe027c
Merge branch 'dev' into feat(web)/cases-filtering
alcercu Sep 12, 2023
2288b77
feat(web): style scrollbar a bit and add placeholder if not scrollabl…
kemuru Sep 13, 2023
7e3dc94
fix: change vote stake formula
nhestrompia Sep 13, 2023
f7f1dec
Merge branch 'web-staging' into fix(web)/vote-stake-data
alcercu Sep 13, 2023
88cb3ca
Merge pull request #1200 from kleros/fix(web)/vote-stake-data
alcercu Sep 13, 2023
23c21d8
refactor(subgraph): avoid contract binding and add numberVotingCases
alcercu Sep 13, 2023
efe8852
feat(subgraph): add blocknumber fields
alcercu Sep 13, 2023
a3b16ed
fix(web): add mainnet to chains, but in second position so it's not t…
alcercu Sep 13, 2023
8490c32
feat(web): add overlay scrollbars plugin, style it, lock functionality
kemuru Sep 13, 2023
3045e6c
refactor: fetching at pages
nhestrompia Sep 14, 2023
6f2228d
refactor: query naming
nhestrompia Sep 14, 2023
00fb81b
fix(web): weird lines beloe hero svgs fix
kemuru Sep 14, 2023
28547bb
fix: context states resetting
nhestrompia Sep 15, 2023
673c60a
fix: responsive layout adjustments
nhestrompia Sep 15, 2023
d3a54c7
fix: dashboard layout
nhestrompia Sep 15, 2023
ed60559
fix(web): juror-score-data
nhestrompia Sep 15, 2023
5952d68
fix(web): scrolling problem on navbar and overlay component restructu…
kemuru Sep 15, 2023
5127f0f
refactor: clear naming and query params
nhestrompia Sep 15, 2023
566e38e
fix(web): settings not scrollable on landscape mobile
kemuru Sep 15, 2023
a29a3d8
fix: stake amount
nhestrompia Sep 15, 2023
504d5d7
feat(subgraph): add totalAppealingDisputes for user entity
alcercu Sep 15, 2023
41f261d
fix: query update based on subgraph changes
nhestrompia Sep 15, 2023
10ce5bb
fix(web): dont show the custom overlaid scrollbar on mobile
kemuru Sep 15, 2023
7a3ea07
refactor(web): move totalAppealingDisputes to useUser query
alcercu Sep 15, 2023
11839a6
Merge branch 'web-staging' into feat(web)/new-scrollbar-and-placeholder
alcercu Sep 15, 2023
0c056c0
Merge pull request #1229 from kleros/feat(web)/new-scrollbar-and-plac…
alcercu Sep 15, 2023
463722a
fix: merge conflicts, fix scrolling bugs, overlay component bugs
kemuru Sep 16, 2023
0dd543c
Merge pull request #1211 from kleros/feat(web)/desktop-navbar-and-res…
alcercu Sep 18, 2023
d9ef8f5
fix: dashboard new user problem
nhestrompia Sep 18, 2023
475f6dd
feat(merge): web-staging
alcercu Sep 18, 2023
9b97263
Merge pull request #1219 from kleros/feat(web)/cases-grid-and-list-di…
alcercu Sep 18, 2023
d3ebfe8
Merge branch 'web-staging' into fix(web)/disable-appeal-tab-on-last-r…
alcercu Sep 18, 2023
464fd49
Merge pull request #1184 from kleros/fix(web)/disable-appeal-tab-on-l…
alcercu Sep 18, 2023
48092dd
Merge branch 'web-staging' into fix(web)/juror-score-data
alcercu Sep 18, 2023
8a59cf0
Merge pull request #1230 from kleros/fix(web)/juror-score-data
alcercu Sep 18, 2023
6931e91
fix: don't skip contracts-testing required check
jaybuidl Sep 18, 2023
56cb87a
feat(subgraph): add periodDeadline field to dispute entity
alcercu Sep 18, 2023
4ba1cb1
chore(web): use devnet subgraph
alcercu Sep 18, 2023
5740f02
fix: dashboard pagination
nhestrompia Sep 19, 2023
03d1634
fix(web): layout unexpected paddings
kemuru Sep 20, 2023
4ff756e
fix: ens-address-and-icon
nhestrompia Sep 20, 2023
d1e355a
Merge pull request #1237 from kleros/fix(web)/ens-address-and-icon
alcercu Sep 20, 2023
69d61b9
Merge pull request #1236 from kleros/fix(web)/padding-bottom-homepage
alcercu Sep 20, 2023
e06e1fd
Merge branch 'dev' into web-staging
jaybuidl Sep 25, 2023
59e2b75
Merge pull request #1235 from kleros/web-staging
jaybuidl Sep 25, 2023
92e0b5a
chore: redeployed the devnet contracts and subgraph
jaybuidl Sep 25, 2023
15672af
fix: toolchain
jaybuidl Sep 25, 2023
be13916
fix(contract): hard optimization of kleroscore deployed size
zmalatrax Sep 3, 2023
e5fc1d7
feat(proxy): add upgradability contracts
zmalatrax Sep 3, 2023
dd0f9b3
feat(proxy): add test on mock implementation
zmalatrax Sep 3, 2023
f06cc90
feat(proxy): make SortitionModule upgradeable
zmalatrax Sep 3, 2023
871fd60
feat(proxy): make KlerosCore upgradeable
zmalatrax Sep 3, 2023
6c27574
feat(proxy): update deployment scripts
zmalatrax Sep 3, 2023
80cd463
feat(proxy): update test script
zmalatrax Sep 3, 2023
b4b3199
feat(proxy): add selective upgrade scripts
zmalatrax Sep 3, 2023
76cb13d
feat(proxy): bump hardhat-deploy for intersection tags
zmalatrax Sep 3, 2023
487fc5b
feat: made the DisputeKits and RandomizerRNG upgradable, refactored t…
jaybuidl Sep 25, 2023
4467927
feat: made more contracts upgradable, fixed state variable init, nonc…
jaybuidl Sep 26, 2023
c5104cb
refactor: made deployUpgradable() signature consistent with deploy()
jaybuidl Sep 26, 2023
0a1642f
chore: markdown generation for upgradable contracts
jaybuidl Sep 26, 2023
76763b6
refactor: extracted some constants, tweaked contract size optimizations
jaybuidl Sep 26, 2023
2172247
fix: deploy script issue for the devnet foreign gateway
jaybuidl Sep 26, 2023
acb94e9
chore: devnet redeployment with upgradable contracts 🚀
jaybuidl Sep 26, 2023
d1e49c6
fix: added error message
jaybuidl Oct 3, 2023
d4eb2da
feat: added telegram contact field, fixed netlify function sig verifi…
jaybuidl Oct 3, 2023
889cef7
feat: use eip712 typed structured data signing
jaybuidl Oct 3, 2023
2126efc
refactor: notification form filenames
jaybuidl Oct 3, 2023
699e699
feat: close the settings popup if saved successfully
jaybuidl Oct 3, 2023
f72f819
chore: added types generation for the supabase db client
jaybuidl Oct 4, 2023
36608f3
feat(web): cases filtering state tracked with url
alcercu Oct 4, 2023
61c67b6
chore(web): remove unused context
alcercu Oct 4, 2023
161611e
fix(web): feedback by plinio implementation
kemuru Oct 4, 2023
1596088
Merge branch 'dev' into feat(web)/cases-filtering
alcercu Oct 4, 2023
6211b52
fix(web): finish merging dev
alcercu Oct 4, 2023
0574615
fix(web): fix list view problems
alcercu Oct 5, 2023
9a09569
fix(web): code smells
alcercu Oct 5, 2023
2048cff
fix(web): wrong count and bad filter encoding
alcercu Oct 6, 2023
f29a40d
fix(subgraph): voting and appealing cases count
alcercu Oct 6, 2023
1365a27
feat: hardened input validation
jaybuidl Oct 6, 2023
a0411a6
chore: filter ordering
jaybuidl Oct 6, 2023
a1c67ca
chore: dispute period banner more specific
jaybuidl Oct 6, 2023
f42cc14
fix: linter about shadowed variables
jaybuidl Oct 7, 2023
29ba8b9
chore(deps): bump github/codeql-action from 2.3.3 to 2.22.0
dependabot[bot] Oct 9, 2023
3e0d910
chore(deps): bump step-security/harden-runner from 2.4.0 to 2.6.0
dependabot[bot] Oct 9, 2023
667208d
chore(deps): bump actions/setup-python from 4.7.0 to 4.7.1
dependabot[bot] Oct 9, 2023
aee7367
chore(deps): bump ossf/scorecard-action from 2.2.0 to 2.3.0
dependabot[bot] Oct 9, 2023
df21080
chore(deps-dev): bump @commitlint/cli from 17.6.5 to 17.7.2
dependabot[bot] Oct 9, 2023
8762123
feat(web): add latest cases to court page
alcercu Oct 9, 2023
e301c42
fix(web): typing errors
alcercu Oct 9, 2023
4e2e2d5
fix(deps): update dependency viem to v1
renovate[bot] Oct 9, 2023
25f00d5
chore(deps): update actions/setup-node action to v3
renovate[bot] Oct 9, 2023
ad50943
chore(deps): bump actions/cache
dependabot[bot] Sep 11, 2023
999377e
chore(deps): bump aws-actions/configure-aws-credentials
dependabot[bot] Oct 9, 2023
657bb22
fix: user message
jaybuidl Oct 9, 2023
1cdb391
feat(web): max-width for layout elements and stats grid width adjustment
kemuru Oct 9, 2023
d1bd9d1
Merge branch 'dev' into feat(web)/notification-system
jaybuidl Oct 9, 2023
967e78f
fix: interface changes after merge
jaybuidl Oct 9, 2023
788a48b
chore: upgraded to the latest ui-components which decreases the opaci…
jaybuidl Oct 9, 2023
e4d673c
chore(deps): bump viem from 1.1.1 to 1.16.1
dependabot[bot] Oct 9, 2023
ae3d854
fix: subgraph
jaybuidl Oct 10, 2023
5d2d3a9
Merge branch 'dev' into fix(web)/styling-feedback-plinio
kemuru Oct 10, 2023
767a427
fix(web): correct skeleton width for disputecard and disputelistitems
kemuru Oct 10, 2023
70b1de5
Merge branch 'dev' into fix(web)/styling-feedback-plinio
alcercu Oct 10, 2023
b18737e
chore(deps): update actions/setup-node digest to 2a017f3
renovate[bot] Oct 11, 2023
0113040
chore(deps): update actions/setup-python digest to 5f2af21
renovate[bot] Oct 11, 2023
2ffcefd
Merge branch 'dev' into dependabot/npm_and_yarn/dev/viem-1.16.1
alcercu Oct 11, 2023
b1a272b
Merge pull request #1266 from kleros/dependabot/npm_and_yarn/dev/viem…
jaybuidl Oct 11, 2023
c5cda00
Merge pull request #1267 from kleros/renovate/actions-setup-node-digest
jaybuidl Oct 11, 2023
a4a7718
Merge pull request #1268 from kleros/renovate/actions-setup-python-di…
jaybuidl Oct 11, 2023
19cf159
fix: font-family for the evidence textarea
jaybuidl Oct 11, 2023
92f1c42
fix: minor, switched to another rng temporarily
jaybuidl Oct 11, 2023
6d2a0bd
chore: toolchain runs start/build for devnet or build for testnet if …
jaybuidl Oct 11, 2023
ed9aab0
fix: toolchain script
jaybuidl Oct 12, 2023
27e7ffc
fix(web): submit evidence on case 0
kemuru Oct 12, 2023
f8eee02
fix: linter warning about shadowed variable
jaybuidl Oct 12, 2023
9a6b869
fix: fixed based on feedback from @unknownunknown1, bumped hardhat-de…
jaybuidl Oct 13, 2023
bd0cb24
test: upgradable contracts initializers
jaybuidl Oct 16, 2023
c98a69d
refactor: deployUpgradable() utility and proxy tests
jaybuidl Oct 16, 2023
2a0bea5
refactor: proxy mocks simplification
jaybuidl Oct 16, 2023
51ef929
fix: linting
jaybuidl Oct 16, 2023
f6b6139
fix: justification should not be part of the commitment (bad ux)
jaybuidl Oct 18, 2023
2b44d0e
fix: initializers consistency
jaybuidl Oct 18, 2023
cd06014
chore: devnet redeploy
jaybuidl Oct 18, 2023
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
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
with:
egress-policy: audit

Expand All @@ -47,7 +47,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@29b1f65c5e92e24fe6b6647da1eaabe529cec70f # v2.3.3
uses: github/codeql-action/init@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -61,7 +61,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@29b1f65c5e92e24fe6b6647da1eaabe529cec70f # v2.3.3
uses: github/codeql-action/autobuild@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -74,6 +74,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@29b1f65c5e92e24fe6b6647da1eaabe529cec70f # v2.3.3
uses: github/codeql-action/analyze@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
with:
category: "/language:${{matrix.language}}"
11 changes: 3 additions & 8 deletions .github/workflows/contracts-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ on:
pull_request:
branches:
- "*"
paths-ignore:
- "kleros-sdk/**"
- "services/**"
- "subgraph/**"
- "web/**"

permissions: # added using https://github.com/step-security/secure-workflows
contents: read
Expand All @@ -29,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.0
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.5.0
with:
disable-sudo: true
egress-policy: block
Expand All @@ -45,14 +40,14 @@ jobs:
54.185.253.63:443

- name: Setup Node.js environment
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
uses: actions/setup-node@2a017f350dbf6c4b6bb4508cc83809719115162e
with:
node-version: 16.x

- uses: actions/checkout@7739b9ba2efcda9dde65ad1e3c2dbe65b41dfba7

- name: Cache node modules
uses: actions/cache@f7ebb81a3f195b4fb88dab7c14e2f7aff52045aa
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
env:
cache-name: cache-node-modules
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.0
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.5.0
with:
disable-sudo: true
egress-policy: block
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
with:
disable-sudo: true
egress-policy: block
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-bots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- uses: actions/checkout@7739b9ba2efcda9dde65ad1e3c2dbe65b41dfba7
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
- uses: actions/setup-python@5f2af211d616f86005883b44826180b21abb4060
- uses: aws-actions/setup-sam@12a6719db503425e98edcc798b6779590a450e8f
- uses: aws-actions/configure-aws-credentials@131c7b6fd10c0d7f36e1e49650b241d91ee327b9
- uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a
with:
aws-access-key-id: ${{ secrets.STAGING_AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.STAGING_AWS_SECRET_KEY }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
environment: kleros-org-subgraph
steps:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.0
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.5.0
with:
egress-policy: audit

- name: Checkout code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

- name: Set up Node.js
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: 16

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.0
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.5.0
with:
disable-sudo: true
egress-policy: block
Expand All @@ -56,7 +56,7 @@ jobs:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031 # v2.2.0
uses: ossf/scorecard-action@483ef80eb98fb506c348f7d62e28055e49fe2398 # v2.3.0
with:
results_file: results.sarif
results_format: sarif
Expand Down Expand Up @@ -86,6 +86,6 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@a09933a12a80f87b87005513f0abb1494c27a716 # v2.21.4
uses: github/codeql-action/upload-sarif@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
with:
sarif_file: results.sarif
6 changes: 3 additions & 3 deletions .github/workflows/sentry-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
version: ${{ steps.set-version.outputs.version }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.0
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.5.0
with:
disable-sudo: true
egress-policy: block
Expand All @@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@7739b9ba2efcda9dde65ad1e3c2dbe65b41dfba7

- name: Cache node modules
uses: actions/cache@f7ebb81a3f195b4fb88dab7c14e2f7aff52045aa
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
env:
cache-name: cache-node-modules
with:
Expand All @@ -45,7 +45,7 @@ jobs:
${{ runner.os }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-

- name: Set up Node.js
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
uses: actions/setup-node@2a017f350dbf6c4b6bb4508cc83809719115162e
with:
node-version: 16

Expand Down
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.packageManager": "yarn",
"prettier.useEditorConfig": true,
"prettier.configPath": "prettier-config/.prettierrc.js"
"prettier.configPath": "prettier-config/.prettierrc.js",
"sonarlint.connectedMode.project": {
"connectionId": "kleros",
"projectKey": "kleros_kleros-v2"
}
}
20 changes: 10 additions & 10 deletions contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Refresh the list of deployed contracts by running `./scripts/generateDeployments
- [ArbitrableExample](https://gnosis-chiado.blockscout.com/address/0xB56A23b396E0eae85414Ce5815da448ba529Cb4A)
- [DisputeResolver](https://gnosis-chiado.blockscout.com/address/0x16f20604a51Ac1e68c9aAd1C0E53e951B62CC1Cb)
- [DisputeTemplateRegistry](https://gnosis-chiado.blockscout.com/address/0x96E49552669ea81B8E9cE8694F7E4A55D8bFb957)
- [ForeignGatewayOnGnosis](https://gnosis-chiado.blockscout.com/address/0x83F393F2aE68FA6A6701D7c65CBbFf3225f3fDf9)
- [ForeignGatewayOnGnosis: proxy](https://gnosis-chiado.blockscout.com/address/0x078dAd05373d19d7fd6829735b765F12242a4300), [implementation](https://gnosis-chiado.blockscout.com/address/0xA4096fDA5291D5bbDD5Ed0D6CF2AF98229168Ace)
- [WETH](https://gnosis-chiado.blockscout.com/address/0x2DFC9c3141268e6eac04a7D6d98Fbf64BDe836a8)
- [WETHFaucet](https://gnosis-chiado.blockscout.com/address/0x22CB016c4b57413ca4DF5F1AC44a0E0d3c69811F)
- [WPNKFaucet](https://gnosis-chiado.blockscout.com/address/0x5898aeE045A25B276369914c3448B72a41758B2c)
Expand All @@ -66,19 +66,19 @@ Refresh the list of deployed contracts by running `./scripts/generateDeployments
#### Arbitrum Goerli

- [PNK](https://goerli.arbiscan.io/token/0x3483FA1b87792cd5BE4100822C4eCEC8D3E531ee)
- [ArbitrableExample](https://goerli.arbiscan.io/address/0x9B958EBe8057DCe5b9c1a30c935b790826bb511e)
- [ArbitrableExample](https://goerli.arbiscan.io/address/0x437cbF6F0A62238b392715aC55bdC5abdA148eD8)
- [BlockHashRNG](https://goerli.arbiscan.io/address/0xCea37c9A838831F6B4eE3BffbDC21b945113AD0C)
- [DAI](https://goerli.arbiscan.io/address/0xB755843e26F2cD1c6A46659cEBb67CcFAE0f2EeE)
- [DAIFaucet](https://goerli.arbiscan.io/address/0xCEBF1e0A5921767dd97b999ed14801A3770afAfd)
- [DisputeKitClassic](https://goerli.arbiscan.io/address/0x89807AeD661954080dB0ca7e8AcA72Af96E344e5)
- [DisputeResolver](https://goerli.arbiscan.io/address/0x36DabdE2b4Fe2C50775835B703687193D09DF8E0)
- [DisputeTemplateRegistry](https://goerli.arbiscan.io/address/0xB01eC32bB0ba461ebEA9A61A6172Aba0DDE2B640)
- [HomeGatewayToGnosis](https://goerli.arbiscan.io/address/0x12633ad7bd757858ada24738a94aeeba08727f1b)
- [KlerosCore](https://goerli.arbiscan.io/address/0x5a2bC1477ABE705dB4955Cda7DE064eA79D563d1)
- [DisputeKitClassic: proxy](https://goerli.arbiscan.io/address/0xc9aF9335327cAe0Cd45EC96ad9bDcD4304772729), [implementation](https://goerli.arbiscan.io/address/0x2757458b91faaB4240A6eAE72185C8185683a642)
- [DisputeResolver](https://goerli.arbiscan.io/address/0x20433D10d3865e19af45956ed5bFe30c56536431)
- [DisputeTemplateRegistry: proxy](https://goerli.arbiscan.io/address/0x8d17Ed667512412D9c194d178699f68159f250A2), [implementation](https://goerli.arbiscan.io/address/0x2F4c6c23C516A9247a413186cDcA693E1C078A1D)
- [KlerosCore: proxy](https://goerli.arbiscan.io/address/0x544afd5A8AbC40ba5d38BbA8d47f30502896b050), [implementation](https://goerli.arbiscan.io/address/0x241C37152D43f60a0142bCbb2D765e908dd03D9D)
- [PNKFaucet](https://goerli.arbiscan.io/address/0x05648Ee14941630a649082e0dA5cb80D29cC9002)
- [PinakionV2](https://goerli.arbiscan.io/address/0x3483FA1b87792cd5BE4100822C4eCEC8D3E531ee)
- [PolicyRegistry](https://goerli.arbiscan.io/address/0xa3556bF00c4f9ea235D6D4Bcb1B1c32121C0e935)
- [RandomizerRNG](https://goerli.arbiscan.io/address/0x0FE3869EA01Febb895Bc76DaB143858F84C67024)
- [SortitionModule](https://goerli.arbiscan.io/address/0xc3A8621DA59B35dDCD3e01504F182D9AC9F36b5B)
- [PolicyRegistry: proxy](https://goerli.arbiscan.io/address/0x37FFaF5506BB16327B4a32191Bb39d739fCE55a3), [implementation](https://goerli.arbiscan.io/address/0x3ab4C2906E3Cbc44C3e282affDb66272BCae6482)
- [RandomizerRNG: proxy](https://goerli.arbiscan.io/address/0x105C019c2724F08BFA41Ff0D0bD77030E1DEA177), [implementation](https://goerli.arbiscan.io/address/0xc90d73C64997699d835a1122D47d4A231965740C)
- [SortitionModule: proxy](https://goerli.arbiscan.io/address/0x5c9E4e7e85157DFD16D400dd358C541b65DaA83f), [implementation](https://goerli.arbiscan.io/address/0xec7C6C1b2FC93bBeF0fA4e301165144702c126F9)
- [WETH](https://goerli.arbiscan.io/address/0xbB5839497dE7e6d4ddaFde093F69abA9be782E07)
- [WETHFaucet](https://goerli.arbiscan.io/address/0xD2d862B060986b25996aaeDB54813002AB791013)

Expand Down
6 changes: 3 additions & 3 deletions contracts/deploy/00-ethereum-pnk.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import disputeTemplate from "../test/fixtures/DisputeTemplate.simple.json";
import { isSkipped } from "./utils";

enum Chains {
GOERLI = 5,
Expand All @@ -24,9 +25,8 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
};

deployArbitration.tags = ["Pinakion"];
deployArbitration.skip = async ({ getChainId }) => {
const chainId = Number(await getChainId());
return !Chains[chainId];
deployArbitration.skip = async ({ network }) => {
return isSkipped(network, !Chains[network.config.chainId ?? 0]);
};

export default deployArbitration;
17 changes: 6 additions & 11 deletions contracts/deploy/00-home-chain-arbitrable.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import disputeTemplate from "../test/fixtures/DisputeTemplate.simple.json";

enum HomeChains {
ARBITRUM_ONE = 42161,
ARBITRUM_GOERLI = 421613,
HARDHAT = 31337,
}
import { HomeChains, isSkipped } from "./utils";
import { deployUpgradable } from "./utils/deployUpgradable";

const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
const { deployments, getNamedAccounts, getChainId } = hre;
Expand All @@ -22,9 +18,9 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
"0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003"; // General court, 3 jurors
const weth = await deployments.get("WETH");

const disputeTemplateRegistry = await deploy("DisputeTemplateRegistry", {
const disputeTemplateRegistry = await deployUpgradable(deployments, "DisputeTemplateRegistry", {
from: deployer,
args: [],
args: [deployer],
log: true,
});

Expand All @@ -50,9 +46,8 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)

deployArbitration.tags = ["HomeArbitrable"];
deployArbitration.dependencies = ["Arbitration"];
deployArbitration.skip = async ({ getChainId }) => {
const chainId = Number(await getChainId());
return !HomeChains[chainId];
deployArbitration.skip = async ({ network }) => {
return isSkipped(network, !HomeChains[network.config.chainId ?? 0]);
};

export default deployArbitration;
Loading