Removed SV models and configs

This commit is contained in:
amasucci13 2023-08-11 12:49:03 -07:00
parent 23c9949631
commit e7d8855842
46 changed files with 71 additions and 170 deletions

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'ASTROPORT',
'PURPOSE': 'DEX' }} }

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['snowflake', 'classic', 'terra', 'contract_metadata']
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'BALANCES' }} }
) }}

View File

@ -1,10 +1,15 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic']
) }}
SELECT
*
FROM
{{ref('terra_sv__labels')}}
blockchain,
address,
creator,
l1_label as label_type,
l2_label as label_subtype,
project_name as label,
address_name as address_name
FROM {{ref('silver_classic__address_labels')}}
WHERE blockchain = 'terra'

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'NFT' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic']
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic']
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'TERRASWAP',
'PURPOSE': 'DEX' }} }

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic']
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic']
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'AIRDROP' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'ANCHOR' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'ANCHOR' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'ANCHOR' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'ANCHOR' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'ANCHOR' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'ANCHOR',
'PURPOSE': 'STAKING' }} }

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'ANCHOR' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'ANCHOR' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'ANCHOR' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'ANCHOR' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'ANCHOR' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'ANCHOR' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'ASTROPORT',
'PURPOSE': 'DEX, SWAPS' }} }

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['snowflake', 'classic', 'event_actions', 'terra']
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'GOVERNANCE' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'GOVERNANCE' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic']
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'STAKING' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'DEX, SWAPS' }} }
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'TERRASWAP',
'PURPOSE': 'DEX' }} }

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'TERRASWAP',
'PURPOSE': 'DEX' }} }

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic'],
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'TERRASWAP',
'PURPOSE': 'DEX, SWAPS' }} }

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['snowflake', 'classic', 'transfer_events', 'terra']
) }}

View File

@ -1,6 +1,5 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic']
) }}

View File

@ -1,10 +1,14 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic']
) }}
SELECT
*
block_id,
block_timestamp,
blockchain,
chain_id,
proposer_address,
tx_count
FROM
{{ ref('terra_sv__blocks') }}
{{ ref('silver_classic__blocks') }}

View File

@ -1,10 +1,22 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic']
) }}
SELECT
*
block_id,
block_timestamp,
blockchain,
chain_id,
tx_id,
tx_status,
tx_module,
tx_type,
msg_index,
msg_module,
msg_type,
event_index,
event_type,
event_attributes
FROM
{{ ref('terra_sv__msg_events') }}
{{ ref('silver_classic__msg_events') }}

View File

@ -1,10 +1,21 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic']
) }}
SELECT
*
block_id,
block_timestamp,
blockchain,
chain_id,
tx_id,
tx_status,
tx_module,
tx_type,
tx_memo,
msg_index,
msg_module,
msg_type,
msg_value
FROM
{{ ref('terra_sv__msgs') }}
{{ ref('silver_classic__msgs') }}

View File

@ -1,10 +1,24 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic']
) }}
SELECT
*
block_id,
block_timestamp,
blockchain,
chain_id,
tx_id,
tx_from,
tx_to,
tx_type,
tx_status,
tx_status_msg,
tx_code,
tx_module,
codespace,
fee,
gas_used,
gas_wanted
FROM
{{ ref('terra_sv__transactions') }}
{{ ref('silver_classic__transactions') }}

View File

@ -1,10 +1,16 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['classic']
) }}
SELECT
*
block_id,
block_timestamp,
blockchain,
chain_id,
transition_type,
INDEX,
event,
event_attributes
FROM
{{ ref('terra_sv__transitions') }}
{{ ref('silver_classic__transitions') }}

View File

@ -1,14 +0,0 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['snowflake', 'classic', 'blocks', 'terra', 'secure_views'],
) }}
SELECT
block_id,
block_timestamp,
blockchain,
chain_id,
proposer_address
FROM
{{ ref('silver_classic__blocks') }}

View File

@ -1,16 +0,0 @@
{{ config(
materialized='view',
secure = 'true',
tags=['snowflake', 'classic', 'labels', 'terra_labels', 'secure_views', 'address_labels']
)
}}
SELECT
blockchain,
address,
l1_label as label_type,
l2_label as label_subtype,
project_name as label,
address_name as address_name
FROM {{ref('silver_classic__address_labels')}}
WHERE blockchain = 'terra'

View File

@ -1,23 +0,0 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['snowflake', 'classic', 'msg_events', 'terra', 'secure_views']
) }}
SELECT
block_id,
block_timestamp,
blockchain,
chain_id,
tx_id,
tx_status,
tx_module,
tx_type,
msg_index,
msg_module,
msg_type,
event_index,
event_type,
event_attributes
FROM
{{ ref('silver_classic__msg_events') }}

View File

@ -1,22 +0,0 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['snowflake', 'classic', 'msgs', 'terra', 'secure_views']
) }}
SELECT
block_id,
block_timestamp,
blockchain,
chain_id,
tx_id,
tx_status,
tx_module,
tx_type,
tx_memo,
msg_index,
msg_module,
msg_type,
msg_value
FROM
{{ ref('silver_classic__msgs') }}

View File

@ -1,25 +0,0 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['snowflake', 'classic', 'transactions', 'terra', 'secure_views']
) }}
SELECT
block_id,
block_timestamp,
blockchain,
chain_id,
tx_id,
tx_from,
tx_to,
tx_type,
tx_status,
tx_status_msg,
tx_code,
tx_module,
codespace,
fee,
gas_used,
gas_wanted
FROM
{{ ref('silver_classic__transactions') }}

View File

@ -1,17 +0,0 @@
{{ config(
materialized = 'view',
secure = 'true',
tags = ['snowflake', 'classic', 'transitions', 'terra', 'secure_views']
) }}
SELECT
block_id,
block_timestamp,
blockchain,
chain_id,
transition_type,
INDEX,
event,
event_attributes
FROM
{{ ref('silver_classic__transitions') }}