mirror of
https://github.com/FlipsideCrypto/solana-models.git
synced 2026-02-06 11:47:08 +00:00
70 lines
2.3 KiB
YAML
70 lines
2.3 KiB
YAML
version: 2
|
|
models:
|
|
- name: silver__nft_mint_actions
|
|
recent_date_filter: &recent_date_filter
|
|
config:
|
|
where: _inserted_timestamp >= current_date - 7
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- TX_ID
|
|
- INDEX
|
|
- INNER_INDEX
|
|
- MINT
|
|
where: block_timestamp::date > current_date - 7
|
|
columns:
|
|
- name: BLOCK_TIMESTAMP
|
|
description: "{{ doc('block_timestamp') }}"
|
|
tests:
|
|
- not_null:
|
|
where: block_id > 39824213
|
|
- dbt_expectations.expect_row_values_to_have_recent_data:
|
|
datepart: day
|
|
interval: 3
|
|
- name: BLOCK_ID
|
|
description: "{{ doc('block_id') }}"
|
|
tests:
|
|
- not_null: *recent_date_filter
|
|
- name: TX_ID
|
|
description: "{{ doc('tx_id') }}"
|
|
tests:
|
|
- not_null: *recent_date_filter
|
|
- name: SUCCEEDED
|
|
description: "{{ doc('tx_succeeded') }}"
|
|
tests:
|
|
- dbt_expectations.expect_column_to_exist
|
|
- name: INDEX
|
|
description: "Location of the event within the instructions of a transaction"
|
|
tests:
|
|
- not_null: *recent_date_filter
|
|
- name: INNER_INDEX
|
|
description: "Location of the event within the inner instructions of a transaction"
|
|
- name: EVENT_TYPE
|
|
description: "{{ doc('event_type') }}"
|
|
tests:
|
|
- not_null: *recent_date_filter
|
|
- name: MINT
|
|
description: "{{ doc('mint') }}"
|
|
tests:
|
|
- not_null: *recent_date_filter
|
|
- name: MINT_AMOUNT
|
|
description: Number of tokens burned
|
|
tests:
|
|
- not_null:
|
|
where: event_type in ('mintToChecked', 'mintTo') and _inserted_timestamp >= current_date - 7
|
|
- name: MINT_AUTHORITY
|
|
description: Account address authorizing burn
|
|
tests:
|
|
- not_null: *recent_date_filter
|
|
- name: SIGNERS
|
|
description: Account address authorizing burn
|
|
- name: DECIMAL
|
|
description: "{{ doc('decimal') }}"
|
|
tests:
|
|
- not_null: *recent_date_filter
|
|
- name: MINT_STANDARD_TYPE
|
|
description: "{{ doc('mint_standard_type') }}"
|
|
- name: _INSERTED_TIMESTAMP
|
|
description: "{{ doc('_inserted_timestamp') }}"
|
|
tests:
|
|
- not_null |