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

Rosetta return generic unknown operation type for future transaction types #9030

Conversation

xin-hedera
Copy link
Collaborator

@xin-hedera xin-hedera commented Aug 15, 2024

Description:

This PR improves Rosetta to return UNKNOWN as transaction type for new HAPI transactions

  • Map any new transaction type to UNKNOWN
  • Update TransactionRepository to show UNKNOWN operation type
  • Bump go-ethereum to v1.14.8 and remove btcd version override
  • Remove tiff version override

Related issue(s):

Fixes #8320

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Xin Li <xin@swirldslabs.com>
Signed-off-by: Xin Li <xin@swirldslabs.com>
@xin-hedera xin-hedera self-assigned this Aug 15, 2024
@xin-hedera xin-hedera added enhancement Type: New feature rosetta Area: Rosetta API labels Aug 15, 2024
@xin-hedera xin-hedera added this to the 0.112.0 milestone Aug 15, 2024
@xin-hedera xin-hedera marked this pull request as ready for review August 15, 2024 14:13
@xin-hedera xin-hedera requested a review from a team August 15, 2024 14:14
Copy link

codecov bot commented Aug 15, 2024

Codecov Report

Attention: Patch coverage is 92.59259% with 2 lines in your changes missing coverage. Please review.

Project coverage is 92.14%. Comparing base (30b22b1) to head (83cd242).
Report is 7 commits behind head on main.

Files Patch % Lines
...edera-mirror-rosetta/app/domain/types/constants.go 92.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9030      +/-   ##
============================================
+ Coverage     92.12%   92.14%   +0.02%     
- Complexity     7637     7651      +14     
============================================
  Files           929      929              
  Lines         30567    30608      +41     
  Branches       3731     3733       +2     
============================================
+ Hits          28159    28204      +45     
+ Misses         1572     1569       -3     
+ Partials        836      835       -1     

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

steven-sheehy
steven-sheehy previously approved these changes Aug 15, 2024
Copy link
Member

@steven-sheehy steven-sheehy left a comment

Choose a reason for hiding this comment

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

LGTM

jnels124
jnels124 previously approved these changes Aug 15, 2024
Copy link
Contributor

@jnels124 jnels124 left a comment

Choose a reason for hiding this comment

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

LGTM

edwin-greene
edwin-greene previously approved these changes Aug 15, 2024
Copy link
Contributor

@edwin-greene edwin-greene left a comment

Choose a reason for hiding this comment

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

Looks great!

mgoelswirlds
mgoelswirlds previously approved these changes Aug 15, 2024
Copy link
Member

@mgoelswirlds mgoelswirlds left a comment

Choose a reason for hiding this comment

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

LGTM

- remove btcd/btcec override
- remove tiff override

Signed-off-by: Xin Li <xin@swirldslabs.com>
Signed-off-by: Xin Li <xin@swirldslabs.com>
Copy link

sonarcloud bot commented Aug 15, 2024

@xin-hedera xin-hedera merged commit c3eea1a into main Aug 16, 2024
29 checks passed
@xin-hedera xin-hedera deleted the 8320-rosetta-return-generic-unknown-operation-type-for-future-hapi-transaction-types branch August 16, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type: New feature rosetta Area: Rosetta API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rosetta - return generic UNKNOWN operation type for future HAPI transaction types
5 participants