core column changes and docs

This commit is contained in:
drethereum 2024-12-12 12:57:14 -07:00
parent 08b97f55f0
commit ed98f5a32f
6 changed files with 15 additions and 6 deletions

View File

@ -149,4 +149,10 @@ A string of a 256-bit hash encoded as a hexadecimal
A string of the base fee encoded in hexadecimal format. Please note that this response field will not be included in a block requested before the EIP-1559 upgrade
{% enddocs %}
{% docs evm_withdrawals_root %}
The root of the withdrawals trie.
{% enddocs %}

View File

@ -119,7 +119,7 @@ This column is being deprecated for standardization purposes. Please remove from
{% enddocs %}
{% docs evm_column_deprecation_notice_withdrawals_root %}
{% docs evm_column_deprecation_notice_data %}
This column is being deprecated for standardization purposes. Please remove from your queries by February 3, 2025.

View File

@ -25,6 +25,8 @@ SELECT
state_root, --new column
transactions_root, --new column
logs_bloom, --new column
base_fee_per_gas, --new column
withdrawals_root,
blocks_id AS fact_blocks_id,
GREATEST(
A.inserted_timestamp,
@ -75,8 +77,7 @@ SELECT
transactions_root,
'uncles',
uncles
) AS block_header_json, --deprecate
withdrawals_root --deprecate
) AS block_header_json --deprecate
FROM
{{ ref('silver__blocks') }} A
LEFT JOIN {{ ref('silver__tx_count') }}

View File

@ -57,4 +57,6 @@ models:
- name: MODIFIED_TIMESTAMP
description: '{{ doc("evm_modified_timestamp") }}'
- name: WITHDRAWALS_ROOT
description: '{{ doc("evm_column_deprecation_notice_withdrawals_root") }}'
description: '{{ doc("evm_withdrawals_root") }}'
- name: BASE_FEE_PER_GAS
description: '{{ doc("evm_base_fee_per_gas") }}'

View File

@ -17,7 +17,6 @@ SELECT
TYPE,
trace_address, --new column
sub_traces,
DATA,
VALUE,
value_precise_raw,
value_precise,
@ -42,6 +41,7 @@ SELECT
) AS modified_timestamp,
identifier, --deprecate
tx_status, --deprecate
DATA, --deprecate
trace_status --deprecate
FROM
{{ ref('silver__fact_traces2') }}

View File

@ -39,7 +39,7 @@ models:
- name: TRACE_ADDRESS
description: '{{ doc("evm_trace_address") }}'
- name: DATA
description: '{{ doc("evm_traces_call_data") }}'
description: '{{ doc("evm_column_deprecation_notice_data") }}'
- name: TX_STATUS
description: '{{ doc("evm_column_deprecation_notice_tx_status") }}'
- name: TX_SUCCEEDED