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

feat(enhanced websocket): Add transactionSubscribe and accountSubscribe #19

Merged
merged 8 commits into from
Jun 4, 2024

Conversation

0xBreath
Copy link
Contributor

Added support for geyser enhanced websockets.

There are two methods each with an example:

Tests pass, cargo fmt has been run, and all warnings have been cleaned.

@0xIchigo 0xIchigo changed the title feat(enhanced websocket) feat(enhanced websocket): Add transactionSubscribe and accountSubscribe May 16, 2024
@0xIchigo 0xIchigo added the enhancement New feature or request label May 16, 2024
@0xIchigo 0xIchigo self-requested a review May 16, 2024 08:00
Copy link
Collaborator

@0xIchigo 0xIchigo left a comment

Choose a reason for hiding this comment

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

Very based! The code is solid overall, I just have a few nitpicks here and there that could improve its overall quality. Also, I've tested the examples with a few real-world calls and can ensure that it works as intended. If possible, it would be nice if you could write up some test cases for transactionSubscribe and accountSubscribe in a test/test_websocket.rs file

.gitignore Outdated Show resolved Hide resolved
examples/enhanced_websocket_accounts.rs Outdated Show resolved Hide resolved
examples/enhanced_websocket_transactions.rs Outdated Show resolved Hide resolved
src/client.rs Show resolved Hide resolved
src/error.rs Outdated Show resolved Hide resolved
src/websocket.rs Show resolved Hide resolved
src/websocket.rs Outdated Show resolved Hide resolved
src/websocket.rs Outdated Show resolved Hide resolved
src/websocket.rs Show resolved Hide resolved
src/websocket.rs Outdated Show resolved Hide resolved
@0xIchigo 0xIchigo merged commit 338f435 into helius-labs:dev Jun 4, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants