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

fix(grpc): merge raw transaction methods to one rpc method #1500

Merged
merged 22 commits into from
Sep 24, 2024

Conversation

Ja7ad
Copy link
Contributor

@Ja7ad Ja7ad commented Sep 10, 2024

Description

Simplify Transaction APIs by Merging GetRawXTransaction Methods Using oneof in Protocol Buffers

Related issue(s)

@Ja7ad Ja7ad requested a review from b00f September 10, 2024 06:20
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

Attention: Patch coverage is 72.85714% with 19 lines in your changes missing coverage. Please review.

Project coverage is 75.16%. Comparing base (dcdb8bf) to head (f8892f1).
Report is 20 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1500      +/-   ##
==========================================
- Coverage   75.20%   75.16%   -0.05%     
==========================================
  Files         223      231       +8     
  Lines       11654    12186     +532     
==========================================
+ Hits         8764     9159     +395     
- Misses       2461     2584     +123     
- Partials      429      443      +14     

Copy link
Contributor

@maxipaz maxipaz left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@kehiy kehiy left a comment

Choose a reason for hiding this comment

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

LGTM.

@b00f
Copy link
Collaborator

b00f commented Sep 12, 2024

@Ja7ad Are you sure this won't break the current behaviour of JSON-RPC? Please check

@Ja7ad
Copy link
Contributor Author

Ja7ad commented Sep 12, 2024

@Ja7ad Are you sure this won't break the current behaviour of JSON-RPC? Please check

I checked it.

@Ja7ad
Copy link
Contributor Author

Ja7ad commented Sep 16, 2024

@b00f Done

@Ja7ad
Copy link
Contributor Author

Ja7ad commented Sep 22, 2024

@b00f Please check removed duplicate payload.

www/grpc/transaction.go Outdated Show resolved Hide resolved
www/grpc/transaction.go Outdated Show resolved Hide resolved
@b00f
Copy link
Collaborator

b00f commented Sep 23, 2024

I think we should find a way to use tx-builder here.

@b00f b00f merged commit 90fdcc9 into pactus-project:main Sep 24, 2024
10 checks passed
@alidevjimmy
Copy link
Contributor

@b00f do we want to revert all changes in this PR or just remove deprecates for that four methods?

@b00f
Copy link
Collaborator

b00f commented Oct 17, 2024

  1. remove deprecates
  2. remove get_raw_transaction

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.

Simplify Transaction APIs by Merging GetRawXTransaction Methods Using oneof in Protocol Buffers
5 participants