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

starknet_subscribeTransactionStatus websocket method #2210

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pnowosie
Copy link
Contributor

@pnowosie pnowosie commented Oct 11, 2024

Fixes #2209
This is based on #2211

Copy link

codecov bot commented Oct 11, 2024

Codecov Report

Attention: Patch coverage is 78.89908% with 23 lines in your changes missing coverage. Please review.

Project coverage is 73.86%. Comparing base (4ff174d) to head (e65a8a4).

Files with missing lines Patch % Lines
rpc/events.go 77.50% 13 Missing and 5 partials ⚠️
jsonrpc/server.go 66.66% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2210      +/-   ##
==========================================
- Coverage   74.38%   73.86%   -0.53%     
==========================================
  Files         109      110       +1     
  Lines       11493    11593     +100     
==========================================
+ Hits         8549     8563      +14     
- Misses       2278     2362      +84     
- Partials      666      668       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pnowosie pnowosie force-pushed the pnowosie/2209-subscribe-tx-status-ws branch 2 times, most recently from c5eb695 to abfec15 Compare October 22, 2024 12:07
@pnowosie pnowosie marked this pull request as ready for review October 23, 2024 11:02
@pnowosie pnowosie force-pushed the pnowosie/2209-subscribe-tx-status-ws branch from dae4ff2 to bffd2bf Compare October 23, 2024 12:13
rpc/handlers.go Outdated Show resolved Hide resolved
return err
}

func (h *Handler) SubscribeTxnStatus(ctx context.Context, txHash felt.Felt, _ *BlockID) (*SubscriptionID, *jsonrpc.Error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

As per the specs, we also need to support historical blocks. Or is it not possible?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not possible. I added a comment explaining this.

@pnowosie pnowosie force-pushed the pnowosie/2209-subscribe-tx-status-ws branch from 0ce1ae2 to b170da1 Compare October 29, 2024 12:12
@pnowosie pnowosie force-pushed the pnowosie/2209-subscribe-tx-status-ws branch from b170da1 to b617595 Compare November 13, 2024 12:59
@pnowosie pnowosie force-pushed the pnowosie/2209-subscribe-tx-status-ws branch 3 times, most recently from cf082b0 to 6b842a7 Compare December 13, 2024 13:08
@pnowosie pnowosie force-pushed the pnowosie/2209-subscribe-tx-status-ws branch from 6b842a7 to e65a8a4 Compare December 13, 2024 13:53
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.

Implement starknet_subscribeTransactionStatus websocket method
2 participants