Closed Harman-singh-waraich closed 2 months ago
Name | Link |
---|---|
Latest commit | ec0e43f7b0236d3ccc4d3aab06b2010c71a2bdca |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-university/deploys/66b35c2d7c6b3d0008b9592d |
Name | Link |
---|---|
Latest commit | 5d9bf8e3a5560c06b3b6df09ca59a3550f8b0d63 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-testnet/deploys/66b35d0f35b5610007ef9afa |
Deploy Preview | https://deploy-preview-1668--kleros-v2-testnet.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.
Name | Link |
---|---|
Latest commit | 5d9bf8e3a5560c06b3b6df09ca59a3550f8b0d63 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-neo/deploys/66b35d0fe8a7230008d624ad |
The recent updates introduce significant enhancements across various system components. Key additions include the TransactionBatcher
smart contract for streamlined transaction management, enriched GraphQL queries for improved data retrieval, and new React components that enhance user interaction in dispute management. Collectively, these changes optimize operations, elevate user experience, and clarify interactions with the blockchain.
File(s) | Change Summary |
---|---|
contracts/README.md |
Added entries for the TransactionBatcher contract with proxy links for mainnet and testnet. |
contracts/deploy/00-transaction-batcher.ts |
Introduced deployment script for TransactionBatcher , managing network conditions and deployment utilities. |
contracts/deployments/arbitrum/TransactionBatcher.json contracts/deployments/arbitrumSepoliaDevnet/TransactionBatcher.json |
Added deployment details and ABI for TransactionBatcher , including functions for batch sending Ether. |
subgraph/core/schema.graphql |
Updated GraphQL schema for Round and ClassicRound to include new fields for juror management and fee distribution. |
subgraph/core/src/DisputeKitClassic.ts |
Modified logic for handling appeal costs and fee management in disputes. |
subgraph/core/src/KlerosCore.ts |
Enhanced handling of dispute rounds, including state tracking for jurors and reward distribution. |
web/src/components/DottedMenuButton.tsx |
Introduced a new button component featuring a ripple effect for enhanced UI interaction. |
web/src/hooks/queries/useClassicAppealQuery.ts web/src/hooks/queries/useDisputeDetailsQuery.ts web/src/hooks/queries/useDisputeMaintenanceQuery.ts |
Extended GraphQL queries to include new fields for better data management related to disputes and appeals. |
web/src/pages/Cases/CaseDetails/MaintenanceButtons/* |
Implemented multiple new components for managing dispute actions, including distributing rewards and managing periods. |
web/src/utils/getLocalRounds.ts |
Refactored getLocalRounds function for enhanced type safety and flexibility using generics. |
web/src/pages/Cases/CaseDetails/MaintenanceButtons/PassPeriodButton.tsx |
Updated PassPeriodButton to improve state management with a fallback value for isDrawn . |
sequenceDiagram
participant User
participant UI
participant TransactionBatcher
participant Blockchain
User->>UI: Clicks to send batch transaction
UI->>TransactionBatcher: Prepare transaction data
TransactionBatcher->>Blockchain: Execute batch transaction
Blockchain-->>TransactionBatcher: Transaction result
TransactionBatcher-->>UI: Update UI based on result
UI-->>User: Show success/failure message
π In the land of code where the rabbits play,
New features hop in, brightening the day.
Batching transactions, oh what a delight,
User interfaces spark joy, shining bright!
With every click, a dance of success,
Hooray for the changes, weβre truly blessed! πΌ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Code Climate has analyzed commit 5d9bf8e3 and detected 11 issues on this pull request.
Here's the issue category breakdown:
Category | Count |
---|---|
Complexity | 2 |
Duplication | 7 |
Style | 2 |
View more on Code Climate.
Failed conditions
17.7% Duplication on New Code (required β€ 10%)
builds upon #1645 , please merge the previous one first
Adds arbitrator level maintenance buttons as Courts page
PR-Codex overview
This PR updates subgraph version, refactors maintenance buttons, and adds stake maintenance features to the Courts page.
Detailed summary
Summary by CodeRabbit
New Features
TransactionBatcher
contract for efficient batch transactions.DottedMenuButton
component for improved UI interactions.WithdrawAppealFees
component to facilitate the withdrawal of appeal fees.useTransactionBatcher
hook for handling multiple transactions efficiently.@kleros/kleros-v2-subgraph
package.PassPeriodButton
component's state management for reliability.Bug Fixes
Documentation
README.md
with direct links to theTransactionBatcher
contract on Arbiscan.Style
Tests
TransactionBatcher
functionalities and UI components.Chores