Skip to content

feat: devnet bonsia network support (deployment file, mint-identity, deploy-v2) - #159

Merged
PastaPastaPasta merged 3 commits into
wipe/beta7from
feat/devnet-bonsia
Sep 29, 2026
Merged

PastaPastaPasta merged 3 commits into
wipe/beta7from
feat/devnet-bonsia

Conversation

@PastaPastaPasta

@PastaPastaPasta PastaPastaPasta commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

What

Network support for devnet bonsia, the replacement for moutai and the target of the fresh three-contract registration. Target: wipe/beta7.

About bonsia (probed read-only on 2026-09-29):

  • drive/dapi 4.2.0-beta.7, protocol 14, chain id dash-devnet-bonsia-g1.
  • 13 ENABLED masternodes at 68.67.122.{224–230,242–247}, with DAPI on :1443 and Core p2p on :20001.
  • Quorums at https://quorums.bonsia.networks.dash.org. Insight at https://insight.bonsia.networks.dash.org/insight-api; the addr and utxo endpoints work.

Changes:

  • forge-contracts/deployments/devnet-bonsia.json: the addresses and quorum URL, with no v2. The Rust crates embed it (build.rs) and forge-web bundles it (lib/deployments.ts), so --devnet-name bonsia and NEXT_PUBLIC_DEVNET_NAME=bonsia work for every tool.
  • tools/mint-identity: DEVNETS.bonsia gets the chain id, insight, quorums, faucet and addresses.
  • deploy-v2.mjs: a devnet's DAPI addresses now come from its deployment file, the same way deploy-key-exchange.mjs and snapshot-contracts.mjs already read them. The hard-coded moutai/bonsia table is gone.
  • Makefile: devnet-identities now fails with a clear message for a devnet that isn't in dash-network-configs, bonsia included, unless FORGE_DEVNET_FUNDING_WIF is set.
  • docs/BUILDING.md: bonsia is described as the devnet replacing moutai.

Tests:

  • Rust bonsia_resolves_its_addresses_and_quorum_service_and_has_no_forge_v2_yet.
  • Web constants.test.ts: bonsia resolves with 13 nodes, its quorum endpoint, and no v2.
  • mint-identity test/devnets.test.mjs.
  • lib/sdk/bonsia.live.test.ts: read-only, runs only with FORGE_LIVE=1 and the devnet name bonsia.

The two "no forge-v2 yet" assertions are deliberate tripwires. The deploy commit that records bonsia's contracts must flip them; the wipe runbook says so.

Nothing moves off moutai here. The Makefile DEVNET, E2E_DEVNET, and the Pages, e2e and nightly workflows stay on moutai until the owner's cut-over rule holds (full design live on bonsia, fixes in, and demo repos up). No contracts are registered.

Also fixes wipe/beta7 after #158

#158 merged after #156 without being rebuilt on it, which left wipe/beta7 failing typecheck. This PR:

  • removes the duplicate DOC.transition key (TS1117);
  • adds ForgeIds.community to the two new fixtures (lib/repo/transitions.test.ts, lib/view/upstream.test.ts);
  • adds the pull.author dependency the merge panel's merge callback reads (a react-hooks/exhaustive-deps warning).

Verified

  • Offline:
    • cargo test --workspace and cargo fmt --check pass.
    • forge-web: vitest 2,858 passed and 20 skipped; tsc and pnpm lint are clean.
    • mint-identity node --test: 24 passed.
    • deploy-v2.mjs --self-test passes.
  • Live, read-only:
    • A plain beta.7 evo-sdk (no fetch wrapper) reads getStatus (chain id, drive version) and the DPNS system contract from all 13 bonsia nodes.
    • forge-web's own connection passes bonsia.live.test.ts.
    • mint-identity connects with its chain-id check and reads the Core chain-locked height.
    • dg doctor --devnet-name bonsia shows DAPI reachable, DPNS proof-verified, and protocol 14.
  • Found along the way: the beta.7 wasm SDK requests https://node:1443//org.dash…. bonsia's gateway 404'd that at first, and the operator has since enabled slash merging. The SDK behaviour is written up for a possible upstream report (dash-forge-qa upstream/dapi-double-slash.md, not filed).

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: a4b51c3b-04b0-41b3-8f1d-e71c484057cc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

PastaPastaPasta and others added 2 commits September 29, 2026 13:31
…deploy-v2)

Devnet bonsia (drive/dapi 4.2.0-beta.7, chain id dash-devnet-bonsia-g1) is where the fresh contracts will register: its 13 DAPI addresses and quorum service in forge-contracts/deployments/devnet-bonsia.json (Rust embeds it, forge-web bundles it), mint-identity's devnet registry, and deploy-v2 reading a devnet's addresses from its deployment file. No contracts are recorded for bonsia yet; moutai stays the default until the cut-over.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…munity in its fixtures

#158 merged after #156 and was not rebuilt on it: DOC gained a second transition key (TS1117) and two new test fixtures lack ForgeIds.community, so wipe/beta7's typecheck fails.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@PastaPastaPasta
PastaPastaPasta merged commit c359df0 into wipe/beta7 Sep 29, 2026
15 of 16 checks passed
@PastaPastaPasta
PastaPastaPasta deleted the feat/devnet-bonsia branch September 29, 2026 18:59
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