From 5ecb01870e69c39a1ff2f7f8363d12f3eadf1de8 Mon Sep 17 00:00:00 2001 From: Jack Forgash <58153492+forgxyz@users.noreply.github.com> Date: Thu, 6 Jun 2024 21:20:42 -0600 Subject: [PATCH] add script field to fact transactions (#330) * add script field * add to yml --- models/gold/core/core__fact_transactions.sql | 3 +++ models/gold/core/core__fact_transactions.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/models/gold/core/core__fact_transactions.sql b/models/gold/core/core__fact_transactions.sql index a40d38e..dc7c186 100644 --- a/models/gold/core/core__fact_transactions.sql +++ b/models/gold/core/core__fact_transactions.sql @@ -17,6 +17,7 @@ WITH chainwalkers AS ( authorizers, count_authorizers, gas_limit, + NULL AS script, transaction_result, tx_succeeded, error_msg, @@ -43,6 +44,7 @@ streamline AS ( authorizers, count_authorizers, gas_limit, + script, OBJECT_CONSTRUCT( 'error', error_message, @@ -86,6 +88,7 @@ SELECT authorizers, count_authorizers, gas_limit, + script, transaction_result, tx_succeeded, error_msg, diff --git a/models/gold/core/core__fact_transactions.yml b/models/gold/core/core__fact_transactions.yml index 5ef1c41..0fe5444 100644 --- a/models/gold/core/core__fact_transactions.yml +++ b/models/gold/core/core__fact_transactions.yml @@ -85,6 +85,9 @@ models: column_type_list: - NUMBER + - name: SCRIPT + description: "{{ doc('script') }}" + - name: TRANSACTION_RESULT description: "{{ doc('transaction_result') }}" tests: