Skip to content

Comments

Use Cannon for Deployments#255

Closed
kaze-cow wants to merge 13 commits intonew-chain-deploymentsfrom
cannon
Closed

Use Cannon for Deployments#255
kaze-cow wants to merge 13 commits intonew-chain-deploymentsfrom
cannon

Conversation

@kaze-cow
Copy link
Contributor

@kaze-cow kaze-cow commented Jan 15, 2026

Description

In order to improve multi-network multi-repository deployments of CoW protocol, we are switching to using Cannon. This PR officially deprecates any previous deployment systems and output files, and replaces them with Cannon. It also includes all the appropriate documentation for continued maintenance and usage of cannon, and

General changes:

  • Add hardhat-cannon and @usecannon/cli to package.json
  • Add cannonfile.toml with a configuration that replicates the existing smart contracts structure
  • Add EIP173.sol and Proxy.sol to the repository--required for the correct proxy implementation as was previously provided by hardhat-deploy
  • Add a CI job to validate the successful cannon build and the recorded artifacts are matching
  • Remove old deployment files: deployments/, networks.json
  • Remove old deployment system src/deploy
  • Update README.md explaining how things work now.

Test Plan

  • Build the cannon package as instructed in the README
  • Ensure that the output contract addresses are as expected
  • Verify that the CI works as expected.

Related

cow-deployments repository

@kaze-cow kaze-cow self-assigned this Jan 15, 2026
@kaze-cow kaze-cow changed the base branch from main to new-chain-deployments January 15, 2026 08:50
@kaze-cow kaze-cow requested a review from a team February 18, 2026 06:54
@socket-security
Copy link

socket-security bot commented Feb 18, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​usecannon/​cli@​2.26.0-alpha.081100859370

View full report

@socket-security
Copy link

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn Critical
Critical CVE: Babel vulnerable to arbitrary code execution when compiling specifically crafted malicious code in npm @babel/traverse

CVE: GHSA-67hx-6x53-jw92 Babel vulnerable to arbitrary code execution when compiling specifically crafted malicious code (CRITICAL)

Affected versions: < 7.23.2; >= 8.0.0-alpha.0 < 8.0.0-alpha.4

Patched version: 7.23.2

From: ?npm/@gnosis.pm/util-contracts@3.1.0-solc-7npm/@babel/traverse@7.13.13

ℹ Read more on: This package | This alert | What is a critical CVE?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@babel/traverse@7.13.13. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn Critical
Critical CVE: Babel vulnerable to arbitrary code execution when compiling specifically crafted malicious code in npm babel-traverse

CVE: GHSA-67hx-6x53-jw92 Babel vulnerable to arbitrary code execution when compiling specifically crafted malicious code (CRITICAL)

Affected versions: >= 0

Patched version: No patched versions

From: ?npm/babel-traverse@6.26.0

ℹ Read more on: This package | This alert | What is a critical CVE?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/babel-traverse@6.26.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@kaze-cow
Copy link
Contributor Author

closed in favor of #256

@kaze-cow kaze-cow closed this Feb 18, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Feb 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant