Skip to content

Commit

Permalink
Merge pull request #24 from Artemis-xyz/son/fix-maverick-protocol-fri…
Browse files Browse the repository at this point in the history
…endly-name

Fixed Maverick Friendly Name
  • Loading branch information
Sunny77D authored Apr 17, 2024
2 parents 7c37288 + 32fce19 commit 643e07c
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion macros/transform/fact_protocol_daa_txns_gas_gas_usd.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{% macro fact_protocol_daa_txns_gas_gas_usd(
chain, app, category, dim_protocol_addresses
chain, app, friendly_name, category, dim_protocol_addresses
) %}
select
date,
'{{ chain }}' as chain,
'{{ app }}' as app,
'{{friendly_name}}' as friendly_name,
'{{ category }}' as category,
count(distinct tx_hash) as txns,
count(distinct from_address) as daa,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ with

{{
fact_protocol_daa_txns_gas_gas_usd(
"base", "maverick_protocol", "DeFi", "dim_protocol_addresses"
"base", "maverick_protocol", "Maverick Protocol", "DeFi", "dim_protocol_addresses"
)
}}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
)
}}

select date, app, chain, daa, txns, gas, gas_usd
select date, app, friendly_name, chain, daa, txns, gas, gas_usd
from {{ ref("fact_maverick_daa_txns_gas_gas_usd_base") }}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ with

{{
fact_protocol_daa_txns_gas_gas_usd(
"bsc", "maverick_protocol", "DeFi", "dim_protocol_addresses"
"bsc", "maverick_protocol", "Maverick Protocol", "DeFi", "dim_protocol_addresses"
)
}}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
)
}}

select date, app, chain, daa, txns, gas, gas_usd
select date, app, friendly_name, chain, daa, txns, gas, gas_usd
from {{ ref("fact_maverick_daa_txns_gas_gas_usd_bsc") }}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ with

{{
fact_protocol_daa_txns_gas_gas_usd(
"ethereum", "maverick_protocol", "DeFi", "dim_protocol_addresses"
"ethereum", "maverick_protocol", "Maverick Protocol", "DeFi", "dim_protocol_addresses"
)
}}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
)
}}

select date, app, chain, daa, txns, gas, gas_usd
select date, app, friendly_name, chain, daa, txns, gas, gas_usd
from {{ ref("fact_maverick_daa_txns_gas_gas_usd_ethereum") }}
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ select
date,
'zksync' as chain,
'maverick_protocol' as app,
'Maverick Protocol' as friendly_name,
'DeFi' as category,
count(distinct tx_hash) as txns,
count(distinct from_address) as daa,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
)
}}

select date, app, chain, daa, txns, gas, gas_usd
select date, app, friendly_name, chain, daa, txns, gas, gas_usd
from {{ ref("fact_maverick_daa_txns_gas_gas_usd_zksync") }}

0 comments on commit 643e07c

Please sign in to comment.