Skip to content

docs(soroban): document royalty_recipient_updated event (#695) - #718

Merged
Eniola3321 merged 2 commits into
ANYTECHS:mainfrom
giftben1763-ui:fix/695-royalty-recipient-event-docs
Aug 1, 2026
Merged

docs(soroban): document royalty_recipient_updated event (#695)#718
Eniola3321 merged 2 commits into
ANYTECHS:mainfrom
giftben1763-ui:fix/695-royalty-recipient-event-docs

Conversation

@giftben1763-ui

Copy link
Copy Markdown
Contributor

Summary

  • The on-chain event emission itself was already implemented (Issue [Soroban] Update Royalty Recipient #672update_royalty_recipient / emit_royalty_recipient_updated) with token_id, old address, and new address, but it was undocumented in docs/events.md and had no test asserting the event's actual topics/data (only its side effects on storage).
  • Adds a royalty_recipient_updated section to docs/events.md — topics, data, example JSON payload, and filter-by-token query — matching the existing event docs' format, wires it into the WebSocket/SSE consumption example at the top of the doc, and adds it to the event summary table at the bottom.
  • Adds two tests:
    • test_update_royalty_recipient_emits_event_with_required_fields — decodes the emitted event and asserts topics/data contain token_id, old_recipient, and new_recipient exactly.
    • test_update_royalty_recipient_emits_event_on_every_update — confirms a fresh, correctly-scoped event fires on a second update too, not just the first.

Note: stacked on #714 (repairs build-breaking merge corruption already on main). Includes that diff until it merges — the #695-specific work is contracts/nft-contract/docs/events.md and the two new tests in contracts/nft-contract/src/test.rs.

Closes #695

Test plan

  • cargo test in contracts/nft-contract — 68 passed, 0 failed

giftben1763-ui and others added 2 commits August 1, 2026 11:32
The on-chain event emission itself was already implemented (Issue ANYTECHS#672,
update_royalty_recipient / emit_royalty_recipient_updated) with token_id,
old address, and new address — but it was undocumented in docs/events.md
and had no test asserting the event's actual topics/data, only its
side effects on storage.

Adds a royalty_recipient_updated section to docs/events.md (topics,
data, example JSON payload, filter query) matching the existing event
docs' format, wires it into the WebSocket/SSE consumption example, and
adds it to the event summary table.

Adds two tests: one asserting the emitted event's topics/data match the
required fields exactly, and one confirming a fresh, correctly-scoped
event fires on each successive update (not just the first).

Closes ANYTECHS#695

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@drips-wave

drips-wave Bot commented Aug 1, 2026

Copy link
Copy Markdown

@giftben1763-ui Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Eniola3321
Eniola3321 merged commit 1d424a3 into ANYTECHS:main Aug 1, 2026
2 checks passed
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.

[Soroban] Emit Events for Royalty Recipient Changes

2 participants