mirror of
https://github.com/FlipsideCrypto/bsc-models.git
synced 2026-02-06 16:06:43 +00:00
* bsc decoding base * Added the realtime model (#48) updated * add complete * remove limiter * coalesce * add jobs * add the streamline configs (#51) --------- Co-authored-by: xiuy001 <97179309+xiuy001@users.noreply.github.com>
23 lines
648 B
SQL
23 lines
648 B
SQL
{% macro create_udfs() %}
|
|
{% if var("UPDATE_UDFS_AND_SPS") %}
|
|
{% set sql %}
|
|
CREATE schema if NOT EXISTS silver;
|
|
{{ create_js_hex_to_int() }};
|
|
{{ create_udf_hex_to_int(
|
|
schema = "public"
|
|
) }}
|
|
{{ create_udtf_get_base_table(
|
|
schema = "streamline"
|
|
) }}
|
|
{{ create_udf_get_chainhead() }}
|
|
{{ create_udf_json_rpc() }}
|
|
{{ create_udf_api() }}
|
|
{{ create_udf_decode_array_string() }}
|
|
{{ create_udf_decode_array_object() }}
|
|
{{ create_udf_bulk_decode_logs() }}
|
|
|
|
{% endset %}
|
|
{% do run_query(sql) %}
|
|
{% endif %}
|
|
{% endmacro %}
|