diff --git a/README.md b/README.md index 6e13d50..32a6d69 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Chainly is an AI agent for **Ethereum Sepolia** (chain ID `11155111`). You ask q - 🔎 **Read:** ETH balances, ERC-20 balances (USDC, WETH and LINK by symbol, or any contract), transaction details, gas prices, block info. - 📊 **Analyze:** explorer history turned into money in and out, net flow, gas spent, counterparties, contract usage, a daily chart and insights backed by the data. - ✍️ **Prepare:** validates the address, amount, balance and network, estimates gas, and shows a preview card. **You** sign in your wallet. +- 🏷️ **ENS names:** use `alice.eth` anywhere an address is expected. Names resolve on Sepolia's own ENS registry (mainnet names may not exist there), and previews show the name next to the resolved address that your wallet signs. - 🛡️ **Safety:** - No signing tools. - The sender is locked to the connected wallet. diff --git a/src/components/cards/activity-card.tsx b/src/components/cards/activity-card.tsx index ce1d536..40ba6dd 100644 --- a/src/components/cards/activity-card.tsx +++ b/src/components/cards/activity-card.tsx @@ -23,7 +23,7 @@ export function ActivityCard({ data }: { data: Data }) { title="Wallet activity" meta={ - · {s.totalTransactions} txs · {data.source} + · {s.totalTransactions} txs · {data.source} } right={} diff --git a/src/components/cards/primitives.tsx b/src/components/cards/primitives.tsx index 0401a48..32221e1 100644 --- a/src/components/cards/primitives.tsx +++ b/src/components/cards/primitives.tsx @@ -49,7 +49,7 @@ export function Row({ label, children }: { label: string; children: ReactNode }) ); } -export function AddressLink({ address, chars = 4 }: { address: string | null | undefined; chars?: number }) { +export function AddressLink({ address, name, chars = 4 }: { address: string | null | undefined; name?: string | null; chars?: number }) { const { copied, copy } = useCopy(); if (!address) return —; return ( @@ -59,9 +59,15 @@ export function AddressLink({ address, chars = 4 }: { address: string | null | u target="_blank" rel="noreferrer" className="underline-offset-2 hover:text-foreground hover:underline" - title={address} + title={name ? `${name} → ${address}` : address} > - {shortAddress(address, chars)} + {name ? ( + <> + {name} {shortAddress(address, chars)} + + ) : ( + shortAddress(address, chars) + )}