-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
BETAPhase-0 SOV Economy - Beta ImplementationPhase-0 SOV Economy - Beta ImplementationP1-HighHigh priority - fix before betaHigh priority - fix before betablockchainBlockchain-related changesBlockchain-related changescontractsSmart contract developmentSmart contract development
Description
Phase: Phase-0 - Core Contracts
Category: Core SOV Contracts
Files: lib-blockchain/src/contracts/dao_registry/ (new)
Depends on: Ticket 1.1
Description
Registry contract storing all DAO metadata and token addresses.
Tasks
- Create
contracts/dao_registry/core.rs - Define registry storage:
HashMap<[u8;32], DAOEntry> - Implement
register_dao(token_addr, class, metadata_hash, treasury) -> DaoId - Implement
get_dao(token_addr) -> DAOMetadata - Implement
list_daos() -> Vec<DAOEntry> - Implement
update_metadata(dao_id, metadata_hash)- owner only - Add event emission:
DAORegistered,DAOUpdated - Add WASM exports
- Create
contracts/dao_registry/mod.rs - Add unit tests (10+ test cases)
Acceptance Criteria
- DAOs can be registered with metadata
- Registry lookups work by token address
- Only DAO owner can update metadata
- Unit tests: registration, lookup, listing, updates
References
PHASE_0_IMPLEMENTATION_PLAN.md Ticket 2.3
Metadata
Metadata
Assignees
Labels
BETAPhase-0 SOV Economy - Beta ImplementationPhase-0 SOV Economy - Beta ImplementationP1-HighHigh priority - fix before betaHigh priority - fix before betablockchainBlockchain-related changesBlockchain-related changescontractsSmart contract developmentSmart contract development