feat: minimal single-feature transport examples (Vite + React) - #15
Closed
mariano-aguero wants to merge 4 commits into
Closed
mariano-aguero wants to merge 4 commits into
mariano-aguero wants to merge 4 commits into
Conversation
Six focused demos moved from jaw-mono: sign-message, siwe-popup, gasless- sendcalls, grant-permissions-popup, ens-identity (wagmi) and core-popup- capabilities (raw provider). Each shows one post-connect action and the embedded-iframe vs popup transport explicitly. HELD pending release: these use transportMode / embedded-iframe, which lands in @jaw.id/core after the iframe-transport PR ships. Pin @jaw.id/core and @jaw.id/wagmi to that published version (currently latest=0.4.5 lacks it) and re-run bun install before merging.
There was a problem hiding this comment.
This PR adds six minimal, single-feature Vite + React example apps to the repository (wagmi-sign-message, wagmi-siwe-popup, wagmi-gasless-sendcalls, wagmi-grant-permissions-popup, wagmi-ens-identity, and core-popup-capabilities), each demonstrating one JAW SDK integration with either iframe or popup transport. The README and bun.lock are updated accordingly to document and register the new examples. Notably, the CI build is currently broken — the nextjs-permissions job fails because its working directory doesn't exist on the runner, which cascades and cancels the entire matrix build.
mariano-aguero
marked this pull request as ready for review
June 29, 2026 19:59
The hardcoded matrix referenced example dirs that no longer exist, so every build job failed instantly. Discover buildable examples at runtime (any package.json with a build script) and pin the @jaw.id/core and @jaw.id/wagmi deps to ^1.0.3 instead of the unpinned latest tag.
- Add DOM to the tsc lib so ox's WebAuthn source (shipped as .ts, not skipped by skipLibCheck) resolves window/AuthenticatorAttestationResponse/BufferSource. - eip7702/node-quickstart: assert env vars guaranteed by the boot guard, await getCallStatus (it returns a Promise), and bridge the workspace viem version skew on the LocalAccount signer argument with a typed cast. (cherry picked from commit 2ad435b)
- nextjs-wagmi: align with the current SDK shape — permissions use permissionId and a top-level spends array, narrow the account union before reading capabilities, discriminate the SIWE response by signature, and assert the isAddress-validated string. - nextjs-headless-mode: widen the recipient state off the const-literal address; cast the dynamically-built typed-data args past viem's strict generics. - nextjs-reown: declare @wagmi/core (bun doesn't resolve undeclared transitive deps), keeping the storage types compatible with the Reown wagmi adapter. - eip7702/privy-nextjs: stub the optional @farcaster/mini-app-solana connector and render the route dynamically so the Privy provider isn't prerendered. (cherry picked from commit f82d380)
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.
What this adds
Six minimal, single-feature demos (Vite + React) moved from the
jaw-monomonorepo. Each shows one post-connect action and the embedded-iframe (default) vs popup transport explicitly.wagmi-sign-messagepersonal_signvia the wagmi connectorwagmi-siwe-popupwagmi-gasless-sendcallswallet_sendCalls(EIP-5792) + ERC-20 paymasterwagmi-grant-permissions-popupwagmi-ens-identitycore-popup-capabilitieswallet_getCapabilities(EIP-5792) via the raw provider, no wagmiworkspace:*→latest; READMEs use the jaw-examples pattern (npx nx dev <name>+.env.local);.env.exampleadded per example.README.mdindex + Quick Start updated.examples/(now lives here).