Skip to content

[BE-64] Implement Stellar lease, insurance, and KYC management API #937

Description

@yusuftomilola

Overview

The assetsup contract and contrib contract support lease agreements, insurance policies on assets, and KYC verification for investors. This issue exposes these modules. Enables FE-47 (Lease UI), FE-48 (Insurance UI), and FE-50 (KYC UI).

Context

  • Contract sources: contracts/assetsup/src/lease.rs, contracts/assetsup/src/insurance.rs, contracts/contrib/src/ (KYC module)
  • Depends on BE-60 (StellarService)
  • KYC is required before a user can acquire tokens in a tokenized asset

Acceptance Criteria

  • POST /stellar/assets/:id/lease body: { lesseeAddress, startDate, endDate, monthlyRent, deposit } — records lease agreement on-chain via contracts/assetsup/src/lease.rs
  • GET /stellar/assets/:id/lease — retrieves current or historical lease terms from on-chain storage
  • PATCH /stellar/assets/:id/lease/terminate — terminates the active lease on-chain
  • POST /stellar/assets/:id/insurance body: { insurer, policyNumber, coverage, premium, startDate, endDate } — records insurance policy on-chain
  • GET /stellar/assets/:id/insurance — retrieves insurance details
  • POST /stellar/kyc/submit body: { documentType, documentNumber, country, expiryDate } — submits KYC data to the contrib contract's KYC module for review
  • GET /stellar/kyc/status — returns current user's KYC status: PENDING, VERIFIED, REJECTED

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions