Skip to content

Feature/implement wastetype enum#94

Merged
Xoulomon merged 2 commits intoXoulomon:mainfrom
Mystery-CLI:feature/implement-wastetype-enum
Feb 23, 2026
Merged

Feature/implement wastetype enum#94
Xoulomon merged 2 commits intoXoulomon:mainfrom
Mystery-CLI:feature/implement-wastetype-enum

Conversation

@Mystery-CLI
Copy link
Copy Markdown
Contributor

closes #16

- Create stellar-contract/ directory with Soroban smart contract
- Implement ParticipantRole enum (Recycler, Collector, Manufacturer)
- Add Soroban storage traits and validation logic
- Add 11 comprehensive unit tests covering all role types
- Create CI/CD pipeline with GitHub Actions
- Add build and verification scripts (bash and PowerShell)
- Configure Soroban CLI with network settings
- Update README with complete project documentation
- Add frontend/ directory structure for future implementation
- Remove old frontend files and contracts

Closes Xoulomon#1 - Initialize Stellar Rust Project Structure
Closes Xoulomon#2 - Implement ParticipantRole Enum in Rust
- Add WasteType enum with 5 variants: Paper, PetPlastic, Plastic, Metal, Glass
- Implement Soroban storage traits via #[contracttype] attribute
- Add Display trait for string conversion
- Implement helper methods: is_valid, from_u32, to_u32, as_str
- Add domain-specific methods: is_plastic, is_biodegradable, is_infinitely_recyclable
- Add 14 comprehensive unit tests covering all functionality
- Add Soroban storage serialization tests
- Export WasteType from lib.rs

All acceptance criteria met:
- Enum compiles without errors
- Can be stored in Soroban storage (TryFromVal/TryIntoVal)
- Tests pass for all variants
- Display trait implemented for string conversion

Closes Xoulomon#3 - Implement WasteType Enum in Rust
@Xoulomon Xoulomon merged commit a7b866b into Xoulomon:main Feb 23, 2026
0 of 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.

Define WasteType Enum

3 participants