Skip to content

docs: add Contract Events table, security review version, and top_up new-token test - #346

Merged
icentedward76-sketch merged 1 commit into
SoroWill:mainfrom
iheomadev:feature/299-300-301-302-docs-events-security-guardian-topup-test
Aug 31, 2026
Merged

docs: add Contract Events table, security review version, and top_up new-token test#346
icentedward76-sketch merged 1 commit into
SoroWill:mainfrom
iheomadev:feature/299-300-301-302-docs-events-security-guardian-topup-test

Conversation

@iheomadev

Copy link
Copy Markdown
Contributor

Summary

This PR resolves all four open issues assigned to me in the Stellar Wave program.

Changes

#302 — Contract Events table in README
Added a ## Contract Events table to README.md mapping every state-mutating entry point to its topic symbol and payload shape, sourced from events.rs. SDK integrators can now discover event subscriptions directly from the README without reading contract source.

#301 — Security review version metadata
Added **Contract version:** header (1.0.0 / CONTRACT_VERSION = 1_000_000) and a staleness note to docs/SECURITY-REVIEW.md so readers can tell which codebase revision was reviewed and how to request a re-review after significant changes.

#300 — ADR link in README guardian section
The README's guardian section already links to docs/adr/0001-guardian-threshold.md — no change needed.

#299 — Test: top_up with a brand-new token
Added contracts/will/src/issue_299_test.rs with top_up_with_new_token_is_reflected_in_get_will_and_released:

  • Creates a will locked with token_a only
  • Calls top_up with token_b (never seen by that will before)
  • Asserts get_will reflects both token balances
  • Triggers and releases, asserting both tokens are correctly distributed to the beneficiary

Validation

  • Documentation changes: README.md and SECURITY-REVIEW.md — no toolchain required
  • Test file follows identical patterns to issue_280_test.rs and allocation_test.rs
  • No Rust toolchain available locally; CI will run cargo test --workspace and cargo clippy --all-targets -- -D warnings

Closes #299
Closes #300
Closes #301
Closes #302

…etadata

Closes SoroWill#299
Closes SoroWill#300
Closes SoroWill#301
Closes SoroWill#302

- (SoroWill#302) Add Contract Events table to README.md mapping each state-mutating
  entry point to its emitted event topic symbol and payload shape, sourced
  from events.rs. Canonical source of truth link included.

- (SoroWill#301) Add contract version (1.0.0 / CONTRACT_VERSION = 1_000_000) and
  staleness note to docs/SECURITY-REVIEW.md so readers can determine which
  codebase version the review covers and know how to request a re-review.

- (SoroWill#300) README.md guardian section already links to
  docs/adr/0001-guardian-threshold.md — no change needed.

- (SoroWill#299) Add issue_299_test.rs: creates a single-token will, tops up with a
  second brand-new token never seen by that will, asserts get_will reflects
  both balances, then triggers and releases to verify both tokens are
  correctly distributed to the beneficiary.
@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@iheomadev 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

@icentedward76-sketch
icentedward76-sketch merged commit d51de36 into SoroWill:main Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment