Phase 2 of the QIE Forge build (owner directive: go deeper, ship a real public app). Nothing here replaces or removes the phase-1 contracts/SDK — this adds to it. - Solidity: 25 -> 35 Foundry tests. New coverage: 3-pool multi-hop routing, swapTokensForExactTokens, oracle adapter edge cases (decimals-too-large, feed rotation, staleness-disable), and vault liquidation edge cases (zero-debt, over-repay, partial liquidation, sequential liquidators). - packages/python: a real web3.py SDK mirroring @qie-forge/core (chain/oracle/qusdc/explorer/amm/vault). 23/23 tests pass, including 2 integration tests that deploy the actual compiled contract bytecode to a local anvil devnet and prove the SDK's reads/quotes match real on-chain state exactly. - packages/rust: a real ethers-rs SDK with an abigen!-generated binding for the corrected oracle ABI. 13/13 tests pass (9 offline, 4 live against real testnet/mainnet). No anvil-integration test yet (honest gap, documented). - apps/web: a Next.js 16 + viem frontend, deployed live and public at https://qie-forge.vercel.app. Server-rendered home page calls @qie-forge/core directly for real testnet/mainnet block numbers and real oracle prices on every request. /swap and /vault show an honest "not deployed yet" state, proven correct against a real local anvil deployment (the API route's quote matched a direct cast call to the deployed router exactly) before confirming that empty state is what ships today. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
87 lines
1.8 KiB
CSS
87 lines
1.8 KiB
CSS
@import "tailwindcss";
|
|
|
|
:root {
|
|
--background: #ffffff;
|
|
--foreground: #18181b;
|
|
--muted: #71717a;
|
|
--border: #e4e4e7;
|
|
--surface: #fafafa;
|
|
--accent: #4f46e5;
|
|
--accent-foreground: #ffffff;
|
|
--danger: #dc2626;
|
|
}
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--color-muted: var(--muted);
|
|
--color-border: var(--border);
|
|
--color-surface: var(--surface);
|
|
--color-accent: var(--accent);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-danger: var(--danger);
|
|
--font-sans: var(--font-geist-sans);
|
|
--font-mono: var(--font-geist-mono);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--background: #0a0a0b;
|
|
--foreground: #f4f4f5;
|
|
--muted: #a1a1aa;
|
|
--border: #27272a;
|
|
--surface: #131316;
|
|
--accent: #6366f1;
|
|
--accent-foreground: #ffffff;
|
|
--danger: #f87171;
|
|
}
|
|
}
|
|
|
|
body {
|
|
background: var(--background);
|
|
color: var(--foreground);
|
|
font-family: var(--font-sans), ui-sans-serif, system-ui, -apple-system, sans-serif;
|
|
}
|
|
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 1rem;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
color: var(--accent-foreground);
|
|
border-radius: 0.75rem;
|
|
font-weight: 500;
|
|
transition: opacity 0.15s ease;
|
|
}
|
|
.btn-primary:hover {
|
|
opacity: 0.9;
|
|
}
|
|
.btn-primary:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-ghost {
|
|
border: 1px solid var(--border);
|
|
border-radius: 0.75rem;
|
|
color: var(--foreground);
|
|
transition: background-color 0.15s ease;
|
|
}
|
|
.btn-ghost:hover {
|
|
background: var(--border);
|
|
}
|
|
|
|
.input-field {
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
border-radius: 0.75rem;
|
|
color: var(--foreground);
|
|
}
|
|
.input-field:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|