From 35a5f248df96cbc0733c178d5a28984ed03ef4ca Mon Sep 17 00:00:00 2001 From: SebMelendez01 <78228475+SebMelendez01@users.noreply.github.com> Date: Mon, 28 Oct 2024 07:13:20 -0700 Subject: [PATCH] Stablecoins: unifying token holder name to tokenholder (#576) --- macros/metrics/get_stablecoin_metrics.sql | 12 ++++++------ macros/stablecoins/stablecoin_breakdown.sql | 4 ++-- .../projects/arbitrum/core/ez_arbitrum_metrics.sql | 4 ++-- .../projects/avalanche/core/ez_avalanche_metrics.sql | 4 ++-- models/projects/base/core/ez_base_metrics.sql | 4 ++-- models/projects/bsc/core/ez_bsc_metrics.sql | 4 ++-- models/projects/celo/core/ez_celo_metrics.sql | 4 ++-- .../projects/ethereum/core/ez_ethereum_metrics.sql | 4 ++-- .../projects/optimism/core/ez_optimism_metrics.sql | 4 ++-- models/projects/polygon/core/ez_polygon_metrics.sql | 4 ++-- models/projects/solana/core/ez_solana_metrics.sql | 4 ++-- models/projects/ton/core/ez_ton_metrics.sql | 4 ++-- models/projects/tron/core/ez_tron_metrics.sql | 4 ++-- 13 files changed, 30 insertions(+), 30 deletions(-) diff --git a/macros/metrics/get_stablecoin_metrics.sql b/macros/metrics/get_stablecoin_metrics.sql index 27c899ed..16b7aec1 100644 --- a/macros/metrics/get_stablecoin_metrics.sql +++ b/macros/metrics/get_stablecoin_metrics.sql @@ -30,8 +30,8 @@ with mau as ( , p2p_stablecoin_daily_txns as p2p_stablecoin_txns , p2p_stablecoin_dau - , stablecoin_token_holder_count - , p2p_stablecoin_token_holder_count + , stablecoin_tokenholder_count + , p2p_stablecoin_tokenholder_count , p2p_stablecoin_supply as p2p_stablecoin_total_supply , stablecoin_supply as stablecoin_total_supply @@ -58,11 +58,11 @@ select , p2p_stablecoin_dau , p2p_stablecoin_mau {% if breakdown == "chain" %} - , stablecoin_token_holder_count - , p2p_stablecoin_token_holder_count + , stablecoin_tokenholder_count + , p2p_stablecoin_tokenholder_count {% elif breakdown == "symbol" %} - , stablecoin_token_holder_count as token_holder_count - , p2p_stablecoin_token_holder_count as p2p_token_holder_count + , stablecoin_tokenholder_count as tokenholder_count + , p2p_stablecoin_tokenholder_count as p2p_tokenholder_count {% endif %} , p2p_stablecoin_total_supply , stablecoin_total_supply diff --git a/macros/stablecoins/stablecoin_breakdown.sql b/macros/stablecoins/stablecoin_breakdown.sql index 8e600ba0..ec15a0ac 100644 --- a/macros/stablecoins/stablecoin_breakdown.sql +++ b/macros/stablecoins/stablecoin_breakdown.sql @@ -30,8 +30,8 @@ select else 0 end as p2p_stablecoin_avg_txn_value {% if granularity == 'day' and breakdowns | length == 1 and (breakdowns[0] == 'symbol' or breakdowns[0] == 'chain') %} - , count(distinct case when stablecoin_supply > 0 then from_address end) as stablecoin_token_holder_count - , count(distinct case when is_wallet::number = 1 and stablecoin_supply > 0 then from_address end) as p2p_stablecoin_token_holder_count + , count(distinct case when stablecoin_supply > 0 then from_address end) as stablecoin_tokenholder_count + , count(distinct case when is_wallet::number = 1 and stablecoin_supply > 0 then from_address end) as p2p_stablecoin_tokenholder_count {% endif %} {% if granularity == 'day' %} , sum(stablecoin_supply) as stablecoin_supply diff --git a/models/projects/arbitrum/core/ez_arbitrum_metrics.sql b/models/projects/arbitrum/core/ez_arbitrum_metrics.sql index e45c7857..3fa2dd48 100644 --- a/models/projects/arbitrum/core/ez_arbitrum_metrics.sql +++ b/models/projects/arbitrum/core/ez_arbitrum_metrics.sql @@ -77,8 +77,8 @@ select p2p_stablecoin_dau, p2p_stablecoin_mau, stablecoin_data.p2p_stablecoin_transfer_volume, - stablecoin_token_holder_count, - p2p_stablecoin_token_holder_count, + stablecoin_tokenholder_count, + p2p_stablecoin_tokenholder_count, nft_trading_volume, p2p_native_transfer_volume, p2p_token_transfer_volume, diff --git a/models/projects/avalanche/core/ez_avalanche_metrics.sql b/models/projects/avalanche/core/ez_avalanche_metrics.sql index d82d5ef5..b51c9cca 100644 --- a/models/projects/avalanche/core/ez_avalanche_metrics.sql +++ b/models/projects/avalanche/core/ez_avalanche_metrics.sql @@ -78,8 +78,8 @@ select p2p_stablecoin_dau, p2p_stablecoin_mau, stablecoin_data.p2p_stablecoin_transfer_volume, - stablecoin_token_holder_count, - p2p_stablecoin_token_holder_count, + stablecoin_tokenholder_count, + p2p_stablecoin_tokenholder_count, total_staked_native, total_staked_usd, issuance, diff --git a/models/projects/base/core/ez_base_metrics.sql b/models/projects/base/core/ez_base_metrics.sql index bf272d15..52898bc0 100644 --- a/models/projects/base/core/ez_base_metrics.sql +++ b/models/projects/base/core/ez_base_metrics.sql @@ -68,8 +68,8 @@ select p2p_stablecoin_dau, p2p_stablecoin_mau, stablecoin_data.p2p_stablecoin_transfer_volume, - stablecoin_token_holder_count, - p2p_stablecoin_token_holder_count, + stablecoin_tokenholder_count, + p2p_stablecoin_tokenholder_count, nft_trading_volume, p2p_native_transfer_volume, p2p_token_transfer_volume, diff --git a/models/projects/bsc/core/ez_bsc_metrics.sql b/models/projects/bsc/core/ez_bsc_metrics.sql index ffb04331..f445bfa8 100644 --- a/models/projects/bsc/core/ez_bsc_metrics.sql +++ b/models/projects/bsc/core/ez_bsc_metrics.sql @@ -57,8 +57,8 @@ select artemis_stablecoin_dau, artemis_stablecoin_mau, artemis_stablecoin_transfer_volume, - stablecoin_token_holder_count, - p2p_stablecoin_token_holder_count, + stablecoin_tokenholder_count, + p2p_stablecoin_tokenholder_count, p2p_stablecoin_txns, p2p_stablecoin_dau, p2p_stablecoin_mau, diff --git a/models/projects/celo/core/ez_celo_metrics.sql b/models/projects/celo/core/ez_celo_metrics.sql index 956ec4ba..6b4ade7f 100644 --- a/models/projects/celo/core/ez_celo_metrics.sql +++ b/models/projects/celo/core/ez_celo_metrics.sql @@ -47,8 +47,8 @@ select artemis_stablecoin_dau, artemis_stablecoin_mau, artemis_stablecoin_transfer_volume, - stablecoin_token_holder_count, - p2p_stablecoin_token_holder_count, + stablecoin_tokenholder_count, + p2p_stablecoin_tokenholder_count, p2p_stablecoin_txns, p2p_stablecoin_dau, p2p_stablecoin_mau, diff --git a/models/projects/ethereum/core/ez_ethereum_metrics.sql b/models/projects/ethereum/core/ez_ethereum_metrics.sql index 1afe6692..b70a4c3c 100644 --- a/models/projects/ethereum/core/ez_ethereum_metrics.sql +++ b/models/projects/ethereum/core/ez_ethereum_metrics.sql @@ -86,8 +86,8 @@ select p2p_stablecoin_dau, p2p_stablecoin_mau, stablecoin_data.p2p_stablecoin_transfer_volume, - stablecoin_token_holder_count, - p2p_stablecoin_token_holder_count, + stablecoin_tokenholder_count, + p2p_stablecoin_tokenholder_count, censored_blocks, semi_censored_blocks, diff --git a/models/projects/optimism/core/ez_optimism_metrics.sql b/models/projects/optimism/core/ez_optimism_metrics.sql index c5498a99..3a0a8634 100644 --- a/models/projects/optimism/core/ez_optimism_metrics.sql +++ b/models/projects/optimism/core/ez_optimism_metrics.sql @@ -86,8 +86,8 @@ select p2p_stablecoin_dau, p2p_stablecoin_mau, stablecoin_data.p2p_stablecoin_transfer_volume, - stablecoin_token_holder_count, - p2p_stablecoin_token_holder_count, + stablecoin_tokenholder_count, + p2p_stablecoin_tokenholder_count, nft_trading_volume, p2p_native_transfer_volume, p2p_token_transfer_volume, diff --git a/models/projects/polygon/core/ez_polygon_metrics.sql b/models/projects/polygon/core/ez_polygon_metrics.sql index a328dca4..4de69eb9 100644 --- a/models/projects/polygon/core/ez_polygon_metrics.sql +++ b/models/projects/polygon/core/ez_polygon_metrics.sql @@ -87,8 +87,8 @@ select p2p_stablecoin_dau, p2p_stablecoin_mau, stablecoin_data.p2p_stablecoin_transfer_volume, - stablecoin_token_holder_count, - p2p_stablecoin_token_holder_count, + stablecoin_tokenholder_count, + p2p_stablecoin_tokenholder_count, nft_trading_volume, p2p_native_transfer_volume, p2p_token_transfer_volume, diff --git a/models/projects/solana/core/ez_solana_metrics.sql b/models/projects/solana/core/ez_solana_metrics.sql index 6df54d57..f1b7c539 100644 --- a/models/projects/solana/core/ez_solana_metrics.sql +++ b/models/projects/solana/core/ez_solana_metrics.sql @@ -176,8 +176,8 @@ select p2p_stablecoin_dau, p2p_stablecoin_mau, stablecoin_data.p2p_stablecoin_transfer_volume, - stablecoin_token_holder_count, - p2p_stablecoin_token_holder_count, + stablecoin_tokenholder_count, + p2p_stablecoin_tokenholder_count, total_staked_native, total_staked_usd, issuance, diff --git a/models/projects/ton/core/ez_ton_metrics.sql b/models/projects/ton/core/ez_ton_metrics.sql index 511bb6fe..c565e047 100644 --- a/models/projects/ton/core/ez_ton_metrics.sql +++ b/models/projects/ton/core/ez_ton_metrics.sql @@ -52,8 +52,8 @@ select p2p_stablecoin_dau, p2p_stablecoin_mau, p2p_stablecoin_transfer_volume, - stablecoin_token_holder_count, - p2p_stablecoin_token_holder_count, + stablecoin_tokenholder_count, + p2p_stablecoin_tokenholder_count, price, market_cap, fdmc, diff --git a/models/projects/tron/core/ez_tron_metrics.sql b/models/projects/tron/core/ez_tron_metrics.sql index 95ca0c70..a794445a 100644 --- a/models/projects/tron/core/ez_tron_metrics.sql +++ b/models/projects/tron/core/ez_tron_metrics.sql @@ -58,8 +58,8 @@ select p2p_stablecoin_dau, p2p_stablecoin_mau, stablecoin_data.p2p_stablecoin_transfer_volume, - stablecoin_token_holder_count, - p2p_stablecoin_token_holder_count, + stablecoin_tokenholder_count, + p2p_stablecoin_tokenholder_count, p2p_native_transfer_volume, p2p_token_transfer_volume, p2p_transfer_volume,