mirror of
https://github.com/FlipsideCrypto/sei-models.git
synced 2026-02-06 19:16:53 +00:00
* Sei txs, blocks, tx count pipeline * Streamline sei pipelines - XXX will be deleted with PROD deployment after approvals - Temp file will be deleted after UDFs are created * Add requirement and update block_number to block_id * Switch to block number * Remove old sources * Update loads and run times * Add prod integration
15 lines
377 B
SQL
15 lines
377 B
SQL
{% macro create_udfs() %}
|
|
{% if var("UPDATE_UDFS_AND_SPS") %}
|
|
{% set sql %}
|
|
CREATE schema if NOT EXISTS silver;
|
|
{{ create_udtf_get_base_table(
|
|
schema = "streamline"
|
|
) }}
|
|
{{ create_udf_get_chainhead() }}
|
|
{{ create_udf_bulk_json_rpc() }}
|
|
|
|
{% endset %}
|
|
{% do run_query(sql) %}
|
|
{% endif %}
|
|
{% endmacro %}
|