Skip to content

Commit

Permalink
update TiDB with MySQL for current version
Browse files Browse the repository at this point in the history
  • Loading branch information
lechangxu committed Dec 1, 2024
1 parent f70204b commit 2557b17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions applications/queryWeb3.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Use Case 2: Yield Query

- Business Description:allows users to query snapshots of various chains within the Polkadot ecosystem (e.g., DOT, KSM, Hydration, Bifrost, etc.) on any given day. Users can search for all asset types (RWA or DeFi) and all yield types (staking, farming), including all tokens (DOT, KSM, HDT, vDOT, vKSM, BNC, etc.). The query results will list the TVL (Total Value Locked), 24-hour trading volume, and the number of transactions for each token or currency pair. Additionally, based on these query results, our platform can display the top 10 yield rates in the Polkadot ecosystem, the top 10 chains by TVL, and various visual representations such as line charts, pie charts, or other graphical formats. This information is designed to provide investors and operators with valuable insights for making informed investment and operational decisions.

- Data process: Extract DEFI yield data through the APIs of various blockchains into TiDB and other databases, then process and organize it into multidimensional data suitable for BI, and store it in TiDB.
- Data process: Extract DEFI yield data through the APIs of various blockchains into MySQL and other databases, then process and organize it into multidimensional data suitable for BI, and store it in MySQL.

- Business flow
![Business flow for yield query](https://github.com/Query-Web3/product/blob/main/business%20flow/YieldQuery_businessflow.webp)
Expand All @@ -44,7 +44,7 @@ Use Case 3:Vol & Txns Query

- Business Description:allows users to query transaction volume, transaction count, and token trading volume data for any chain within the Polkadot ecosystem over a specified time period. Users can analyze this data across various time cycles, such as daily, weekly, monthly, quarterly, semi-annual, and annual cycles. The query results will include year-over-year (YoY) and month-over-month (MoM) metrics and so on .Additionally, based on these query results, our platform can generate reports showing the top 10 chains by transaction volume (or transaction count, YoY, MoM、QoQ) for a specific period, as well as trend line charts and other visual representations over a given time frame. This enables users to understand the current state and development trends of each chain within the Polkadot ecosystem. For example, users can observe whether the monthly transaction volume or transaction count has increased or decreased over the past year. This information helps users understand the status and trends of various chains within the Polkadot ecosystem, identify chains with investment potential or risks, and make informed investment and operational decisions.

- data process: Initially, extract data from APIs like Subscan, Hydration, Bifrost and so on for DOT, KSM, Hydration, and Bifrost, process it into multidimensional BI data, and save it to TiDB to form the data source.
- data process: Initially, extract data from APIs like Subscan, Hydration, Bifrost and so on for DOT, KSM, Hydration, and Bifrost, process it into multidimensional BI data, and save it to MySQL to form the data source.

- Business folw : the same as use case2

Expand Down Expand Up @@ -220,7 +220,7 @@ Below we provide an **example roadmap**. In the descriptions, it should be clear
| 0e. | Article | We will be publishing an article on the Polkadot community, AIweb3 community, as well as on X and Telegram to update everyone on our progress and work. |
| 1. | DEFI indexer | Responsible for ETL (Extract, Transform, Load) tasks, parsing and storing relevant data according to the operational rules of each DEX or DEFI product on each blockchain (starting with Bifrost, Acala, Assethub, HDX, Moonbeam, and adding more chains later). |
| 2. | Facts table and dimensions table.|Based on BI data, establish DEFI data fact tables and dimension tables. |
| 3. | Data backend. | Build a data backend based on TiDB, GraphQL, and Django to provide external data APIs.|
| 3. | Data backend. | Build a data backend based on MySQL, GraphQL, and Django to provide external data APIs.|


### Milestone 2 Web and BI development.
Expand Down

0 comments on commit 2557b17

Please sign in to comment.