Skip to content

feat(opsce): integrate Stellar SDK for asset tokenization and impleme…#867

Merged
yusuftomilola merged 3 commits into
DistinctCodes:mainfrom
feyishola:feat/asset-tokenization
Jun 1, 2026
Merged

feat(opsce): integrate Stellar SDK for asset tokenization and impleme…#867
yusuftomilola merged 3 commits into
DistinctCodes:mainfrom
feyishola:feat/asset-tokenization

Conversation

@feyishola
Copy link
Copy Markdown
Contributor

…nt export features

Summary
This PR implements four major OpsCE module features enabling asset tokenization on Stellar Soroban, PDF reporting, bulk export capabilities, and QR code generation for physical asset tagging.

Changes Included

  1. Stellar SDK Integration for Asset Tokenization
    Files:

backend/src/opsce/stellar/stellar.service.ts

backend/src/opsce/assets/assets.controller.ts

backend/src/opsce/assets/assets.module.ts

tests/opsce/stellar/stellar.service.test.ts

  1. PDF Asset Report Generation
    Files:

backend/src/opsce/exports/pdf.service.ts

backend/src/opsce/exports/exports.controller.ts

tests/opsce/exports/pdf.service.test.ts

Endpoint: GET /api/assets/:id/report

Features:

Generates professional PDF with asset metadata

Includes maintenance history table (last 10 records)

Embeds QR code image (reuses QrService)

Multi-page support for long maintenance histories

PDF Sections:

Header: Asset name, ID, QR code

Details Table: Serial number, status, condition, purchase info

Location: Department, location, assigned user

Financial: Purchase date, purchase value, current value

Maintenance History: Date, type, description, cost, technician

  1. CSV and Excel Asset Export
    Files:

backend/src/opsce/exports/exports.service.ts

backend/src/opsce/exports/exports.controller.ts

tests/opsce/exports/exports.service.test.ts

Endpoint: GET /api/assets/export?format=csv|xlsx

  1. QR Code Generation for Assets
    Files:

backend/src/opsce/assets/qr.service.ts

backend/src/opsce/assets/assets.controller.ts

tests/opsce/assets/qr.service.test.ts

Endpoint: GET /api/assets/:id/qr

closes #747
closes #748
closes #749
closes #750

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@feyishola is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@feyishola Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@yusuftomilola yusuftomilola merged commit 312c212 into DistinctCodes:main Jun 1, 2026
1 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants