Skip to content

Support external Sui networks in hashi-localnet CLI#407

Draft
0xsiddharthks wants to merge 1 commit intosiddharth/e2e-test-signetfrom
siddharth/e2e-test-devnet
Draft

Support external Sui networks in hashi-localnet CLI#407
0xsiddharthks wants to merge 1 commit intosiddharth/e2e-test-signetfrom
siddharth/e2e-test-devnet

Conversation

@0xsiddharthks
Copy link
Copy Markdown
Contributor

@0xsiddharthks 0xsiddharthks commented Apr 6, 2026

Summary

  • Adds --sui-network devnet|testnet flag to hashi-localnet start (mirrors the existing --bitcoin-network pattern)
  • New SuiNetworkInfo trait + ExternalSuiNetwork struct (same pattern as BitcoinNodeInfo + ExternalBitcoinNode)
  • Loads operator key from Sui keystore via --sui-address
  • Patches Move source at publish time to allow non-validator registration and committee formation (test keys aren't real Sui validators)
  • Adds test_start_reconfig entry function that accepts explicit member addresses with equal weight

Usage

hashi-localnet start \
    --sui-network devnet \
    --sui-address 0x6e8b...1ebe \
    --bitcoin-network signet \
    --btc-rpc-url http://127.0.0.1:38332 \
    --btc-rpc-user signetrpc \
    --btc-rpc-pass signetrpcpass \
    --btc-wallet mining \
    -v

@0xsiddharthks 0xsiddharthks requested a review from bmwill as a code owner April 6, 2026 14:37
@0xsiddharthks 0xsiddharthks force-pushed the siddharth/e2e-test-signet branch from 11d4b50 to 1fd688e Compare April 6, 2026 15:43
@0xsiddharthks 0xsiddharthks marked this pull request as draft April 6, 2026 15:43
@0xsiddharthks 0xsiddharthks force-pushed the siddharth/e2e-test-signet branch from 1fd688e to 6a287a8 Compare April 6, 2026 16:22
@0xsiddharthks 0xsiddharthks force-pushed the siddharth/e2e-test-devnet branch from 48e67e2 to 1fe3aad Compare April 6, 2026 18:19
Add --sui-network flag to connect to external Sui networks (devnet,
testnet) instead of spawning a local one. Mirrors the existing external
Bitcoin node pattern with SuiNetworkInfo trait + ExternalSuiNetwork.

For external networks, the Move source is patched at publish time to
allow non-validator registration and committee formation with equal
weight, since test keys are not actual Sui validators.
@0xsiddharthks 0xsiddharthks force-pushed the siddharth/e2e-test-devnet branch from 1fe3aad to 7694a42 Compare April 6, 2026 18:26
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.

1 participant