mirror of
https://github.com/FlipsideCrypto/near-models.git
synced 2026-02-06 13:56:44 +00:00
add: column in gold view
This commit is contained in:
parent
c6c4231b4b
commit
afa95ae059
@ -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 %}
|
||||
|
||||
5
models/descriptions/tx_succeeded.md
Normal file
5
models/descriptions/tx_succeeded.md
Normal file
@ -0,0 +1,5 @@
|
||||
{% docs tx_succeeded %}
|
||||
|
||||
Indicates whether the transaction failed or succeeded.
|
||||
|
||||
{% enddocs %}
|
||||
@ -24,6 +24,7 @@ SELECT
|
||||
gas_used,
|
||||
transaction_fee,
|
||||
attached_gas,
|
||||
tx_succeeded,
|
||||
tx_status
|
||||
FROM
|
||||
transactions
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user