[Draft] Add Demo app for the Stellar Debit Card Contracts#4
[Draft] Add Demo app for the Stellar Debit Card Contracts#4marwen-abid wants to merge 7 commits into
Conversation
- Split `set_pauser` into `set_pauser_by_owner` / `set_pauser_by_pauser` - Require `new_owner` co-signature on `set_owner` - Extract `require_factory_auth` helper in issuer - Add event assertion tests for `upgrade` and `upgrade_issuer`
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub. |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
0e15944 to
323777d
Compare
|
🚀 Preview deployed! Preview URL: https://stellar.github.io/debit-card-reference/pr-preview/pr-4/ This preview will be automatically updated when you push new commits. |
d873999 to
783a8e7
Compare
|
🚀 Preview deployed! Preview URL: https://stellar.github.io/debit-card-reference/pr-preview/pr-4/ The contracts built from this PR are bundled in the preview, so the Deploy New flow works without a local Rust toolchain. This preview will be automatically updated when you push new commits. |
783a8e7 to
f242455
Compare
|
🚀 Preview deployed! Preview URL: https://stellar.github.io/debit-card-reference/pr-preview/pr-4/ The contracts built from this PR are bundled in the preview, so the Deploy New flow works without a local Rust toolchain. This preview will be automatically updated when you push new commits. |
# Conflicts: # contracts/factory/src/events.rs # contracts/factory/src/lib.rs # contracts/factory/src/test.rs # contracts/issuer/src/lib.rs
Post-audit demo changes so the testnet app can manually verify the findings merged to develop (see post-audit-demo-changes.md): - Owner tab: Destination Allowlist (update_issuer_destination + check) and Rotate Manager (set_authorized_manager) sections — required to exercise the FIND-008 pause carve-out end to end - Global PAUSED/Active badge in the StatusBar, refreshed on tab change and kept in sync by the Pauser tab (pause state lifted into the store) - Pause-semantics copy on Manager/Owner/Pauser/Guide: authority-reducing ops work while paused, authority-adding ops don't (FIND-008) - Velocity field notes + expanded InvalidVelocityConfig message for the on-chain validation rules (FIND-011); no client-side gating so the contract rejection stays observable - Inspector Events section: RPC getEvents with per-event #[topic] filter presets (uuid/account/debitor/issuer_id), cursor pagination across the bounded per-page ledger scan window, decoded results (FIND-010); getEvents added to the logged RPC methods - Inspector Storage TTL section: liveUntilLedgerSeq for both contract instances and the five PersistentKey policy entries, compared against the live network max entry TTL from the state-archival config (FIND-002) - Fixed-window terminology: error #5 message, derived "window resets at" line on velocity queries, Guide flow + boundary-burst caveat; dropped the stale error #10 mapping (FIND-005) - Guide: guided scenarios for the incident-response drill, owner authority chain, and debitor blast-radius bounds (FIND-001/004/008) - LogPane: label contract events by their name symbol Verified against testnet: fresh factory/issuer deployed from post-audit WASM; add-destination while paused rejects with #1000 and removal succeeds while paused; TTL panel shows all entries at latest + max TTL; issuer_created found via issuer_id topic filter (and not with a wrong id). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
🚀 Preview deployed! Preview URL: https://stellar.github.io/debit-card-reference/pr-preview/pr-4/ The contracts built from this PR are bundled in the preview, so the Deploy New flow works without a local Rust toolchain. This preview will be automatically updated when you push new commits. |
No description provided.