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

Allow "." in the expressions #22

Merged
merged 4 commits into from
May 17, 2024

Conversation

YaroShkvorets
Copy link
Contributor

Antelope chains allow "." in the account names and it's natural to use account names in blockIndex keys. However, when using such account names in the blockFilter, the parser fails. The alternative is to use quotes but it's not obvious and not great DX.

This PR makes parser accept "." in the expressions.

@colindickson colindickson requested a review from ArnaudBger May 17, 2024 13:41
@maoueh
Copy link
Contributor

maoueh commented May 17, 2024

Does the substreams Go version does accepts it? We will need to align to ensure the semantics is the same. We have a parser fo Go at https://github.com/streamingfast/substreams/tree/develop/sqe.

I'll check quickly.

@ArnaudBger
Copy link
Contributor

Hey @YaroShkvorets, based on our go parser, I have updated our parser rule. Almost all characters should be accepted now (dot included !)

@ArnaudBger ArnaudBger merged commit f49c1a2 into streamingfast:develop May 17, 2024
1 check passed
@YaroShkvorets YaroShkvorets deleted the feature/allow_dot branch May 17, 2024 15:55
@YaroShkvorets
Copy link
Contributor Author

Great, thanks.

@ArnaudBger
Copy link
Contributor

It's released on v0.5.18 !

@YaroShkvorets
Copy link
Contributor Author

Tested, works well.

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.

3 participants