mirror of
https://github.com/FlipsideCrypto/blast-models.git
synced 2026-02-06 14:11:55 +00:00
update tests
This commit is contained in:
parent
ad7c6ed22d
commit
70a8c7caec
@ -102,19 +102,4 @@ models:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: PLATFORM
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: MODIFIED_TIMESTAMP
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: _LOG_ID
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- float
|
||||
@ -4,44 +4,107 @@ models:
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- _log_id
|
||||
- _LOG_ID
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BLOCK_TIMESTAMP
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- dbt_expectations.expect_row_values_to_have_recent_data:
|
||||
datepart: day
|
||||
interval: 3
|
||||
warn_if: ">3"
|
||||
error_if: ">14"
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_ADDRESS
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ISSUED_TOKENS
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: SUPPLIED_BASE_ASSET
|
||||
- float
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- float
|
||||
- name: SUPPLIED_CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: SUPPLIED_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: SUPPLIER
|
||||
tests:
|
||||
- not_null
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: PLATFORM
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: MODIFIED_TIMESTAMP
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: _LOG_ID
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
@ -4,51 +4,116 @@ models:
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- _log_id
|
||||
- _LOG_ID
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BLOCK_TIMESTAMP
|
||||
tests:
|
||||
- not_null
|
||||
- name: BORROWER
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- dbt_expectations.expect_row_values_to_have_recent_data:
|
||||
datepart: day
|
||||
interval: 3
|
||||
warn_if: ">14"
|
||||
error_if: ">30"
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: LIQUIDATOR
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BORROWER
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: PROTOCOL_MARKET
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: COLLATERAL_TOKEN
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: COLLATERAL_TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- name: COLLATERAL_TOKEN
|
||||
tests:
|
||||
- not_null
|
||||
- name: COLLATERAL_TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- name: DEBT_TOKEN
|
||||
tests:
|
||||
- not_null
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: DEBT_TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: PLATFORM
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: MODIFIED_TIMESTAMP
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: _LOG_ID
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
@ -4,38 +4,102 @@ models:
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- _log_id
|
||||
- _LOG_ID
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BLOCK_TIMESTAMP
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- dbt_expectations.expect_row_values_to_have_recent_data:
|
||||
datepart: day
|
||||
interval: 3
|
||||
warn_if: ">3"
|
||||
error_if: ">14"
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BORROWER
|
||||
tests:
|
||||
- not_null
|
||||
- name: TOKEN_ADDRESS
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: PROTOCOL_MARKET
|
||||
tests:
|
||||
- not_null
|
||||
- name: TOKEN_SYMBOL
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: PAYER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: REPAY_CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: REPAY_CONTRACT_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- name: REPAYED_AMOUNT
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_ADDRESS
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOTAL_REPAID
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null
|
||||
- float
|
||||
- name: AMOUNT
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
@ -4,44 +4,92 @@ models:
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- _log_id
|
||||
- _LOG_ID
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BLOCK_TIMESTAMP
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- dbt_expectations.expect_row_values_to_have_recent_data:
|
||||
datepart: day
|
||||
interval: 3
|
||||
warn_if: ">3"
|
||||
error_if: ">14"
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_ADDRESS
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- name: RECEIVED_AMOUNT
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: REDEEMER
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: RECEIVED_CONTRACT_ADDRESS
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- not_null
|
||||
- name: RECEIVED_SYMBOL
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT
|
||||
tests:
|
||||
- not_null
|
||||
- name: REDEEMED_TOKEN
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: REDEEMER
|
||||
tests:
|
||||
- not_null
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null
|
||||
- name: RECEIVED_CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: RECEIVED_SYMBOL
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: REDEEMED_TOKENS
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
@ -4,38 +4,86 @@ models:
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- _log_id
|
||||
- _LOG_ID
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BLOCK_TIMESTAMP
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- dbt_expectations.expect_row_values_to_have_recent_data:
|
||||
datepart: day
|
||||
interval: 3
|
||||
warn_if: ">3"
|
||||
error_if: ">14"
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BORROWER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BORROWS_CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BORROWS_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_ADDRESS
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- name: LOAN_AMOUNT
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null
|
||||
- float
|
||||
@ -4,44 +4,107 @@ models:
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- _log_id
|
||||
- _LOG_ID
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BLOCK_TIMESTAMP
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- dbt_expectations.expect_row_values_to_have_recent_data:
|
||||
datepart: day
|
||||
interval: 3
|
||||
warn_if: ">3"
|
||||
error_if: ">14"
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_ADDRESS
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ISSUED_TOKENS
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: SUPPLIED_BASE_ASSET
|
||||
- float
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- float
|
||||
- name: SUPPLIED_CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: SUPPLIED_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: SUPPLIER
|
||||
tests:
|
||||
- not_null
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: PLATFORM
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: MODIFIED_TIMESTAMP
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: _LOG_ID
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
@ -4,47 +4,116 @@ models:
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- _log_id
|
||||
- _LOG_ID
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BLOCK_TIMESTAMP
|
||||
tests:
|
||||
- not_null
|
||||
- name: BORROWER
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- dbt_expectations.expect_row_values_to_have_recent_data:
|
||||
datepart: day
|
||||
interval: 3
|
||||
warn_if: ">14"
|
||||
error_if: ">30"
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN
|
||||
tests:
|
||||
- not_null
|
||||
- name: TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: LIQUIDATOR
|
||||
tests:
|
||||
- not_null
|
||||
- name: TOKENS_SEIZED
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BORROWER
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: LIQUIDATION_AMOUNT
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: PROTOCOL_MARKET
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: COLLATERAL_TOKEN
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: COLLATERAL_TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- name: COLLATERAL_TOKEN
|
||||
tests:
|
||||
- not_null
|
||||
- name: COLLATERAL_TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null
|
||||
- name: DEBT_TOKEN
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: DEBT_TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: PLATFORM
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: MODIFIED_TIMESTAMP
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: _LOG_ID
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
@ -101,6 +101,8 @@ SELECT
|
||||
origin_to_address,
|
||||
origin_function_signature,
|
||||
contract_address,
|
||||
contract_address as protocol_market,
|
||||
origin_from_address as payer,
|
||||
borrower,
|
||||
token as token_address,
|
||||
token_symbol,
|
||||
|
||||
@ -4,38 +4,102 @@ models:
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- _log_id
|
||||
- _LOG_ID
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BLOCK_TIMESTAMP
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- dbt_expectations.expect_row_values_to_have_recent_data:
|
||||
datepart: day
|
||||
interval: 3
|
||||
warn_if: ">3"
|
||||
error_if: ">14"
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BORROWER
|
||||
tests:
|
||||
- not_null
|
||||
- name: TOKEN_ADDRESS
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: PROTOCOL_MARKET
|
||||
tests:
|
||||
- not_null
|
||||
- name: TOKEN_SYMBOL
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: PAYER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: REPAY_CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: REPAY_CONTRACT_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- name: REPAYED_AMOUNT
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_ADDRESS
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOTAL_REPAID
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null
|
||||
- float
|
||||
- name: AMOUNT
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
@ -4,44 +4,92 @@ models:
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- _log_id
|
||||
- _LOG_ID
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BLOCK_TIMESTAMP
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- dbt_expectations.expect_row_values_to_have_recent_data:
|
||||
datepart: day
|
||||
interval: 3
|
||||
warn_if: ">3"
|
||||
error_if: ">14"
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_ADDRESS
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- name: RECEIVED_AMOUNT
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: REDEEMER
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: RECEIVED_CONTRACT_ADDRESS
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- not_null
|
||||
- name: RECEIVED_SYMBOL
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT
|
||||
tests:
|
||||
- not_null
|
||||
- name: REDEEMED_TOKEN
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: REDEEMER
|
||||
tests:
|
||||
- not_null
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null
|
||||
- name: RECEIVED_CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: RECEIVED_SYMBOL
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: REDEEMED_TOKENS
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
@ -4,38 +4,86 @@ models:
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- _log_id
|
||||
- _LOG_ID
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BLOCK_TIMESTAMP
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- dbt_expectations.expect_row_values_to_have_recent_data:
|
||||
datepart: day
|
||||
interval: 3
|
||||
warn_if: ">3"
|
||||
error_if: ">14"
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BORROWER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BORROWS_CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BORROWS_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_ADDRESS
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- name: LOAN_AMOUNT
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null
|
||||
- float
|
||||
@ -4,44 +4,107 @@ models:
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- _log_id
|
||||
- _LOG_ID
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BLOCK_TIMESTAMP
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- dbt_expectations.expect_row_values_to_have_recent_data:
|
||||
datepart: day
|
||||
interval: 3
|
||||
warn_if: ">3"
|
||||
error_if: ">14"
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_ADDRESS
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ISSUED_TOKENS
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: SUPPLIED_BASE_ASSET
|
||||
- float
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- float
|
||||
- name: SUPPLIED_CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: SUPPLIED_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: SUPPLIER
|
||||
tests:
|
||||
- not_null
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: PLATFORM
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: MODIFIED_TIMESTAMP
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: _LOG_ID
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
@ -4,53 +4,116 @@ models:
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- _log_id
|
||||
- _LOG_ID
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BLOCK_TIMESTAMP
|
||||
tests:
|
||||
- not_null
|
||||
- name: BORROWER
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- dbt_expectations.expect_row_values_to_have_recent_data:
|
||||
datepart: day
|
||||
interval: 3
|
||||
warn_if: ">14"
|
||||
error_if: ">30"
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN
|
||||
tests:
|
||||
- not_null
|
||||
- name: TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: LIQUIDATOR
|
||||
tests:
|
||||
- not_null
|
||||
- name: TOKENS_SEIZED
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BORROWER
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: PROTOCOL_MARKET
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: COLLATERAL_TOKEN
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: COLLATERAL_TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: LIQUIDATION_AMOUNT
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- float
|
||||
- name: DEBT_TOKEN
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: DEBT_TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- name: COLLATERAL_TOKEN
|
||||
tests:
|
||||
- not_null
|
||||
- name: COLLATERAL_TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: PLATFORM
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: MODIFIED_TIMESTAMP
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: _LOG_ID
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
@ -96,6 +96,7 @@ SELECT
|
||||
origin_to_address,
|
||||
origin_function_signature,
|
||||
contract_address,
|
||||
contract_address as protocol_market,
|
||||
borrower,
|
||||
token as token_address,
|
||||
token_symbol,
|
||||
|
||||
@ -4,41 +4,102 @@ models:
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- _log_id
|
||||
- _LOG_ID
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BLOCK_TIMESTAMP
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- dbt_expectations.expect_row_values_to_have_recent_data:
|
||||
datepart: day
|
||||
interval: 3
|
||||
warn_if: ">3"
|
||||
error_if: ">14"
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BORROWER
|
||||
tests:
|
||||
- not_null
|
||||
- name: TOKEN_ADDRESS
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: PROTOCOL_MARKET
|
||||
tests:
|
||||
- not_null
|
||||
- name: TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: PAYER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: REPAY_CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: REPAY_CONTRACT_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- name: REPAYED_AMOUNT
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_ADDRESS
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOTAL_REPAID
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null
|
||||
- float
|
||||
- name: AMOUNT
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
@ -4,44 +4,92 @@ models:
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- _log_id
|
||||
- _LOG_ID
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: BLOCK_TIMESTAMP
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- dbt_expectations.expect_row_values_to_have_recent_data:
|
||||
datepart: day
|
||||
interval: 3
|
||||
warn_if: ">3"
|
||||
error_if: ">14"
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_ADDRESS
|
||||
tests:
|
||||
- not_null
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: TOKEN_SYMBOL
|
||||
tests:
|
||||
- not_null
|
||||
- name: RECEIVED_AMOUNT
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: REDEEMER
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: RECEIVED_CONTRACT_ADDRESS
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- not_null
|
||||
- name: RECEIVED_SYMBOL
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: AMOUNT
|
||||
tests:
|
||||
- not_null
|
||||
- name: REDEEMED_TOKEN
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
- name: REDEEMER
|
||||
tests:
|
||||
- not_null
|
||||
- name: TX_HASH
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null
|
||||
- name: RECEIVED_CONTRACT_ADDRESS
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: RECEIVED_SYMBOL
|
||||
tests:
|
||||
- not_null:
|
||||
error_if: ">10"
|
||||
warn_if: ">0"
|
||||
- name: REDEEMED_TOKENS
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
||||
column_type_list:
|
||||
- decimal
|
||||
- float
|
||||
Loading…
Reference in New Issue
Block a user