Skip to content

Comments

feat: Implement Stellar Account Creation & Trustlines (#67) #1#76

Merged
JayWebtech merged 6 commits intoMetroLogic:mainfrom
caxtonacollins:stellar-account-creation
Feb 21, 2026
Merged

feat: Implement Stellar Account Creation & Trustlines (#67) #1#76
JayWebtech merged 6 commits intoMetroLogic:mainfrom
caxtonacollins:stellar-account-creation

Conversation

@caxtonacollins
Copy link
Contributor

@caxtonacollins caxtonacollins commented Feb 20, 2026

Phase 3: Stellar Account Creation & Trustlines

This PR resolves issue #67 by ensuring dynamically generated payment addresses exist on the Stellar network and can accept USDC.

Key Changes:

  1. StellarService: Implemented checking if an address exists, funding new addresses with the minimum required XLM, and establishing trustlines to USDC.
  2. Handled Account Merge edge cases by skipping funding if the account already exists and selectively adding the trustline only if missing.
  3. Added Unit Tests to verify the integration logic against a mocked Horizon Server.
  4. Added required environment variables needed for configuration (STELLAR_HORIZON_URL, STELLAR_NETWORK_PASSPHRASE, FUNDER_SECRET_KEY, USDC_ISSUER_PUBLIC_KEY).

closes #67

@caxtonacollins
Copy link
Contributor Author

@JayWebtech please review

@caxtonacollins
Copy link
Contributor Author

@JayWebtech merge conflicts resolved

1 similar comment
@caxtonacollins
Copy link
Contributor Author

@JayWebtech merge conflicts resolved

@JayWebtech JayWebtech merged commit cb49a56 into MetroLogic:main Feb 21, 2026
1 check 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.

[Phase 3] Stellar Account Creation & Trustlines

2 participants