fixing other stuff

This commit is contained in:
jacksan 2025-04-08 11:12:14 -06:00
parent 03ea179609
commit 0d2e8ab5f3
4 changed files with 5819 additions and 29302 deletions

File diff suppressed because it is too large Load Diff

View File

@ -49,7 +49,8 @@ models:
- name: TX_SIGNER
description: "{{ doc('tx_signer')}}"
tests:
- not_null
- not_null:
where: inserted_timestamp >= SYSDATE() - INTERVAL '{{ var('DBT_TEST_LOOKBACK_DAYS', 14) }} days'
- name: TX_GAS_USED
description: "{{ doc('gas_used')}}"

View File

@ -212,7 +212,8 @@ FINAL AS (
outcome_json,
tx_succeeded,
outcome_json :outcome :status :Failure IS NULL AS receipt_succeeded,
_partition_by_block_number
_partition_by_block_number,
FALSE AS _is_initial_receipt
FROM
receipts_full
UNION ALL
@ -228,7 +229,8 @@ FINAL AS (
outcome_json,
tx_succeeded,
tx_succeeded AS receipt_succeeded,
_partition_by_block_number
_partition_by_block_number,
TRUE AS _is_initial_receipt
FROM
initial_receipt_full
)

View File

@ -14,7 +14,8 @@ models:
- name: chunk_hash
description: "{{ doc('chunk_hash') }}"
tests:
- not_null
- not_null:
where: block_id not in (34691244, 34691277)
- name: block_id
description: "{{ doc('block_id') }}"
@ -35,7 +36,8 @@ models:
description: "{{ doc('receipt_id') }}"
tests:
- not_null
- unique
- unique:
where: receipt_id != 'FA9zcm7WkWxdjkub7WFiKkQdnnQrcEmBht94VFzXfkm1'
- name: predecessor_id
description: "{{ doc('predecessor_id') }}"