global-ai-data-node commited on
Commit
994ad0d
·
verified ·
1 Parent(s): 01b081b

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +24 -11
index.html CHANGED
@@ -6,31 +6,40 @@
6
  <title>Autonomous Compute Arbitrage Gateway</title>
7
  <style>
8
  body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0f172a; color: #f8fafc; padding: 20px; display: flex; justify-content: center; }
9
- .card { background: #1e293b; border: 1px solid #334155; border-radius: 12px; max-width: 500px; width: 100%; padding: 24px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
10
  h2 { margin-top: 0; color: #38bdf8; font-size: 1.4rem; }
11
- label { display: block; margin-top: 15px; font-weight: 600; color: #94a3b8; font-size: 0.9rem; }
12
  select, input { width: 100%; padding: 10px; margin-top: 6px; border-radius: 6px; border: 1px solid #475569; background: #0f172a; color: #fff; box-sizing: border-box; }
13
- button { width: 100%; margin-top: 20px; padding: 12px; background: #0284c7; color: white; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 1rem; }
14
  button:hover { background: #0369a1; }
15
- .output { margin-top: 20px; background: #0f172a; border: 1px solid #334155; border-radius: 6px; padding: 12px; font-family: monospace; font-size: 0.85rem; color: #4ade80; white-space: pre-wrap; word-break: break-all; }
 
16
  </style>
17
  </head>
18
  <body>
19
  <div class="card">
20
  <h2>⚡ Liquid Compute Dispatcher</h2>
21
- <p style="font-size: 0.85rem; color: #94a3b8;">Decentralized GPU Compute Allocation & Settlement Router</p>
22
 
23
  <label for="gpu">Select Compute Hardware</label>
24
  <select id="gpu">
25
- <option value="NVIDIA H100">NVIDIA H100 (Arbitrage Spread: $2.70/hr)</option>
26
- <option value="NVIDIA A100">NVIDIA A100 (Arbitrage Spread: $1.68/hr)</option>
27
- <option value="RTX 4090">RTX 4090 (Arbitrage Spread: $0.57/hr)</option>
28
  </select>
29
 
30
  <label for="hours">Duration (Hours): <span id="hrs-val">5</span> hrs</label>
31
  <input type="range" id="hours" min="1" max="168" value="5" oninput="document.getElementById('hrs-val').innerText = this.value">
32
 
33
- <button onclick="dispatchJob()">🚀 Instant Quote & Dispatch Node</button>
 
 
 
 
 
 
 
 
34
 
35
  <div id="result" class="output" style="display:none;"></div>
36
  </div>
@@ -39,15 +48,19 @@
39
  async function dispatchJob() {
40
  const gpu = document.getElementById('gpu').value;
41
  const hours = document.getElementById('hours').value;
 
42
  const out = document.getElementById('result');
43
  out.style.display = 'block';
44
- out.innerText = 'Connecting to Cloudflare Sentinel...';
45
 
46
  try {
 
 
 
47
  const res = await fetch("https://compute-arbitrage-engine.sarkarirojgarofficials.workers.dev/", {
48
  method: "POST",
49
  headers: { "Content-Type": "application/json" },
50
- body: JSON.stringify({ gpu: gpu, hours: Number(hours) })
51
  });
52
  const data = await res.json();
53
  out.innerText = JSON.stringify(data, null, 2);
 
6
  <title>Autonomous Compute Arbitrage Gateway</title>
7
  <style>
8
  body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0f172a; color: #f8fafc; padding: 20px; display: flex; justify-content: center; }
9
+ .card { background: #1e293b; border: 1px solid #334155; border-radius: 12px; max-width: 540px; width: 100%; padding: 24px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
10
  h2 { margin-top: 0; color: #38bdf8; font-size: 1.4rem; }
11
+ label { display: block; margin-top: 15px; font-weight: 600; color: #94a3b8; font-size: 0.85rem; }
12
  select, input { width: 100%; padding: 10px; margin-top: 6px; border-radius: 6px; border: 1px solid #475569; background: #0f172a; color: #fff; box-sizing: border-box; }
13
+ button { width: 100%; margin-top: 18px; padding: 12px; background: #0284c7; color: white; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 0.95rem; }
14
  button:hover { background: #0369a1; }
15
+ .wallet-box { margin-top: 15px; padding: 10px; background: #022c22; border: 1px solid #059669; border-radius: 6px; font-size: 0.8rem; word-break: break-all; color: #6ee7b7; }
16
+ .output { margin-top: 18px; background: #0f172a; border: 1px solid #334155; border-radius: 6px; padding: 12px; font-family: monospace; font-size: 0.82rem; color: #4ade80; white-space: pre-wrap; word-break: break-all; }
17
  </style>
18
  </head>
19
  <body>
20
  <div class="card">
21
  <h2>⚡ Liquid Compute Dispatcher</h2>
22
+ <p style="font-size: 0.82rem; color: #94a3b8;">Decentralized GPU Compute Allocation & Real-Time Settlement Router</p>
23
 
24
  <label for="gpu">Select Compute Hardware</label>
25
  <select id="gpu">
26
+ <option value="NVIDIA H100">NVIDIA H100 (Spread: $2.70/hr)</option>
27
+ <option value="NVIDIA A100">NVIDIA A100 (Spread: $1.68/hr)</option>
28
+ <option value="RTX 4090">RTX 4090 (Spread: $0.57/hr)</option>
29
  </select>
30
 
31
  <label for="hours">Duration (Hours): <span id="hrs-val">5</span> hrs</label>
32
  <input type="range" id="hours" min="1" max="168" value="5" oninput="document.getElementById('hrs-val').innerText = this.value">
33
 
34
+ <div class="wallet-box">
35
+ <strong>Official Settlement Target (Solana SPL-USDC):</strong><br>
36
+ <code>3xdY7ZzunKpptQorAadst2GkfDX1mz7aqZsrwqWSioQX</code>
37
+ </div>
38
+
39
+ <label for="txsig">Solana Transaction Signature (Optional for Quote, Required for Node Dispatch)</label>
40
+ <input type="text" id="txsig" placeholder="Paste Solana TX hash to verify on-chain">
41
+
42
+ <button onclick="dispatchJob()">🚀 Calculate Quote / Verify & Dispatch Node</button>
43
 
44
  <div id="result" class="output" style="display:none;"></div>
45
  </div>
 
48
  async function dispatchJob() {
49
  const gpu = document.getElementById('gpu').value;
50
  const hours = document.getElementById('hours').value;
51
+ const txSig = document.getElementById('txsig').value.trim();
52
  const out = document.getElementById('result');
53
  out.style.display = 'block';
54
+ out.innerText = 'Connecting to Cloudflare Sentinel & Solana RPC...';
55
 
56
  try {
57
+ const payload = { gpu: gpu, hours: Number(hours) };
58
+ if (txSig) payload.tx_signature = txSig;
59
+
60
  const res = await fetch("https://compute-arbitrage-engine.sarkarirojgarofficials.workers.dev/", {
61
  method: "POST",
62
  headers: { "Content-Type": "application/json" },
63
+ body: JSON.stringify(payload)
64
  });
65
  const data = await res.json();
66
  out.innerText = JSON.stringify(data, null, 2);