add: column in gold view

This commit is contained in:
WHYTEWYLL 2023-12-05 18:45:38 -03:00
parent c6c4231b4b
commit afa95ae059
5 changed files with 15 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{% docs tx_status %}
Indicates whether the transaction failed or succeeded.
/// DEPRECATION WARNING /// Indicates whether the transaction failed or succeeded. This will be get deprecated in the future. Please use `tx_succeeded` instead.
{% enddocs %}

View File

@ -0,0 +1,5 @@
{% docs tx_succeeded %}
Indicates whether the transaction failed or succeeded.
{% enddocs %}

View File

@ -24,6 +24,7 @@ SELECT
gas_used,
transaction_fee,
attached_gas,
tx_succeeded,
tx_status
FROM
transactions

View File

@ -109,6 +109,13 @@ models:
- NUMBER
- FLOAT
- name: tx_succeeded
description: "{{ doc('tx_succeeded')}}"
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- BOOLEAN
- name: TX_STATUS
description: "{{ doc('tx_status')}}"
tests:

View File

@ -152,7 +152,7 @@ receipts AS (
ORDER BY
tx_hash DESC
) AS receipt_tokens_burnt,
execution_outcome :outcome: tokens_burnt AS tokens_burnt
execution_outcome :outcome: tokens_burnt :: NUMBER AS tokens_burnt
FROM
int_receipts
WHERE