reorg / deprec

This commit is contained in:
Eric Laurello 2023-08-22 11:37:46 -04:00
parent 826d434636
commit 7abc7e33a7
35 changed files with 102 additions and 14 deletions

View File

@ -0,0 +1,4 @@
{% docs deprecation %}
Deprecating soon: This is a notice that we're replacing this table with <table name>. Please migrate queries to the new table by 9/11/23. There will be no column changes or any other changes of any kind.
{% enddocs %}

View File

@ -0,0 +1,9 @@
{{ config(
materialized = "view",
secure = true
) }}
SELECT
*
FROM
{{ ref("defi__ez_staking") }}

View File

@ -0,0 +1,27 @@
version: 2
models:
- name: core__ez_staking
description: "{{ doc('deprecation') }}"
columns:
- name: ACTION
description: "{{ doc('action') }}"
- name: BLOCKCHAIN
description: "{{ doc('blockchain') }}"
- name: BLOCK_ID
description: "{{ doc('block_id') }}"
- name: BLOCK_TIMESTAMP
description: "{{ doc('block_timestamp') }}"
- name: CHAIN_ID
description: "{{ doc('chain_id') }}"
- name: DELEGATOR_ADDRESS
description: "{{ doc('delegator_address') }}"
- name: AMOUNT
description: "{{ doc('amount') }}"
- name: TX_ID
description: "{{ doc('tx_id') }}"
- name: TX_SUCCEEDED
description: "{{ doc('tx_succeeded') }}"
- name: VALIDATOR_ADDRESS
description: "{{ doc('validator_address') }}"
- name: VALIDATOR_SRC_ADDRESS
description: "{{ doc('validator_src_address') }}"

View File

@ -0,0 +1,9 @@
{{ config(
materialized = "view",
secure = true
) }}
SELECT
*
FROM
{{ ref("defi__ez_swaps") }}

View File

@ -0,0 +1,46 @@
version: 2
models:
- name: core__ez_swaps
description: "{{ doc('deprecation') }}"
columns:
- name: BLOCK_ID
description: "{{ doc('block_id') }}"
- name: BLOCK_TIMESTAMP
description: "{{ doc('block_timestamp') }}"
- name: BLOCKCHAIN
description: "{{ doc('blockchain') }}"
- name: CHAIN_ID
description: "{{ doc('chain_id') }}"
- name: TX_ID
description: "{{ doc('tx_id') }}"
- name: TX_SUCCEEDED
description: "{{ doc('tx_succeeded') }}"
- name: from_currency
description: "{{ doc('from_currency') }}"
- name: trader
description: "{{ doc('trader') }}"
- name: from_amount
description: "{{ doc('from_amount') }}"
- name: from_decimal
description: "{{ doc('from_decimal') }}"
- name: to_amount
description: "{{ doc('to_amount') }}"
- name: to_currency
description: "{{ doc('to_currency') }}"
- name: to_decimal
description: "{{ doc('to_decimal') }}"
- name: pool_ids
description: "{{ doc('pool_ids') }}"

View File

@ -1,6 +1,7 @@
version: 2
models:
- name: core__fact_governance_submit_proposal
description: "{{ doc('deprecation') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:

View File

@ -2,8 +2,7 @@ version: 2
models:
- name: core__fact_governance_votes
description: |-
This table contains votes cast on governance proposals.
description: "{{ doc('deprecation') }}"
columns:
- name: tx_id

View File

@ -2,10 +2,7 @@ version: 2
models:
- name: core__fact_lp_actions
description: |-
This table contains actions on liquidity pools (LP) that impact liquidity.
These include the creation of LP tokens for providing liquidity, and the
burning of LP tokens for withdrawing liquidity.
description: "{{ doc('deprecation') }}"
columns:
- name: block_id

View File

@ -2,8 +2,7 @@ version: 2
models:
- name: core__fact_nft_mints
description: |-
This table contains nft mints transactions that happens on various marketplace in the terra2 blockchain
description: "{{ doc('deprecation') }}"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:

View File

@ -2,8 +2,7 @@ version: 2
models:
- name: core__fact_nft_sales
description: |-
This table contains nft sales transactions that happens on various marketplace in the terra2 blockchain
description: "{{ doc('deprecation') }}"
tests:
columns:
- name: block_id

View File

@ -1,6 +1,6 @@
version: 2
models:
- name: core__ez_staking
- name: defi__ez_staking
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:

View File

@ -1,8 +1,6 @@
version: 2
models:
version: 2
models:
- name: core__ez_swaps
- name: defi__ez_swaps
descriptions: |-
This table records all the swaps of Terra2 blockchain