mirror of
https://github.com/FlipsideCrypto/aptos-models.git
synced 2026-02-06 13:41:54 +00:00
* blocks table * transactions table * messages & message attributes * silver models - some tests still failing due to test data * core models / labels / validator & token metadata * updates to blocks & packages + formatting * rename to tendermint * updates * views to tables
49 lines
799 B
SQL
49 lines
799 B
SQL
{{ config(
|
|
materialized = 'table'
|
|
) }}
|
|
|
|
SELECT
|
|
blockchain,
|
|
creator,
|
|
address,
|
|
label_type,
|
|
label_subtype,
|
|
project_name AS label,
|
|
address_name AS address_name,
|
|
NULL AS raw_metadata
|
|
FROM
|
|
{{ source(
|
|
'crosschain',
|
|
'address_labels'
|
|
) }}
|
|
WHERE
|
|
blockchain = 'evmos'
|
|
|
|
UNION
|
|
SELECT
|
|
blockchain,
|
|
creator,
|
|
address,
|
|
label_type,
|
|
label_subtype,
|
|
project_name AS label,
|
|
label AS address_name,
|
|
raw_metadata
|
|
FROM
|
|
{{ ref('core__dim_tokens') }}
|
|
WHERE
|
|
blockchain = 'evmos'
|
|
UNION
|
|
SELECT
|
|
blockchain,
|
|
creator,
|
|
address,
|
|
label_type,
|
|
label_subtype,
|
|
project_name AS label,
|
|
label AS address_name,
|
|
NULL AS raw_metadata
|
|
FROM
|
|
{{ ref('core__fact_validators') }}
|
|
WHERE
|
|
blockchain = 'evmos' |