payload function

This commit is contained in:
Eric Laurello 2023-11-08 11:47:26 -05:00
parent bfd06a9b0d
commit 2bcce26763
10 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,5 @@
{% docs payload_function %}
The function that is being called in the transaction payload.
{% enddocs %}

View File

@ -10,6 +10,7 @@ SELECT
tx_hash,
success,
tx_type,
payload_function,
change_index,
change_data,
change_type,

View File

@ -15,7 +15,9 @@ models:
- name: SUCCESS
description: '{{ doc("success") }}'
- name: TX_TYPE
description: '{{ doc("tx_type") }}'
description: '{{ doc("tx_type") }}'
- name: PAYLOAD_FUNCTION
description: '{{ doc("payload_function") }}'
- name: CHANGE_INDEX
description: '{{ doc("change_index") }}'
- name: CHANGE_DATA

View File

@ -10,6 +10,7 @@ SELECT
tx_hash,
success,
tx_type,
payload_function,
event_index,
event_type,
event_address,

View File

@ -15,7 +15,9 @@ models:
- name: SUCCESS
description: '{{ doc("success") }}'
- name: TX_TYPE
description: '{{ doc("tx_type") }}'
description: '{{ doc("tx_type") }}'
- name: PAYLOAD_FUNCTION
description: '{{ doc("payload_function") }}'
- name: EVENT_INDEX
description: '{{ doc("event_index") }}'
- name: EVENT_TYPE

View File

@ -13,6 +13,7 @@ SELECT
sender,
signature,
payload,
payload_function,
changes,
events,
gas_unit_price,

View File

@ -22,6 +22,8 @@ models:
description: '{{ doc("signature") }}'
- name: PAYLOAD
description: '{{ doc("payload") }}'
- name: PAYLOAD_FUNCTION
description: '{{ doc("payload_function") }}'
- name: CHANGES
description: '{{ doc("changes") }}'
- name: EVENTS

View File

@ -15,6 +15,7 @@ SELECT
version,
success,
A.tx_type,
A.payload_function,
b.index AS change_index,
b.value :data :data AS change_data,
b.value :type :: STRING AS change_type,

View File

@ -15,6 +15,7 @@ SELECT
version,
success,
A.tx_type,
A.payload_function,
b.index AS event_index,
b.value :type :: STRING AS event_type,
SPLIT_PART(

View File

@ -29,6 +29,7 @@ SELECT
b.value :id :: STRING AS id, -- only bmt
b.value :max_gas_amount :: bigint AS max_gas_amount, -- only ut
b.value :payload AS payload, -- only ut
b.value :payload:function::STRING AS payload_function, -- only ut
b.value :previous_block_votes_bitvec AS previous_block_votes_bitvec, --only bmt
b.value :proposer :: STRING AS proposer, --only bmt
b.value :round :: INT AS ROUND, --only bmt