Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
feat: BLACK MUCIZEWORK WEB4 Master — clustering, radar, funding, sign…
…ature

- api/api.py: Flask orkestrator (port 5002) — /, /status, /graph, /analyze
- clustering/cluster_engine.py: Wallet siniflandirma (AJAN/MZC/MYK)
- radar/smart_radar.py: Smart Money tespit (>100K akis sinyali)
- funding/funding_trace.py: Fon akisi kayit/izleme (port 5003)
- signature/verify.py: Hash tabanli imza dogrulama
- core/config.json: v5.0 BLACK mode, 4 modul aktif
- Graph state: AJAN(execution), MZC(asset), MYK(treasury) node'lari
  • Loading branch information
devin-ai-integration[bot] committed Jun 22, 2026
commit 0e790a087d855f2d1441d06c4ebc11bb83a4d3ef
45 changes: 45 additions & 0 deletions api/api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
"""
MUCIZEWORK WEB4 Orchestrator API
Ana giriş noktası — graph, analyze, status.
Port: 5002
"""

from flask import Flask, jsonify, request
import json
import os

app = Flask(__name__)

GRAPH_PATH = os.path.join(
os.path.dirname(__file__), "..", "storage", "graph", "graph_state.json"
)


@app.route("/")
def home():
return jsonify({"system": "MUCIZEWORK WEB4", "status": "online"})


@app.route("/status")
def status():
return jsonify({"status": "online", "engine": "web4_master"})


@app.route("/graph")
def graph():
with open(GRAPH_PATH, "r", encoding="utf-8") as f:
return jsonify(json.load(f))


@app.route("/analyze", methods=["POST"])
def analyze():
data = request.json
return jsonify({
"wallet": data.get("wallet"),
"risk": "low",
"cluster": "MZC",
})


if __name__ == "__main__":
app.run(port=5002, debug=False)
19 changes: 19 additions & 0 deletions clustering/cluster_engine.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""
Clustering Engine — Wallet sınıflandırma (AJAN / MZC / MYK).
"""

import json

CLUSTERS = {
"AJAN": {"type": "execution"},
"MZC": {"type": "asset"},
"MYK": {"type": "treasury"},
}


def classify(wallet):
return CLUSTERS.get(wallet, {"type": "unknown"})


if __name__ == "__main__":
print("CLUSTER ENGINE ACTIVE")
5 changes: 3 additions & 2 deletions core/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"engine": "MUCIZEWORK",
"version": "4.0",
"system": "MUCIZEWORK_WEB4",
"version": "5.0",
"mode": "BLACK",
"modules": ["clustering", "radar", "funding", "signature"],
"status": "ACTIVE"
}
37 changes: 37 additions & 0 deletions funding/funding_trace.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
"""
Funding Trace Engine — Fon akışı kayıt ve izleme.
Port: 5003
"""

from flask import Flask, request, jsonify
import time

app = Flask(__name__)

flows = []


@app.route("/flow", methods=["POST"])
def flow():
data = request.json
flows.append({
"from": data["from"],
"to": data["to"],
"amount": data["amount"],
"ts": time.time(),
})
return jsonify({"status": "flow_added", "total": len(flows)})


@app.route("/trace")
def trace():
return jsonify({"flows": flows})


@app.route("/status")
def status():
return jsonify({"status": "online", "module": "funding_trace"})


if __name__ == "__main__":
app.run(port=5003, debug=False)
18 changes: 18 additions & 0 deletions radar/smart_radar.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""
Smart Money Radar — Büyük hacimli akışları tespit eder.
"""


class Radar:
def __init__(self):
self.signals = []

def feed(self, flow):
if flow.get("amount", 0) > 100000:
self.signals.append({"type": "smart_money", "flow": flow})

def get(self):
return self.signals


radar = Radar()
14 changes: 14 additions & 0 deletions signature/verify.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""
Signature Engine — Hash tabanlı imza doğrulama.
"""

import hashlib


def verify(wallet, msg, sig):
raw = f"{wallet}:{msg}:{sig}".encode()
return hashlib.sha256(raw).hexdigest()


if __name__ == "__main__":
print("SIGNATURE ENGINE READY")
2 changes: 2 additions & 0 deletions start_web4.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd C:\Users\enver\mzc-engine-v3\api
python api.py
3 changes: 3 additions & 0 deletions start_web4.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
cd "$(dirname "$0")/api"
python api.py
6 changes: 5 additions & 1 deletion storage/graph/graph_state.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"nodes": {},
"nodes": {
"AJAN": {"role": "execution"},
"MZC": {"role": "asset"},
"MYK": {"role": "treasury"}
},
"edges": [],
"updated": null
}