near-models/models/gold/horizon/horizon__fact_decoded_actions.yml

65 lines
1.9 KiB
YAML
Raw Normal View History

2023-05-23 19:36:06 +00:00
version: 2
models:
- name: horizon__fact_decoded_actions
description: |-
2025-01-06 18:53:01 +00:00
Deprecating Soon - please cease using this table by February 1, 2025.
2023-05-23 19:36:06 +00:00
columns:
2023-12-11 19:08:57 +00:00
- name: ACTION_ID_HORIZON
2023-05-23 19:36:06 +00:00
description: "{{ doc('action_id')}}"
2023-12-11 19:08:57 +00:00
- name: RECEIPT_OBJECT_ID
2023-05-23 19:36:06 +00:00
description: "{{ doc('receipt_object_id')}}"
2023-12-11 19:08:57 +00:00
- name: TX_HASH
description: "{{ doc('tx_hash')}}"
2024-02-08 23:27:49 +00:00
tests:
- not_null:
2024-02-09 00:36:36 +00:00
where: inserted_timestamp BETWEEN SYSDATE() - INTERVAL '7 days' AND SYSDATE() - INTERVAL '2 hours'
2023-12-11 19:08:57 +00:00
- name: BLOCK_ID
2023-05-23 19:36:06 +00:00
description: "{{ doc('block_id')}}"
2023-12-11 19:08:57 +00:00
- name: BLOCK_TIMESTAMP
2023-05-23 19:36:06 +00:00
description: "{{ doc('block_timestamp')}}"
2024-02-08 23:27:49 +00:00
tests:
- not_null:
2024-02-09 00:36:36 +00:00
where: inserted_timestamp BETWEEN SYSDATE() - INTERVAL '7 days' AND SYSDATE() - INTERVAL '2 hours'
2023-05-23 19:36:06 +00:00
2023-12-11 19:08:57 +00:00
- name: METHOD_NAME
2023-05-23 19:36:06 +00:00
description: "{{ doc('method_name')}}"
2023-12-11 19:08:57 +00:00
- name: ARGS
2023-05-23 19:36:06 +00:00
description: "{{ doc('args')}}"
2023-12-11 19:08:57 +00:00
- name: DEPOSIT
2023-05-23 19:36:06 +00:00
description: "{{ doc('deposit')}}"
2023-12-11 19:08:57 +00:00
- name: ATTACHED_GAS
2023-05-23 19:36:06 +00:00
description: "{{ doc('attached_gas')}}"
2023-12-11 19:08:57 +00:00
- name: RECEIVER_ID
2023-05-23 19:36:06 +00:00
description: "{{ doc('receiver_id')}}"
2023-12-11 19:08:57 +00:00
- name: SIGNER_ID
2023-05-23 19:36:06 +00:00
description: "{{ doc('signer_id')}}"
2023-12-11 19:08:57 +00:00
- name: RECEIPT_SUCCEEDED
2023-05-23 19:36:06 +00:00
description: "{{ doc('receipt_succeeded')}}"
2023-12-11 19:08:57 +00:00
- name: FACT_DECODED_ACTIONS_ID
description: "{{doc('id')}}"
2024-02-08 23:27:49 +00:00
tests:
- unique:
2024-02-09 00:36:36 +00:00
where: inserted_timestamp BETWEEN SYSDATE() - INTERVAL '7 days' AND SYSDATE() - INTERVAL '2 hours'
2024-02-08 23:27:49 +00:00
- not_null:
2024-02-09 00:36:36 +00:00
where: inserted_timestamp BETWEEN SYSDATE() - INTERVAL '7 days' AND SYSDATE() - INTERVAL '2 hours'
2023-12-11 19:08:57 +00:00
- name: INSERTED_TIMESTAMP
description: "{{doc('inserted_timestamp')}}"
- name: MODIFIED_TIMESTAMP
description: "{{doc('modified_timestamp')}}"