Skip to content

Conversation

@thcsomebody
Copy link
Contributor

This PR completes Phase-0 implementation of the DAORegistry contract (SOV-P0-2.3).

Changes:

  • Add module with and types
  • Implement with , , , (owner-only)
  • Add and variants and serialization tests
  • Add wasm wrappers for runtime integration and convenience wrappers
  • Add 15+ unit tests and integration placeholders
  • Add convenience scripts and README

Notes:

  • Pagination is suggested for production scale (TODO)
  • Event publishing is returned as and can be emitted by the runtime

Closes: #184

Add dao_registry module with DAOEntry/DAOMetadata and DAORegistry implementation. Implement register_dao, get_dao, list_daos, update_metadata with owner-only access control and clear errors. Add DaoRegistered and DaoUpdated ContractEvent variants and serialization tests. Add unit tests for registry behavior and modify contracts re-exports.
- Complete DAO registry with HashMap<[u8;32], DAOEntry> storage
- Implement register_dao() with unique DaoId generation
- Implement get_dao() for token-based lookups
- Implement list_daos() for complete registry listing
- Implement update_metadata() with owner-only access control
- Add comprehensive event emission (DAORegistered, DAOUpdated)
- Support all DAO classes (Protocol, Service, Community, Investment, Other)
- Add 15+ comprehensive unit tests covering all functionality
- Implement proper error handling with clear messages
- Add WASM exports for blockchain integration
- Include gas-optimized storage patterns
- Add build scripts and comprehensive documentation

Completes requirement: [SOV-P0-2.3] Implement DAORegistry Contract #184
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 6, 2026

@umwelt umwelt self-requested a review January 6, 2026 23:39
Copy link
Contributor

@umwelt umwelt left a comment

Choose a reason for hiding this comment

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

This issues where closed, were did you pick them from

@umwelt umwelt added the CHANGES REQUESTED PR that is blocked for CR label Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CHANGES REQUESTED PR that is blocked for CR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SOV-P0-2.3] Implement DAORegistry Contract

3 participants