Skip to content

Commit

Permalink
complete deprecation (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
austinFlipside authored Feb 19, 2024
1 parent 3eb9d52 commit d005327
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 90 deletions.
26 changes: 0 additions & 26 deletions models/gold/core/core__ez_xdai_transfers.sql

This file was deleted.

36 changes: 0 additions & 36 deletions models/gold/core/core__ez_xdai_transfers.yml

This file was deleted.

5 changes: 1 addition & 4 deletions models/gold/core/core__fact_traces.sql
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ SELECT
COALESCE(
modified_timestamp,
'2000-01-01'
) AS modified_timestamp,
xdai_value,
xdai_value_precise_raw,
xdai_value_precise
) AS modified_timestamp
FROM
(
SELECT
Expand Down
8 changes: 1 addition & 7 deletions models/gold/core/core__fact_traces.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
models:
- name: core__fact_traces
description: 'Deprecating soon! The columns `XDAI_VALUE`, `XDAI_VALUE_PRECISE_RAW` and `XDAI_VALUE_PRECISE` will be deprecated on February 14, 2024. Please migrate to `VALUE`, `VALUE_PRECISE_RAW` and `VALUE_PRECISE`. Note: These columns are the ONLY changes being made to this table.'
description: '{{ doc("gno_traces_table_doc") }}'

columns:
- name: BLOCK_NUMBER
Expand All @@ -14,12 +14,6 @@ models:
description: '{{ doc("gno_traces_from") }}'
- name: TO_ADDRESS
description: '{{ doc("gno_traces_to") }}'
- name: XDAI_VALUE
description: '{{ doc("amount_deprecation") }}'
- name: XDAI_VALUE_PRECISE_RAW
description: '{{ doc("amount_deprecation") }}'
- name: XDAI_VALUE_PRECISE
description: '{{ doc("amount_deprecation") }}'
- name: VALUE
description: '{{ doc("gno_traces_value") }}'
- name: VALUE_PRECISE_RAW
Expand Down
5 changes: 1 addition & 4 deletions models/gold/core/core__fact_transactions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ SELECT
COALESCE(
modified_timestamp,
'2000-01-01'
) AS modified_timestamp,
VALUE AS xdai_value,
value_precise_raw AS xdai_value_precise_raw,
value_precise AS xdai_value_precise
) AS modified_timestamp
FROM
{{ ref('silver__transactions') }}
8 changes: 1 addition & 7 deletions models/gold/core/core__fact_transactions.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
models:
- name: core__fact_transactions
description: 'Deprecating soon! The columns `XDAI_VALUE`, `XDAI_VALUE_PRECISE_RAW` and `XDAI_VALUE_PRECISE` will be deprecated on February 14, 2024. Please migrate to `VALUE`, `VALUE_PRECISE_RAW` and `VALUE_PRECISE`. Note: These columns are the ONLY changes being made to this table.'
description: '{{ doc("gno_tx_table_doc") }}'

columns:
- name: BLOCK_NUMBER
Expand All @@ -20,12 +20,6 @@ models:
description: '{{ doc("gno_from_address") }}'
- name: TO_ADDRESS
description: '{{ doc("gno_to_address") }}'
- name: XDAI_VALUE
description: '{{ doc("amount_deprecation") }}'
- name: XDAI_VALUE_PRECISE_RAW
description: '{{ doc("amount_deprecation") }}'
- name: XDAI_VALUE_PRECISE
description: '{{ doc("amount_deprecation") }}'
- name: VALUE
description: '{{ doc("gno_value") }}'
- name: VALUE_PRECISE_RAW
Expand Down
2 changes: 1 addition & 1 deletion models/gold/tests/test_gold__ez_xdai_transfers_full.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
SELECT
*
FROM
{{ ref('core__ez_xdai_transfers') }}
{{ ref('core__ez_native_transfers') }}
4 changes: 2 additions & 2 deletions models/gold/tests/test_gold__ez_xdai_transfers_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ models:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: XDAI_FROM_ADDRESS
- name: FROM_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: XDAI_TO_ADDRESS
- name: TO_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
Expand Down
2 changes: 1 addition & 1 deletion models/gold/tests/test_gold__ez_xdai_transfers_recent.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ WITH last_3_days AS (
SELECT
*
FROM
{{ ref('core__ez_xdai_transfers') }}
{{ ref('core__ez_native_transfers') }}
WHERE
block_number >= (
SELECT
Expand Down
4 changes: 2 additions & 2 deletions models/gold/tests/test_gold__ez_xdai_transfers_recent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ models:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: XDAI_FROM_ADDRESS
- name: FROM_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: XDAI_TO_ADDRESS
- name: TO_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
Expand Down

0 comments on commit d005327

Please sign in to comment.