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

v2.35.0 - HIP-745 implementation #866

Closed
wants to merge 3 commits into from
Closed

v2.35.0 - HIP-745 implementation #866

wants to merge 3 commits into from

Conversation

NicolaMirchev
Copy link
Contributor

Description:
Transactions can now be serialized without freezing them and continue modifying them after deserialization

This PR modifies ... in order to support ...

  • Added support for HIP-745
  • Added integration tests

Checklist

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

…nsaction fields (#857)

* Implemented initial logic about serializing a transaction to bytes, if it is not locked

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

* Eddited  to consider that transaction may not be signed. Refactored  func location eddited testcase

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

* Refactored all transactions

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

* Added one example with token transfer transaction

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

* Removed lint warnings

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

* Refactored  to check if signedBodyBytes is empty instead of

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

* Added some testcases

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

* Added tests and comments

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

* Added a check inside 'account_create_transaction' for stakedNodeID

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

* Refactored examples directories

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

---------

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>
* Added more integration test for different transaction types

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

* Change

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

* fixed build error

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

* Refactor

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

* Fixed test

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

* Implemeted PR suggestions

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

* Eddited FileAppendTest

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>

---------

Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>
Signed-off-by: NikolaMirchev <nikola.mirchev@limechain.tech>
Copy link

sonarqubecloud bot commented Feb 6, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@codecov-commenter
Copy link

Codecov Report

Attention: 171 lines in your changes are missing coverage. Please review.

Comparison is base (c7cb717) 72.47% compared to head (1b94c65) 72.24%.

Files Patch % Lines
transaction.go 72.28% 15 Missing and 8 partials ⚠️
account_create_transaction.go 53.33% 5 Missing and 2 partials ⚠️
account_allowance_adjust_transaction.go 0.00% 6 Missing ⚠️
freeze_transaction.go 0.00% 6 Missing ⚠️
prng_transaction.go 0.00% 6 Missing ⚠️
token_pause_transaction.go 0.00% 6 Missing ⚠️
account_allowance_approve_transaction.go 50.00% 2 Missing and 1 partial ⚠️
account_allowance_delete_transaction.go 50.00% 2 Missing and 1 partial ⚠️
account_delete_transaction.go 50.00% 2 Missing and 1 partial ⚠️
account_update_transaction.go 50.00% 2 Missing and 1 partial ⚠️
... and 35 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #866      +/-   ##
==========================================
- Coverage   72.47%   72.24%   -0.24%     
==========================================
  Files         164      164              
  Lines       26202    26517     +315     
==========================================
+ Hits        18991    19156     +165     
- Misses       6571     6679     +108     
- Partials      640      682      +42     

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

Copy link
Contributor

@gsstoykov gsstoykov left a comment

Choose a reason for hiding this comment

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

LGTM.

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.

3 participants