Files
zeekay 6b38df60a4 feat: MPC wallet dashboard - full-stack implementation
Complete MPC wallet management platform rivaling Fireblocks/Utila/Fordefi:

Backend (Go):
- REST API with 60+ endpoints on chi router (pkg/api/)
- PostgreSQL schema with 13 tables (pkg/db/)
- JWT + MFA auth, bcrypt passwords, API key management
- Policy engine (deny/approve/require_approval)
- Transaction signing flow with approval workflow
- Subscription scheduler for recurring payments
- Payment requests with public pay pages
- Safe + ERC-4337 smart wallet integration (pkg/smart/)
- Rate limiting, webhook delivery (HMAC-SHA256), audit logging
- 27 passing tests (auth, policy engine, middleware)

Frontend (Next.js 14):
- 27 routes with monochrome dark theme (Tailwind + Geist fonts)
- Full API client with JWT auto-refresh
- React Query hooks for all resources
- Pages: dashboard, vaults, wallets, transactions, policies,
  whitelist, team, settings, API keys, webhooks, audit,
  subscriptions, payments, smart wallets

Infrastructure:
- Dockerfiles for API (Go) and dashboard (Next.js standalone)
- compose.yml for local development (PostgreSQL + API + dashboard)
- K8s manifests for mpc.lux.network + cloud.lux.network
- GitHub Actions deploy workflow (build → push GHCR → kubectl apply)
- TLS via cert-manager, Traefik IngressRoute for both domains
2025-12-27 13:11:38 -08:00

65 lines
1.6 KiB
TypeScript

'use client'
import Link from 'next/link'
export interface WalletCardProps {
id: string
name: string
threshold: number
participants: number
ecdsaPubkey: string
eddsaPubkey?: string
protocol: 'cggmp21' | 'frost' | 'lss'
createdAt: string
}
export function WalletCard({
id,
name,
threshold,
participants,
ecdsaPubkey,
eddsaPubkey,
protocol,
createdAt,
}: WalletCardProps) {
const protocolLabel: Record<string, string> = {
cggmp21: 'CGGMP21',
frost: 'FROST',
lss: 'LSS',
}
return (
<Link
href={`/wallets/${id}`}
className="block rounded-lg border border-border bg-card p-6 transition-colors hover:border-muted-foreground/30 hover:bg-accent/50"
>
<div className="flex items-start justify-between">
<h3 className="text-sm font-semibold">{name}</h3>
<span className="rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground">
{protocolLabel[protocol] ?? protocol}
</span>
</div>
<p className="mt-2 font-mono text-xs text-muted-foreground">
{threshold}-of-{participants}
</p>
<div className="mt-3 space-y-1">
<p className="truncate font-mono text-xs text-muted-foreground" title={ecdsaPubkey}>
ECDSA: {ecdsaPubkey}
</p>
{eddsaPubkey && (
<p className="truncate font-mono text-xs text-muted-foreground" title={eddsaPubkey}>
EdDSA: {eddsaPubkey}
</p>
)}
</div>
<p className="mt-3 text-xs text-muted-foreground">
Created {new Date(createdAt).toLocaleDateString()}
</p>
</Link>
)
}