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

feat: Use persistent messages for withdraws from ICON #432

Merged
merged 3 commits into from
Aug 29, 2024

Conversation

AntonAndell
Copy link
Collaborator

Description:

Commit Message

type: commit message

see the guidelines for commit messages.

Changelog Entry

version: <log entry>

Checklist:

  • I have performed a self-review of my own code
  • I have documented my code in accordance with the documentation guidelines
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have run the unit tests
  • I only have one commit (if not, squash them into one commit).
  • I have a descriptive commit message that adheres to the commit message guidelines

Please review the CONTRIBUTING.md file for detailed contributing guidelines.

@AntonAndell AntonAndell linked an issue Jul 4, 2024 that may be closed by this pull request
Copy link

codecov bot commented Jul 4, 2024

Codecov Report

Attention: Patch coverage is 73.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 72.71%. Comparing base (8d11c8a) to head (8d02466).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...ced/score/util/xcall/manager/XCallManagerImpl.java 25.00% 3 Missing ⚠️
...core/tokens/balanceddollar/BalancedDollarImpl.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #432      +/-   ##
============================================
- Coverage     73.39%   72.71%   -0.68%     
+ Complexity     1874     1593     -281     
============================================
  Files           129      114      -15     
  Lines          9031     7703    -1328     
  Branches       1091      943     -148     
============================================
- Hits           6628     5601    -1027     
+ Misses         1936     1700     -236     
+ Partials        467      402      -65     
Flag Coverage Δ
java 72.71% <73.33%> (-0.68%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@AntonAndell AntonAndell changed the title 415 use xcall 21 features in balanced feat: Use persistent messages for withdraws from ICON Jul 4, 2024
@AntonAndell AntonAndell added the enhancement New feature or request label Jul 5, 2024
@AntonAndell AntonAndell requested a review from TRSSMG July 5, 2024 05:43
@TRSSMG
Copy link
Collaborator

TRSSMG commented Aug 14, 2024

Main Changes Noticed

  1. sendCall method name in xcall mock is renamed to recvCall . New sendCall method created for persistent message
  2. sendPersistentCall is introduced in XcallUtils to replace the sendCall to support the persistent call, which does not support the rollback
  3. On calling daofund contract to claim the xcall feee rollback parameter is sent ’false’ replacing previous ‘true’ as the call is now persistent
  4. In the xcall manager contract new method getProtocolsRaw is introduced to get the rlpEncoded protocols for creating envelope for persistent message
  5. Rollback massages removed

Tested :
Ran integration tests for asset manager , loans and rewards contracts

Findings

Suggestions:

  1. Unused method sendCall in xcallUtils could be removed
    no significant findings

Copy link
Collaborator

@TRSSMG TRSSMG left a comment

Choose a reason for hiding this comment

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

all good

@AntonAndell AntonAndell force-pushed the 415-use-xcall-21-features-in-balanced branch from a1919c2 to 8d02466 Compare August 29, 2024 05:09
@AntonAndell AntonAndell merged commit 959b757 into main Aug 29, 2024
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use xCall 2.1 features in Balanced
2 participants