Skip to content

Add Preview Network Support to BBoardion#1261

Closed
834henry wants to merge 2 commits intomidnightntwrk:mainfrom
834henry:preview-migration
Closed

Add Preview Network Support to BBoardion#1261
834henry wants to merge 2 commits intomidnightntwrk:mainfrom
834henry:preview-migration

Conversation

@834henry
Copy link
Copy Markdown

Summary

Adds complete Preview network support to BBoard example application.

Fixes midnightntwrk/contributor-hub#248

Changes

  • ✅ Added PreviewConfig class with correct Preview endpoints
  • ✅ Created preview.ts launcher for Preview network
  • ✅ Fixed compact-runtime breaking changes (bigintToBytes32 helper)
  • ✅ Updated compact-runtime to 0.9.0
  • ✅ Comprehensive migration documentation (417 lines)
  • ✅ Quick reference guide (61 lines)
  • ✅ Bounty submission document (310 lines)

Preview Endpoints

indexer: 'https://indexer.preview.midnight.network/api/v3/graphql'
indexerWS: 'wss://indexer.preview.midnight.network/api/v3/graphql'
node: 'https://rpc.preview.midnight.network'
proofServer: 'http://localhost:6300'

Testing

# Quick start
cd bboard-tutorial
git checkout preview-migration
npm install
cd contract && npm run compact && npm run build && cd ..
cd bboard-cli && npm run build && cd ..

# Start proof server
docker run -d -p 6300:6300 --name preview-proof-server \
  midnightnetwork/proof-server:6.1.0-alpha.6 \
  -- midnight-proof-server --network preview

# Run on Preview
cd bboard-cli
node --loader ts-node/esm src/launcher/preview.ts

Documentation

  • PREVIEW_MIGRATION_GUIDE.md - Complete technical guide (417 lines)
  • PREVIEW_MIGRATION_README.md - Quick reference (61 lines)
  • BOUNTY_SUBMISSION.md - Detailed submission (310 lines)

Stats

  • 8 files changed, 828+ insertions
  • 788 lines of documentation
  • All builds pass ✅
  • Wallet creation works ✅

Related

Note

Preview network launched January 7, 2026 - two days after the original bounty deadline, making migration impossible before launch. This demonstrates immediate response to Preview availability.

TMT added 2 commits January 15, 2026 14:12
- Add PreviewConfig class with correct endpoints (api/v3/graphql)
- Create preview.ts launcher for Preview network
- Update compact-runtime to 0.9.0
- Fix bigintToBytes32 helper (replace removed convert_bigint_to_Uint8Array)
- Add comprehensive migration documentation
- Successfully build and test wallet creation

Preview Endpoints:
- Indexer: https://indexer.preview.midnight.network/api/v3/graphql
- RPC: https://rpc.preview.midnight.network
- Proof Server: localhost:6300

Files Modified:
- bboard-cli/src/config.ts (PreviewConfig class)
- bboard-cli/src/launcher/preview.ts (new launcher)
- api/src/index.ts (bigint conversion fix)
- package.json (compact-runtime@0.9.0)
- PREVIEW_MIGRATION_GUIDE.md (full documentation)
- PREVIEW_MIGRATION_README.md (quick reference)

Related: midnightntwrk/contributor-hub#248
Complete 310-line submission document covering:
- All deliverables and achievements
- Technical implementation details
- Testing instructions
- Documentation summary
- Value proposition

Total contribution: 828 lines of code and documentation across 8 files
@834henry 834henry requested review from a team as code owners January 15, 2026 13:50
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


TMT seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@claudebarde
Copy link
Copy Markdown
Collaborator

Thank you for your contribution, but it has been decided that we will skip the update to Preview for this repo to switch directly to Preprod.
There is already a PR open for the migration to Preprod and you are welcome to contribute to it if you find bugs or improvements.

@claudebarde claudebarde closed this Feb 9, 2026
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.

Migrate BBoard Example dApp to Preview

3 participants