Skip to content

Bounty escrow: settlement grace periods (bounty_escrow/escrow) #764

@Jagadeeshftw

Description

@Jagadeeshftw

Great issue: Bounty escrow: settlement grace periods (bounty_escrow/escrow)

Description

Grace period after deadline before finality; test_settlement_grace_periods.rs.

Requirements and context

Prevent race between grace refund and release.

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/bounty-escrow-grace

Implement changes

Write contract: bounty_escrow/contracts/escrow/src/lib.rs
Write tests: bounty_escrow/contracts/escrow/src/test_settlement_grace_periods.rs
Add documentation: GRACE_PERIOD_TESTS.md alignment

Include Rust doc comments (///) on public items equivalent to NatSpec-style documentation
Validate security assumptions

Test and commit

Run tests: from contracts/ directory run cargo test (scope with -p grainlify-core, -p program-escrow, -p bounty-escrow, -p view-facade as appropriate). For Soroban crates under soroban/contracts/, run cargo test from that package workspace.
Cover edge cases
Include test output summary and security notes in the PR

Example commit message

feat(bounty-escrow): settlement grace period tests

Guidelines

Minimum 95 percent test coverage for new or materially changed contract code
Clear documentation (module-level docs and targeted README sections where new surface area is introduced)
Timeframe: 96 hours

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions