Skip to content

Conversation

@rpanic
Copy link
Member

@rpanic rpanic commented Jan 28, 2025

Depends on #260 - Change branch before merging!

Closes #262

This PR removes @protocolState() in favor of a unified @state() decorator that works on both protocol hooks and runtime modules.
Additionally, it adds prefixing on Path creation (hashing) in order to prevent collisions. Previously, if a runtime module and a hook had the same name and state property name, the path would've been the same. Through prefixed hashing, this is now prevented

This change breaks the current state import from @proto-kit/module, since it moves this export to @proto-kit/protocol

@rpanic rpanic changed the base branch from feature/st-prover-3 to develop February 11, 2025 12:40
@rpanic rpanic merged commit 7da2dd2 into develop Feb 11, 2025
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.

Homogenize @protocolState() towards a single @state() API

3 participants