Skip to content

docs: add Sepolia ↔ Miden bridging tutorial via Epoch (+ examples/bridging-app)#199

Draft
Keinberger wants to merge 1 commit into
mainfrom
feat/web-client-bridging-epoch-tutorial
Draft

docs: add Sepolia ↔ Miden bridging tutorial via Epoch (+ examples/bridging-app)#199
Keinberger wants to merge 1 commit into
mainfrom
feat/web-client-bridging-epoch-tutorial

Conversation

@Keinberger
Copy link
Copy Markdown
Collaborator

@Keinberger Keinberger commented May 18, 2026

Summary

  • Adds docs/src/web-client/bridging_with_epoch_tutorial.md — a single-page tutorial (~2,486 words) covering Miden→EVM and EVM→Miden bridging via the Epoch protocol intent SDK.
  • Adds examples/bridging-app/ — a runnable Vite + React reference app the tutorial's code blocks paste-verify against, forked from epochprotocol/miden-integration-example@efc3a690 (bridging-specific adaptations are listed in the app's README "Forked from").
  • Companion PR in 0xMiden/docs adds the sidebar entry + Bridging DocCard: docs: add bridging tutorial sidebar entry + Bridging DocCard docs#297

Verification

  • cd examples/bridging-app && yarn install && yarn build && yarn test → all green (27 tests).
  • wc -w on the tutorial → 2,486 (within the 2,000–2,500 word band).
  • Every fenced code block ≥ 3 lines carries an immediately-preceding <!-- source: examples/bridging-app/<file>:<lines> --> comment and is byte-identical to that range.
  • Live bridging verification against Sepolia + Miden testnet, driven through a wallet-enabled Playwright MCP browser: Miden→EVM verified end-to-end — P2IDE note consumed on Miden, EVM execution status:success on Sepolia. EVM→Miden quote path verified; the full round-trip is pending an Epoch testnet-dev solver with liquidity for the route (external prerequisite, not a code defect).

What's NOT in this PR

  • No Agglayer tutorial — the tutorial's disclaimer links to protocol/crates/miden-agglayer/SPEC.md only; no "coming soon" language.
  • DRAFT until the companion docs PR lands and the EVM→Miden flow is re-verified against an available solver.

Reviewers

Brian (docs IA) · an Epoch team rep (technical accuracy) · Keinberger (DevRel voice).

…dging-app)

Adds a single-page web-client tutorial covering Miden→EVM and EVM→Miden
bridging through the Epoch protocol intent SDK, plus a runnable Vite + React
reference app under examples/bridging-app/ that the tutorial's code blocks
paste-verify against (a snippet check enforces byte-identity).

The example app is forked from epochprotocol/miden-integration-example@efc3a690
with bridging-specific adaptations: the '1000' reclaim-height literal replaced
with a runtime currentMidenBlock + 1000 computation, the dead wagmi Miden chain
placeholder + no-op midenClient removed, the RainbowKit projectId made
env-driven (with a setup screen instead of a blank-page crash when unset), the
WithdrawForm token decimals corrected to 18, and the general-purpose Miden
wallet UI stripped to keep the example focused on bridging.

The tutorial covers wiring the SDK against a wagmi walletClient with the Miden
virtual chain id override, the Miden→EVM four-stage pipeline (getTaskData →
getIntentQuote → solveIntent → polling), the EVM→Miden reverse direction
through Epoch's Compact contract on Sepolia, an 11-method API reference card,
and the inherited Epoch integration pitfalls. It stays within the 2,000-2,500
word band and ships unit coverage for the epoch-bridge task-data builders.
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