Implement Summary Read Method for External Indexers
Description
Expose a single read method returning a compact struct of status, funded amount, targets, and timestamps to reduce cross-contract call chatter for backends.
Requirements and context
- Must be secure, tested, and documented
- Should be efficient and easy to review
Suggested execution
- Fork the repo and create a branch
git checkout -b feature/escrow-summary-read
- Implement changes
- Write contract:
escrow/src/lib.rs
- Write comprehensive tests:
escrow/src/test.rs
- Add documentation:
README.md
- Include Rust doc comments for field stability across versions
- Validate assumptions on struct size and serialization
Test and commit
- Run tests
- Cover edge cases
- Include test output and security notes
Example commit message
feat(escrow): add compact summary read for indexer efficiency
Guidelines
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Implement Summary Read Method for External Indexers
Description
Expose a single read method returning a compact struct of status, funded amount, targets, and timestamps to reduce cross-contract call chatter for backends.
Requirements and context
Suggested execution
git checkout -b feature/escrow-summary-readescrow/src/lib.rsescrow/src/test.rsREADME.mdTest and commit
Example commit message
feat(escrow): add compact summary read for indexer efficiencyGuidelines