{% macro create_udfs() %}
    {% set sql %}
    {% if target.database != "SOLANA_COMMUNITY_DEV" %}
        {{ udf_bulk_get_decoded_instructions_data() }};
        {{ udf_bulk_get_validator_metadata() }};
        {{ udf_bulk_get_blocks() }};
        {{ udf_bulk_get_block_txs() }};
        {{ udf_bulk_get_block_rewards() }};
    {% endif %}

    {{ create_udf_ordered_signers(
        schema = "silver"
    ) }}
    {{ create_udf_get_all_inner_instruction_events(
        schema = "silver"
    ) }}
    {{ create_udf_get_account_balances_index(
        schema = "silver"
    ) }}
    {{ 
        create_udf_get_all_inner_instruction_program_ids(
        schema = "silver"
    ) }}
    {% endset %}
    {% do run_query(sql) %}
{% endmacro %}
