Skip to content

Prepare Epoch widget for Miden mainnet - #15

Merged
Man-Jain merged 22 commits into
mainfrom
miden-mainnet-prep
Nov 1, 2026
Merged

Man-Jain merged 22 commits into
mainfrom
miden-mainnet-prep

Conversation

@Abhimanyu121

Copy link
Copy Markdown
Member

Summary

  • add graph-backed Miden mainnet wallet/demo configuration
  • consume real runtime Miden pay fields from Flows SDK and remove the type-only compatibility shim
  • canonicalize Bech32 account/faucet IDs through Commons SDK
  • hide unsupported testnet Miden scenarios while keeping mainnet selection dynamic
  • build the hosted demo beneath /widget/

Verification

  • 32 tests pass
  • root and demo typechecks pass
  • widget package and demo production builds pass

@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
epoch-widget Error Error Nov 1, 2026 7:56pm UTC

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

React Doctor found 1 new issue in 1 file · 1 warning · score 85 / 100 (Great) · 0 fixed · vs main

1 warning

src/hooks/use-gasless-wallet-check.ts

  • ⚠️ L130 Missing effect dependencies exhaustive-deps

Reviewed by React Doctor for commit 050bca7. See inline comments for fixes.

Signed-off-by: Manank Patni <manank321@gmail.com>
Signed-off-by: Manank Patni <manank321@gmail.com>
Signed-off-by: Manank Patni <manank321@gmail.com>
@Man-Jain
Man-Jain merged commit 2832a61 into main Nov 1, 2026
2 of 3 checks passed
@@ -122,7 +127,7 @@ export function useGaslessWallet({
} finally {
setChecking(false);
}
}, [allowGasless, walletClient, address, chainIdForCheck]);
}, [allowGasless, apiBaseUrl, walletClient, address, chainIdForCheck, rpcUrls]);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React Doctor · react-doctor/exhaustive-deps (warning)

useCallback re-runs whenever apiBaseUrl changes even though it never uses it.

Fix → Don't blindly add missing dependencies. Read the hook callback first.

Bad:
useEffect(() => {
setCount(count + 1);
}, [count]);

Better:
useEffect(() => {
setCount((currentCount) => currentCount + 1);
}, []);

If the missing value is recreated every render, move it inside the hook or stabilize it before adding it to deps.

Docs

@Man-Jain
Man-Jain deleted the miden-mainnet-prep branch November 1, 2026 19:57

This branch had an error being deployed

1 failed deployment
Preview — 050bca71 Deployed Nov 1, 2026 by vercel[bot]
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.

4 participants