Update /lumens API to use the same programs as the New mandate#351
Merged
quietbits merged 5 commits intostellar:masterfrom Feb 26, 2026
Merged
Update /lumens API to use the same programs as the New mandate#351quietbits merged 5 commits intostellar:masterfrom
/lumens API to use the same programs as the New mandate#351quietbits merged 5 commits intostellar:masterfrom
Conversation
Co-authored-by: sydneynotthecity <23067016+sydneynotthecity@users.noreply.github.com>
Co-authored-by: sydneynotthecity <23067016+sydneynotthecity@users.noreply.github.com>
…function-names [WIP] Refactor functions for updated funding accounts
|
Preview is available here: |
There was a problem hiding this comment.
Pull request overview
Aligns the /api/lumens (v1) program category naming and underlying account groupings with the “New mandate” terminology across shared logic, backend caching, and unit tests.
Changes:
- Renamed v1 program keys to
productAndInnovation,growth, andassetsAndLiquidityin backend cache shape and unit tests. - Reorganized
common/lumens.jsaccount groupings and renamed distribution functions to match the new program categories. - Updated TypeScript declarations for the renamed distribution functions.
Reviewed changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| test/tests/unit/backend.ts | Updates unit test expectations for the renamed v1 programs keys. |
| package-lock.json | Marks prettier entry as a dev-only package in the lockfile. |
| common/lumens.js | Renames distribution functions and reorganizes account lists into the new program groupings. |
| common/lumens.d.ts | Updates exported function declarations to the new distribution function names. |
| backend/lumens.ts | Updates cached /api/lumens v1 response shape to use the new programs keys. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Preview is available here: |
quietbits
approved these changes
Feb 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request reorganizes and renames the categories for Stellar Mandate programs, aligning terminology and account groupings across the backend, common logic, and tests. The main themes are updating program names, restructuring account assignments, and ensuring consistency throughout the codebase.
Program Renaming and Account Reorganization:
ecosystemSupport,useCaseInvestment, anduserAcquisitiontoproductAndInnovation,growth, andassetsAndLiquidityin theCachedDatainterface and throughout backend logic. [1] [2]common/lumens.jsto match the new program names, grouping and renaming accounts forGrowth,Product and Innovation, andAssets and Liquidity, and removing obsolete account references.Backend Logic Updates:
distributionEcosystemSupportwithdistributionProductAndInnovation, and similarly forgrowthandassetsAndLiquidity.