kleros-v2
kleros-v2 copied to clipboard
refactor: return typed parameters [WIP]
WIP: Still requires migrating the subgraph
Context: https://github.com/wagmi-dev/wagmi/discussions/2866#discussioncomment-7512415
PR-Codex overview
Focus of this PR:
This PR focuses on refactoring and improving the code related to juror balances and stake display in the CourtDetails page.
Detailed summary:
- Updated the
InputDisplaycomponent inInputDisplay.tsxand theStakeWithdrawcomponent inStakeWithdraw.tsxto use thestakedInCourtproperty from thejurorBalanceobject instead of accessing the array index directly. - Updated the
DisputeKitClassic.sol,DisputeKitSybilResistant.sol, andSortitionModule.solcontracts to use theJurorBalancestruct and access the juror balance properties directly. - Updated the
StakeWithdrawButton.tsxcomponent to use thestakedInCourtproperty from thejurorBalanceobject instead of accessing the array index directly. - Added the
JurorBalancestruct to theKlerosCore.solcontract and updated thegetJurorBalancefunction to return theJurorBalancestruct. - Updated the
JurorStakeDisplay.tsxandJurorBalanceDisplaycomponents to use thestakedInCourtproperty from thejurorBalanceobject instead of accessing the array index directly.
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}
Deploy Preview for kleros-v2 ready!
| Name | Link |
|---|---|
| Latest commit | 4ef3e8a9c2a1311509518581fada38c4bfcea26f |
| Latest deploy log | https://app.netlify.com/sites/kleros-v2/deploys/654bd4b78490a700080916a9 |
| Deploy Preview | https://deploy-preview-1322--kleros-v2.netlify.app/ |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Code Climate has analyzed commit 4ef3e8a9 and detected 0 issues on this pull request.
View more on Code Climate.
Kudos, SonarCloud Quality Gate passed! 
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication