Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ build/
node_modules/
/vendor/

# Next.js build artifacts
.next/
next-env.d.ts

# Environment variables
.env
*.env
Expand Down
8 changes: 4 additions & 4 deletions cmd/demo-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// The demo type is selected by the DEMO_TYPE environment variable:
// - hello: proof-of-payment echo (no external dependencies)
// - blocks: basic chain data from eRPC
// - oracle: chain analysis with gas statistics from eRPC
// - quant: agent-driven analysis report from eRPC (gas stats, tx volume)
package main

import (
Expand Down Expand Up @@ -31,10 +31,10 @@ func main() {
handler = demo.HelloHandler()
case "blocks":
handler = demo.BlocksHandler(erpcURL)
case "oracle":
handler = demo.OracleHandler(erpcURL)
case "quant":
handler = demo.QuantHandler(erpcURL)
default:
log.Fatalf("unknown DEMO_TYPE: %q (expected hello, blocks, or oracle)", demoType)
log.Fatalf("unknown DEMO_TYPE: %q (expected hello, blocks, or quant)", demoType)
}

mux := http.NewServeMux()
Expand Down
Loading
Loading