diff --git a/models/gold/core/core__ez_xdai_transfers.sql b/models/gold/core/core__ez_xdai_transfers.sql deleted file mode 100644 index 3cd13562..00000000 --- a/models/gold/core/core__ez_xdai_transfers.sql +++ /dev/null @@ -1,26 +0,0 @@ -{{ config( - materialized = 'view', - persist_docs ={ "relation": true, - "columns": true } -) }} - -SELECT - tx_hash, - block_number, - block_timestamp, - identifier, - origin_from_address, - origin_to_address, - origin_function_signature, - from_address AS xdai_from_address, - to_address AS xdai_to_address, - amount, - amount_precise_raw, - amount_precise, - amount_usd, - _call_id, - _inserted_timestamp, - tx_position, - trace_index -FROM - {{ ref('silver__native_transfers') }} diff --git a/models/gold/core/core__ez_xdai_transfers.yml b/models/gold/core/core__ez_xdai_transfers.yml deleted file mode 100644 index e6dcaf30..00000000 --- a/models/gold/core/core__ez_xdai_transfers.yml +++ /dev/null @@ -1,36 +0,0 @@ -version: 2 -models: - - name: core__ez_xdai_transfers - description: 'Deprecating soon! Migrate to `core.ez_native_transfers` by February 14, 2024.' - - columns: - - name: BLOCK_NUMBER - description: '{{ doc("gno_block_number") }}' - - name: BLOCK_TIMESTAMP - description: '{{ doc("gno_block_timestamp") }}' - - name: TX_HASH - description: '{{ doc("gno_transfer_tx_hash") }}' - - name: XDAI_FROM_ADDRESS - description: '{{ doc("gno_transfer_from_address") }}' - - name: XDAI_TO_ADDRESS - description: '{{ doc("gno_transfer_to_address") }}' - - name: AMOUNT - description: '{{ doc("gno_xdai_amount") }}' - - name: TOKEN_PRICE - description: '{{ doc("gno_transfer_token_price") }}' - - name: AMOUNT_USD - description: '{{ doc("gno_xdai_amount_usd") }}' - - name: HAS_PRICE - description: '{{ doc("gno_transfer_has_price") }}' - - name: ORIGIN_FUNCTION_SIGNATURE - description: '{{ doc("gno_origin_sig") }}' - - name: ORIGIN_FROM_ADDRESS - description: '{{ doc("gno_origin_from") }}' - - name: ORIGIN_TO_ADDRESS - description: '{{ doc("gno_origin_to") }}' - - name: IDENTIFIER - description: '{{ doc("gno_traces_identifier") }}' - - name: AMOUNT_PRECISE_RAW - description: '{{ doc("precise_amount_unadjusted") }}' - - name: AMOUNT_PRECISE - description: '{{ doc("precise_amount_adjusted") }}' \ No newline at end of file diff --git a/models/gold/core/core__fact_traces.sql b/models/gold/core/core__fact_traces.sql index 880cb70e..b24bd883 100644 --- a/models/gold/core/core__fact_traces.sql +++ b/models/gold/core/core__fact_traces.sql @@ -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 diff --git a/models/gold/core/core__fact_traces.yml b/models/gold/core/core__fact_traces.yml index 16ce47d5..a551c14e 100644 --- a/models/gold/core/core__fact_traces.yml +++ b/models/gold/core/core__fact_traces.yml @@ -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 @@ -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 diff --git a/models/gold/core/core__fact_transactions.sql b/models/gold/core/core__fact_transactions.sql index fa7d65c8..d99c4936 100644 --- a/models/gold/core/core__fact_transactions.sql +++ b/models/gold/core/core__fact_transactions.sql @@ -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') }} diff --git a/models/gold/core/core__fact_transactions.yml b/models/gold/core/core__fact_transactions.yml index 0bc62c30..3c3e7415 100644 --- a/models/gold/core/core__fact_transactions.yml +++ b/models/gold/core/core__fact_transactions.yml @@ -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 @@ -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 diff --git a/models/gold/tests/test_gold__ez_xdai_transfers_full.sql b/models/gold/tests/test_gold__ez_xdai_transfers_full.sql index 01830af1..c216052b 100644 --- a/models/gold/tests/test_gold__ez_xdai_transfers_full.sql +++ b/models/gold/tests/test_gold__ez_xdai_transfers_full.sql @@ -6,4 +6,4 @@ SELECT * FROM - {{ ref('core__ez_xdai_transfers') }} + {{ ref('core__ez_native_transfers') }} diff --git a/models/gold/tests/test_gold__ez_xdai_transfers_full.yml b/models/gold/tests/test_gold__ez_xdai_transfers_full.yml index c18a5e4a..c5918a95 100644 --- a/models/gold/tests/test_gold__ez_xdai_transfers_full.yml +++ b/models/gold/tests/test_gold__ez_xdai_transfers_full.yml @@ -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: diff --git a/models/gold/tests/test_gold__ez_xdai_transfers_recent.sql b/models/gold/tests/test_gold__ez_xdai_transfers_recent.sql index 36758e5c..64c13ee4 100644 --- a/models/gold/tests/test_gold__ez_xdai_transfers_recent.sql +++ b/models/gold/tests/test_gold__ez_xdai_transfers_recent.sql @@ -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 diff --git a/models/gold/tests/test_gold__ez_xdai_transfers_recent.yml b/models/gold/tests/test_gold__ez_xdai_transfers_recent.yml index b982299a..3a62c728 100644 --- a/models/gold/tests/test_gold__ez_xdai_transfers_recent.yml +++ b/models/gold/tests/test_gold__ez_xdai_transfers_recent.yml @@ -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: