Skip to content

feat(#174): emit events on all bounty lifecycle transitions#286

Closed
GBOYEE wants to merge 4 commits into
BountyOnChain:mainfrom
GBOYEE:feat/events-lifecycle-174
Closed

feat(#174): emit events on all bounty lifecycle transitions#286
GBOYEE wants to merge 4 commits into
BountyOnChain:mainfrom
GBOYEE:feat/events-lifecycle-174

Conversation

@GBOYEE

@GBOYEE GBOYEE commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Closed in favor of rebased version #305

GBOYEE and others added 4 commits June 19, 2026 13:56
- Add env.events().publish() to initialize, fund, start_work, submit, approve, cancel
- Events use consistent topic shape: (symbol_short!("event_name"), actor_address)
- Event data includes new BountyStatus and relevant amounts/addresses
- Events emitted before final storage write
- Add 4 unit tests verifying event emission
- Add docs/events.md with full event schema for indexer developers

Closes BountyOnChain#174
- execute_approve: read owner from storage before event publish
- execute_cancel: move owner declaration outside if block for else branch
- Fix test initialize calls: add missing timelock_duration arg (5 params now)

All 35 tests pass. Clippy clean.
@GBOYEE

GBOYEE commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

CI fully green (Frontend ✅ Backend ✅ Contracts ✅ Security Audit ✅ E2E ✅ Trivy ✅). Emits events on all 6 bounty lifecycle transitions (initialize, fund, start_work, submit, approve, cancel). Includes 4 new unit tests (35 total pass). Clippy clean. Ready for merge review! 🚀

@GBOYEE

GBOYEE commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

📋 Paper Trail — Implemented as part of GrantFox OSS campaign. Event emission on all 6 bounty lifecycle transitions. CI fully green. Requesting reward review if eligible.

Copy link
Copy Markdown
Contributor

Hey 👋 Lifecycle event emission opens up downstream integrations nicely. Merging. 🚀

Copy link
Copy Markdown
Contributor

Heads up — sorry for the noise: the merge got blocked once sibling PRs landed. Your fork looks like it doesn't allow maintainer writes, so could you rebase this onto main and push? I'll merge as soon as it's clean.

@GBOYEE GBOYEE closed this Jun 21, 2026
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.

2 participants