feat: write devnet manifest to shared data directory + Sepolia example#31
Open
Nic-dorman wants to merge 3 commits intomainfrom
Open
feat: write devnet manifest to shared data directory + Sepolia example#31Nic-dorman wants to merge 3 commits intomainfrom
Nic-dorman wants to merge 3 commits intomainfrom
Conversation
Move the devnet manifest from /tmp (or GUI-specific paths) to the shared ant data directory (ant_core::config::data_dir()). This lets any consumer — ant-gui, ant-cli, ant-tui — discover devnet/testnet mode by checking the same well-known location where daemon.port already lives. Changes: - start-local-devnet: 25 nodes (was 5), writes manifest to shared data dir, 8MB thread stack for Windows, cleanup on Ctrl+C - start-devnet-sepolia (new): 25 nodes with ArbitrumSepoliaTest EVM, uses existing deployed Sepolia contracts, no wallet key embedded (user connects their own funded wallet) Companion PR: WithAutonomi/ant-ui#9 (ant-gui reads from this path) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Move the devnet manifest from
/tmp(and GUI-specific paths) to the shared ant data directory (ant_core::config::data_dir()). This lets any consumer — ant-gui, ant-cli, ant-tui — discover devnet/testnet mode by checking the same well-known location wheredaemon.portalready lives.Replaces #29 which was closed because the examples wrote directly to ant-gui's config directory, coupling ant-core to a specific GUI app.
Changes
ArbitrumSepoliaTestEVM, uses existing deployed Sepolia contracts, no wallet key embedded (user connects their own funded wallet)Manifest location
%APPDATA%\ant\devnet-manifest.json~/Library/Application Support/ant/devnet-manifest.json~/.local/share/ant/devnet-manifest.jsonThis is the same directory where
daemon.portandnode_registry.jsonalready live.Difference between the two examples
ArbitrumSepoliaTest(public RPC + deployed contracts)Impact on other tools
--devnet-manifest <path>flag. Could optionally auto-discover from the shared dir in the future.LocalDevnetandDevnetexpose.write_manifest(path)— the caller decides where to write.Future direction
This is the simplest approach ("Approach A"). Longer-term, the daemon itself should be network-aware — e.g.
ant node daemon start --network sepolia— and expose the network config via its REST API (GET /api/v1/network). See discussion in ant-ui#9.Test plan
cargo run --release --example start-local-devnetstarts 25 nodes + Anvil, manifest written to shared data dircargo run --release --example start-devnet-sepoliastarts 25 nodes on Sepolia, manifest written🤖 Generated with Claude Code