mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-09-30 20:46:32 +00:00
fix: update branding from bootnode.dev to hanzo.ai
- Fix code-demo.tsx brand name check (Hanzo Web3 vs Hanzo) - Update RPC domains to rpc.web3.hanzo.ai - Replace assets.bootnode.dev with assets.web3.hanzo.ai - Replace ipfs.bootnode.dev with ipfs.web3.hanzo.ai - Update demo email from [email protected] to [email protected]
This commit is contained in:
@@ -83,9 +83,10 @@ export default async function ChainDetailPage({
|
||||
const mainnet = chain.networks.find((n) => !n.isTestnet)
|
||||
const testnets = chain.networks.filter((n) => n.isTestnet)
|
||||
|
||||
const rpcDomain = "rpc.web3.hanzo.ai"
|
||||
const rpcEndpoint = chain.type === "svm"
|
||||
? `https://${chain.slug}.mainnet.rpc.bootnode.dev`
|
||||
: `https://${chain.slug}-mainnet.rpc.bootnode.dev`
|
||||
? `https://${chain.slug}.mainnet.${rpcDomain}`
|
||||
: `https://${chain.slug}-mainnet.${rpcDomain}`
|
||||
|
||||
const curlExample = chain.type === "svm"
|
||||
? `curl -X POST ${rpcEndpoint} \\
|
||||
@@ -232,8 +233,8 @@ export default async function ChainDetailPage({
|
||||
<p className="mt-2 text-sm text-muted-foreground">
|
||||
RPC: <code className="rounded bg-muted px-1 font-mono text-xs break-all">
|
||||
{chain.type === "svm"
|
||||
? `https://${chain.slug}.devnet.rpc.bootnode.dev`
|
||||
: `https://${chain.slug}-${testnet.id}.rpc.bootnode.dev`}
|
||||
? `https://${chain.slug}.devnet.${rpcDomain}`
|
||||
: `https://${chain.slug}-${testnet.id}.${rpcDomain}`}
|
||||
</code>
|
||||
</p>
|
||||
</CardContent>
|
||||
|
||||
@@ -226,7 +226,7 @@ X-RateLimit-Reset: 1706400000`}</code>
|
||||
"balance": "15230500000",
|
||||
"formatted_balance": "15230.50",
|
||||
"usd_value": "15230.50",
|
||||
"logo_url": "https://assets.bootnode.dev/tokens/usdc.png"
|
||||
"logo_url": "https://assets.web3.hanzo.ai/tokens/usdc.png"
|
||||
},
|
||||
{
|
||||
"contract": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
|
||||
@@ -236,7 +236,7 @@ X-RateLimit-Reset: 1706400000`}</code>
|
||||
"balance": "8500000000",
|
||||
"formatted_balance": "8500.00",
|
||||
"usd_value": "8500.00",
|
||||
"logo_url": "https://assets.bootnode.dev/tokens/usdt.png"
|
||||
"logo_url": "https://assets.web3.hanzo.ai/tokens/usdt.png"
|
||||
}
|
||||
],
|
||||
"page": 1,
|
||||
@@ -263,7 +263,7 @@ X-RateLimit-Reset: 1706400000`}</code>
|
||||
"formatted_total_supply": "26000000000.00",
|
||||
"price_usd": "1.00",
|
||||
"market_cap_usd": "26000000000.00",
|
||||
"logo_url": "https://assets.bootnode.dev/tokens/usdc.png"
|
||||
"logo_url": "https://assets.web3.hanzo.ai/tokens/usdc.png"
|
||||
}`}
|
||||
/>
|
||||
</div>
|
||||
@@ -290,7 +290,7 @@ X-RateLimit-Reset: 1706400000`}</code>
|
||||
"name": "Bored Ape #1234",
|
||||
"description": "A unique Bored Ape Yacht Club NFT.",
|
||||
"image_url": "ipfs://QmRRPWG96cmgTn2qSzjwr2qvfNEuhunv6FNeMFGa9bx6mQ",
|
||||
"image_gateway_url": "https://ipfs.bootnode.dev/ipfs/QmRRPWG96cmgTn2qSzjwr2qvfNEuhunv6FNeMFGa9bx6mQ",
|
||||
"image_gateway_url": "https://ipfs.web3.hanzo.ai/ipfs/QmRRPWG96cmgTn2qSzjwr2qvfNEuhunv6FNeMFGa9bx6mQ",
|
||||
"standard": "ERC721",
|
||||
"owner": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
|
||||
"traits": [
|
||||
@@ -321,8 +321,8 @@ X-RateLimit-Reset: 1706400000`}</code>
|
||||
"num_owners": 6432,
|
||||
"floor_price_eth": "12.50",
|
||||
"floor_price_usd": "25000.00",
|
||||
"banner_url": "https://assets.bootnode.dev/collections/bayc-banner.png",
|
||||
"image_url": "https://assets.bootnode.dev/collections/bayc.png",
|
||||
"banner_url": "https://assets.web3.hanzo.ai/collections/bayc-banner.png",
|
||||
"image_url": "https://assets.web3.hanzo.ai/collections/bayc.png",
|
||||
"description": "The Bored Ape Yacht Club is a collection of 10,000 unique Bored Ape NFTs."
|
||||
}`}
|
||||
/>
|
||||
|
||||
@@ -215,12 +215,12 @@ function LoginForm() {
|
||||
disabled={loading}
|
||||
onClick={async () => {
|
||||
setMode("login")
|
||||
setEmail("test@bootnode.dev")
|
||||
setEmail("test@hanzo.ai")
|
||||
setPassword("testpass123")
|
||||
setLoading(true)
|
||||
setError("")
|
||||
try {
|
||||
await login("test@bootnode.dev", "testpass123")
|
||||
await login("test@hanzo.ai", "testpass123")
|
||||
const returnUrl = searchParams.get("returnUrl") || "/dashboard"
|
||||
router.push(returnUrl)
|
||||
} catch (err) {
|
||||
@@ -240,7 +240,7 @@ function LoginForm() {
|
||||
)}
|
||||
</Button>
|
||||
<p className="text-[10px] text-muted-foreground mt-2 text-center">
|
||||
test@bootnode.dev / testpass123
|
||||
test@hanzo.ai / testpass123
|
||||
</p>
|
||||
</div>
|
||||
</CardContent>
|
||||
|
||||
@@ -23,7 +23,8 @@ export function CodeDemo() {
|
||||
const [loading, setLoading] = React.useState(false)
|
||||
|
||||
const brand = getBrand()
|
||||
const apiDomain = brand.name === "Hanzo" ? "api.hanzo.ai" : `api.${brand.domain}`
|
||||
// Use api.web3.hanzo.ai for Hanzo branding (brand.name is "Hanzo Web3")
|
||||
const apiDomain = brand.name.includes("Hanzo") ? "api.web3.hanzo.ai" : `api.${brand.domain}`
|
||||
const code = `curl -X POST https://${apiDomain}/v1/rpc/${selectedChain.toLowerCase()}/mainnet \\
|
||||
-H "Content-Type: application/json" \\
|
||||
-H "X-API-Key: your_api_key" \\
|
||||
|
||||
Reference in New Issue
Block a user