feat: Cluster smart-contract#212
Merged
Merged
Conversation
…n into feat/contract
…n into feat/contract
…n into feat/contract
…n into feat/contract
…n into feat/contract
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new smart-contract implementation for the WCN Cluster state and updates project dependencies.
- Updates build configuration and dependency management (flake.nix, Cargo.toml, Dockerfile, etc.).
- Upgrades networking components and refactors error handling in the metrics server.
- Adds a new Solidity smart contract for Cluster functionality.
Reviewed Changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| flake.nix | Adds solc and foundry to the development environment. |
| crates/wcn/Cargo.toml | Removes the alloy dependency for smart contract integration. |
| crates/node/src/metrics.rs | Updates axum route syntax and refactors server error mapping. |
| crates/node/src/lib.rs | Changes error mapping for MetricsServer from hyper::Error to io::Error. |
| crates/node/Cargo.toml | Upgrades axum to 0.8 and removes the alloy dependency. |
| crates/core/Cargo.toml | Removes async-trait dependency. |
| contracts/src/Cluster.sol | Introduces the new smart-contract implementation with Cluster logic. |
| contracts/foundry.toml | Configures Foundry with updated remapping and dependencies. |
| VERSION | Updates the version number. |
| Dockerfile | Upgrades base images for Rust and Debian. |
| Cargo.toml | Updates multiple dependencies to support new features. |
|
|
||
| event SettingsUpdated(Settings newSettings, uint128 clusterVersion); | ||
|
|
||
| event OwnershipTransferred(address newOwner, uint128 cluserVersion); |
There was a problem hiding this comment.
Typo in event parameter 'cluserVersion'; consider renaming it to 'clusterVersion' for clarity and consistency.
Suggested change
| event OwnershipTransferred(address newOwner, uint128 cluserVersion); | |
| event OwnershipTransferred(address newOwner, uint128 clusterVersion); |
heilhead
reviewed
Jun 10, 2025
| ) | ||
| .route( | ||
| "/metrics/:peer_id", | ||
| "/metrics/{peer_id}", |
heilhead
approved these changes
Jun 10, 2025
This was referenced Jun 10, 2025
rplusq
approved these changes
Jun 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Initial smart-contract implementation of the WCN Cluster state.
Additionally:
How Has This Been Tested?
Unit
Due Diligence