Skip to content

fix: resolve issues #195, #181, #009, #161 — license, whitepaper, vesting events, bulk payment events#531

Merged
Wilfred007 merged 1 commit intoGildado:mainfrom
boys-cyberhub:feat/issues-492-478-194-458
Mar 27, 2026
Merged

fix: resolve issues #195, #181, #009, #161 — license, whitepaper, vesting events, bulk payment events#531
Wilfred007 merged 1 commit intoGildado:mainfrom
boys-cyberhub:feat/issues-492-478-194-458

Conversation

@boys-cyberhub
Copy link
Copy Markdown

Summary

Closes #492 · Closes #478 · Closes #194 · Closes #458

This PR addresses four open issues in a single atomic change:

#195 — Improve License Visibility (issue #492)

  • Replaced the Apache-2.0 LICENSE file with a proper MIT license dated 2026
  • Updated Cargo.toml workspace license field from "Apache-2.0" to "MIT" to match the existing README badge

#181 — Technical Whitepaper for PayD Protocol (issue #478)

  • Added docs/whitepaper.md — a comprehensive Markdown whitepaper covering:
    • Problem statement and Stellar network rationale
    • Asset model (org-scoped stable assets, trustlines, anchors)
    • Smart contract architecture for BulkPayment and VestingEscrow
    • Security model (auth, overflow checks, replay protection, circuit breaker, TTL)
    • Off-chain components (backend API, frontend, event indexer)
    • Full protocol flow diagrams and roadmap

#9 — Soroban VestingEscrow Events (issue #194)

  • Added three #[contractevent] types to contracts/vesting_escrow/src/lib.rs:
    • VestingInitializedEvent — emitted on successful initialize
    • TokensClaimedEvent — emitted on successful claim (skipped when nothing claimable)
    • ClawbackExecutedEvent — emitted on successful clawback
  • All fields needed by off-chain indexers are included (beneficiary, amounts, timestamps)

#161 — Improve Event Logging in Bulk Payment Contract (issue #458)

  • Defined missing BatchExecutedEvent and BatchPartialEvent structs (they were referenced in the code but never declared, which would cause a compile error)
  • Added per-payment PaymentSentEvent emissions inside execute_batch so individual payout completions within a batch are now observable in the event log (previously only a batch-level summary event was emitted)

Test plan

  • cargo build --target wasm32-unknown-unknown passes for both bulk_payment and vesting_escrow
  • Existing test suites (cargo test -p bulk_payment and cargo test -p vesting_escrow) pass without modification
  • LICENSE file contains correct MIT text with year 2026
  • docs/whitepaper.md renders correctly in GitHub markdown preview
  • Event structs (BatchExecutedEvent, BatchPartialEvent, VestingInitializedEvent, TokensClaimedEvent, ClawbackExecutedEvent) are visible in compiled contract ABI

🤖 Generated with Claude Code

…icense, whitepaper, vesting events, bulk payment event structs

closes Gildado#492 closes Gildado#478 closes Gildado#194 closes Gildado#458

- Gildado#195 (issue Gildado#492): Replace Apache-2.0 LICENSE with MIT for 2026; update
  Cargo.toml workspace license field to match README badge

- Gildado#181 (issue Gildado#478): Add docs/whitepaper.md — technical overview of the
  PayD cross-border payroll protocol covering Stellar/Soroban architecture,
  BulkPayment and VestingEscrow contract design, asset model, security model,
  and off-chain components

- Gildado#9 (issue Gildado#194): Add Soroban contractevent types to vesting_escrow —
  VestingInitializedEvent, TokensClaimedEvent, ClawbackExecutedEvent — and
  emit them from initialize, claim, and clawback respectively so on-chain
  indexers can track full grant lifecycle

- Gildado#161 (issue Gildado#458): Define missing BatchExecutedEvent and BatchPartialEvent
  structs (previously used but undeclared, which would fail compilation); add
  per-payment PaymentSentEvent emissions inside execute_batch so individual
  payout completions are observable in the event log

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 27, 2026

@boys-cyberhub 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

@Wilfred007 Wilfred007 merged commit 9c3a8df into Gildado:main Mar 27, 2026
1 check 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

3 participants