Merge pull request #178 from FlipsideCrypto/alter_tests

rm deprecated tables
This commit is contained in:
Jack Forgash 2023-07-27 14:05:45 -06:00 committed by GitHub
commit 3bbd23691c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 0 additions and 226 deletions

View File

@ -1,27 +0,0 @@
{{ config(
materialized = 'view',
secure = true,
meta={
'database_tags':{
'table': {
'PURPOSE': 'STAKING'
}
}
},
tags = ['core']
) }}
with staking_actions as (
select
*
from {{ ref('silver__staking_actions_s3') }}
)
select
tx_hash,
block_timestamp,
pool_address,
tx_signer,
stake_amount,
action
from staking_actions

View File

@ -1,25 +0,0 @@
version: 2
models:
- name: core__dim_staking_actions
description: |-
Deprecating soon! This table is being deprecated due to inaccuracies. The underlying model has been disabled and will not produce new data past early April 2023. Please use the new fact staking table(s).
columns:
- name: TX_HASH
description: "{{ doc('tx_hash') }}"
- name: BLOCK_TIMESTAMP
description: "{{ doc('block_timestamp') }}"
- name: POOL_ADDRESS
description: "{{ doc('staking_pool_address') }}"
- name: TX_SIGNER
description: "{{ doc('tx_signer') }}"
- name: STAKE_AMOUNT
description: "{{ doc('staking_stake_amount') }}"
- name: ACTION
description: "{{ doc('staking_action') }}"

View File

@ -1,33 +0,0 @@
{{ config(
materialized = 'view',
secure = true,
meta={
'database_tags':{
'table': {
'PURPOSE': 'NFT'
}
}
},
tags = ['core']
) }}
with mints as (
select *
from {{ ref('silver__nft_mints_s3') }}
)
select
action_id,
tx_hash,
block_id,
block_timestamp,
method_name,
tx_signer,
tx_receiver,
project_name,
token_id,
nft_id,
nft_address,
network_fee,
tx_status
from mints

View File

@ -1,40 +0,0 @@
version: 2
models:
- name: core__ez_nft_mints
description: |-
Deprecating soon! Please use the new fact_nft_mints table.
columns:
- name: BLOCK_TIMESTAMP
description: "{{ doc('block_timestamp')}}"
- name: BLOCK_ID
description: "{{ doc('block_id')}}"
- name: ACTION_ID
description: "{{ doc('action_id')}}"
- name: TX_HASH
description: "{{ doc('tx_hash')}}"
- name: TX_SIGNER
description: "{{ doc('tx_signer')}}"
- name: TX_RECEIVER
description: "{{ doc('tx_receiver')}}"
- name: TX_STATUS
description: "{{ doc('tx_status')}}"
- name: PROJECT_NAME
description: "{{ doc('nft_project_name') }}"
- name: NFT_ADDRESS
description: "{{ doc('nft_address') }}"
- name: NFT_ID
description: "{{ doc('nft_id') }}"
- name: TOKEN_ID
description: "{{ doc ('nft_token_id') }}"

View File

@ -1,24 +0,0 @@
{{ config(
materialized = 'view',
secure = true,
tags = ['core']
) }}
WITH transactions AS (
SELECT
*
FROM
{{ ref('silver__usn_supply_s3') }}
)
SELECT
block_timestamp,
block_id,
tx_hash,
status,
event,
from_address,
to_address,
amount
FROM
transactions

View File

@ -1,77 +0,0 @@
version: 2
models:
- name: core__ez_usn_supply
description: |-
Deprecating soon!
columns:
- name: BLOCK_TIMESTAMP
description: "{{ doc('block_timestamp')}}"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_NTZ
- name: BLOCK_ID
description: "{{ doc('block_id')}}"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
- name: STATUS
description: "{{ doc('tx_status')}}"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- STRING
- VARCHAR
- name: TX_HASH
description: "{{ doc('tx_hash')}}"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- STRING
- VARCHAR
- name: FROM_ADDRESS
description: "{{ doc('from_address')}}"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- STRING
- VARCHAR
- name: TO_ADDRESS
description: "{{ doc('to_address')}}"
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- STRING
- VARCHAR
- name: EVENT
description: "{{ doc('event')}}"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- STRING
- VARCHAR
- name: AMOUNT
description: "{{ doc('amount')}}"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT