This schema contains comprehensive datasets for tracking Acala fundamental data across multiple metrics categories, including network activity, fees, token burning mechanics, and market data for the DeFi hub built on Polkadot.

Available Tables

Acala data is available in the main metrics table:

  • ez_metrics: Aggregated metrics for the Acala network including DeFi activity and token economics

Table Schema

Network and Usage Metrics

Table NameColumn NameDescription
ez_metricschain_dauDaily unique users on Acala
ez_metricschain_wauWeekly unique users on Acala
ez_metricschain_mauMonthly unique users on Acala
ez_metricschain_txnsDaily transactions on Acala
ez_metricschain_avg_txn_feeThe average transaction fee on Acala
ez_metricsdauSame as chain_dau (legacy naming)
ez_metricswauSame as chain_wau (legacy naming)
ez_metricsmauSame as chain_mau (legacy naming)
ez_metricstxnsSame as chain_txns (legacy naming)
ez_metricsavg_txn_feeSame as chain_avg_txn_fee (legacy naming)

Fee and Revenue Metrics

Table NameColumn NameDescription
ez_metricschain_feesThe total transaction fees paid on Acala
ez_metricsecosystem_revenueThe total USD value generated by Acala from all user-paid fees
ez_metricsecosystem_revenue_nativeThe total native ACA value generated by Acala from all user-paid fees
ez_metricsfeesSame as chain_fees (legacy naming)
ez_metricsfees_nativeTransaction fees collected in native ACA tokens
ez_metricsrevenueNet revenue after fee distribution (legacy naming)

Token Burning Mechanics

Table NameColumn NameDescription
ez_metricsburned_cash_flowThe USD value of ACA tokens burned (20% of transaction fees)
ez_metricsburned_cash_flow_nativeThe amount of native ACA tokens burned (20% of transaction fees)

Market and Token Metrics

Table NameColumn NameDescription
ez_metricspriceThe price of ACA token in USD
ez_metricsmarket_capThe market cap of ACA token in USD
ez_metricsfdmcThe fully diluted market cap of ACA token in USD

Sample Queries

Basic Network Activity Query

-- Pull fundamental network activity data for Acala
SELECT
    date,
    chain_txns,
    chain_dau,
    chain_fees,
    chain_avg_txn_fee,
    ecosystem_revenue,
    burned_cash_flow,
    price
FROM
    art_share.acala.ez_metrics
WHERE
    date >= DATEADD(month, -3, CURRENT_DATE())
ORDER BY
    date ASC

Token Burning Analysis

-- Analyze Acala's token burning mechanism
SELECT
    date,
    ecosystem_revenue,
    burned_cash_flow,
    burned_cash_flow_native,
    chain_txns,
    burned_cash_flow / NULLIF(ecosystem_revenue, 0) * 100 as burn_percentage,
    burned_cash_flow / NULLIF(chain_txns, 0) as burned_per_txn,
    burned_cash_flow_native / NULLIF(chain_txns, 0) as burned_aca_per_txn
FROM
    art_share.acala.ez_metrics
WHERE
    date >= DATEADD(month, -3, CURRENT_DATE())
    AND ecosystem_revenue > 0
ORDER BY
    date ASC

User Growth and Engagement

-- Track Acala user growth and engagement patterns
SELECT
    date,
    chain_dau,
    chain_wau,
    chain_mau,
    chain_txns,
    chain_txns / NULLIF(chain_dau, 0) as txns_per_user,
    chain_dau / NULLIF(chain_wau, 0) * 100 as daily_weekly_ratio,
    chain_wau / NULLIF(chain_mau, 0) * 100 as weekly_monthly_ratio,
    LAG(chain_dau, 7) OVER (ORDER BY date) as dau_7d_ago,
    (chain_dau - LAG(chain_dau, 7) OVER (ORDER BY date)) / NULLIF(LAG(chain_dau, 7) OVER (ORDER BY date), 0) * 100 as dau_growth_7d
FROM
    art_share.acala.ez_metrics
WHERE
    date >= DATEADD(month, -2, CURRENT_DATE())
ORDER BY
    date ASC

Fee Structure and Economics

-- Analyze Acala's fee structure and economic model
SELECT
    date,
    ecosystem_revenue,
    burned_cash_flow,
    ecosystem_revenue - burned_cash_flow as retained_revenue,
    chain_avg_txn_fee,
    chain_txns,
    price,
    burned_cash_flow / NULLIF(ecosystem_revenue, 0) * 100 as burn_rate,
    (ecosystem_revenue - burned_cash_flow) / NULLIF(ecosystem_revenue, 0) * 100 as retention_rate,
    ecosystem_revenue / NULLIF(chain_dau, 0) as revenue_per_user
FROM
    art_share.acala.ez_metrics
WHERE
    date >= DATEADD(month, -2, CURRENT_DATE())
    AND ecosystem_revenue > 0
ORDER BY
    date ASC

Market Performance Analysis

-- Analyze ACA token market performance vs network activity
SELECT
    date,
    price,
    market_cap,
    fdmc,
    chain_dau,
    chain_txns,
    ecosystem_revenue,
    burned_cash_flow_native,
    market_cap / NULLIF(ecosystem_revenue, 0) as mcap_to_revenue_ratio,
    burned_cash_flow_native * price as burned_usd_value,
    ecosystem_revenue / NULLIF(chain_dau, 0) as revenue_per_user
FROM
    art_share.acala.ez_metrics
WHERE
    date >= DATEADD(month, -3, CURRENT_DATE())
ORDER BY
    date ASC
-- Track Acala network growth and adoption trends
SELECT
    date,
    chain_dau,
    chain_txns,
    ecosystem_revenue,
    burned_cash_flow,
    -- 7-day growth rates
    LAG(chain_dau, 7) OVER (ORDER BY date) as dau_7d_ago,
    LAG(chain_txns, 7) OVER (ORDER BY date) as txns_7d_ago,
    LAG(ecosystem_revenue, 7) OVER (ORDER BY date) as revenue_7d_ago,
    (chain_dau - LAG(chain_dau, 7) OVER (ORDER BY date)) / NULLIF(LAG(chain_dau, 7) OVER (ORDER BY date), 0) * 100 as dau_growth_7d,
    (chain_txns - LAG(chain_txns, 7) OVER (ORDER BY date)) / NULLIF(LAG(chain_txns, 7) OVER (ORDER BY date), 0) * 100 as txns_growth_7d,
    (ecosystem_revenue - LAG(ecosystem_revenue, 7) OVER (ORDER BY date)) / NULLIF(LAG(ecosystem_revenue, 7) OVER (ORDER BY date), 0) * 100 as revenue_growth_7d
FROM
    art_share.acala.ez_metrics
WHERE
    date >= DATEADD(month, -2, CURRENT_DATE())
ORDER BY
    date ASC

Burn Impact Analysis

-- Analyze the impact of token burning on supply and market
SELECT
    date,
    burned_cash_flow_native,
    burned_cash_flow,
    price,
    market_cap,
    chain_txns,
    -- Cumulative burns
    SUM(burned_cash_flow_native) OVER (ORDER BY date) as cumulative_burned_aca,
    SUM(burned_cash_flow) OVER (ORDER BY date) as cumulative_burned_usd,
    -- Moving averages
    AVG(burned_cash_flow_native) OVER (ORDER BY date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW) as avg_daily_burn_7d,
    AVG(burned_cash_flow) OVER (ORDER BY date ROWS BETWEEN 29 PRECEDING AND CURRENT ROW) as avg_daily_burn_30d
FROM
    art_share.acala.ez_metrics
WHERE
    date >= DATEADD(month, -6, CURRENT_DATE())
ORDER BY
    date ASC

Daily Performance Summary

-- Comprehensive daily performance summary for Acala
SELECT
    date,
    chain_dau,
    chain_txns,
    ecosystem_revenue,
    burned_cash_flow,
    chain_avg_txn_fee,
    price,
    market_cap,
    -- Efficiency metrics
    chain_txns / NULLIF(chain_dau, 0) as txns_per_user,
    ecosystem_revenue / NULLIF(chain_txns, 0) as revenue_per_txn,
    burned_cash_flow / NULLIF(ecosystem_revenue, 0) * 100 as burn_percentage,
    ecosystem_revenue / NULLIF(chain_dau, 0) as revenue_per_user
FROM
    art_share.acala.ez_metrics
WHERE
    date >= DATEADD(week, -4, CURRENT_DATE())
ORDER BY
    date DESC

Fee Distribution Analysis

-- Analyze how fees are distributed between burning and retention
SELECT
    date,
    ecosystem_revenue,
    burned_cash_flow,
    ecosystem_revenue - burned_cash_flow as retained_fees,
    chain_txns,
    burned_cash_flow / NULLIF(ecosystem_revenue, 0) * 100 as burn_rate,
    (ecosystem_revenue - burned_cash_flow) / NULLIF(ecosystem_revenue, 0) * 100 as retention_rate,
    burned_cash_flow / NULLIF(chain_txns, 0) as burn_per_txn,
    (ecosystem_revenue - burned_cash_flow) / NULLIF(chain_txns, 0) as retained_per_txn
FROM
    art_share.acala.ez_metrics
WHERE
    date >= DATEADD(month, -1, CURRENT_DATE())
    AND ecosystem_revenue > 0
ORDER BY
    date DESC

Monthly Aggregated Metrics

-- Monthly summary of Acala network performance
WITH monthly_summary AS (
    SELECT
        DATE_TRUNC('month', date) as month,
        AVG(chain_dau) as avg_dau,
        SUM(chain_txns) as total_txns,
        SUM(ecosystem_revenue) as total_revenue,
        SUM(burned_cash_flow) as total_burned,
        SUM(burned_cash_flow_native) as total_burned_aca,
        AVG(price) as avg_price,
        AVG(market_cap) as avg_market_cap
    FROM
        art_share.acala.ez_metrics
    WHERE
        date >= DATEADD(month, -6, CURRENT_DATE())
    GROUP BY
        DATE_TRUNC('month', date)
)
SELECT
    month,
    avg_dau,
    total_txns,
    total_revenue,
    total_burned,
    total_burned_aca,
    avg_price,
    avg_market_cap,
    total_burned / NULLIF(total_revenue, 0) * 100 as monthly_burn_rate,
    total_revenue / NULLIF(total_txns, 0) as avg_revenue_per_txn,
    total_txns / NULLIF(avg_dau, 0) as avg_txns_per_user_per_day
FROM
    monthly_summary
ORDER BY
    month DESC