Skip to content

Emit event when co-signer approves release #683

Description

@Kingsman-99

Description

Multi-signature release approval (via sign_release) does not emit an event, so off-chain monitors cannot track how many co-signers have approved without querying storage on every block. An event per approval would enable threshold-based alerting.

Acceptance Criteria

  • New cosigner_approved(env, invoice_id, signer, approvals_so_far) event added to events.rs
  • Event is emitted from the sign_release / approve_release call path in lib.rs
  • approvals_so_far reflects the count after adding the current approval
  • Unit test asserts event data matches expected signer and count
  • cargo test passes

Context

  • Target file: contracts/split/src/events.rs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programcomplexity: highComplex feature requiring deep knowledge - 200 ptsfeatureNew contract feature or operation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions