Skip to content

Issue #2: User Profile & Registration System #2

@PeterOche

Description

@PeterOche

Description

Implement the core user profile system that manages user registration, profile data, and basic account functionality on-chain.

Tasks

  • Create User model with essential fields:
    • wallet_address (felt252)
    • username (felt252)
    • registration_timestamp (u64)
    • profile_metadata_hash (felt252)
    • is_active (bool)
  • Implement user registration system
  • Create user profile update functionality
  • Add username uniqueness validation
  • Implement profile deactivation/reactivation
  • Create user lookup functions
  • Add access control for profile modifications
  • Implement events for user actions

Acceptance Criteria

  • Users can register with unique wallet addresses
  • Usernames are enforced to be unique
  • Profile updates only allowed by profile owner
  • Proper events are emitted for all user actions
  • Gas optimization for common operations
  • Comprehensive test coverage (>90%)

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions