name: Data Models - Dataclass definitions for all return types
status: open
created: 2025-09-19T16:02:24Z
updated: 2025-09-19T16:42:04Z
github: #129
depends_on: []
parallel: true
conflicts_with: []
Data Models - Dataclass definitions for all return types
Objective
Define simple Pydantic models for Solana blockchain service return types, ensuring type safety and clear data structures.
Acceptance Criteria
Core Models
Technical Requirements
Pydantic Implementation
- Use Pydantic
BaseModel for all data models
- Add proper type hints for all fields
- Use Pydantic's built-in validation
- Include optional fields with defaults where appropriate
Basic Validation
- Address format validation for Solana addresses
- Amount validation (positive numbers)
- Basic timestamp handling with datetime types
Serialization
- JSON serialization via Pydantic's built-in methods
- Support for API response parsing
Implementation Notes
Standalone Design
- No integration with existing pump.fun models
- No dependencies on current token_models.py
- Clean, simple implementation
Type Safety
- Proper type hints for all fields
- Pydantic validation for data integrity
- Optional fields handled with Union types
Files to Create/Modify
src/services/solana_models.py (new)
Testing Requirements
- Unit tests for Pydantic model validation
- Basic serialization tests
- Type checking validation
Dependencies
This task can be executed in parallel as it defines the foundational data structures that will be used by the service implementation and other components.
name: Data Models - Dataclass definitions for all return types
status: open
created: 2025-09-19T16:02:24Z
updated: 2025-09-19T16:42:04Z
github: #129
depends_on: []
parallel: true
conflicts_with: []
Data Models - Dataclass definitions for all return types
Objective
Define simple Pydantic models for Solana blockchain service return types, ensuring type safety and clear data structures.
Acceptance Criteria
Core Models
TokenHolding- SPL token holding with mint address, name, symbol, balance, decimalsTokenMetadata- Token metadata with name, symbol, decimalsFundingTransaction- First funding transaction with signature, timestamp, amount, from_addressTransaction- Basic transaction with signature and timestampWalletBalance- Simple wallet SOL balance representationTechnical Requirements
Pydantic Implementation
BaseModelfor all data modelsBasic Validation
Serialization
Implementation Notes
Standalone Design
Type Safety
Files to Create/Modify
src/services/solana_models.py(new)Testing Requirements
Dependencies
This task can be executed in parallel as it defines the foundational data structures that will be used by the service implementation and other components.