mirror of
https://github.com/FlipsideCrypto/osmosis-models.git
synced 2026-02-06 13:57:16 +00:00
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
version: 2
|
|
models:
|
|
- name: silver__blocks
|
|
description: Records of all blocks that have occurred on Osmosis, dating back to the genesis block.
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- CHAIN_ID
|
|
- BLOCK_ID
|
|
columns:
|
|
- name: BLOCK_ID
|
|
description: "{{ doc('block_id') }}"
|
|
tests:
|
|
- not_null
|
|
- name: BLOCK_TIMESTAMP
|
|
description: "{{ doc('block_timestamp') }}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_row_values_to_have_recent_data:
|
|
datepart: day
|
|
interval: 1
|
|
- name: CHAIN_ID
|
|
description: "{{ doc('chain_id') }}"
|
|
tests:
|
|
- not_null
|
|
- name: TX_COUNT
|
|
description: "{{ doc('tx_count') }}"
|
|
tests:
|
|
- not_null
|
|
- name: PROPOSER_ADDRESS
|
|
description: "{{ doc('proposer_address') }}"
|
|
tests:
|
|
- not_null
|
|
- name: VALIDATOR_HASH
|
|
description: "{{ doc('validator_hash') }}"
|
|
tests:
|
|
- not_null
|
|
- name: _INGESTED_AT
|
|
description: "{{ doc('ingested_at') }}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- TIMESTAMP_NTZ
|