mirror of
https://github.com/FlipsideCrypto/near-models.git
synced 2026-02-06 09:41:44 +00:00
100 lines
3.1 KiB
YAML
100 lines
3.1 KiB
YAML
version: 2
|
|
|
|
models:
|
|
- name: atlas__ez_nft_contract_metrics
|
|
description: |-
|
|
Deprecating Soon - these tables previously supported NEAR Atlas which is no longer live. These tables will be removed on Febreary 1, 2025.
|
|
Please cease using these tables.
|
|
tests:
|
|
- dbt_utils.recency:
|
|
datepart: days
|
|
field: inserted_timestamp
|
|
interval: 1
|
|
|
|
columns:
|
|
- name: EZ_NFT_CONTRACT_METRICS_ID
|
|
description: "{ { doc('id')}}"
|
|
tests:
|
|
- unique:
|
|
where: inserted_timestamp BETWEEN SYSDATE() - INTERVAL '7 days' AND SYSDATE() - INTERVAL '2 hours'
|
|
- not_null:
|
|
where: inserted_timestamp BETWEEN SYSDATE() - INTERVAL '7 days' AND SYSDATE() - INTERVAL '2 hours'
|
|
|
|
- name: RECEIVER_ID
|
|
description: "{ { doc('receiver_id')}}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- STRING
|
|
- VARCHAR
|
|
|
|
- name: TOKENS
|
|
description: "{{ doc('tokens_count')}}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- INTEGER
|
|
|
|
- name: TRANSFERS_24H
|
|
description: "The count of 'nft_transfer' transactions that occurred in the last 24 hours."
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- INTEGER
|
|
|
|
- name: TRANSFERS_3D
|
|
description: "The count of 'nft_transfer' transactions that occurred in the last 3 days."
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- INTEGER
|
|
|
|
- name: ALL_TRANSFERS
|
|
description: "{{ doc('all_transfers')}}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- INTEGER
|
|
|
|
- name: OWNERS
|
|
description: "{{ doc('owner_count')}}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- INTEGER
|
|
|
|
- name: TRANSACTIONS
|
|
description: "{{ doc('tx_count')}}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- INTEGER
|
|
|
|
- name: MINTS
|
|
description: "{{ doc('mint_count')}}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- INTEGER
|
|
|
|
- name: INSERTED_TIMESTAMP
|
|
description: "{{ doc('inserted_timestamp')}}"
|
|
|
|
- name: MODIFIED_TIMESTAMP
|
|
description: "{{ doc('modified_timestamp')}}"
|