尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Stock-only portfolio viewer for Coinbase tokenized stocks on Base. Connect any EVM wallet or look up an address / ENS name, view only.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Onchain Stocks: a stock-only portfolio viewer for Coinbase tokenized stocks on Base.檢視完整 README ↗
Onchain Stocks: a stock-only portfolio viewer for Coinbase tokenized stocks on Base.
0x address or name.eth to look up a wallet. No buy buttons, nothing to sign. Shareable as #/view/<address or ens>.npm install
npm run dev
Optional environment variables (for example in .env.local):
| Variable | Purpose | Default |
|---|---|---|
VITE_BASE_RPC | Base RPC endpoint | https://base-rpc.publicnode.com |
VITE_MAINNET_RPC | Ethereum mainnet RPC, used only for ENS | https://ethereum-rpc.publicnode.com |
The public RPCs are rate limited. For heavy use, point these at your own Alchemy, Infura or QuickNode key. Note that any VITE_ value ends up in the public bundle.
npm run test:e2e
Playwright drives a real Chromium on a desktop and a phone viewport. A fake EIP-6963 wallet stands in for MetaMask or Rabby, and the Base RPC and DexScreener are mocked, so the suite is fast, deterministic and needs no network. It covers connect, disconnect, reconnect on reload, view-only lookup, the venue menu, the expandable stock list, theme persistence, horizontal overflow and animation completion. CI runs it on every push and pull request (.github/workflows/test.yml). Failed runs upload traces.
Not covered: ENS resolution against the real mainnet, and whether each exchange's deep link still opens the right pair. Check those by hand.
Three workflows live in .github/workflows/:
| Workflow | Runs | Does |
|---|---|---|
test.yml | every PR and push to main | type check, lint, Playwright e2e |
deploy.yml | every push to main (so, when a PR is merged) and on demand | npm run build, then publishes dist/ to the gh-pages branch |
sync-stocks.yml | daily at 05:17 UTC and on demand | refreshes src/stocks.json; if it changed, commits it and triggers deploy.yml |
One-time setup: repo Settings → Pages → Source: Deploy from a branch → gh-pages / root (the branch appears after the first deploy run). Also make sure Settings → Actions → General → Workflow permissions allows read and write.
The build uses a relative base path and hash routing, so it works at https://onchainstocks.pawiromitchel.com/ (custom domain, set by the cname input in deploy.yml) or on any other path, such as https://pawiromitchel.github.io/onchainstocks/, without changes. DNS: a CNAME record onchainstocks -> pawiromitchel.github.io (Cloudflare proxy off until GitHub issues the certificate). If you protect main, allow the Actions bot to push, or the sync commit will fail. Consider making the test check required before merging.
src/stocks.json is a snapshot of the official Coinbase tokenized stocks API (npm run sync; the sync-stocks.yml workflow runs it daily). The API sends no CORS headers, so the browser can't call it directly. The daily sync workflow commits src/stocks.json when it changed and redeploys, so new listings appear without a code change.src/tokens.ts turns that snapshot into the allowlist of token addresses. Nothing outside it is ever read.src/hooks/usePortfolio.ts multicalls balanceOf on Base, and pulls prices and 24h change from the deepest DEX pool per token. Pools under $25k liquidity are flagged as thin (for example MSTRc and TSLAc at the time of writing). Stocks with no DEX pool yet have no buy button.src/lib/venues.ts builds the swap deep links. Click-test them if you change them.