add signer info to transfers (#861)
Some checks failed
docs_update / run_dbt_jobs (push) Has been cancelled
docs_update / notify-failure (push) Has been cancelled
dbt_run_full_observability / run_dbt_jobs (push) Has been cancelled
dbt_run_full_observability / notify-failure (push) Has been cancelled
dbt_run_streamline_solscan_token_list / run_dbt_jobs (push) Has been cancelled
dbt_run_streamline_solscan_token_list / notify-failure (push) Has been cancelled
dbt_test_scheduled_weekly / run_dbt_jobs (push) Has been cancelled
dbt_test_scheduled_weekly / notify-failure (push) Has been cancelled
dbt_run_scheduled_daily / run_dbt_jobs (push) Has been cancelled
dbt_run_streamline_validator_vote_program_accounts_snapshot / run_dbt_jobs (push) Has been cancelled
dbt_run_streamline_validator_vote_accounts_snapshot / run_dbt_jobs (push) Has been cancelled
dbt_run_streamline_validator_metadata_snapshot / run_dbt_jobs (push) Has been cancelled
dbt_run_streamline_validators_list_snapshot / run_dbt_jobs (push) Has been cancelled
dbt_run_macro_get_compressed_nft / run_dbt_jobs (push) Has been cancelled
dbt_run_scheduled_daily / notify-failure (push) Has been cancelled
dbt_run_streamline_validator_vote_program_accounts_snapshot / notify-failure (push) Has been cancelled
dbt_run_streamline_validator_vote_accounts_snapshot / notify-failure (push) Has been cancelled
dbt_run_streamline_validator_metadata_snapshot / notify-failure (push) Has been cancelled
dbt_run_streamline_validators_list_snapshot / notify-failure (push) Has been cancelled
dbt_run_macro_get_compressed_nft / notify-failure (push) Has been cancelled
dbt_run_dev_refresh / run_dbt_jobs (push) Has been cancelled
dbt_test_scheduled / run_dbt_jobs (push) Has been cancelled
dbt_test_scheduled / notify-failure (push) Has been cancelled
dbt_run_idls_history / run_dbt_jobs (push) Has been cancelled
dbt_run_helius_metadata / run_dbt_jobs (push) Has been cancelled
dbt_run_idls_history / notify-failure (push) Has been cancelled
dbt_run_helius_metadata / notify-failure (push) Has been cancelled
dbt_test_intraday / run_dbt_jobs (push) Has been cancelled
dbt_test_scheduled_hourly / run_dbt_jobs (push) Has been cancelled
dbt_test_intraday / notify-failure (push) Has been cancelled
dbt_test_scheduled_hourly / notify-failure (push) Has been cancelled

This commit is contained in:
tarikceric 2025-07-28 12:36:23 -06:00 committed by GitHub
parent e6437be363
commit 45aa6f67d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 18 additions and 0 deletions

View File

@ -7,6 +7,7 @@ SELECT
a.block_timestamp,
a.block_id,
a.tx_id,
a.signers[0] AS signer,
COALESCE(SPLIT_PART(a.INDEX :: text, '.', 1) :: INT, a.INDEX :: INT) AS index,
NULLIF(SPLIT_PART(a.INDEX :: text, '.', 2), '') :: INT AS inner_index,
a.tx_from,

View File

@ -10,6 +10,8 @@ models:
description: "{{ doc('block_id') }}"
- name: TX_ID
description: "{{ doc('tx_id') }}"
- name: SIGNER
description: "{{ doc('signer') }}"
- name: INDEX
description: "{{ doc('index') }}"
- name: INNER_INDEX

View File

@ -7,6 +7,7 @@ SELECT
block_timestamp,
block_id,
tx_id,
signers,
index,
tx_from,
tx_to,

View File

@ -15,6 +15,10 @@ models:
description: "{{ doc('tx_id') }}"
tests:
- dbt_expectations.expect_column_to_exist
- name: SIGNERS
description: "{{ doc('signers') }}"
tests:
- dbt_expectations.expect_column_to_exist
- name: INDEX
description: "{{ doc('index') }}"
tests:

View File

@ -26,6 +26,7 @@ WITH base_transfers_i AS (
block_id,
block_timestamp,
tx_id,
signers,
INDEX::string as index,
event_type,
program_id,
@ -72,6 +73,7 @@ AND
block_id,
block_timestamp,
tx_id,
signers,
CONCAT(
instruction_index,
'.',
@ -221,6 +223,7 @@ spl_transfers AS (
e.block_id,
e.block_timestamp,
e.tx_id,
e.signers,
e.index,
e.program_id,
e.succeeded,
@ -290,6 +293,7 @@ sol_transfers AS (
e.block_id,
e.block_timestamp,
e.tx_id,
e.signers,
e.index,
e.program_id,
e.succeeded,
@ -315,6 +319,7 @@ SELECT
block_id,
block_timestamp,
tx_id,
signers,
program_id,
succeeded,
INDEX,
@ -338,6 +343,7 @@ SELECT
block_id,
block_timestamp,
tx_id,
signers,
program_id,
succeeded,
INDEX,

View File

@ -28,6 +28,10 @@ models:
description: "{{ doc('tx_id') }}"
tests:
- not_null: *recent_date_filter
- name: SIGNERS
description: "{{ doc('signers') }}"
tests:
- not_null: *recent_date_filter
- name: SUCCEEDED
description: "{{ doc('tx_succeeded') }}"
tests: