diff --git a/docs/fix.md b/docs/fix.md new file mode 100644 index 000000000..27269a60e --- /dev/null +++ b/docs/fix.md @@ -0,0 +1,25 @@ +# Architecture Overview + +## Backend & Contract Interactions + +```mermaid +graph TD + FE[Frontend] -- REST/gRPC --> BE[Backend] + BE -- Soroban SDK --> SC[Smart Contract] + SC -- Events --> BE + BE -- Webhooks --> FE +``` + +- **Frontend** communicates with the **Backend** via REST/gRPC APIs. +- **Backend** interacts with **Soroban Smart Contracts** for payment logic. +- **Smart Contracts** emit events consumed by the Backend. +- **Backend** notifies the Frontend via webhooks or polling. + +## Key Components +- **Frontend:** Next.js app for user interaction +- **Backend:** NestJS API server +- **Contracts:** Soroban smart contracts (Rust) + +--- + +For more details, see [docs/](./).