WIP: minimal single-feature transport examples (Vite + React)#15
WIP: minimal single-feature transport examples (Vite + React)#15mariano-aguero wants to merge 1 commit 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.
| "typecheck": "tsc --noEmit" | ||
| }, | ||
| "dependencies": { | ||
| "@jaw.id/core": "latest", |
There was a problem hiding this comment.
[WARNING] dependency-risk dr-unpinned
Dependency "@jaw.id/core" uses an unpinned version spec "latest". Pin to a specific semver range.
latest
| "typecheck": "tsc --noEmit" | ||
| }, | ||
| "dependencies": { | ||
| "@jaw.id/core": "latest", |
There was a problem hiding this comment.
[WARNING] dependency-risk dr-unpinned
Dependency "@jaw.id/core" uses an unpinned version spec "latest". Pin to a specific semver range.
latest
| }, | ||
| "dependencies": { | ||
| "@jaw.id/core": "latest", | ||
| "@jaw.id/wagmi": "latest", |
There was a problem hiding this comment.
[WARNING] dependency-risk dr-unpinned
Dependency "@jaw.id/wagmi" uses an unpinned version spec "latest". Pin to a specific semver range.
latest
| "typecheck": "tsc --noEmit" | ||
| }, | ||
| "dependencies": { | ||
| "@jaw.id/core": "latest", |
There was a problem hiding this comment.
[WARNING] dependency-risk dr-unpinned
Dependency "@jaw.id/core" uses an unpinned version spec "latest". Pin to a specific semver range.
latest
| }, | ||
| "dependencies": { | ||
| "@jaw.id/core": "latest", | ||
| "@jaw.id/wagmi": "latest", |
There was a problem hiding this comment.
[WARNING] dependency-risk dr-unpinned
Dependency "@jaw.id/wagmi" uses an unpinned version spec "latest". Pin to a specific semver range.
latest
| }, | ||
| "dependencies": { | ||
| "@jaw.id/core": "latest", | ||
| "@jaw.id/wagmi": "latest", |
There was a problem hiding this comment.
[WARNING] dependency-risk dr-unpinned
Dependency "@jaw.id/wagmi" uses an unpinned version spec "latest". Pin to a specific semver range.
latest
| "typecheck": "tsc --noEmit" | ||
| }, | ||
| "dependencies": { | ||
| "@jaw.id/core": "latest", |
There was a problem hiding this comment.
[WARNING] dependency-risk dr-unpinned
Dependency "@jaw.id/core" uses an unpinned version spec "latest". Pin to a specific semver range.
latest
| }, | ||
| "dependencies": { | ||
| "@jaw.id/core": "latest", | ||
| "@jaw.id/wagmi": "latest", |
There was a problem hiding this comment.
[WARNING] dependency-risk dr-unpinned
Dependency "@jaw.id/wagmi" uses an unpinned version spec "latest". Pin to a specific semver range.
latest
| "typecheck": "tsc --noEmit" | ||
| }, | ||
| "dependencies": { | ||
| "@jaw.id/core": "latest", |
There was a problem hiding this comment.
[WARNING] dependency-risk dr-unpinned
Dependency "@jaw.id/core" uses an unpinned version spec "latest". Pin to a specific semver range.
latest
| }, | ||
| "dependencies": { | ||
| "@jaw.id/core": "latest", | ||
| "@jaw.id/wagmi": "latest", |
There was a problem hiding this comment.
[WARNING] dependency-risk dr-unpinned
Dependency "@jaw.id/wagmi" uses an unpinned version spec "latest". Pin to a specific semver range.
latest
Do not merge yet. These examples demo the iframe-transport feature (
transportMode, embedded-iframe default) that ships in@jaw.id/core/@jaw.id/wagmionly after the jaw-mono iframe-transport PR merges and a release is published. The current@jaw.id/core@latest(0.4.5) does not havetransportMode, so the popup examples don't typecheck against npm and the iframe ones don't actually exercise the embedded transport yet.Before un-drafting / merging
@jaw.id/core+@jaw.id/wagmiwith iframe-transport.examples/*/package.jsonto the published version (or confirmlatestnow includes it), thenbun install.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).