dbt-autofix deprecation fixes

This commit is contained in:
mattromano 2025-12-08 13:01:33 -08:00
parent d925121f4b
commit 6e8b9300d8
111 changed files with 1824 additions and 1284 deletions

View File

@ -17,8 +17,6 @@ test-paths: ["tests"]
seed-paths: ["data"]
macro-paths: ["macros"]
snapshot-paths: ["snapshots"]
target-path: "target" # directory which will store compiled SQL files
clean-targets: # directories to be removed by `dbt clean`
- "target"
- "dbt_modules"
@ -34,13 +32,16 @@ clean-targets: # directories to be removed by `dbt clean`
models:
fsc_evm:
+enabled: false # Disable all models by default
+disallow-spaces-in-resource-names: true # New default in 1.10
+source-freshness-run-project-hooks: true # New default in 1.10
main_package: # Only enable models that are required to run in the fsc_evm environment
admin:
+enabled: true
github_actions:
+enabled: true
+meta:
disallow-spaces-in-resource-names: true
source-freshness-run-project-hooks: true
vars:
"dbt_date:time_zone": GMT
"dbt_date:time_zone": GMT
flags:
require_generic_test_arguments_property: true

View File

@ -3,21 +3,24 @@ models:
- name: test_gold__ez_balances_erc20_daily_full
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- EZ_BALANCES_ERC20_DAILY_ID
arguments:
combination_of_columns:
- EZ_BALANCES_ERC20_DAILY_ID
columns:
- name: BLOCK_DATE
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 2
arguments:
datepart: day
interval: 2
- name: ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: DECIMALS
tests:
- not_null
@ -28,13 +31,15 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: BALANCE
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: EZ_BALANCES_ERC20_DAILY_ID
tests:
- not_null

View File

@ -3,21 +3,24 @@ models:
- name: test_gold__ez_balances_erc20_daily_recent
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- EZ_BALANCES_ERC20_DAILY_ID
arguments:
combination_of_columns:
- EZ_BALANCES_ERC20_DAILY_ID
columns:
- name: BLOCK_DATE
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 2
arguments:
datepart: day
interval: 2
- name: ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: DECIMALS
tests:
- not_null
@ -28,13 +31,15 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: BALANCE
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: EZ_BALANCES_ERC20_DAILY_ID
tests:
- not_null

View File

@ -3,9 +3,10 @@ models:
- name: silver__balances_erc20_daily
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- BALANCES_ERC20_DAILY_ID
arguments:
combination_of_columns:
- BALANCES_ERC20_DAILY_ID
columns:
- name: BLOCK_DATE
tests:
@ -14,12 +15,14 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: CONTRACT_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: BALANCE_HEX
tests:
- not_null
@ -27,8 +30,9 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 2
arguments:
datepart: day
interval: 2
- name: BALANCES_ERC20_DAILY_ID
tests:
- not_null

View File

@ -3,27 +3,31 @@ models:
- name: test_gold__ez_balances_native_daily_full
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- EZ_BALANCES_NATIVE_DAILY_ID
arguments:
combination_of_columns:
- EZ_BALANCES_NATIVE_DAILY_ID
columns:
- name: BLOCK_DATE
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 2
arguments:
datepart: day
interval: 2
- name: ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: BALANCE
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: EZ_BALANCES_NATIVE_DAILY_ID
tests:
- not_null

View File

@ -3,27 +3,31 @@ models:
- name: test_gold__ez_balances_native_daily_recent
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- EZ_BALANCES_NATIVE_DAILY_ID
arguments:
combination_of_columns:
- EZ_BALANCES_NATIVE_DAILY_ID
columns:
- name: BLOCK_DATE
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 2
arguments:
datepart: day
interval: 2
- name: ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: BALANCE
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: EZ_BALANCES_NATIVE_DAILY_ID
tests:
- not_null

View File

@ -3,9 +3,10 @@ models:
- name: silver__balances_native_daily
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- BALANCES_NATIVE_DAILY_ID
arguments:
combination_of_columns:
- BALANCES_NATIVE_DAILY_ID
columns:
- name: BLOCK_DATE
tests:
@ -14,7 +15,8 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: BALANCE_HEX
tests:
- not_null
@ -22,8 +24,9 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 2
arguments:
datepart: day
interval: 2
- name: BALANCES_NATIVE_DAILY_ID
tests:
- not_null

View File

@ -4,50 +4,58 @@ models:
description: "This is a view used to test all of the gold fact balances erc20 data."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- BLOCK_NUMBER
- TX_POSITION
- CONTRACT_ADDRESS
- ADDRESS
arguments:
combination_of_columns:
- BLOCK_NUMBER
- TX_POSITION
- CONTRACT_ADDRESS
- ADDRESS
- fsc_evm.balances_diffs_erc20:
test_model: test_gold__fact_event_logs_full
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
config:
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
arguments:
test_model: test_gold__fact_event_logs_full
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TX_POSITION
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: EZ_BALANCES_ERC20_ID
tests:
- not_null
@ -55,11 +63,13 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2

View File

@ -4,49 +4,56 @@ models:
description: "This is a view used to test the last three days of fact balances erc20 data."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- BLOCK_NUMBER
- TX_POSITION
- CONTRACT_ADDRESS
- ADDRESS
arguments:
combination_of_columns:
- BLOCK_NUMBER
- TX_POSITION
- CONTRACT_ADDRESS
- ADDRESS
- fsc_evm.balances_diffs_erc20:
test_model: test_gold__fact_event_logs_recent
arguments:
test_model: test_gold__fact_event_logs_recent
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TX_POSITION
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: EZ_BALANCES_ERC20_ID
tests:
- not_null
@ -54,11 +61,13 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2

View File

@ -4,54 +4,63 @@ models:
description: "This is a view used to test all of the gold fact balances native data."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- BLOCK_NUMBER
- TX_POSITION
- ADDRESS
arguments:
combination_of_columns:
- BLOCK_NUMBER
- TX_POSITION
- ADDRESS
- fsc_evm.balances_sequence_gaps:
partition_by:
- BLOCK_NUMBER
column_name: TX_POSITION
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
config:
partition_by:
- BLOCK_NUMBER
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
- fsc_evm.balances_diffs_native:
test_model: test_gold__fact_traces_full
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
config:
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
arguments:
test_model: test_gold__fact_traces_full
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TX_POSITION
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: EZ_BALANCES_NATIVE_ID
tests:
- not_null
@ -59,11 +68,13 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2

View File

@ -4,52 +4,60 @@ models:
description: "This is a view used to test the last three days of fact balances native data."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- BLOCK_NUMBER
- TX_POSITION
- ADDRESS
arguments:
combination_of_columns:
- BLOCK_NUMBER
- TX_POSITION
- ADDRESS
- fsc_evm.balances_sequence_gaps:
partition_by:
- BLOCK_NUMBER
column_name: TX_POSITION
config:
partition_by:
- BLOCK_NUMBER
- fsc_evm.balances_diffs_native:
test_model: test_gold__fact_traces_recent
arguments:
test_model: test_gold__fact_traces_recent
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TX_POSITION
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: EZ_BALANCES_NATIVE_ID
tests:
- not_null
@ -57,11 +65,13 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2

View File

@ -3,8 +3,9 @@ models:
- name: silver__balance_slots
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONTRACT_ADDRESS
arguments:
combination_of_columns:
- CONTRACT_ADDRESS
- fsc_evm.missing_balance_slots
columns:
@ -18,7 +19,8 @@ models:
tests:
- not_null
- accepted_values:
values: [1]
arguments:
values: [1]
- name: BALANCE_SLOTS_ID
tests:
- not_null
@ -26,13 +28,15 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -3,9 +3,10 @@ models:
- name: silver__storage_keys
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- ADDRESS
- SLOT_NUMBER
arguments:
combination_of_columns:
- ADDRESS
- SLOT_NUMBER
columns:
- name: ADDRESS
@ -24,13 +25,15 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -4,17 +4,19 @@ models:
description: "This is a view used to test all of the state tracer data."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- BLOCK_NUMBER
- TX_POSITION
- ADDRESS
arguments:
combination_of_columns:
- BLOCK_NUMBER
- TX_POSITION
- ADDRESS
- fsc_evm.balances_sequence_gaps:
column_name: BLOCK_NUMBER
- fsc_evm.balances_sequence_gaps:
partition_by:
- BLOCK_NUMBER
column_name: TX_POSITION
config:
partition_by:
- BLOCK_NUMBER
columns:
- name: BLOCK_NUMBER
tests:
@ -26,29 +28,35 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -4,17 +4,19 @@ models:
description: "This is a view used to test the last three days of state tracer data."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- BLOCK_NUMBER
- TX_POSITION
- ADDRESS
arguments:
combination_of_columns:
- BLOCK_NUMBER
- TX_POSITION
- ADDRESS
- fsc_evm.balances_sequence_gaps:
column_name: BLOCK_NUMBER
- fsc_evm.balances_sequence_gaps:
partition_by:
- BLOCK_NUMBER
column_name: TX_POSITION
config:
partition_by:
- BLOCK_NUMBER
columns:
- name: BLOCK_NUMBER
tests:
@ -26,29 +28,35 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -4,11 +4,12 @@ models:
description: "This is a view used to test all of the state tracer data."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- BLOCK_NUMBER
- TX_POSITION
- CONTRACT_ADDRESS
- STORAGE_KEY
arguments:
combination_of_columns:
- BLOCK_NUMBER
- TX_POSITION
- CONTRACT_ADDRESS
- STORAGE_KEY
- fsc_evm.balances_sequence_gaps:
column_name: BLOCK_NUMBER
@ -29,29 +30,35 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -4,11 +4,12 @@ models:
description: "This is a view used to test the last three days of state tracer data."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- BLOCK_NUMBER
- TX_POSITION
- CONTRACT_ADDRESS
- STORAGE_KEY
arguments:
combination_of_columns:
- BLOCK_NUMBER
- TX_POSITION
- CONTRACT_ADDRESS
- STORAGE_KEY
- fsc_evm.balances_sequence_gaps:
column_name: BLOCK_NUMBER
@ -29,29 +30,35 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -3,8 +3,9 @@ models:
- name: silver_bridge__everclear_reads
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- INTENT_ID
arguments:
combination_of_columns:
- INTENT_ID
columns:
- name: INTENT_ID
tests:
@ -15,8 +16,10 @@ models:
- name: OUTPUT_ASSET
tests:
- not_null:
where: "status = 'SETTLED_AND_COMPLETED'"
config:
where: "status = 'SETTLED_AND_COMPLETED'"
- name: DESTINATION_CHAIN_ID
tests:
- not_null:
where: "status = 'SETTLED_AND_COMPLETED'"
config:
where: "status = 'SETTLED_AND_COMPLETED'"

View File

@ -3,11 +3,13 @@ models:
- name: silver_bridge__hop_l1canonicaltoken
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONTRACT_ADDRESS
arguments:
combination_of_columns:
- CONTRACT_ADDRESS
columns:
- name: TOKEN_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+

View File

@ -3,11 +3,13 @@ models:
- name: silver_bridge__hop_ammwrapper
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONTRACT_ADDRESS
arguments:
combination_of_columns:
- CONTRACT_ADDRESS
columns:
- name: AMM_WRAPPER_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+

View File

@ -3,11 +3,13 @@ models:
- name: silver_bridge__hop_l2canonicaltoken
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONTRACT_ADDRESS
arguments:
combination_of_columns:
- CONTRACT_ADDRESS
columns:
- name: TOKEN_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+

View File

@ -3,8 +3,9 @@ models:
- name: silver_bridge__layerzero_v2_token_reads
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONTRACT_ADDRESS
arguments:
combination_of_columns:
- CONTRACT_ADDRESS
columns:
- name: TOKEN_ADDRESS
# tests:

View File

@ -3,11 +3,12 @@ models:
- name: silver_bridge__complete_bridge_activity
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- _ID
arguments:
combination_of_columns:
- _ID
- curated_recency_defi:
type: bridge
arguments:
type: bridge
columns:
- name: BLOCK_NUMBER
tests:
@ -19,12 +20,14 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: BRIDGE_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: DESTINATION_CHAIN_RECEIVER
tests:
- not_null
@ -32,12 +35,14 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: RECEIVER
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: AMOUNT_UNADJ
tests:
- not_null
@ -45,7 +50,8 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: PLATFORM
tests:
- not_null
@ -61,5 +67,6 @@ models:
- name: MODIFIED_TIMESTAMP
tests:
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 3
arguments:
datepart: day
interval: 3

View File

@ -3,11 +3,13 @@ models:
- name: silver_bridge__stargate_createpool
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- POOL_ADDRESS
arguments:
combination_of_columns:
- POOL_ADDRESS
columns:
- name: TOKEN_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+

View File

@ -4,8 +4,9 @@ models:
description: '{{ doc("ez_dex_liquidity_pool_actions_table_doc") }}'
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- ez_dex_liquidity_pool_actions_id
arguments:
combination_of_columns:
- ez_dex_liquidity_pool_actions_id
columns:
- name: BLOCK_NUMBER
@ -57,8 +58,8 @@ models:
- name: PROTOCOL_VERSION
description: '{{ doc("ez_dex_liquidity_pool_actions_protocol_version") }}'
- name: EZ_DEX_LIQUIDITY_POOL_ACTIONS_ID
description: '{{ doc("general_pk") }}'
description: '{{ doc("general_pk") }}'
- name: INSERTED_TIMESTAMP
description: '{{ doc("general_inserted_timestamp") }}'
description: '{{ doc("general_inserted_timestamp") }}'
- name: MODIFIED_TIMESTAMP
description: '{{ doc("general_modified_timestamp") }}'

View File

@ -1,12 +1,11 @@
version: 2
models:
- name: silver_dex__balancer_pools
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- POOL_ADDRESS
arguments:
combination_of_columns:
- POOL_ADDRESS

View File

@ -1,19 +1,22 @@
version: 2
models:
- name: silver_dex__curve_pools
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- POOL_ID
arguments:
combination_of_columns:
- POOL_ID
columns:
- name: POOL_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TOKEN_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+

View File

@ -3,10 +3,12 @@ models:
- name: silver_dex__complete_dex_liquidity_pool_actions
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- _ID
arguments:
combination_of_columns:
- _ID
- curated_recency_defi:
type: dex_lp_actions
arguments:
type: dex_lp_actions
columns:
- name: BLOCK_NUMBER
tests:
@ -36,7 +38,8 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: AMOUNTS_UNADJ
tests:
- not_null
@ -74,5 +77,6 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 3
arguments:
datepart: day
interval: 3

View File

@ -3,8 +3,9 @@ models:
- name: silver_dex__complete_dex_liquidity_pools
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- _ID
arguments:
combination_of_columns:
- _ID
columns:
- name: BLOCK_NUMBER
@ -20,12 +21,14 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: POOL_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: PLATFORM
tests:
- not_null
@ -42,5 +45,6 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 30
arguments:
datepart: day
interval: 30

View File

@ -3,11 +3,12 @@ models:
- name: silver_dex__complete_dex_swaps
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- _LOG_ID
arguments:
combination_of_columns:
- _LOG_ID
- curated_recency_defi:
type: dex_swaps
arguments:
type: dex_swaps
columns:
- name: BLOCK_NUMBER
tests:
@ -19,12 +20,14 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: CONTRACT_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: AMOUNT_IN
tests:
- not_null
@ -34,20 +37,24 @@ models:
- name: TOKEN_IN
tests:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TOKEN_OUT
tests:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: SENDER
tests:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TX_TO
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: PLATFORM
tests:
- not_null
@ -64,5 +71,6 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 3
arguments:
datepart: day
interval: 3

View File

@ -3,12 +3,14 @@ models:
- name: silver_lending__complete_lending_borrows
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- _log_id
arguments:
combination_of_columns:
- _log_id
- curated_recency_defi:
threshold_days: 60
percent_delta_threshold: 7.5
type: lending
arguments:
threshold_days: 60
percent_delta_threshold: 7.5
type: lending
columns:
- name: TX_HASH
tests:
@ -20,14 +22,16 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 3
config:
severity: warn
arguments:
datepart: day
interval: 3
- name: EVENT_INDEX
tests:
- not_null:
where: PLATFORM <> 'morpho-v1'
config:
where: PLATFORM <> 'morpho-v1'
- name: ORIGIN_FROM_ADDRESS
tests:
- not_null
@ -48,27 +52,30 @@ models:
tests:
- not_null
- name: TOKEN_ADDRESS
tests:
tests:
- not_null
- name: TOKEN_SYMBOL
tests:
tests:
- not_null:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
config:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
- name: AMOUNT_UNADJ
tests:
- not_null
- not_null
- name: AMOUNT
tests:
- not_null:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
config:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
- name: AMOUNT_USD
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- decimal
- float
- dbt_expectations.expect_column_values_to_be_in_type_list:
arguments:
column_type_list:
- decimal
- float
- name: PLATFORM
tests:
tests:
- not_null
- name: PROTOCOL
tests:
@ -87,5 +94,4 @@ models:
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- name: _INVOCATION_ID
- name: _INVOCATION_ID

View File

@ -3,12 +3,14 @@ models:
- name: silver_lending__complete_lending_deposits
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- _LOG_ID
arguments:
combination_of_columns:
- _LOG_ID
- curated_recency_defi:
threshold_days: 60
percent_delta_threshold: 7.5
type: lending
arguments:
threshold_days: 60
percent_delta_threshold: 7.5
type: lending
columns:
- name: TX_HASH
tests:
@ -20,14 +22,16 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 3
config:
severity: warn
arguments:
datepart: day
interval: 3
- name: EVENT_INDEX
tests:
- not_null:
where: PLATFORM <> 'morpho-v1'
config:
where: PLATFORM <> 'morpho-v1'
- name: ORIGIN_FROM_ADDRESS
tests:
- not_null
@ -48,27 +52,30 @@ models:
tests:
- not_null
- name: TOKEN_ADDRESS
tests:
tests:
- not_null
- name: TOKEN_SYMBOL
tests:
tests:
- not_null:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
config:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
- name: AMOUNT_UNADJ
tests:
- not_null
- not_null
- name: AMOUNT
tests:
- not_null:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
config:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
- name: AMOUNT_USD
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- decimal
- float
- dbt_expectations.expect_column_values_to_be_in_type_list:
arguments:
column_type_list:
- decimal
- float
- name: PLATFORM
tests:
tests:
- not_null
- name: PROTOCOL
tests:
@ -87,5 +94,4 @@ models:
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- name: _INVOCATION_ID
- name: _INVOCATION_ID

View File

@ -3,12 +3,14 @@ models:
- name: silver_lending__complete_lending_flashloans
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- _LOG_ID
arguments:
combination_of_columns:
- _LOG_ID
- curated_recency_defi:
threshold_days: 60
percent_delta_threshold: 7.5
type: lending
arguments:
threshold_days: 60
percent_delta_threshold: 7.5
type: lending
columns:
- name: TX_HASH
tests:
@ -20,14 +22,16 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 30
config:
severity: warn
arguments:
datepart: day
interval: 30
- name: EVENT_INDEX
tests:
- not_null:
where: PLATFORM <> 'morpho-v1'
config:
where: PLATFORM <> 'morpho-v1'
- name: ORIGIN_FROM_ADDRESS
tests:
- not_null
@ -43,14 +47,15 @@ models:
- not_null
- name: PROTOCOL_MARKET
tests:
- not_null
- not_null
- name: INITIATOR
tests:
- not_null
- name: TARGET
tests:
- not_null:
where: PLATFORM <> 'morpho-v1'
config:
where: PLATFORM <> 'morpho-v1'
- name: TOKEN_ADDRESS
tests:
- not_null
@ -58,23 +63,25 @@ models:
tests:
- not_null
- name: FLASHLOAN_AMOUNT_UNADJ
tests:
tests:
- not_null
- name: FLASHLOAN_AMOUNT
tests:
tests:
- not_null
- name: FLASHLOAN_AMOUNT_USD
- name: PREMIUM_AMOUNT_UNADJ
tests:
tests:
- not_null:
where: PLATFORM <> 'morpho-v1'
config:
where: PLATFORM <> 'morpho-v1'
- name: PREMIUM_AMOUNT
tests:
tests:
- not_null:
where: PLATFORM <> 'morpho-v1'
config:
where: PLATFORM <> 'morpho-v1'
- name: PREMIUM_AMOUNT_USD
- name: PLATFORM
tests:
tests:
- not_null
- name: PROTOCOL
tests:
@ -93,4 +100,4 @@ models:
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- name: _INVOCATION_ID
- name: _INVOCATION_ID

View File

@ -3,12 +3,14 @@ models:
- name: silver_lending__complete_lending_liquidations
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- _LOG_ID
arguments:
combination_of_columns:
- _LOG_ID
- curated_recency_defi:
threshold_days: 90
percent_delta_threshold: 7.5
type: lending
arguments:
threshold_days: 90
percent_delta_threshold: 7.5
type: lending
columns:
- name: TX_HASH
tests:
@ -20,14 +22,16 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 30
config:
severity: warn
arguments:
datepart: day
interval: 30
- name: EVENT_INDEX
tests:
- not_null:
where: PLATFORM <> 'morpho-v1'
config:
where: PLATFORM <> 'morpho-v1'
- name: ORIGIN_FROM_ADDRESS
tests:
- not_null
@ -48,35 +52,38 @@ models:
tests:
- not_null
- name: PROTOCOL_MARKET
tests:
tests:
- not_null
- name: COLLATERAL_TOKEN
tests:
tests:
- not_null
- name: COLLATERAL_TOKEN_SYMBOL
tests:
tests:
- not_null:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
config:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
- name: LIQUIDATED_AMOUNT_UNADJ
tests:
- not_null
- not_null
- name: LIQUIDATED_AMOUNT
tests:
- not_null:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
config:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
- name: LIQUIDATED_AMOUNT_USD
- name: DEBT_TOKEN
tests:
- not_null
- name: DEBT_TOKEN_SYMBOL
tests:
- not_null:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
- not_null:
config:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
- name: REPAID_AMOUNT_UNADJ
- name: REPAID_AMOUNT
- name: REPAID_AMOUNT_USD
- name: PLATFORM
tests:
tests:
- not_null
- name: PROTOCOL
tests:
@ -95,5 +102,4 @@ models:
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- name: _INVOCATION_ID
- name: _INVOCATION_ID

View File

@ -3,12 +3,14 @@ models:
- name: silver_lending__complete_lending_repayments
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- _LOG_ID
arguments:
combination_of_columns:
- _LOG_ID
- curated_recency_defi:
threshold_days: 60
percent_delta_threshold: 7.5
type: lending
arguments:
threshold_days: 60
percent_delta_threshold: 7.5
type: lending
columns:
- name: TX_HASH
tests:
@ -20,14 +22,16 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 3
config:
severity: warn
arguments:
datepart: day
interval: 3
- name: EVENT_INDEX
tests:
- not_null:
where: PLATFORM <> 'morpho-v1'
config:
where: PLATFORM <> 'morpho-v1'
- name: ORIGIN_FROM_ADDRESS
tests:
- not_null
@ -47,32 +51,36 @@ models:
- name: PAYER
tests:
- not_null:
where: PROTOCOL <> 'silo'
config:
where: PROTOCOL <> 'silo'
- name: BORROWER
tests:
- not_null
- name: TOKEN_ADDRESS
tests:
tests:
- not_null
- name: TOKEN_SYMBOL
tests:
tests:
- not_null:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
config:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
- name: AMOUNT_UNADJ
tests:
- not_null
- not_null
- name: AMOUNT
tests:
- not_null:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
config:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
- name: AMOUNT_USD
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- decimal
- float
- dbt_expectations.expect_column_values_to_be_in_type_list:
arguments:
column_type_list:
- decimal
- float
- name: PLATFORM
tests:
tests:
- not_null
- name: PROTOCOL
tests:

View File

@ -3,12 +3,14 @@ models:
- name: silver_lending__complete_lending_withdraws
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- _LOG_ID
arguments:
combination_of_columns:
- _LOG_ID
- curated_recency_defi:
threshold_days: 60
percent_delta_threshold: 7.5
type: lending
arguments:
threshold_days: 60
percent_delta_threshold: 7.5
type: lending
columns:
- name: TX_HASH
tests:
@ -20,14 +22,16 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 3
config:
severity: warn
arguments:
datepart: day
interval: 3
- name: EVENT_INDEX
tests:
- not_null:
where: PLATFORM <> 'morpho-v1'
config:
where: PLATFORM <> 'morpho-v1'
- name: ORIGIN_FROM_ADDRESS
tests:
- not_null
@ -48,27 +52,30 @@ models:
tests:
- not_null
- name: TOKEN_ADDRESS
tests:
tests:
- not_null
- name: TOKEN_SYMBOL
tests:
tests:
- not_null:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
config:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
- name: AMOUNT_UNADJ
tests:
- not_null
- not_null
- name: AMOUNT
tests:
- not_null:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
config:
where: _inserted_timestamp < SYSDATE() - INTERVAL '7 days'
- name: AMOUNT_USD
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- decimal
- float
- dbt_expectations.expect_column_values_to_be_in_type_list:
arguments:
column_type_list:
- decimal
- float
- name: PLATFORM
tests:
tests:
- not_null
- name: PROTOCOL
tests:
@ -88,5 +95,3 @@ models:
tests:
- not_null
- name: _INVOCATION_ID

View File

@ -4,8 +4,9 @@ models:
description: '{{ doc("dim_stablecoins_table_doc") }}'
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- dim_stablecoins_id
arguments:
combination_of_columns:
- dim_stablecoins_id
columns:
- name: CONTRACT_ADDRESS

View File

@ -3,5 +3,6 @@ models:
- name: silver__stablecoin_reads
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- stablecoin_reads_id
arguments:
combination_of_columns:
- stablecoin_reads_id

View File

@ -3,5 +3,6 @@ models:
- name: silver_stablecoins__address_blacklist
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- stablecoins_address_blacklist_id
arguments:
combination_of_columns:
- stablecoins_address_blacklist_id

View File

@ -3,5 +3,6 @@ models:
- name: silver_stablecoins__mint_burn
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- stablecoins_mint_burn_id
arguments:
combination_of_columns:
- stablecoins_mint_burn_id

View File

@ -3,5 +3,6 @@ models:
- name: silver_stablecoins__supply_by_address
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- stablecoins_supply_by_address_id
arguments:
combination_of_columns:
- stablecoins_supply_by_address_id

View File

@ -3,8 +3,9 @@ models:
- name: silver_stablecoins__supply_by_address_imputed
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- stablecoins_supply_by_address_imputed_id
arguments:
combination_of_columns:
- stablecoins_supply_by_address_imputed_id
- stablecoins_is_imputed_false
- stablecoins_date_gaps
@ -13,18 +14,21 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 2
arguments:
datepart: day
interval: 2
- name: ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: CONTRACT_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: BALANCE
tests:
- not_null
@ -35,5 +39,6 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 1
arguments:
datepart: day
interval: 1

View File

@ -3,16 +3,18 @@ models:
- name: silver_stablecoins__supply_complete
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- stablecoins_supply_complete_id
arguments:
combination_of_columns:
- stablecoins_supply_complete_id
columns:
- name: BLOCK_DATE
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 2
arguments:
datepart: day
interval: 2
- name: CONTRACT_ADDRESS
tests:
- not_null
@ -65,8 +67,9 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 1
arguments:
datepart: day
interval: 1
- name: STABLECOINS_SUPPLY_COMPLETE_ID
tests:
- not_null

View File

@ -3,5 +3,6 @@ models:
- name: silver_stablecoins__supply_contracts
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- stablecoins_supply_contracts_id
arguments:
combination_of_columns:
- stablecoins_supply_contracts_id

View File

@ -3,8 +3,9 @@ models:
- name: silver_stablecoins__supply_contracts_list
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- stablecoins_supply_contracts_list_id
arguments:
combination_of_columns:
- stablecoins_supply_contracts_list_id
columns:
- name: ADDRESS

View File

@ -3,5 +3,6 @@ models:
- name: silver_stablecoins__transfers
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- stablecoins_transfers_id
arguments:
combination_of_columns:
- stablecoins_transfers_id

View File

@ -3,82 +3,94 @@ models:
- name: silver_stats__core_metrics_hourly
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- BLOCK_TIMESTAMP_HOUR
arguments:
combination_of_columns:
- BLOCK_TIMESTAMP_HOUR
columns:
- name: BLOCK_TIMESTAMP_HOUR
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: BLOCK_NUMBER_MIN
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_NUMBER_MAX
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_COUNT
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: TRANSACTION_COUNT
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: TRANSACTION_COUNT_SUCCESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: TRANSACTION_COUNT_FAILED
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: UNIQUE_FROM_COUNT
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: UNIQUE_TO_COUNT
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: TOTAL_FEES
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- DECIMAL
- FLOAT
- NUMBER
arguments:
column_type_list:
- DECIMAL
- FLOAT
- NUMBER
- name: _INSERTED_TIMESTAMP
tests:
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 1
arguments:
datepart: day
interval: 1

View File

@ -3,5 +3,6 @@ models:
- name: test_gold__dim_contract_abis_full
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONTRACT_ADDRESS
arguments:
combination_of_columns:
- CONTRACT_ADDRESS

View File

@ -3,5 +3,6 @@ models:
- name: test_gold__dim_contract_abis_recent
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONTRACT_ADDRESS
arguments:
combination_of_columns:
- CONTRACT_ADDRESS

View File

@ -3,5 +3,6 @@ models:
- name: test_silver__abis_full
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONTRACT_ADDRESS
arguments:
combination_of_columns:
- CONTRACT_ADDRESS

View File

@ -3,5 +3,6 @@ models:
- name: test_silver__abis_recent
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONTRACT_ADDRESS
arguments:
combination_of_columns:
- CONTRACT_ADDRESS

View File

@ -3,6 +3,7 @@ models:
- name: test_silver__bytecode_abis_full
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONTRACT_ADDRESS
- ABI_HASH
arguments:
combination_of_columns:
- CONTRACT_ADDRESS
- ABI_HASH

View File

@ -3,6 +3,7 @@ models:
- name: test_silver__bytecode_abis_recent
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONTRACT_ADDRESS
- ABI_HASH
arguments:
combination_of_columns:
- CONTRACT_ADDRESS
- ABI_HASH

View File

@ -3,7 +3,8 @@ models:
- name: test_silver__complete_event_abis_full
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- PARENT_CONTRACT_ADDRESS
- EVENT_SIGNATURE
- START_BLOCK
arguments:
combination_of_columns:
- PARENT_CONTRACT_ADDRESS
- EVENT_SIGNATURE
- START_BLOCK

View File

@ -3,7 +3,8 @@ models:
- name: test_silver__complete_event_abis_recent
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- PARENT_CONTRACT_ADDRESS
- EVENT_SIGNATURE
- START_BLOCK
arguments:
combination_of_columns:
- PARENT_CONTRACT_ADDRESS
- EVENT_SIGNATURE
- START_BLOCK

View File

@ -3,5 +3,6 @@ models:
- name: test_silver__user_verified_abis_full
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- ID
arguments:
combination_of_columns:
- ID

View File

@ -3,5 +3,6 @@ models:
- name: test_silver__user_verified_abis_recent
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- ID
arguments:
combination_of_columns:
- ID

View File

@ -3,5 +3,6 @@ models:
- name: test_silver__verified_abis_full
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONTRACT_ADDRESS
arguments:
combination_of_columns:
- CONTRACT_ADDRESS

View File

@ -3,5 +3,6 @@ models:
- name: test_silver__verified_abis_recent
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONTRACT_ADDRESS
arguments:
combination_of_columns:
- CONTRACT_ADDRESS

View File

@ -3,13 +3,15 @@ models:
- name: test_gold__ez_decoded_event_logs_full
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- EZ_DECODED_EVENT_LOGS_ID
arguments:
combination_of_columns:
- EZ_DECODED_EVENT_LOGS_ID
- decoded_logs_exist:
fact_logs_model: ref('test_gold__fact_event_logs_full')
arguments:
fact_logs_model: ref('test_gold__fact_event_logs_full')
- find_missing_decoded_logs:
fact_logs_model: ref('test_gold__fact_event_logs_full')
arguments:
fact_logs_model: ref('test_gold__fact_event_logs_full')
columns:
- name: BLOCK_NUMBER
tests:
@ -18,12 +20,14 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: TX_HASH
tests:
- not_null
@ -78,19 +82,23 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -3,13 +3,15 @@ models:
- name: test_gold__ez_decoded_event_logs_recent
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- EZ_DECODED_EVENT_LOGS_ID
arguments:
combination_of_columns:
- EZ_DECODED_EVENT_LOGS_ID
- decoded_logs_exist:
fact_logs_model: ref('test_gold__fact_event_logs_recent')
arguments:
fact_logs_model: ref('test_gold__fact_event_logs_recent')
- find_missing_decoded_logs:
fact_logs_model: ref('test_gold__fact_event_logs_recent')
arguments:
fact_logs_model: ref('test_gold__fact_event_logs_recent')
columns:
- name: BLOCK_NUMBER
tests:
@ -18,12 +20,14 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: TX_HASH
tests:
- not_null
@ -78,19 +82,23 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -3,57 +3,67 @@ models:
- name: test_silver__decoded_logs_full
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- DECODED_LOGS_ID
arguments:
combination_of_columns:
- DECODED_LOGS_ID
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: EVENT_INDEX
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: CONTRACT_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: EVENT_NAME
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- STRING
- VARCHAR
arguments:
column_type_list:
- STRING
- VARCHAR
- name: INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -3,57 +3,67 @@ models:
- name: test_silver__decoded_logs_recent
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- DECODED_LOGS_ID
arguments:
combination_of_columns:
- DECODED_LOGS_ID
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: EVENT_INDEX
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: CONTRACT_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: EVENT_NAME
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- STRING
- VARCHAR
arguments:
column_type_list:
- STRING
- VARCHAR
- name: INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -3,8 +3,9 @@ models:
- name: admin__dim_variables
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- DIM_VARIABLES_ID
arguments:
combination_of_columns:
- DIM_VARIABLES_ID
columns:
- name: KEY
tests:

View File

@ -3,8 +3,9 @@ models:
- name: admin__ez_variables
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- EZ_VARIABLES_ID
arguments:
combination_of_columns:
- EZ_VARIABLES_ID
columns:
- name: PROJECT
tests:

View File

@ -3,8 +3,9 @@ models:
- name: admin__fact_variables
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- FACT_VARIABLES_ID
arguments:
combination_of_columns:
- FACT_VARIABLES_ID
columns:
- name: PROJECT
tests:

View File

@ -5,8 +5,9 @@ models:
This model generates a sequence of numbers for a given range.
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- _ID
arguments:
combination_of_columns:
- _ID
columns:
- name: _ID
tests:

View File

@ -4,59 +4,68 @@ models:
description: "This is a view used to test all of the gold fact blocks model."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- BLOCK_NUMBER
arguments:
combination_of_columns:
- BLOCK_NUMBER
- fsc_evm.sequence_gaps:
column_name: BLOCK_NUMBER
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
config:
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: NETWORK
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: ^[a-zA-Z0-9_]+$
arguments:
regex: ^[a-zA-Z0-9_]+$
- name: TX_COUNT
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: SIZE
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: MINER
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: EXTRA_DATA
tests:
- not_null
@ -64,26 +73,30 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: GAS_USED
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: GAS_LIMIT
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: DIFFICULTY
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: SHA3_UNCLES
tests:
- not_null
@ -93,29 +106,34 @@ models:
- name: NONCE
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: RECEIPTS_ROOT
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: STATE_ROOT
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TRANSACTIONS_ROOT
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: LOGS_BLOOM
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: FACT_BLOCKS_ID
tests:
- not_null
@ -124,19 +142,23 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -4,8 +4,9 @@ models:
description: "This is a view used to test the last three days of fact blocks."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- BLOCK_NUMBER
arguments:
combination_of_columns:
- BLOCK_NUMBER
- fsc_evm.sequence_gaps:
column_name: BLOCK_NUMBER
config:
@ -17,48 +18,56 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: NETWORK
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: ^[a-zA-Z0-9_]+$
arguments:
regex: ^[a-zA-Z0-9_]+$
- name: TX_COUNT
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: SIZE
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: MINER
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: EXTRA_DATA
tests:
- not_null
@ -66,26 +75,30 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: GAS_USED
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: GAS_LIMIT
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: DIFFICULTY
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: SHA3_UNCLES
tests:
- not_null
@ -95,29 +108,34 @@ models:
- name: NONCE
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: RECEIPTS_ROOT
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: STATE_ROOT
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TRANSACTIONS_ROOT
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: LOGS_BLOOM
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: FACT_BLOCKS_ID
tests:
- not_null
@ -126,19 +144,23 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -4,39 +4,45 @@ models:
description: "This is a view used to test all of the gold fact event logs model."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- TX_HASH
- EVENT_INDEX
arguments:
combination_of_columns:
- TX_HASH
- EVENT_INDEX
- fsc_evm.sequence_gaps:
partition_by:
- BLOCK_NUMBER
column_name: EVENT_INDEX
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
config:
partition_by:
- BLOCK_NUMBER
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
- events_match_txs:
transactions_model: ref('test_gold__fact_transactions_full')
arguments:
transactions_model: ref('test_gold__fact_transactions_full')
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
arguments:
column_type_list:
- NUMBER
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- fsc_utils.tx_block_count:
config:
severity: error
@ -45,21 +51,24 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: EVENT_INDEX
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: CONTRACT_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TOPICS
tests:
- not_null
@ -73,11 +82,13 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: ORIGIN_TO_ADDRESS
tests:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- dbt_expectations.expect_column_values_to_match_regex:
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: ORIGIN_FUNCTION_SIGNATURE
tests:
- not_null
@ -85,17 +96,19 @@ models:
tests:
- not_null
- name: FACT_EVENT_LOGS_ID
tests:
tests:
- not_null
- name: INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2

View File

@ -4,38 +4,44 @@ models:
description: "This is a view used to test the last three days of fact event logs."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- TX_HASH
- EVENT_INDEX
arguments:
combination_of_columns:
- TX_HASH
- EVENT_INDEX
- fsc_evm.sequence_gaps:
partition_by:
- BLOCK_NUMBER
column_name: EVENT_INDEX
config:
partition_by:
- BLOCK_NUMBER
- events_match_txs:
transactions_model: ref('test_gold__fact_transactions_recent')
arguments:
transactions_model: ref('test_gold__fact_transactions_recent')
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
arguments:
column_type_list:
- NUMBER
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- fsc_utils.tx_block_count:
config:
severity: error
@ -44,21 +50,24 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: EVENT_INDEX
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: CONTRACT_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TOPICS
tests:
- not_null
@ -72,11 +81,13 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: ORIGIN_TO_ADDRESS
tests:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- dbt_expectations.expect_column_values_to_match_regex:
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: ORIGIN_FUNCTION_SIGNATURE
tests:
- not_null
@ -84,17 +95,19 @@ models:
tests:
- not_null
- name: FACT_EVENT_LOGS_ID
tests:
tests:
- not_null
- name: INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2

View File

@ -4,32 +4,37 @@ models:
description: "This is a view used to test all of the `ez_native_transfers` data."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- EZ_NATIVE_TRANSFERS_ID
arguments:
combination_of_columns:
- EZ_NATIVE_TRANSFERS_ID
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 3
arguments:
datepart: hour
interval: 3
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: FROM_ADDRESS
tests:
- not_null
@ -37,6 +42,7 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT

View File

@ -4,32 +4,37 @@ models:
description: "This is a view used to test the last three days of `ez_native_transfers` data."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- EZ_NATIVE_TRANSFERS_ID
arguments:
combination_of_columns:
- EZ_NATIVE_TRANSFERS_ID
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 3
arguments:
datepart: hour
interval: 3
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: FROM_ADDRESS
tests:
- not_null
@ -37,6 +42,7 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT

View File

@ -4,57 +4,66 @@ models:
description: "This is a view used to test all of the `ez_token_transfers` data."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- EZ_TOKEN_TRANSFERS_ID
arguments:
combination_of_columns:
- EZ_TOKEN_TRANSFERS_ID
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 3
arguments:
datepart: hour
interval: 3
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_NTZ
- TIMESTAMP_LTZ
arguments:
column_type_list:
- TIMESTAMP_NTZ
- TIMESTAMP_LTZ
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: CONTRACT_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: FROM_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TO_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: RAW_AMOUNT
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: EZ_TOKEN_TRANSFERS_ID
tests:
- not_null
- not_null
- name: ORIGIN_FUNCTION_SIGNATURE
tests:
- not_null
@ -62,8 +71,10 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: ORIGIN_TO_ADDRESS
tests:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+

View File

@ -4,57 +4,66 @@ models:
description: "This is a view used to test the last three days of `ez_token_transfers` data."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- EZ_TOKEN_TRANSFERS_ID
arguments:
combination_of_columns:
- EZ_TOKEN_TRANSFERS_ID
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 3
arguments:
datepart: hour
interval: 3
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_NTZ
- TIMESTAMP_LTZ
arguments:
column_type_list:
- TIMESTAMP_NTZ
- TIMESTAMP_LTZ
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: CONTRACT_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: FROM_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TO_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: RAW_AMOUNT
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: EZ_TOKEN_TRANSFERS_ID
tests:
- not_null
- not_null
- name: ORIGIN_FUNCTION_SIGNATURE
tests:
- not_null
@ -62,8 +71,10 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: ORIGIN_TO_ADDRESS
tests:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+

View File

@ -4,70 +4,84 @@ models:
description: "This is a view used to test all of the gold fact traces model."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- TX_HASH
- TRACE_INDEX
arguments:
combination_of_columns:
- TX_HASH
- TRACE_INDEX
- fsc_evm.sequence_gaps:
partition_by:
- TX_HASH
column_name: TRACE_INDEX
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1 AND TX_HASH IS NOT NULL
config:
partition_by:
- TX_HASH
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1 AND TX_HASH IS NOT NULL
- txs_have_traces:
transactions_model: ref('test_gold__fact_transactions_full')
arguments:
transactions_model: ref('test_gold__fact_transactions_full')
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TX_POSITION
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: TRACE_INDEX
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: FROM_ADDRESS
tests:
- not_null:
where: TYPE <> 'SELFDESTRUCT'
config:
where: TYPE <> 'SELFDESTRUCT'
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
where: FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN'
config:
where: FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN'
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TO_ADDRESS
tests:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
where: TO_ADDRESS IS NOT NULL
config:
where: TO_ADDRESS IS NOT NULL
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: INPUT
tests:
- not_null:
where: TYPE <> 'SELFDESTRUCT'
config:
where: TYPE <> 'SELFDESTRUCT'
- name: TYPE
tests:
- not_null
@ -99,7 +113,7 @@ models:
- not_null
- name: TRACE_SUCCEEDED
tests:
- not_null
- not_null
- name: TX_SUCCEEDED
tests:
- not_null
@ -110,11 +124,13 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: MODIFIED_TIMESTAMP
tests:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2

View File

@ -4,70 +4,84 @@ models:
description: "This is a view used to test the last three days of fact traces."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- TX_HASH
- TRACE_INDEX
arguments:
combination_of_columns:
- TX_HASH
- TRACE_INDEX
- fsc_evm.sequence_gaps:
partition_by:
- TX_HASH
column_name: TRACE_INDEX
where: TX_HASH IS NOT NULL
config:
partition_by:
- TX_HASH
where: TX_HASH IS NOT NULL
- txs_have_traces:
transactions_model: ref('test_gold__fact_transactions_recent')
arguments:
transactions_model: ref('test_gold__fact_transactions_recent')
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TX_POSITION
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: TRACE_INDEX
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: FROM_ADDRESS
tests:
- not_null:
where: TYPE <> 'SELFDESTRUCT'
config:
where: TYPE <> 'SELFDESTRUCT'
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
where: FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN'
config:
where: FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN'
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TO_ADDRESS
tests:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
where: TO_ADDRESS IS NOT NULL
config:
where: TO_ADDRESS IS NOT NULL
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: INPUT
tests:
- not_null:
where: TYPE <> 'SELFDESTRUCT'
config:
where: TYPE <> 'SELFDESTRUCT'
- name: TYPE
tests:
- not_null
@ -110,11 +124,13 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: MODIFIED_TIMESTAMP
tests:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2

View File

@ -4,49 +4,58 @@ models:
description: "This is a view used to test all of the gold fact transactions model."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- TX_HASH
arguments:
combination_of_columns:
- TX_HASH
- fsc_evm.sequence_gaps:
partition_by:
- BLOCK_NUMBER
column_name: TX_POSITION
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
config:
partition_by:
- BLOCK_NUMBER
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
- txs_match_blocks:
blocks_model: ref('test_gold__fact_blocks_full')
arguments:
blocks_model: ref('test_gold__fact_blocks_full')
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: FROM_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TO_ADDRESS
tests:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
where: TO_ADDRESS IS NOT NULL
config:
where: TO_ADDRESS IS NOT NULL
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: ORIGIN_FUNCTION_SIGNATURE
tests:
- not_null
@ -78,9 +87,10 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: INPUT_DATA
tests:
- not_null
@ -107,11 +117,13 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2

View File

@ -4,48 +4,57 @@ models:
description: "This is a view used to test the last three days of fact transactions."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- TX_HASH
arguments:
combination_of_columns:
- TX_HASH
- fsc_evm.sequence_gaps:
partition_by:
- BLOCK_NUMBER
column_name: TX_POSITION
config:
partition_by:
- BLOCK_NUMBER
- txs_match_blocks:
blocks_model: ref('test_gold__fact_blocks_recent')
arguments:
blocks_model: ref('test_gold__fact_blocks_recent')
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: FROM_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TO_ADDRESS
tests:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
where: TO_ADDRESS IS NOT NULL
config:
where: TO_ADDRESS IS NOT NULL
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: ORIGIN_FUNCTION_SIGNATURE
tests:
- not_null
@ -77,9 +86,10 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: INPUT_DATA
tests:
- not_null
@ -106,11 +116,13 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2

View File

@ -4,32 +4,37 @@ models:
description: "This is a view used to test all of the `ez_nft_transfers` data."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- EZ_NFT_TRANSFERS_ID
arguments:
combination_of_columns:
- EZ_NFT_TRANSFERS_ID
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 3
arguments:
datepart: hour
interval: 3
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: EVENT_INDEX
tests:
- not_null
@ -40,17 +45,20 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: FROM_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TO_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TOKEN_ID
tests:
- not_null
@ -60,9 +68,11 @@ models:
- name: INSERTED_TIMESTAMP
tests:
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 3
arguments:
datepart: hour
interval: 3
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -4,32 +4,37 @@ models:
description: "This is a view used to test the recent `ez_nft_transfers` data."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- EZ_NFT_TRANSFERS_ID
arguments:
combination_of_columns:
- EZ_NFT_TRANSFERS_ID
columns:
- name: BLOCK_NUMBER
tests:
- not_null
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
arguments:
column_type_list:
- NUMBER
- FLOAT
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 3
arguments:
datepart: hour
interval: 3
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: TX_HASH
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: EVENT_INDEX
tests:
- not_null
@ -40,17 +45,20 @@ models:
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: FROM_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TO_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TOKEN_ID
tests:
- not_null
@ -60,9 +68,11 @@ models:
- name: INSERTED_TIMESTAMP
tests:
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 3
arguments:
datepart: hour
interval: 3
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -4,8 +4,9 @@ models:
description: "This is a view used to test all of the silver blocks model."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- BLOCK_NUMBER
arguments:
combination_of_columns:
- BLOCK_NUMBER
- fsc_evm.sequence_gaps:
column_name: BLOCK_NUMBER
config:
@ -23,29 +24,35 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -4,8 +4,9 @@ models:
description: "This is a view used to test the last three days of blocks."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- BLOCK_NUMBER
arguments:
combination_of_columns:
- BLOCK_NUMBER
- fsc_evm.sequence_gaps:
column_name: BLOCK_NUMBER
config:
@ -23,29 +24,35 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -3,8 +3,9 @@ models:
- name: test_silver__confirm_blocks_full
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONFIRM_BLOCKS_ID
arguments:
combination_of_columns:
- CONFIRM_BLOCKS_ID
columns:
- name: BLOCK_NUMBER
@ -17,12 +18,14 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 8
arguments:
datepart: hour
interval: 8
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: CONFIRM_BLOCKS_ID
tests:
- not_null

View File

@ -3,8 +3,9 @@ models:
- name: test_silver__confirm_blocks_recent
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONFIRM_BLOCKS_ID
arguments:
combination_of_columns:
- CONFIRM_BLOCKS_ID
columns:
- name: BLOCK_NUMBER
@ -17,12 +18,14 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 8
arguments:
datepart: hour
interval: 8
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: CONFIRM_BLOCKS_ID
tests:
- not_null

View File

@ -3,8 +3,9 @@ models:
- name: test_silver__contracts_full
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONTRACT_ADDRESS
arguments:
combination_of_columns:
- CONTRACT_ADDRESS
columns:
- name: CONTRACT_ADDRESS
tests:

View File

@ -3,8 +3,9 @@ models:
- name: test_silver__contracts_recent
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CONTRACT_ADDRESS
arguments:
combination_of_columns:
- CONTRACT_ADDRESS
columns:
- name: CONTRACT_ADDRESS
tests:

View File

@ -3,26 +3,31 @@ models:
- name: test_silver__created_contracts_full
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- created_contract_address
arguments:
combination_of_columns:
- created_contract_address
columns:
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 1
arguments:
datepart: day
interval: 1
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_NTZ
- TIMESTAMP_LTZ
arguments:
column_type_list:
- TIMESTAMP_NTZ
- TIMESTAMP_LTZ
- name: _INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 1
arguments:
datepart: day
interval: 1
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_NTZ
- TIMESTAMP_LTZ
arguments:
column_type_list:
- TIMESTAMP_NTZ
- TIMESTAMP_LTZ

View File

@ -3,26 +3,31 @@ models:
- name: test_silver__created_contracts_recent
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- created_contract_address
arguments:
combination_of_columns:
- created_contract_address
columns:
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 1
arguments:
datepart: day
interval: 1
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_NTZ
- TIMESTAMP_LTZ
arguments:
column_type_list:
- TIMESTAMP_NTZ
- TIMESTAMP_LTZ
- name: _INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 1
arguments:
datepart: day
interval: 1
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_NTZ
- TIMESTAMP_LTZ
arguments:
column_type_list:
- TIMESTAMP_NTZ
- TIMESTAMP_LTZ

View File

@ -3,5 +3,6 @@ models:
- name: test_silver__proxies_full
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- _ID
arguments:
combination_of_columns:
- _ID

View File

@ -3,5 +3,6 @@ models:
- name: test_silver__proxies_recent
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- _ID
arguments:
combination_of_columns:
- _ID

View File

@ -4,8 +4,9 @@ models:
description: "This is a view used to test all of the silver receipts model."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- RECEIPTS_ID
arguments:
combination_of_columns:
- RECEIPTS_ID
columns:
- name: BLOCK_NUMBER
@ -18,29 +19,35 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -4,8 +4,9 @@ models:
description: "This is a view used to test the last three days of receipts."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- RECEIPTS_ID
arguments:
combination_of_columns:
- RECEIPTS_ID
columns:
- name: BLOCK_NUMBER
@ -18,29 +19,35 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -4,8 +4,9 @@ models:
description: "This is a view used to test all of the silver traces model."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- TRACES_ID
arguments:
combination_of_columns:
- TRACES_ID
columns:
- name: BLOCK_NUMBER
@ -24,29 +25,35 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -4,8 +4,9 @@ models:
description: "This is a view used to test the last three days of traces."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- TRACES_ID
arguments:
combination_of_columns:
- TRACES_ID
columns:
- name: BLOCK_NUMBER
@ -24,29 +25,35 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -4,13 +4,15 @@ models:
description: "This is a view used to test all of the silver transactions model."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- TRANSACTIONS_ID
arguments:
combination_of_columns:
- TRANSACTIONS_ID
- fsc_evm.sequence_gaps:
partition_by:
- BLOCK_NUMBER
column_name: TX_POSITION
config:
partition_by:
- BLOCK_NUMBER
columns:
- name: BLOCK_NUMBER
tests:
@ -25,29 +27,35 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -4,13 +4,15 @@ models:
description: "This is a view used to test the last three days of transactions."
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- TRANSACTIONS_ID
arguments:
combination_of_columns:
- TRANSACTIONS_ID
- fsc_evm.sequence_gaps:
partition_by:
- BLOCK_NUMBER
column_name: TX_POSITION
config:
partition_by:
- BLOCK_NUMBER
columns:
- name: BLOCK_NUMBER
tests:
@ -25,29 +27,35 @@ models:
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: INSERTED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 2
arguments:
datepart: hour
interval: 2
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
arguments:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ

View File

@ -3,49 +3,61 @@ models:
- name: silver__labels
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- BLOCKCHAIN
- CREATOR
- ADDRESS
where: "not _is_deleted"
config:
where: "not _is_deleted"
arguments:
combination_of_columns:
- BLOCKCHAIN
- CREATOR
- ADDRESS
columns:
- name: BLOCKCHAIN
tests:
- not_null:
where: "not _is_deleted"
config:
where: "not _is_deleted"
- name: CREATOR
tests:
- not_null:
where: "not _is_deleted"
config:
where: "not _is_deleted"
- name: ADDRESS
tests:
- not_null:
where: "not _is_deleted"
config:
where: "not _is_deleted"
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: ADDRESS_NAME
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- STRING
- VARCHAR
arguments:
column_type_list:
- STRING
- VARCHAR
- name: LABEL_TYPE
tests:
- not_null:
where: "not _is_deleted"
config:
where: "not _is_deleted"
- name: LABEL_SUBTYPE
tests:
- not_null:
where: "not _is_deleted"
config:
where: "not _is_deleted"
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- STRING
- VARCHAR
arguments:
column_type_list:
- STRING
- VARCHAR
- name: PROJECT_NAME
tests:
- not_null:
where: "not _is_deleted"
config:
where: "not _is_deleted"
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- STRING
- VARCHAR
arguments:
column_type_list:
- STRING
- VARCHAR

View File

@ -7,6 +7,7 @@ models:
- name: BLOCKS_IMPACTED_COUNT
tests:
- accepted_values_recent_row:
value: 0
timestamp_column: 'TEST_TIMESTAMP'
context_column: 'MISSING_LIST'
arguments:
value: 0
timestamp_column: 'TEST_TIMESTAMP'
context_column: 'MISSING_LIST'

View File

@ -7,6 +7,7 @@ models:
- name: BLOCKS_IMPACTED_COUNT
tests:
- accepted_values_recent_row:
value: 0
timestamp_column: 'TEST_TIMESTAMP'
context_column: 'MISSING_LIST'
arguments:
value: 0
timestamp_column: 'TEST_TIMESTAMP'
context_column: 'MISSING_LIST'

Some files were not shown because too many files have changed in this diff Show More