GURU Network: Multi Chain AI Compute Layer
  • Overview
  • ▶️Getting Started
    • Using Mainnet
    • Wallet Configuration
    • Using DApps
    • Technical Architecture of Guru Network
    • Ultimate Guide To Guru Network For Community Users
  • 🫡Utility
    • Fees
    • Bridges
    • Block Explorers
    • Indexer
  • 👩‍💻Development
    • Contract Deployment
    • NFT APIs
    • Account Abstraction
    • Contracts
    • Running Node
  • 🔗Links
    • Guru Network
    • How to buy $GURU
    • Web & social media
    • Official NFT Collections
    • Docs and DYOR
    • Open Source
  • 🎯Purpose and Vision
    • 🔗Atomic Franchise Mechanism
    • 👥Participation
    • 💰Rewards and Incentives
  • 💡Guru Network
    • 🎛️Guru Network ChainLink integration
      • 📄Guru Season 2 Pass And ChainLink Functions Case
    • 💲Guru Token
    • 🌐Web3 Infrastructure
    • 🌆Web2 and Off-Chain Infrastructure
    • ⛓️Multi Chain Interoperability Layer (CCIP)
    • 👩‍🔬Subsquid & Guru Network Data Partnership
    • Smart Contracts
  • 🪄Flow Orchestrator
  • 🚀BBPA Engines
  • 📋Tasklist
  • 💫Shared Event Bus
  • 🤖Individual Agents
  • 🧰Framework
    • ⚙️Setup and Configuration
    • 📚Data Warehouse API
    • 👾Block Explorer
    • ⚡Indexer
      • ⏯️Run the Indexer
      • 🔛Environment Variables
      • 🐇Parallel Indexing using RabbitMQ
    • 🔄Swap
    • 🏪Warehouse
      • 🏁Getting Started
  • 🧑‍🤝‍🧑Ecosystem and Community
  • 📜Governance and Stakeholder Engagement
  • 🗺️Q1&Q2 2024 Roadmap
  • 📄Terms Of Sale
  • 📕Glossary
  • 📖Reference Documentation
  • 🏆Contests
    • 🧑‍🎨Guru NFT Art Contest - CONTEST IS OVER
    • 😺Guru Meme Mania
    • 🧙‍♂️Guru Network Grand Riddle Hunt
  • 🖇️Our Links
  • 🧘‍♂️Guru Network Mainnet Launch Documentation
    • Network Information
    • Token Contracts
  • ⏯️Using Guru
Powered by GitBook
On this page
  1. Framework
  2. Warehouse

Getting Started

Data Warehouse showcase with a simple use case.

PreviousWarehouseNextEcosystem and Community

Last updated 11 months ago

You can create QUERIES (1), create DASHBOARDS (2) combining queries
and visualizations built for them, TAG (3) them, and PUBLISH (4) for 
public usage. Queries should be published in order to be available for
dashboards and public. Dashboards should be published in order to be available
from outside. Let’s take a look for a “XFI Pools Activity” (5) dashboard for example.

Here we have a set of QUERY DASHBOARDS (1), global params for dashboards (2), 
and REFRESH rate (3). In order to go down to the QUERY (4), select it from DROPDOWN (5).

On a query page there is a SQL QUERY (1) with PARAMS (2). On a left you can find a LIST OF TABLES (3) for
a network, and select REQUIRED TABLE (4). Query result is found in a TABLE (5). Next, take a look at VISUALIZATION (6).

WITH
    toUnixTimestamp(toString('{{dates.start}}')) AS dateStart,
    toUnixTimestamp(toString('{{dates.end}}')) AS dateEnd
SELECT 
    pool_address,
    wallet_address,
    DATE(block_timestamp) as timestamp,
    CAST(token_addresses[1] as CHAR) as tokenFrom,
    CAST(token_addresses[2] as CHAR) as tokenTo,
    amounts[1] as tokenFromAmount,
    amounts[2] as tokenToAmount,
    transaction_type
FROM xfi_test.dex_trades

Go down the VISUALIZATION CONFIG (1, 2), select CHART (3) type and choose required AXIS AND PARAMS (4).
There’s a variety of dashboards you can build (5).

Query can be used via REST (1), dashboard can be published via URL (2).

CURL
curl -X POST 'https://api.dev.dex.guru/wh/xfi_addresses_interaction?api_key=sTa5PAljgZuakDAojY8YipKcUq0jHQH2mI8xKlxn' -H 'Content-Type: application/json' --data '{"parameters": {"dates":"d_last_month"}}'
JS
fetch( "https://api.dev.dex.guru/wh/xfi_addresses_interaction?api_key=sTa5PAljgZuakDAojY8YipKcUq0jHQH2mI8xKlxn", { method: "POST", headers: {"Content-Type": "application/json"}, body: '{"parameters": {"dates":"d_last_month"}}' } )

That is all for a main features introduction.
All details can be provided on demand.
Other features and uses cases will be described in a while.

🧰
🏪
🏁
https://warehouse.xfi.mswarehouse.xfi.ms
https://warehouse.xfi.ms/dashboards?order=-created_at&page=1&page_size=20warehouse.xfi.ms
https://warehouse.xfi.ms/dashboards/xfi_pools_activity?p_dates=d_last_month&p_limit=100&p_network=xfi_testwarehouse.xfi.ms
https://warehouse.xfi.ms/queries/85/source?p_dates=d_last_month#130warehouse.xfi.ms
https://warehouse.xfi.ms/queries/85/source?p_dates=d_last_month#-1warehouse.xfi.ms