Skip to content

Update dependencies and add Preview network support#1353

Closed
RomarQ wants to merge 17 commits intomidnightntwrk:mainfrom
RomarQ:rq/preview-network-dependencies
Closed

Update dependencies and add Preview network support#1353
RomarQ wants to merge 17 commits intomidnightntwrk:mainfrom
RomarQ:rq/preview-network-dependencies

Conversation

@RomarQ
Copy link
Copy Markdown

@RomarQ RomarQ commented Jan 29, 2026

Contains work from #1312

Summary

This PR migrates the example-counter from Testnet-02 to the Preview network, updating to MidnightJS v3 and the new modular Wallet SDK.

  • Validated the preview deployment;

If you are on Apple Silicon, you may need to change the VMM setting in Docker to be able to use the local proof-server: midnightntwrk/midnight-ledger#135 (comment)

Jalal-1 and others added 9 commits December 23, 2025 00:05
- Bump version to 3.0.0
- Replace monolithic wallet with modular Wallet SDK
- Update midnight-js packages to v3.0.0-alpha.9
- Replace @midnight-ntwrk/ledger with ledger-v6
- Add @scure/bip39 for mnemonic support
- Add 'preview' script alias for testnet-remote
- Add 'start-preview' script for build and run
Compact compiler v0.27+ generates .js files instead of .cjs
- Add networkId to Config interface
- Add PreviewConfig with v3 API endpoints
- Change RPC protocol from HTTP to WebSocket
- Remove NetworkId enum in favor of string-based IDs
- TestnetRemoteConfig now extends PreviewConfig
- Replace monolithic wallet with WalletFacade
- Add BIP39 mnemonic support via @scure/bip39
- Implement HD wallet key derivation (Zswap, NightExternal, Dust)
- Add WalletContext interface for new wallet architecture
- Update balance access to use ledger-v6 patterns
- Add dust management functions (checkDustStatus, registerForDustProduction)
- Add privateStoragePasswordProvider to levelPrivateStateProvider
- Replace wallet.close() with wallet.stop()
- Add displayWalletBalances, buildWalletFromHexSeed helpers
- Update compact pragma to >= 0.19 for Preview network
- Migrate CLI to use WalletContext instead of monolithic Wallet
- Add BIP39 mnemonic support and .env file integration
- Add interactive dust registration flow
- Exclude test folder from build (tests need separate update)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Update Docker image version to match ledger-v6
- Change network flag from testnet to preview

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@RomarQ RomarQ requested review from a team as code owners January 29, 2026 16:47
Comment thread contract/src/counter.compact Outdated
Comment thread contract/src/counter.compact Outdated
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Feb 5, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ RomarQ
❌ Jalal-1
You have signed the CLA already but the status is still pending? Let us recheck it.

@RomarQ
Copy link
Copy Markdown
Author

RomarQ commented Feb 5, 2026

Close in favor of #1355

@RomarQ RomarQ closed this Feb 5, 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.

4 participants