Owner reported qie-forge.vercel.app as "genuinely empty" — /swap and /vault were showing the honest-but-empty "not deployed yet" state because no QIE Testnet/Mainnet deployer key exists in this environment (confirmed: none found in ~/products/.env or any other env file). Real fix, not a toy/local-only proof: deployed the actual compiled QieForge contracts (factory, router, oracle, vault) to a persistent, publicly reachable anvil devnet self-hosted on the products box (packages/contracts/script/DeployDemo.s.sol), seeded with real AMM liquidity and a real open vault position. Added a "demo" QieNetworkName to @qie-forge/core (distinct from testnet/mainnet, chain id 31337) and a DemoBanner shown on /swap and /vault whenever the network is "demo", so this can never be mistaken for live QIE Testnet/Mainnet activity. Wired the live Vercel production project to it via env vars — no other frontend code change needed, confirmed against the real production URL with curl and gstack browse (real on-chain quote, real vault position, real swap UI interaction). Also committed packages/rust/tests/anvil_integration.rs + vault.rs (previously uncommitted, verified passing), closing the "no Rust anvil-integration test" gap docs/STATUS.md had tracked — the Rust SDK now has the same on-chain round-trip proof the Python SDK already had. Separately confirmed QieForgeVault still has no lender deposit/withdraw flow despite an earlier commit's message claiming otherwise (re-verified by reading QieForgeVault.sol directly, not trusting the commit message) — documented honestly in docs/STATUS.md as a real gap before any funded Testnet/Mainnet launch.
32 lines
1.5 KiB
TypeScript
32 lines
1.5 KiB
TypeScript
import { AlertIcon } from "./icons";
|
|
|
|
/**
|
|
* Shown only when NEXT_PUBLIC_QIE_FORGE_NETWORK="demo" — a self-hosted
|
|
* local-anvil devnet (packages/contracts/script/DeployDemo.s.sol) seeded
|
|
* with real liquidity and a real vault position, standing in for QIE
|
|
* Testnet/Mainnet while the real deployment waits on a funded QIE deployer
|
|
* key (docs/STATUS.md). Deliberately loud and unmissable: this must never
|
|
* be confused with live QIE Testnet or Mainnet activity.
|
|
*/
|
|
export function DemoBanner() {
|
|
return (
|
|
<div className="mb-6 rounded-lg border border-amber-500/40 bg-amber-500/10 p-4 flex items-start gap-3">
|
|
<AlertIcon className="w-5 h-5 text-amber-500 mt-0.5 shrink-0" />
|
|
<div className="text-sm">
|
|
<p className="font-medium text-amber-600 dark:text-amber-400">Local demo network — not QIE Testnet or Mainnet</p>
|
|
<p className="text-muted mt-1">
|
|
The real, compiled QieForge contracts (factory, router, oracle, vault) are deployed to a
|
|
self-hosted anvil devnet and seeded with demo liquidity so you can try the real protocol
|
|
end to end. Tokens, balances, and prices here are disposable demo data with zero real
|
|
value. Once a funded QIE deployer key exists, this flips to a real Testnet/Mainnet
|
|
deployment with no frontend code change — see{" "}
|
|
<a className="underline hover:text-foreground" href="https://github.com/caelum0x/qie-forge/blob/main/docs/STATUS.md">
|
|
docs/STATUS.md
|
|
</a>
|
|
.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|