Skip to content

update function signature for generic events #362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions macros/streamline_udfs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
{%- endif %};
{% endmacro %}

{% macro create_udf_decode_withrawal_event() %}
{% macro create_udf_decode_near_event() %}
CREATE
OR REPLACE EXTERNAL FUNCTION streamline.udf_decode_near_event(
DATA STRING
DATA STRING, EVENT_STRUCT STRING
) returns ARRAY api_integration = aws_near_api_stg_v2 AS {% if target.name == "prod" %}
''
{% else %}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note - route also updated from /decode_withdrawal_event to /decode_near_event (re: uri in line 71).
However, I think a better name is decode_aurora_event as this is specifically the aurora contract on Near.

Expand Down