solana-models/macros/create_udfs.sql
desmond-hui 8878e9f5db
An 1882/solana backfill (#84)
* wip

* streamline models and resources to run txs backfill

* models for solana blocks/txs/rewards raw data loading

* add tasks, they do not run w/ dbt run-operation cmd

* make tasks executable by dbt run-operation

* add basic tests for streamline materialized models
2022-08-18 11:18:57 -07:00

22 lines
625 B
SQL

{% macro create_udfs() %}
{% set sql %}
{{ udf_bulk_get_decoded_instructions_data() }};
{{ udf_bulk_get_validator_metadata() }};
{{ udf_bulk_get_stake_account_tx_ids() }};
{{ udf_bulk_get_txs() }};
{{ udf_bulk_get_blocks() }};
{{ udf_bulk_get_block_txs() }};
{{ udf_bulk_get_block_rewards() }};
{{ create_udf_ordered_signers(
schema = "silver"
) }}
{{ create_udf_get_all_inner_instruction_events(
schema = "silver"
) }}
{{ create_udf_get_account_balances_index(
schema = "silver"
) }}
{% endset %}
{% do run_query(sql) %}
{% endmacro %}