-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
onlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week
Description
🎯 Objective
Verify the integrity of the renewable-energy-certificate-tracker system, focusing on REC issuance, REC transfer, and REC retirement flows to ensure transparent and compliant certificate management.
🧪 Test Structure
renewable-energy-certificate-tracker/src/tests/
├── issuance.rs // Tests for REC issuance
├── transfer.rs // Tests for REC transfer
├── retirement.rs // Tests for REC retirement
└── utils.rs // Test helpers and setup🗂 Requirements
-
REC Issuance
- Test issuance of RECs for valid renewable energy production.
- Verify issuer authorization and REC data integrity.
-
REC Transfer
- Ensure accurate transfer of RECs to new owners.
- Validate handling of invalid or unauthorized transfers.
-
REC Retirement
- Test retirement of RECs for renewable energy claims.
- Verify retirement status and audit logging.
-
Build and Test
- Tests must pass with
cargo test.
- Tests must pass with
🔍 Key Scenarios
- Issuance for non-verified energy production.
- Unauthorized attempt to issue or transfer a REC.
- Retirement with invalid REC data.
- Duplicate REC issuance attempt.
- Transfer of an already retired REC.
🔗 References
- Soroban Documentation - Testing Contracts
- Stellar Developers - Data Management
- Rust Testing Guide
- I-REC Standard
📝 Notes
- Cover edge cases like invalid energy sources or missing issuer data.
- Ensure auditable test outcomes for REC compliance.
- Simulate high-volume REC issuances to test scalability.
- Validate integration with
carbon-credit-registryfor carbon offset tracking. - Modularize tests to keep files concise and maintainable.
Metadata
Metadata
Assignees
Labels
onlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week