mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-10-25 02:31:30 +00:00
- web/lib/brand.ts: zoo iam.url + iam.domain → zoolabs.id (zoo.id is NXDOMAIN)
- web/components/navbar.tsx: brand-aware `npm i {sdk}` snippet
- web/components/ai-chat.tsx: brand-namespaced localStorage keys
- web/components/lux/region-data.ts: brand-namespaced localStorage keys
- web/app/products/wallets/page.tsx: brand-aware SDK class + package in sample
- web/app/terms/page.tsx: BOOTNODE → {brand.name.toUpperCase()} in legal text
- web/lib/sdk-package.ts: shared brand→pkg/client map (single source of truth)
17 lines
632 B
TypeScript
17 lines
632 B
TypeScript
// Brand-aware SDK package + client class names.
|
|
// Used by docs samples and install snippets.
|
|
|
|
import { getBrandKey_ } from "@/lib/brand"
|
|
|
|
const PACKAGES: Record<string, { pkg: string; client: string }> = {
|
|
bootnode: { pkg: "@bootnode/sdk", client: "BootnodeClient" },
|
|
hanzo: { pkg: "@hanzo/web3-sdk", client: "HanzoClient" },
|
|
lux: { pkg: "@luxfi/cloud-sdk", client: "LuxClient" },
|
|
zoo: { pkg: "@zooai/cloud-sdk", client: "ZooClient" },
|
|
pars: { pkg: "@parsnetwork/sdk", client: "ParsClient" },
|
|
}
|
|
|
|
export function getSdkPackage(): { pkg: string; client: string } {
|
|
return PACKAGES[getBrandKey_()] ?? PACKAGES.bootnode
|
|
}
|