Closed Harman-singh-waraich closed 6 months ago
Name | Link |
---|---|
Latest commit | |
Latest deploy log | https://app.netlify.com/sites/curate-v2/deploys/66603e2e0a98f0f1e3613bfe |
Deploy Preview | https://deploy-preview-36--curate-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.
The updates encompass various enhancements and fixes across the web and subgraph directories. Key changes include adding a new dependency, updating URLs, dynamically setting contract addresses, and improving script functionalities. These modifications aim to streamline the handling of addresses, enhance error handling, and improve the overall user experience by making the system more dynamic and responsive.
File(s) | Change Summary |
---|---|
web/.gitignore |
Added generatedMainCurateAddress.json to ignored files. |
web/package.json |
Added new dev dependency @kleros/kleros-v2-contracts version 0.3.2 . |
web/scripts/generateBuildInfo.sh |
Added script to retrieve main curate address and store it in a JSON file with error handling. |
web/src/components/ActionButton/index.tsx |
Updated URL path for linking to a case overview. |
web/src/components/InformationCards/RegistryInformationCard/Policies.tsx , web/src/pages/AllLists/RegistriesFetcher.tsx , web/src/pages/Home/Highlights/index.tsx , web/src/pages/SubmitList/NavigationButtons/SubmitListButton.tsx |
Updated usage of MAIN_CURATE_ADDRESS instead of listOfListsAddresses[DEFAULT_CHAIN] . |
web/src/consts/arbitration.ts |
Dynamically set addresses for KLEROS_ARBITRATOR , EVIDENCE_MODULE , and TEMPLATE_REGISTRY based on DEFAULT_CHAIN . |
web/src/consts/index.ts |
Added import for GeneratedMainCurate and updated COURT_SITE and MAIN_CURATE_ADDRESS constants. |
web/src/layout/Header/navbar/Explore.tsx |
Added imports and updated links array initialization for dynamic loading based on mainCurate data. |
web/src/utils/submitListUtils.ts |
Introduced imports for netlifyUri and DEFAULT_CHAIN , updated URL construction and chain ID assignment logic. |
web/wagmi.config.ts |
Extended function to read external contracts like KlerosCore and EvidenceModule. |
subgraph/scripts/update.sh |
Added updateTemplates() function to update ABIs paths in subgraph configuration file. |
sequenceDiagram
participant User
participant WebApp
participant Subgraph
participant Contract
User ->> WebApp: Request Case Overview
WebApp ->> Contract: Fetch Dispute ID
Contract -->> WebApp: Return Dispute ID
WebApp ->> Subgraph: Query Main Curate Address
Subgraph -->> WebApp: Return Main Curate Address
WebApp ->> User: Display Case Overview with Updated URL
In the realm of code, where changes flow,
New addresses dance, dynamic and slow.
URLs now lead to cases with grace,
Scripts fetch addresses, no errors to face.
Dependencies added, the web grows strong,
Here's to progress, where all things belong!
🌟🐰✨
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?
update
script in subgraph to handle templatesCOURT_SITE
as envPR-Codex overview
The focus of this PR is to update addresses and improve contract handling.
Detailed summary
listOfListsAddresses.ts
and addedgeneratedMainCurateAddress.json
.arbitration.ts
andSubmitListButton.tsx
.MAIN_CURATE_ADDRESS
in various components.Summary by CodeRabbit
New Features
@kleros/kleros-v2-contracts
version0.3.2
.Improvements
MAIN_CURATE_ADDRESS
across multiple components for consistency.Chores
.gitignore
to includegeneratedMainCurateAddress.json
.update.sh
script to update ABIs paths for Hardhat networks.