mirror of
https://github.com/FlipsideCrypto/blast-models.git
synced 2026-02-06 13:56:44 +00:00
* updated the blast model to use release 1.2 * removed user.ymal * chainhead history and package temp * v1.22 * udf name * package upgrade, config in dbt_project * chainhead * updates for quantum and standardization * remove limits * removed the 2nd param in the receipts model * if data_call_function v2 * block number column adj * removed param --------- Co-authored-by: drethereum <trevor.wenokur@gmail.com> Co-authored-by: drethereum <71602799+drethereum@users.noreply.github.com>
22 lines
940 B
SQL
22 lines
940 B
SQL
{% macro create_udf_bulk_rest_api_v2() %}
|
|
CREATE
|
|
OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_rest_api_v2(
|
|
json OBJECT
|
|
) returns ARRAY api_integration =
|
|
{% if target.name == "prod" %}
|
|
aws_blast_api AS 'https://42gzudc5si.execute-api.us-east-1.amazonaws.com/prod/udf_bulk_rest_api'
|
|
{% else %}
|
|
aws_blast_api_dev AS 'https://y9d0tuavh6.execute-api.us-east-1.amazonaws.com/stg/udf_bulk_rest_api'
|
|
{%- endif %};
|
|
{% endmacro %}
|
|
|
|
{% macro create_udf_bulk_decode_logs() %}
|
|
CREATE
|
|
OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_decode_logs(
|
|
json OBJECT
|
|
) returns ARRAY api_integration = {% if target.name == "prod" %}
|
|
aws_blast_api AS 'https://42gzudc5si.execute-api.us-east-1.amazonaws.com/prod/bulk_decode_logs'
|
|
{% else %}
|
|
aws_blast_api_dev AS'https://y9d0tuavh6.execute-api.us-east-1.amazonaws.com/stg/bulk_decode_logs'
|
|
{%- endif %};
|
|
{% endmacro %} |