mirror of
https://github.com/FlipsideCrypto/movement-models.git
synced 2026-02-06 11:27:27 +00:00
394 lines
14 KiB
YAML
394 lines
14 KiB
YAML
version: 2
|
|
models:
|
|
- name: core__dim_labels
|
|
description: '{{ doc("core__dim_labels") }}'
|
|
columns:
|
|
- name: blockchain
|
|
description: '{{ doc("blockchain") }}'
|
|
- name: creator
|
|
description: '{{ doc("creator") }}'
|
|
- name: address
|
|
description: '{{ doc("address") }}'
|
|
- name: address_name
|
|
description: '{{ doc("address_name") }}'
|
|
- name: label_type
|
|
description: '{{ doc("label_type") }}'
|
|
- name: label_subtype
|
|
description: '{{ doc("label_subtype") }}'
|
|
- name: project_name
|
|
description: '{{ doc("project_name") }}'
|
|
- name: dim_labels_id
|
|
description: '{{ doc("pk") }}'
|
|
- name: inserted_timestamp
|
|
description: '{{ doc("inserted_timestamp") }}'
|
|
- name: modified_timestamp
|
|
description: '{{ doc("modified_timestamp") }}'
|
|
|
|
- name: core__ez_transfers
|
|
description: '{{ doc("core__ez_transfers") }}'
|
|
tests:
|
|
- dbt_utils.recency:
|
|
datepart: hour
|
|
field: MODIFIED_TIMESTAMP
|
|
interval: 3
|
|
severity: error
|
|
tags: ['test_recency']
|
|
columns:
|
|
- name: block_number
|
|
description: '{{ doc("block_number") }}'
|
|
- name: block_timestamp
|
|
description: '{{ doc("block_timestamp") }}'
|
|
- name: tx_hash
|
|
description: '{{ doc("tx_hash") }}'
|
|
- name: version
|
|
description: '{{ doc("version") }}'
|
|
- name: success
|
|
description: '{{ doc("success") }}'
|
|
- name: transfer_event
|
|
description: '{{ doc("transfer_event") }}'
|
|
- name: account_address
|
|
description: '{{ doc("account_address") }}'
|
|
- name: amount
|
|
description: '{{ doc("amount") }}'
|
|
- name: is_fungible
|
|
description: '{{ doc("is_fungible") }}'
|
|
- name: token_address
|
|
description: '{{ doc("token_address") }}'
|
|
- name: store_address
|
|
description: '{{ doc("store_address") }}'
|
|
- name: ez_transfers_id
|
|
description: '{{ doc("pk") }}'
|
|
- name: inserted_timestamp
|
|
description: '{{ doc("inserted_timestamp") }}'
|
|
- name: modified_timestamp
|
|
description: '{{ doc("modified_timestamp") }}'
|
|
|
|
- name: core__fact_blocks
|
|
description: '{{ doc("core__fact_blocks") }}'
|
|
tests:
|
|
- dbt_utils.recency:
|
|
datepart: hour
|
|
field: MODIFIED_TIMESTAMP
|
|
interval: 3
|
|
severity: error
|
|
tags: ['test_recency']
|
|
columns:
|
|
- name: block_number
|
|
description: '{{ doc("block_number") }}'
|
|
- name: BLOCK_TIMESTAMP
|
|
description: '{{ doc("block_timestamp") }}'
|
|
- name: BLOCK_HASH
|
|
description: '{{ doc("block_hash") }}'
|
|
- name: FIRST_VERSION
|
|
description: '{{ doc("first_version") }}'
|
|
- name: LAST_VERSION
|
|
description: '{{ doc("last_version") }}'
|
|
- name: TX_COUNT
|
|
description: '{{ doc("tx_count") }}'
|
|
- name: FACT_BLOCKS_ID
|
|
description: '{{ doc("pk") }}'
|
|
- name: INSERTED_TIMESTAMP
|
|
description: '{{ doc("inserted_timestamp") }}'
|
|
- name: MODIFIED_TIMESTAMP
|
|
description: '{{ doc("modified_timestamp") }}'
|
|
|
|
- name: core__fact_changes
|
|
description: '{{ doc("core__fact_changes") }}'
|
|
tests:
|
|
- dbt_utils.recency:
|
|
datepart: hour
|
|
field: MODIFIED_TIMESTAMP
|
|
interval: 3
|
|
severity: error
|
|
tags: ['test_recency']
|
|
columns:
|
|
- name: block_number
|
|
description: '{{ doc("block_number") }}'
|
|
- name: BLOCK_TIMESTAMP
|
|
description: '{{ doc("block_timestamp") }}'
|
|
- name: TX_HASH
|
|
description: '{{ doc("tx_hash") }}'
|
|
- name: VERSION
|
|
description: '{{ doc("version") }}'
|
|
- name: SUCCESS
|
|
description: '{{ doc("success") }}'
|
|
- name: TX_TYPE
|
|
description: '{{ doc("tx_type") }}'
|
|
- name: SENDER
|
|
description: '{{ doc("sender") }}'
|
|
- name: PAYLOAD_FUNCTION
|
|
description: '{{ doc("payload_function") }}'
|
|
- name: CHANGE_INDEX
|
|
description: '{{ doc("change_index") }}'
|
|
- name: CHANGE_DATA
|
|
description: '{{ doc("change_data") }}'
|
|
- name: CHANGE_TYPE
|
|
description: '{{ doc("change_type") }}'
|
|
- name: ADDRESS
|
|
description: '{{ doc("address_change") }}'
|
|
- name: HANDLE
|
|
description: '{{ doc("handle_change") }}'
|
|
- name: INNER_CHANGE_TYPE
|
|
description: '{{ doc("inner_change_type") }}'
|
|
- name: CHANGE_ADDRESS
|
|
description: '{{ doc("change_address") }}'
|
|
- name: CHANGE_MODULE
|
|
description: '{{ doc("change_module") }}'
|
|
- name: CHANGE_RESOURCE
|
|
description: '{{ doc("change_resource") }}'
|
|
- name: KEY
|
|
description: '{{ doc("key_change") }}'
|
|
- name: VALUE
|
|
description: '{{ doc("value_change") }}'
|
|
- name: STATE_KEY_HASH
|
|
- name: FACT_CHANGES_ID
|
|
description: '{{ doc("pk") }}'
|
|
- name: INSERTED_TIMESTAMP
|
|
description: '{{ doc("inserted_timestamp") }}'
|
|
- name: MODIFIED_TIMESTAMP
|
|
description: '{{ doc("modified_timestamp") }}'
|
|
|
|
- name: core__fact_events
|
|
description: '{{ doc("core__fact_events") }}'
|
|
tests:
|
|
- dbt_utils.recency:
|
|
datepart: hour
|
|
field: MODIFIED_TIMESTAMP
|
|
interval: 3
|
|
severity: error
|
|
tags: ['test_recency']
|
|
columns:
|
|
- name: block_number
|
|
description: '{{ doc("block_number") }}'
|
|
- name: BLOCK_TIMESTAMP
|
|
description: '{{ doc("block_timestamp") }}'
|
|
- name: TX_HASH
|
|
description: '{{ doc("tx_hash") }}'
|
|
- name: VERSION
|
|
description: '{{ doc("version") }}'
|
|
- name: SUCCESS
|
|
description: '{{ doc("success") }}'
|
|
- name: TX_TYPE
|
|
description: '{{ doc("tx_type") }}'
|
|
- name: SENDER
|
|
description: '{{ doc("sender") }}'
|
|
- name: PAYLOAD_FUNCTION
|
|
description: '{{ doc("payload_function") }}'
|
|
- name: EVENT_INDEX
|
|
description: '{{ doc("event_index") }}'
|
|
- name: EVENT_TYPE
|
|
description: '{{ doc("event_type") }}'
|
|
- name: EVENT_ADDRESS
|
|
description: '{{ doc("event_address") }}'
|
|
- name: EVENT_MODULE
|
|
description: '{{ doc("event_module") }}'
|
|
- name: EVENT_RESOURCE
|
|
description: '{{ doc("event_resource") }}'
|
|
- name: EVENT_DATA
|
|
description: '{{ doc("event_data") }}'
|
|
- name: ACCOUNT_ADDRESS
|
|
description: '{{ doc("address_event") }}'
|
|
- name: CREATION_NUMBER
|
|
description: '{{ doc("creation_number") }}'
|
|
- name: SEQUENCE_NUMBER
|
|
description: '{{ doc("sequence_number") }}'
|
|
- name: FACT_EVENTS_ID
|
|
description: '{{ doc("pk") }}'
|
|
- name: INSERTED_TIMESTAMP
|
|
description: '{{ doc("inserted_timestamp") }}'
|
|
- name: MODIFIED_TIMESTAMP
|
|
description: '{{ doc("modified_timestamp") }}'
|
|
|
|
- name: core__fact_transactions_block_metadata
|
|
description: '{{ doc("core__fact_transactions_block_metadata") }}'
|
|
tests:
|
|
- dbt_utils.recency:
|
|
datepart: hour
|
|
field: MODIFIED_TIMESTAMP
|
|
interval: 3
|
|
severity: error
|
|
tags: ['test_recency']
|
|
columns:
|
|
- name: block_number
|
|
description: '{{ doc("block_number") }}'
|
|
- name: BLOCK_TIMESTAMP
|
|
description: '{{ doc("block_timestamp") }}'
|
|
- name: TX_HASH
|
|
description: '{{ doc("tx_hash") }}'
|
|
- name: VERSION
|
|
description: '{{ doc("version") }}'
|
|
- name: SUCCESS
|
|
description: '{{ doc("success") }}'
|
|
- name: TX_TYPE
|
|
description: '{{ doc("tx_type") }}'
|
|
- name: SENDER
|
|
description: '{{ doc("sender") }}'
|
|
- name: SIGNATURE
|
|
description: '{{ doc("signature") }}'
|
|
- name: PAYLOAD
|
|
description: '{{ doc("payload") }}'
|
|
- name: PAYLOAD_FUNCTION
|
|
description: '{{ doc("payload_function") }}'
|
|
- name: EPOCH
|
|
description: '{{ doc("epoch") }}'
|
|
- name: EVENTS
|
|
description: '{{ doc("events") }}'
|
|
- name: CHANGES
|
|
description: '{{ doc("changes") }}'
|
|
- name: FAILED_PROPOSER_INDICES
|
|
- name: ID
|
|
- name: PREVIOUS_BLOCK_VOTES_BITVEC
|
|
- name: PROPOSER
|
|
description: '{{ doc("proposer") }}'
|
|
- name: ROUND
|
|
description: '{{ doc("round") }}'
|
|
- name: VM_STATUS
|
|
description: '{{ doc("vm_status") }}'
|
|
- name: STATE_CHANGE_HASH
|
|
- name: ACCUMULATOR_ROOT_HASH
|
|
description: '{{ doc("accumulator_root_hash") }}'
|
|
- name: EVENT_ROOT_HASH
|
|
description: '{{ doc("event_root_hash") }}'
|
|
- name: FACT_TRANSACTIONS_BLOCK_METADATA_ID
|
|
description: '{{ doc("pk") }}'
|
|
- name: INSERTED_TIMESTAMP
|
|
description: '{{ doc("inserted_timestamp") }}'
|
|
- name: MODIFIED_TIMESTAMP
|
|
description: '{{ doc("modified_timestamp") }}'
|
|
|
|
- name: core__fact_transactions_state_checkpoint
|
|
description: '{{ doc("core__fact_transactions_state_checkpoint") }}'
|
|
tests:
|
|
- dbt_utils.recency:
|
|
datepart: hour
|
|
field: MODIFIED_TIMESTAMP
|
|
interval: 3
|
|
severity: error
|
|
tags: ['test_recency']
|
|
columns:
|
|
- name: block_number
|
|
description: '{{ doc("block_number") }}'
|
|
- name: BLOCK_TIMESTAMP
|
|
description: '{{ doc("block_timestamp") }}'
|
|
- name: TX_HASH
|
|
description: '{{ doc("tx_hash") }}'
|
|
- name: VERSION
|
|
description: '{{ doc("version") }}'
|
|
- name: SUCCESS
|
|
description: '{{ doc("success") }}'
|
|
- name: TX_TYPE
|
|
description: '{{ doc("tx_type") }}'
|
|
- name: VM_STATUS
|
|
description: '{{ doc("vm_status") }}'
|
|
- name: STATE_CHECKPOINT_HASH
|
|
description: '{{ doc("state_checkpoint_hash") }}'
|
|
- name: ACCUMULATOR_ROOT_HASH
|
|
description: '{{ doc("accumulator_root_hash") }}'
|
|
- name: EVENT_ROOT_HASH
|
|
description: '{{ doc("event_root_hash") }}'
|
|
- name: FACT_TRANSACTIONS_STATE_CHECKPOINT_ID
|
|
description: '{{ doc("pk") }}'
|
|
- name: INSERTED_TIMESTAMP
|
|
description: '{{ doc("inserted_timestamp") }}'
|
|
- name: MODIFIED_TIMESTAMP
|
|
description: '{{ doc("modified_timestamp") }}'
|
|
|
|
- name: core__fact_transactions
|
|
description: '{{ doc("core__fact_transactions") }}'
|
|
tests:
|
|
- dbt_utils.recency:
|
|
datepart: hour
|
|
field: MODIFIED_TIMESTAMP
|
|
interval: 3
|
|
severity: error
|
|
tags: ['test_recency']
|
|
columns:
|
|
- name: block_number
|
|
description: '{{ doc("block_number") }}'
|
|
- name: BLOCK_TIMESTAMP
|
|
description: '{{ doc("block_timestamp") }}'
|
|
- name: TX_HASH
|
|
description: '{{ doc("tx_hash") }}'
|
|
- name: VERSION
|
|
description: '{{ doc("version") }}'
|
|
- name: SUCCESS
|
|
description: '{{ doc("success") }}'
|
|
- name: TX_TYPE
|
|
description: '{{ doc("tx_type") }}'
|
|
- name: SENDER
|
|
description: '{{ doc("sender") }}'
|
|
- name: SIGNATURE
|
|
description: '{{ doc("signature") }}'
|
|
- name: PAYLOAD
|
|
description: '{{ doc("payload") }}'
|
|
- name: PAYLOAD_FUNCTION
|
|
description: '{{ doc("payload_function") }}'
|
|
- name: CHANGES
|
|
description: '{{ doc("changes") }}'
|
|
- name: EVENTS
|
|
description: '{{ doc("events") }}'
|
|
- name: GAS_UNIT_PRICE
|
|
description: '{{ doc("gas_unit_price") }}'
|
|
- name: GAS_USED
|
|
description: '{{ doc("gas_used") }}'
|
|
- name: MAX_GAS_AMOUNT
|
|
description: '{{ doc("max_gas_amount") }}'
|
|
- name: EXPIRATION_TIMESTAMP_SECS
|
|
description: '{{ doc("expiration_timestamp_secs") }}'
|
|
- name: VM_STATUS
|
|
description: '{{ doc("vm_status") }}'
|
|
- name: STATE_CHANGE_HASH
|
|
- name: ACCUMULATOR_ROOT_HASH
|
|
description: '{{ doc("accumulator_root_hash") }}'
|
|
- name: EVENT_ROOT_HASH
|
|
description: '{{ doc("event_root_hash") }}'
|
|
- name: FACT_TRANSACTIONS_ID
|
|
description: '{{ doc("pk") }}'
|
|
- name: INSERTED_TIMESTAMP
|
|
description: '{{ doc("inserted_timestamp") }}'
|
|
- name: MODIFIED_TIMESTAMP
|
|
description: '{{ doc("modified_timestamp") }}'
|
|
|
|
- name: core__fact_transfers
|
|
description: '{{ doc("core__fact_transfers") }}'
|
|
tests:
|
|
- dbt_utils.recency:
|
|
datepart: hour
|
|
field: MODIFIED_TIMESTAMP
|
|
interval: 3
|
|
severity: error
|
|
tags: ['test_recency']
|
|
columns:
|
|
- name: BLOCK_NUMBER
|
|
description: '{{ doc("block_number") }}'
|
|
- name: BLOCK_TIMESTAMP
|
|
description: '{{ doc("block_timestamp") }}'
|
|
- name: TX_HASH
|
|
description: '{{ doc("tx_hash") }}'
|
|
- name: VERSION
|
|
description: '{{ doc("version") }}'
|
|
- name: SUCCESS
|
|
description: '{{ doc("success") }}'
|
|
- name: EVENT_INDEX
|
|
description: '{{ doc("event_index") }}'
|
|
- name: CREATION_NUMBER
|
|
description: '{{ doc("creation_number") }}'
|
|
- name: TRANSFER_EVENT
|
|
description: '{{ doc("transfer_event") }}'
|
|
- name: ACCOUNT_ADDRESS
|
|
description: '{{ doc("address_event") }}'
|
|
- name: AMOUNT
|
|
description: '{{ doc("amount") }}'
|
|
- name: TOKEN_ADDRESS
|
|
description: '{{ doc("token_address") }}'
|
|
- name: IS_FUNGIBLE
|
|
description: '{{ doc("is_fungible") }}'
|
|
- name: STORE_ADDRESS
|
|
description: '{{ doc("store_address") }}'
|
|
- name: FACT_TRANSFERS_ID
|
|
description: '{{ doc("pk") }}'
|
|
- name: INSERTED_TIMESTAMP
|
|
description: '{{ doc("inserted_timestamp") }}'
|
|
- name: MODIFIED_TIMESTAMP
|
|
description: '{{ doc("modified_timestamp") }}'
|