Skip to content

Conversation

@wilson-cl
Copy link

This pull request introduces automation for adding new EVM chains to the client.proto file, both by providing a new GitHub Actions workflow and by adding a supporting CLI tool. The workflow allows chains to be added via manual, API, or workflow triggers, while the CLI tool handles the logic of updating the proto file with the new chain information.

Automation for adding EVM chains:

  • Added a new GitHub Actions workflow (.github/workflows/add-evm-chain.yml) that automates the process of adding an EVM chain to client.proto, regenerates embedded files, and creates a pull request. The workflow can be triggered manually, programmatically, or via API, and outputs a summary with chain and PR details.

Supporting CLI tool for proto updates:

  • Introduced a new Go CLI tool (cre/go/tools/add-evm-chain/main.go) that takes a chain selector, looks up the corresponding chain name using the chain-selectors library, checks for duplicates, inserts the new entry in sorted order into the defaults array in client.proto, and writes the updated file.

Example Flow

  1. Trigger workflow
Screenshot 2026-01-16 at 1 37 44 PM
  1. Workflow Result
Screenshot 2026-01-16 at 1 34 55 PM
  1. PR Created
image
  1. If the chain exists
Screenshot 2026-01-16 at 1 58 31 PM

@wilson-cl wilson-cl requested review from a team as code owners January 16, 2026 06:01
@changeset-bot
Copy link

changeset-bot bot commented Jan 16, 2026

⚠️ No Changeset found

Latest commit: de221b9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link

👋 wilson-cl, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@wilson-cl wilson-cl requested review from amit-momin and poopoothegorilla and removed request for ChrisAmora January 16, 2026 06:01
@github-actions
Copy link

github-actions bot commented Jan 16, 2026

The latest Buf updates on your PR. Results from workflow Regenerate Protobuf Files / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed⏩ skippedJan 16, 2026, 6:06 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants