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

Split Status into FinalityStatus and ExecutionStatus #878

Merged
merged 3 commits into from
Jul 24, 2023

Conversation

joshklop
Copy link
Contributor

@joshklop joshklop commented Jul 2, 2023

No description provided.

@codecov
Copy link

codecov bot commented Jul 2, 2023

Codecov Report

Patch coverage: 61.53% and project coverage change: -0.30 ⚠️

Comparison is base (3ca4ace) 73.09% compared to head (3047618) 72.79%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #878      +/-   ##
==========================================
- Coverage   73.09%   72.79%   -0.30%     
==========================================
  Files          59       59              
  Lines        6255     6279      +24     
==========================================
- Hits         4572     4571       -1     
- Misses       1300     1319      +19     
- Partials      383      389       +6     
Impacted Files Coverage Δ
clients/feeder/transaction.go 100.00% <ø> (ø)
rpc/block.go 63.63% <0.00%> (-6.58%) ⬇️
rpc/transaction.go 25.80% <62.50%> (+7.62%) ⬆️
rpc/handlers.go 73.60% <68.18%> (-0.16%) ⬇️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@joshklop
Copy link
Contributor Author

joshklop commented Jul 4, 2023

Resolves #881

@joshklop joshklop mentioned this pull request Jul 9, 2023
@joshklop joshklop linked an issue Jul 10, 2023 that may be closed by this pull request
@joshklop joshklop changed the title RPC v0.4.0 Split Status into FinalityStatus and ExecutionStatus Jul 10, 2023
@joshklop joshklop marked this pull request as ready for review July 10, 2023 18:15
@joshklop joshklop requested review from a team and IronGauntlets and removed request for a team July 10, 2023 18:16
@IronGauntlets IronGauntlets self-assigned this Jul 13, 2023
rpc/handlers_test.go Outdated Show resolved Hide resolved
rpc/handlers.go Show resolved Hide resolved
Copy link
Contributor

@omerfirmak omerfirmak left a comment

Choose a reason for hiding this comment

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

LGTM

@joshklop joshklop force-pushed the joshklop/rpc-0.4.0 branch 3 times, most recently from 7eb4a25 to 3c3ee0f Compare July 21, 2023 13:46
Makes room for separate transaction statuses later
We need the `execution_status` and `finality_status` fields on receipts.
- Add ExecutionStatus to receipt type
- Replace Status with FinalityStatus on receipt type
- Return a struct from juno_getTransactionStatus containing the
  execution and finality statuses
@joshklop joshklop merged commit 0dafb22 into main Jul 24, 2023
@joshklop joshklop deleted the joshklop/rpc-0.4.0 branch July 24, 2023 15:29
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.

Split status in RPC v0.4
3 participants