avalanche-models/models/silver/defi/dex/curve/silver_dex__curve_swaps.yml
drethereum 3b0007ab94
AN-3840/bridge-curation (#206)
* initial models

* updated contracts

* docs

* removed hop

* allbridge

* dst chain seed

* docs

* docs

* token symbol

* tests

* test

* wormhole seed

* filter
2024-01-11 10:48:21 -07:00

54 lines
1.4 KiB
YAML

version: 2
models:
- name: silver_dex__curve_swaps
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- _log_id
columns:
- name: TOKENS_SOLD
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- decimal
- float
- number
- name: TOKENS_BOUGHT
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- decimal
- float
- number
- name: BLOCK_TIMESTAMP
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 1
- name: EVENT_INDEX
tests:
- not_null
- name: POOL_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: POOL_NAME
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- varchar
- name: SENDER
tests:
- not_null
- name: TX_TO
tests:
- not_null
- name: TOKEN_IN
- name: TOKEN_OUT
- name: TX_HASH
tests:
- not_null