Skip to content

feat: add maintainer-approved bounty claims#8

Open
TUPM96 wants to merge 1 commit into
issueflow-buidl:mainfrom
TUPM96:codex/claim-bounty-2
Open

feat: add maintainer-approved bounty claims#8
TUPM96 wants to merge 1 commit into
issueflow-buidl:mainfrom
TUPM96:codex/claim-bounty-2

Conversation

@TUPM96

@TUPM96 TUPM96 commented May 25, 2026

Copy link
Copy Markdown

Summary

  • add BountyEscrow storage that binds each issue bounty to the token and amount actually locked
  • implement maintainer-approved claim_bounty(maintainer, issue_id, contributor) to release escrowed tokens to the contributor
  • clear escrow state before payout so the same bounty cannot be claimed twice
  • update cancel_bounty to return the stored escrow instead of accepting arbitrary token/amount inputs
  • add token-backed Soroban tests for create, claim, token binding, cancel, missing escrow, and double-claim prevention

Validation

  • cargo fmt
  • cargo test (6 passing)
  • cargo clippy --all-targets -- -D warnings
  • cargo build --target wasm32v1-none --release
  • git diff --check

Closes #2

Payout details can be provided privately if needed.

Copilot AI review requested due to automatic review settings May 25, 2026 11:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

[CONTRACTS] Implement bounty claim function

2 participants