Browse cards
+Read-only listing of NFT cards from the card data contract on testnet.
++ Contract: +
+diff --git a/example-apps/dashmint-lab/.prettierignore b/example-apps/dashmint-lab/.prettierignore index 007ea8a..7f89e0c 100644 --- a/example-apps/dashmint-lab/.prettierignore +++ b/example-apps/dashmint-lab/.prettierignore @@ -1,3 +1,4 @@ dist node_modules coverage +public/dashmint-lite.html diff --git a/example-apps/dashmint-lab/CLAUDE.md b/example-apps/dashmint-lab/CLAUDE.md index 6d96e55..d266f93 100644 --- a/example-apps/dashmint-lab/CLAUDE.md +++ b/example-apps/dashmint-lab/CLAUDE.md @@ -21,6 +21,7 @@ React + TypeScript + Vite app for minting, viewing, transferring, and trading NF - **[src/data/starterPack.ts](src/data/starterPack.ts)** — shared card pool and `drawStarterPack()` Fisher-Yates shuffle. Injectable RNG for deterministic tests. - **[src/lib/](src/lib/)** — pure utilities: [rarity.ts](src/lib/rarity.ts) (tier from atk+def), [format.ts](src/lib/format.ts), [explorer.ts](src/lib/explorer.ts) (Platform Explorer URLs), [cardArt.ts](src/lib/cardArt.ts) (theme/palette recipe — presentation only, not Platform-relevant). - **[src/styles/globals.css](src/styles/globals.css)** — Tailwind v4 import + rarity tokens. +- **[public/dashmint-lite.html](public/dashmint-lite.html)** — single-file zero-build companion. Read-only Browse cards (with Marketplace-only toggle), loads `@dashevo/evo-sdk` from `esm.sh`, and ships alongside the React app at `<...>/dashmint-lab/dashmint-lite.html` (Vite copies `public/*` into `dist/`). Intentionally self-contained as a learning reference — don't import app code into it. - **[test/](test/)** — Vitest + Testing Library. All test files live here per the `include` pattern in [vite.config.ts](vite.config.ts) and are named after the subject under test (e.g. `CardTile.test.tsx`, `SessionContext.test.tsx`). Default env is `node`; tests that need DOM opt in with `// @vitest-environment jsdom`. ## SDK Patterns diff --git a/example-apps/dashmint-lab/public/dashmint-lite.html b/example-apps/dashmint-lab/public/dashmint-lite.html new file mode 100644 index 0000000..41de9f9 --- /dev/null +++ b/example-apps/dashmint-lab/public/dashmint-lite.html @@ -0,0 +1,324 @@ + + + +
+ + +Read-only listing of NFT cards from the card data contract on testnet.
++ Contract: +
+Hashes the file locally with SHA-256, then looks up the digest on-chain. The file never leaves your browser.
+ + + +List all anchors recorded under a given chainId bucket.
+ Contract: +
+