Update dependencies and add Preview network support#1353
Closed
RomarQ wants to merge 17 commits intomidnightntwrk:mainfrom
Closed
Update dependencies and add Preview network support#1353RomarQ wants to merge 17 commits intomidnightntwrk:mainfrom
RomarQ wants to merge 17 commits intomidnightntwrk:mainfrom
Conversation
- 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>
kmillikin
reviewed
Jan 29, 2026
|
|
Author
|
Close in favor of #1355 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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)