Skip to content

refactor: extract AnnouncementManager from NostrServerTransport (CEP-35)#74

Merged
ContextVM-org merged 1 commit into
ContextVM:mainfrom
harsh04044:refactor/cep35-announcement-manager
May 14, 2026
Merged

refactor: extract AnnouncementManager from NostrServerTransport (CEP-35)#74
ContextVM-org merged 1 commit into
ContextVM:mainfrom
harsh04044:refactor/cep35-announcement-manager

Conversation

@harsh04044
Copy link
Copy Markdown

Closes the last open item in issue #43.

Extracts tag-building and announcement logic from server/mod.rs into a dedicated AnnouncementManager struct. Pure refactor - no behavioral change, all public API signatures preserved.

  • Tag caching, invalidation, and kind-to-tag mapping match TS SDK
  • All publish methods are now one-line delegations in mod.rs
  • 10 new unit tests for tag composition and caching
  • server/mod.rs shrunk by 175 lines

@ContextVM-org ContextVM-org merged commit 24797af into ContextVM:main May 14, 2026
2 checks passed
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