mirror of
https://github.com/FlipsideCrypto/solana-models.git
synced 2026-02-06 17:01:59 +00:00
* 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
22 lines
625 B
SQL
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 %}
|