Skip to content
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

update function signature for generic events #362

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ShahNewazKhan
Copy link
Contributor

  • Updates stored definition of decode_near_events udf function signature to generic events

@ShahNewazKhan ShahNewazKhan marked this pull request as draft October 15, 2024 16:21
@ShahNewazKhan ShahNewazKhan marked this pull request as ready for review October 15, 2024 16:28
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants