Skip to content

Update /lumens API to use the same programs as the New mandate#351

Merged
quietbits merged 5 commits intostellar:masterfrom
sydneynotthecity:master
Feb 26, 2026
Merged

Update /lumens API to use the same programs as the New mandate#351
quietbits merged 5 commits intostellar:masterfrom
sydneynotthecity:master

Conversation

@sydneynotthecity
Copy link
Copy Markdown
Contributor

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:

  • Renamed Lumen distribution program categories from ecosystemSupport, useCaseInvestment, and userAcquisition to productAndInnovation, growth, and assetsAndLiquidity in the CachedData interface and throughout backend logic. [1] [2]
  • Updated account assignments in common/lumens.js to match the new program names, grouping and renaming accounts for Growth, Product and Innovation, and Assets and Liquidity, and removing obsolete account references.

Backend Logic Updates:

  • Refactored distribution calculation functions to use the new account groupings and program names, replacing functions like distributionEcosystemSupport with distributionProductAndInnovation, and similarly for growth and assetsAndLiquidity.
  • Updated the backend Lumen cache update logic to reference the new program names and associated distribution functions.

Copilot AI and others added 4 commits February 12, 2026 16:47
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
Copilot AI review requested due to automatic review settings February 12, 2026 17:44
@stellar-jenkins
Copy link
Copy Markdown

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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, and assetsAndLiquidity in backend cache shape and unit tests.
  • Reorganized common/lumens.js account 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.

@stellar-jenkins
Copy link
Copy Markdown

@quietbits quietbits merged commit 6fbde37 into stellar:master Feb 26, 2026
6 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

Development

Successfully merging this pull request may close these issues.

5 participants