Skip to content

Modular code to interact with the MOR contracts, stats, and graphs

License

Notifications You must be signed in to change notification settings

MorpheusAIs/stats-graphs-and-endpoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morpheus AI Metrics Dashboard V2

Overview

The Morpheus AI Metrics Dashboard is a comprehensive tool designed to provide detailed insights into the Supply, Staking, Capital and Code Metrics for the MorpheusAI Community and its native token $MOR. This dashboard serves as a central hub for community members, stakers and developers to access critical data and analytics.

Dashboard Links

  1. Morpheus AI Metrics Dashboard - Azure
  2. Morpheus AI Metrics Dashboard - Cloudflare

GitHub Links

  1. Frontend Repository
  2. Backend Repository
  3. API Code

GitBook Links

  1. Gitbook Catalog

GitBook Master Links

  1. API Reference
  2. Frontend Examples & Reference
  3. Backend Examples & Reference

GitBook V2 Links:

  1. V2 Frontend Integrations
  2. Capital API Endpoints
  3. Code API Endpoints
  4. Backend Capital Helpers
  5. Backend Code Helpers

CodePen Link:

  1. Morpheus Metrics Dashboard Codepen Collection

Other CodePen Links

  1. Daily MOR Emissions - Supply Page
    This chart displays the data for Daily MOR Emissions Over Time.
    View on CodePen

  2. MOR Rewards Staked Over Time - Staking Page
    This chart shows the MOR Rewards Locked by Contributors Over Time for Each Pool.
    View on CodePen

  3. Total vs Current Capital Provided Over Time - Capital Page
    This chart shows the Current and Total Capital provided by contributors over time.
    View on CodePen

  4. Number of Active vs Total Capital Providers Over Time - Capital Page
    This chart shows the Current and Total Capital providers over time.
    View on CodePen

  5. Yield Generated by Capital Providers - Capital Page
    This chart shows the Yield Generated by capital contributors over time.
    View on CodePen

  6. MOR Capital Rewards Distribution
    This chart represents the Total Emissions for the Capital Pool and the amount of MOR Claimed and Unclaimed till now. The Unclaimed MOR also contains a sector which shows the Unclaimed MOR that has been staked till now.
    View on CodePen

  7. MOR Code Rewards Distribution
    This chart represents the Total Emissions for the Code Pool and the amount of MOR Claimed and Unclaimed till now. The Unclaimed MOR also contains a sector which shows the Unclaimed MOR that has been staked till now.
    View on CodePen

  8. Repository Commits Over Time
    This chart represents commits made by contributors across each Morpheus Repo and in total over time.
    View on CodePen

Azure Links:

  1. Morpheus Metrics API Link
  2. Morpheus AI Metrics Dashboard - Azure

Azure Endpoint Links

  1. Root Endpoint
    https://morpheus-ai-metrics-a9febnfedac6a6fx.centralus-01.azurewebsites.net/

  2. Staker Related Metrics - /analyze-mor-stakers
    https://morpheus-ai-metrics-a9febnfedac6a6fx.centralus-01.azurewebsites.net/analyze-mor-stakers

  3. Reward Related Metrics - /give_mor_reward
    https://morpheus-ai-metrics-a9febnfedac6a6fx.centralus-01.azurewebsites.net/give_mor_reward

  4. Distribution Related Metrics - /get_stake_info
    https://morpheus-ai-metrics-a9febnfedac6a6fx.centralus-01.azurewebsites.net/get_stake_info

  5. Supply Related Metrics - /total_and_circ_supply
    https://morpheus-ai-metrics-a9febnfedac6a6fx.centralus-01.azurewebsites.net/total_and_circ_supply

  6. Price Related Metrics - /prices_and_trading_volume
    https://morpheus-ai-metrics-a9febnfedac6a6fx.centralus-01.azurewebsites.net/prices_and_trading_volume

  7. Market Cap Related Metrics - /get_market_cap
    https://morpheus-ai-metrics-a9febnfedac6a6fx.centralus-01.azurewebsites.net/get_market_cap

  8. MOR Holder Related Metrics - /mor_holders_by_range
    https://morpheus-ai-metrics-a9febnfedac6a6fx.centralus-01.azurewebsites.net/mor_holders_by_range

  9. Locked and Burnt MOR Related Metrics - /locked_and_burnt_mor
    https://morpheus-ai-metrics-a9febnfedac6a6fx.centralus-01.azurewebsites.net/locked_and_burnt_mor

  10. Uniswap PoL Related Metrics - /protocol_liquidity
    https://morpheus-ai-metrics-a9febnfedac6a6fx.centralus-01.azurewebsites.net/protocol_liquidity

  11. Last Cache Update Time - /last_cache_update_time
    https://morpheus-ai-metrics-a9febnfedac6a6fx.centralus-01.azurewebsites.net/last_cache_update_time

  12. Capital Related Metrics - /capital_metrics
    https://morpheus-ai-metrics-a9febnfedac6a6fx.centralus-01.azurewebsites.net/capital_metrics

  13. GitHub Related Metrics - /github_commits
    https://morpheus-ai-metrics-a9febnfedac6a6fx.centralus-01.azurewebsites.net/github_commits

  14. Locked Rewards Related Metrics - /historical_mor_rewards_locked
    https://morpheus-ai-metrics-a9febnfedac6a6fx.centralus-01.azurewebsites.net/historical_mor_rewards_locked

  15. Code Related Metrics - /code_metrics
    https://morpheus-ai-metrics-a9febnfedac6a6fx.centralus-01.azurewebsites.net/code_metrics

  16. Chain-Wise Supplies - /chain_wise_supplies
    https://morpheus-ai-metrics-a9febnfedac6a6fx.centralus-01.azurewebsites.net/chain_wise_supplies

Features

  • Comprehensive capital and code metrics added for $MOR token
  • Detailed staking and supply analytics
  • Interactive data visualizations
  • Added API integrations for extended functionality
  • Interactive dashboard layouts
  • Historical data trends and projections

Deployment

The current version of the dashboard is live and accessible at: Morpheus AI Metrics Dashboard

This deployment is hosted on MOR.Software's cloud infrastructure, ensuring high availability and performance.

Documentation

GitBook Catalog

We have compiled a comprehensive GitBook catalog to serve as a reference guide for contributors and developers. This catalog provides in-depth information about the project's architecture, implementation details, and usage guidelines.

The catalog includes:

  • Step-by-step walkthroughs
  • Code examples for both frontend and backend
  • Detailed API integration guides

API Reference

For developers looking to integrate or extend the dashboard's functionality, we have created a detailed API reference:

This guide outlines:

  • Available endpoints
  • Data Structures
  • Sample requests and responses

Development Resources

Frontend

Frontend Integration Points

  1. Defined Components: Utilizes custom React components for consistent UI elements.
  2. Comprehensive Toggling: Uses a host of toggles across the dashboard for ease of use and enhanced optionality for the user.
  3. Charting: Integrates with Recharts and Charts.js for advanced data visualizations and interactive charts.

Backend

Backend Integration Points

  1. Data Sources: Connects to multiple blockchain nodes and indexers for accurate data using web3.py.
  2. Caching Layer: Implements an elaborate caching mechanism which integrates with FastAPI schedulers and decorators to provide high-performance caching of all endpoints.
  3. Asynchronous Code: Relies heavily of async and non-blocking code to ensure that the data is fetched in the most optimized manner while maintaining accuracy and consistency.

CodePen Collection

  • CodePen Collection: A curated set of CodePen examples demonstrating various components and visualizations used in the dashboard. This can be referred to, in order to get an idea on how to integrate visualizations in accordance with the official Morpheus design scheme.

Getting Started

To begin working with the Morpheus AI Metrics Dashboard:

  1. Clone the frontend and backend repositories
  2. Review the README.md documentation in each of the respective sub-directories for setup instructions
  3. Explore the API reference to understand data flow
  4. Check out the CodePen examples for frontend component insights
  5. Set up your local development environment following the README in each repository

Support

If you encounter any issues or have questions, please open an issue in the appropriate GitHub repository or reach out to our development team through the official MorpheusAI community channels.


This PR serves as a comprehensive reference for developers looking to understand the Morpheus AI Metrics Dashboard. We encourage all community members to review this documentation and provide feedback to ensure its accuracy and usefulness.

About

Modular code to interact with the MOR contracts, stats, and graphs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •