Skip to content

Refactor "Counter" example#145

Merged
bagelface merged 4 commits intodevfrom
bagelface/refactor-counter-example
Mar 11, 2026
Merged

Refactor "Counter" example#145
bagelface merged 4 commits intodevfrom
bagelface/refactor-counter-example

Conversation

@bagelface
Copy link
Copy Markdown
Contributor

@bagelface bagelface commented Feb 17, 2026

This PR is alternative approach to reorganizing the commonware project. It keeps the e2e tests and counter example with the library code, but organizes it a bit better and most importantly flags the example code to not be published when distributing on something like crates.io. The old PR to move the counter example has been closed #144

  • Move all counter specific logic to examples/counter
  • Create dedicated module eigenlayer for EigenLayer integration utilities
  • Rename images to counter-router and counter-node
  • Use workspace fields for "version" and "edition" to ensure things stay consistent throughout project
  • Set "publish" flag for example modules to false so distributed package is leaner
  • Other small refactors, like dependency sorting, .gitignore reorg, README updates, etc.

@bagelface bagelface marked this pull request as ready for review February 17, 2026 17:37
@bagelface bagelface changed the title [DRAFT] Move "usecases" into "examples" module and create an eigenlayer module Move "usecases" into "examples" module and create an eigenlayer module Feb 17, 2026
@bagelface bagelface changed the title Move "usecases" into "examples" module and create an eigenlayer module Refactor "Counter" example Feb 17, 2026
Comment on lines +47 to +53
sed -i 's/^# DELEGATION_MANAGER_ADDRESS=/DELEGATION_MANAGER_ADDRESS=/' .env
sed -i 's/^# STRATEGY_MANAGER_ADDRESS=/STRATEGY_MANAGER_ADDRESS=/' .env
sed -i 's/^# LST_CONTRACT_ADDRESS=/LST_CONTRACT_ADDRESS=/' .env
sed -i 's/^# LST_STRATEGY_ADDRESS=/LST_STRATEGY_ADDRESS=/' .env
sed -i 's/^# BLS_SIGNATURE_CHECKER_ADDRESS=/BLS_SIGNATURE_CHECKER_ADDRESS=/' .env
sed -i 's/^# OPERATOR_STATE_RETRIEVER_ADDRESS=/OPERATOR_STATE_RETRIEVER_ADDRESS=/' .env
sed -i 's/^# ALLOCATION_MANAGER_ADDRESS=/ALLOCATION_MANAGER_ADDRESS=/' .env
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious about this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We spoke on call, but this is because I updated the .env.example to be consistent with other comments (IDEs will add an extra space by default when you use the keyboard shortcut for commenting out sections) and needed to update this "sed" command to match.

@bagelface bagelface merged commit 9bd1f24 into dev Mar 11, 2026
7 checks passed
@bagelface bagelface deleted the bagelface/refactor-counter-example branch March 11, 2026 14:40
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