Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,251 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuickLendX Protocol

QuickLendX is a monorepo containing the complete protocol stack for decentralized invoice financing on Stellar Soroban.

## Packages

- `quicklendx-contracts/`: Smart contracts and contract tests for the QuickLendX protocol.
- `quicklendx-backend/`: Backend services, API schema, and server implementation.
- `quicklendx-frontend/`: Next.js frontend application for user interaction.

## Getting Started

### Smart Contracts

```bash
cd quicklendx-contracts
cargo build
cargo test

Backend

cd quicklendx-backend
npm ci
npm run dev

Frontend

cd quicklendx-frontend
npm ci
npm run dev

Documentation

• docs/ : Project-wide design, implementation, and audit documentation. • docs/VESTING.md /docs/VESTING.md: Vesting model, edge cases, and admin protections. • docs/QUERIES.md /docs/QUERIES.md: Catalog of common read-only entrypoints with concrete invocation examples and return values — the quickest way to find the query you need. • docs/contracts/platform-fee-ops.md /docs/contracts/platform-fee-ops.md: Admin operations playbook for managing fee rates, treasury rotation, and revenue splits. • docs/RUNBOOK_INCIDENT_RESPONSE.md : Operator playbook for unexpected contract behavior and incident-mode recovery. • docs/INVESTOR_TIER.md : How the investor risk score, tier, and investment limit are computed — math, thresholds, and worked examples. • docs/BID_OVERBID_POLICY.md : What happens when a bid exceeds the invoice amount — rejection path and error code. • quicklendx-contracts/README.md : Smart contract-specific documentation. • quicklendx-contracts/docs/contracts/deterministic-time.md : Smart contract deterministic ledger time semantics. • quicklendx-backend/README.md : Backend-specific documentation. • backend/docs/REPLAY_RUNBOOK.md : Step-by-step operator runbook for replaying ingestion from a specific ledger — covers reorg recovery, gap backfill, force rebuild after schema migration, and troubleshooting stuck runs. • quicklendx-frontend/README.md : Frontend-specific documentation. • docs/PLATFORM_FEES.md : Fee schedule and tenant override documentation. • docs/INDEXING_CONTRACT.md : What the indexer relies on from the Soroban smart contracts — events, topics, data structures, and storage keys.

Contribution

Please follow the repository guidelines in AGENTS.md and include tests for any behavior changes.

Frontend

cd quicklendx-frontend
npm ci
npm run dev

Documentation

  • docs/README.md: Full documentation index — start here.
  • Default Flow Diagram: State-machine diagram from invoice past-due through default to recovery — grace period, finality guards, dispute interception, and a concrete ledger-timestamp walkthrough.
  • quicklendx-contracts/README.md: Smart contract build, deploy, and API reference.
  • quicklendx-backend/README.md: Backend-specific documentation.
  • backend/docs/REPLAY_RUNBOOK.md: Step-by-step operator runbook for replaying ingestion from a specific ledger — covers reorg recovery, gap backfill, force rebuild after schema migration, and troubleshooting stuck runs.
  • quicklendx-frontend/README.md: Frontend-specific documentation.
  • docs/PLATFORM_FEES.md: Fee schedule and tenant override documentation.
  • docs/BID_RANKING.md: Deterministic bid ranking ordering function — tier-by-tier tie-breaker logic, invariants, and contributor workflow.
  • docs/BID_LIFECYCLE_DIAGRAM.md: Full bid state machine — status diagram, entrypoints, TTL config, expiry semantics, and invariants.
  • docs/CURRENCY_WHITELIST.md: How tokens are added to and removed from the currency whitelist — contributor guide covering entrypoints, auth model, enforcement points, and test patterns.
  • docs/ERROR_CODES.md: Complete catalog of every contract error code (QuickLendXError and FreshnessError) with numeric codes, ABI symbols, and meanings.
  • docs/FEES_GRACE_DEFAULT.md: Unified contributor reference — platform fees, grace period resolution, and default trigger rules in one place.
  • docs/GOVERNANCE.md: Governance model, admin handover (one-step and two-step) flow, and the emergency-withdraw timelock — operator-facing.
  • docs/APPEALS.md: Appeals process — who reviews, timeline, outcomes, and how they affect funds — operator-facing.
  • docs/EVENT_DASHBOARDS.md: Standard operator dashboards — panel URLs, PromQL queries, SQLite indexer queries, and alert rules for protocol health, event throughput, disputes, and settlement pipeline.

Contribution

Please follow the repository guidelines in AGENTS.md and include tests for any behavior changes.

  • docs/QLX_OWNERSHIP_MODEL.md: Ownership model for invoices and investor bids.
  • docs/QLX_REPORT_LIFECYCLE.md: Analytics report lifecycle — Requested → Delivered → Archived, entrypoints, storage layout, and invariants.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages