mirror of
https://github.com/FlipsideCrypto/flow-models.git
synced 2026-02-06 11:26:53 +00:00
* flow testnet v2 * set batch sizes * add QN node_url to sl testnet model * upd node_url in testnet rt models * add gha workflows for testnet * testnet gold models * upd tag on gold * upd tests * upd tests and set min to 280mm * upd test - rm null --------- Co-authored-by: shah <info@shahnewazkhan.ca>
96 lines
2.5 KiB
YAML
96 lines
2.5 KiB
YAML
version: 2
|
|
|
|
models:
|
|
- name: silver__testnet_events
|
|
description: |-
|
|
This table records events from each transaction on the FLOW testnet blockchain.
|
|
tests:
|
|
- dbt_utils.recency:
|
|
datepart: minutes
|
|
field: block_timestamp
|
|
interval: 360
|
|
- dbt_utils.recency:
|
|
datepart: hours
|
|
field: _inserted_timestamp
|
|
interval: 6
|
|
|
|
columns:
|
|
- name: tx_id
|
|
description: "{{ doc('tx_id') }}"
|
|
tests:
|
|
- not_null
|
|
|
|
- name: block_height
|
|
description: "{{ doc('block_height') }}"
|
|
tests:
|
|
- not_null
|
|
|
|
- name: block_timestamp
|
|
description: "{{ doc('block_timestamp') }}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_of_type:
|
|
column_type: TIMESTAMP_NTZ
|
|
|
|
- name: event_id
|
|
description: "{{ doc('event_id') }}"
|
|
tests:
|
|
- not_null
|
|
- unique
|
|
|
|
- name: event_index
|
|
description: "{{ doc('event_index') }}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_of_type:
|
|
column_type: NUMBER
|
|
|
|
- name: EVENT_COUNT
|
|
description: "{{ doc('event_count') }}"
|
|
|
|
- name: payload
|
|
description: "{{ doc('payload') }}"
|
|
tests:
|
|
- not_null
|
|
|
|
- name: event_contract
|
|
description: "{{ doc('event_contract') }}"
|
|
tests:
|
|
- not_null
|
|
|
|
- name: event_type
|
|
description: "{{ doc('event_type') }}"
|
|
tests:
|
|
- not_null
|
|
|
|
- name: event_data
|
|
description: "{{ doc('event_attributes') }}"
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_of_type:
|
|
column_type: OBJECT
|
|
|
|
- name: tx_succeeded
|
|
description: "{{ doc('tx_succeeded') }}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_of_type:
|
|
column_type: BOOLEAN
|
|
|
|
- name: _inserted_timestamp
|
|
description: "{{ doc('_inserted_timestamp') }}"
|
|
|
|
- name: _partition_by_block_id
|
|
description: "{{ doc('_partition_by_block_id') }}"
|
|
|
|
- name: streamline_event_id
|
|
description: "{{ doc('pk_id') }}"
|
|
|
|
- name: INSERTED_TIMESTAMP
|
|
description: "{{ doc('inserted_timestamp') }}"
|
|
|
|
- name: MODIFIED_TIMESTAMP
|
|
description: "{{ doc('modified_timestamp') }}"
|
|
|
|
- name: _INVOCATION_ID
|
|
description: "{{ doc('invocation_id') }}"
|