-
Notifications
You must be signed in to change notification settings - Fork 44
Add Canton Blockchain (NONEVM-3438) #2332
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces support for Canton blockchain networks within the testing framework, enabling developers to spin up Canton network simulations with configurable numbers of validators.
Key changes include:
- Added Canton as a new blockchain type with validation and family mappings
- Implemented container orchestration for Canton infrastructure (Postgres, Canton nodes, Splice validators, and Nginx proxy)
- Configured reverse proxy routing for accessing Canton participant APIs through standardized localhost endpoints
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| framework/components/blockchain/blockchain.go | Adds Canton type constants, input validation, and routing logic for Canton network initialization |
| framework/components/blockchain/canton.go | Implements the main Canton network setup function coordinating container deployment |
| framework/components/blockchain/canton/canton.go | Defines Canton node container configuration including health checks and HOCON config generation |
| framework/components/blockchain/canton/splice.go | Configures Splice application containers for Canton validator operations |
| framework/components/blockchain/canton/postgres.go | Sets up Postgres database containers with initialization scripts for Canton storage |
| framework/components/blockchain/canton/nginx.go | Configures Nginx reverse proxy for routing to Canton participant APIs |
| framework/.changeset/v0.13.0.md | Documents the feature addition in changelog |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 12 out of 13 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 12 out of 13 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This adds support for spinning up a local Canton Network blockchain to the testing framework.
This pull request adds support for the Canton blockchain to the testing framework. It introduces new configuration options, endpoints, and documentation for running and interacting with a local Canton network, including support for multiple validators and detailed API access. The changes span documentation, configuration, workflow, and implementation.
Canton blockchain support:
TypeCantonblockchain type andFamilyCantonchain family, along with support for thecantonvalue in configuration validation and chain family mapping inblockchain.go. [1] [2] [3]NumberOfCantonValidatorsfield in the blockchain input struct to configure the number of Canton validators, and extended the output struct to include newCantonEndpointsfor accessing Canton-specific APIs. [1] [2]newCantonfunction incanton.go, which provisions the required containers (Postgres, Canton, Splice, Nginx), sets up endpoints for the super validator and participants, and returns the configuration for use in tests.Documentation and workflow:
canton.md.