myco-bonding-curve/dashboard/app.py

50 lines
1.1 KiB
Python

"""MYCO Bonding Surface — Interactive Dashboard.
Run: streamlit run dashboard/app.py
"""
import streamlit as st
st.set_page_config(
page_title="MYCO Bonding Surface",
page_icon="🍄",
layout="wide",
)
st.title("MYCO Bonding Surface Dashboard")
st.caption("Interactive simulations for the multi-asset bonding curve with CRDT-native primitives.")
# Initialize default config in session_state if not present
if "myco_config" not in st.session_state:
from src.composed.myco_surface import MycoSystemConfig
st.session_state["myco_config"] = MycoSystemConfig()
tab_config, tab_launch, tab_dca, tab_signal, tab_stress, tab_crdt = st.tabs([
"System Config",
"Token Launch",
"DCA Explorer",
"Signal Router",
"Stress Tests",
"CRDT Flow",
])
from dashboard.tabs import system_config, token_launch, dca_explorer, signal_router, stress_tests, crdt_flow
with tab_config:
system_config.render()
with tab_launch:
token_launch.render()
with tab_dca:
dca_explorer.render()
with tab_signal:
signal_router.render()
with tab_stress:
stress_tests.render()
with tab_crdt:
crdt_flow.render()