Skip to content
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

Added a State Machine Pattern #21

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kamalbuilds
Copy link

Made the following contributions

  1. A State Machine Pattern contract that demonstrates state transitions and stage-based access control.

  2. A new CLI tool to easily add pattern contracts to projects

  3. Integration of the pattern creation tool into the main CLI

To use these patterns, developers can:

Use the CLI command: npm run create-pattern <pattern-name>
Available patterns: access, state, rate, guard, proxy, check

The patterns will be created in a contracts/patterns directory
These additions would make the repository more valuable for developers by providing:

  • More design patterns and examples
  • Better tooling for pattern implementation
  • Structured approach to common smart contract patterns
  • Educational value for blockchain developers

@kamalbuilds
Copy link
Author

@0xAleksaOpacic please review this PR

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.

1 participant