Skip to content

feat(blockchain): wire BlockchainModule into dependent modules - #655

Merged
phertyameen merged 1 commit into
MindBlockLabs:mainfrom
khaadish:feat/307-wire-blockchain-module
Aug 23, 2026
Merged

feat(blockchain): wire BlockchainModule into dependent modules#655
phertyameen merged 1 commit into
MindBlockLabs:mainfrom
khaadish:feat/307-wire-blockchain-module

Conversation

@khaadish

Copy link
Copy Markdown
Contributor

Closes #307

Changes

  • Add backend/src/config/stellar.config.ts registering STELLAR_SECRET_KEY, STELLAR_CONTRACT_ID, STELLAR_RPC_URL (default Soroban testnet RPC) and STELLAR_NETWORK_PASSPHRASE (default Test SDF passphrase) under the 'stellar' namespace.
  • Register that config in BlockchainModule via ConfigModule.forFeature(stellarConfig) and document where the four on-chain providers from issues 11-14 must be registered as they land. BlockchainService remains the single export.
  • Import BlockchainModule into ProgressModule, UsersModule and QuestsModule so BlockchainService is injectable for submitPuzzleOnChain, registerPlayerOnChain/syncXpMilestone flows.
  • Document STELLAR_* variables in backend/.env.example.
  • Add blockchain.module.spec.ts guarding that BlockchainModule provides/exports BlockchainService, is imported by all three consumer modules, and that consumers do not list BlockchainService in their own providers.

Verification

  • tsc --noEmit: clean
  • npm run build: clean
  • jest blockchain specs: 12 passed (incl. 5 new wiring tests)
  • eslint on changed files: clean
  • no absolute src/ imports

Register STELLAR_* environment variables through a namespaced stellar config loaded via ConfigModule.forFeature, and import BlockchainModule in ProgressModule, UsersModule and QuestsModule so BlockchainService is injectable where on-chain actions are triggered (issues 11-14). Add a module-wiring spec guarding exports and consumer imports.
@vercel

vercel Bot commented Aug 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
mind-block-app-frontend Skipped Skipped Aug 23, 2026 5:26am

@phertyameen
phertyameen merged commit 9764ebf into MindBlockLabs:main Aug 23, 2026
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

Development

Successfully merging this pull request may close these issues.

Configure BlockchainModule and Export BlockchainService to Dependent Modules

2 participants