From ffcb6d14926a159e224af17b45c08b815215d7de Mon Sep 17 00:00:00 2001 From: Jack Forgash <58153492+forgxyz@users.noreply.github.com> Date: Thu, 6 Jun 2024 22:34:28 -0600 Subject: [PATCH] add args to core fact_transactions (#331) --- models/descriptions/arguments.md | 2 +- models/gold/core/core__fact_transactions.sql | 3 +++ models/gold/core/core__fact_transactions.yml | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/models/descriptions/arguments.md b/models/descriptions/arguments.md index 7ec1652..3f78ed8 100644 --- a/models/descriptions/arguments.md +++ b/models/descriptions/arguments.md @@ -1,5 +1,5 @@ {% docs arguments %} -The arguments included in the transaction body. +The arguments passed into the Cadence script when the transaction was submitted. {% enddocs %} diff --git a/models/gold/core/core__fact_transactions.sql b/models/gold/core/core__fact_transactions.sql index dc7c186..56d38cd 100644 --- a/models/gold/core/core__fact_transactions.sql +++ b/models/gold/core/core__fact_transactions.sql @@ -18,6 +18,7 @@ WITH chainwalkers AS ( count_authorizers, gas_limit, NULL AS script, + NULL AS arguments, transaction_result, tx_succeeded, error_msg, @@ -45,6 +46,7 @@ streamline AS ( count_authorizers, gas_limit, script, + arguments, OBJECT_CONSTRUCT( 'error', error_message, @@ -89,6 +91,7 @@ SELECT count_authorizers, gas_limit, script, + arguments, 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 0fe5444..bcf72f9 100644 --- a/models/gold/core/core__fact_transactions.yml +++ b/models/gold/core/core__fact_transactions.yml @@ -88,6 +88,9 @@ models: - name: SCRIPT description: "{{ doc('script') }}" + - name: ARGUMENTS + description: "{{ doc('arguments') }}" + - name: TRANSACTION_RESULT description: "{{ doc('transaction_result') }}" tests: