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

sdk/tx-result: print tx events if any #4347

Merged
merged 2 commits into from
Feb 6, 2025
Merged

sdk/tx-result: print tx events if any #4347

merged 2 commits into from
Feb 6, 2025

Conversation

tzemanovic
Copy link
Member

Describe your changes

Print events emitted by a tx, if any.

Example output of namadac tx-result:

Checking if tx ADCB491136F8699069A816F15111FFA984B5B768E886E077A911C00AB16BD439 is applied...
Transaction batch ADCB491136F8699069A816F15111FFA984B5B768E886E077A911C00AB16BD439 was applied at height 580.
Batch results:
Transaction DE55BEA23344962AFB8161CF73D3D8B026DD712AFBA73DC523A2FFE4DE5B0770 was successfully applied.
Events:
   - tx - token/transfer:
     - post-balances: [[["internal-address/tnam1qgqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqc8j2fp","tnam1qxgfw7myv4dh0qna4hq0xdg6lx77fzl7dcem8h7e"],"100000000096"],[["internal-address/tnam1qyczahj5gmtsv694q2wngsl00qjpyxyyrsrtq5yk","tnam1qxgfw7myv4dh0qna4hq0xdg6lx77fzl7dcem8h7e"],"1900075012169"]]
     - source-accounts: [[["internal-address/tnam1qgqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqc8j2fp","tnam1qxgfw7myv4dh0qna4hq0xdg6lx77fzl7dcem8h7e"],"20787578"]]
     - target-accounts: [[["internal-address/tnam1qyczahj5gmtsv694q2wngsl00qjpyxyyrsrtq5yk","tnam1qxgfw7myv4dh0qna4hq0xdg6lx77fzl7dcem8h7e"],"20787578"]]
     - token-event-descriptor: pos-claim-rewards
 The batch consumed 16513 gas units.

Checklist before merging

  • If this PR has some consensus breaking changes, I added the corresponding breaking:: labels
    • This will require 2 reviewers to approve the changes
  • If this PR requires changes to the docs or specs, a corresponding PR is opened in the namada-docs repo
    • Relevant PR if applies:
  • If this PR affects services such as namada-indexer or namada-masp-indexer, a corresponding PR is opened in that repo
    • Relevant PR if applies:

@tzemanovic tzemanovic changed the title sdk/tx: print tx events if any sdk/tx-result: print tx events if any Feb 6, 2025
@tzemanovic tzemanovic requested a review from grarco February 6, 2025 13:13
@tzemanovic tzemanovic added client SDK backport-libs-0.47 Backport libraries to 0.47 maintenance branch labels Feb 6, 2025
@tzemanovic tzemanovic marked this pull request as ready for review February 6, 2025 13:13
Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.18%. Comparing base (8e0c7ff) to head (3c423f9).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4347   +/-   ##
=======================================
  Coverage   74.18%   74.18%           
=======================================
  Files         345      345           
  Lines      110632   110644   +12     
=======================================
+ Hits        82073    82086   +13     
+ Misses      28559    28558    -1     

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

@tzemanovic tzemanovic added the merge Ready to merge - mergifyio bot will add the PR to merge queue when all checks pass label Feb 6, 2025
@mergify mergify bot merged commit 3558ccf into main Feb 6, 2025
26 of 40 checks passed
@mergify mergify bot deleted the tomas/tx-result-events branch February 6, 2025 13:57
mergify bot pushed a commit that referenced this pull request Feb 6, 2025
(cherry picked from commit 3c423f9)
mergify bot added a commit that referenced this pull request Feb 6, 2025
sdk/tx-result: print tx events if any (backport #4347)
tzemanovic added a commit that referenced this pull request Feb 10, 2025
* maint-libs-0.47:
  Changelog: Release libs 0.47.2
  Namada libs 0.47.2
  move version detection build script from apps_lib into apps
  keep a separate commit for release changelogs
  apps_lib: output artifacts from build script into OUT_DIR
  tx: build tonic artifacts into OUT_DIR
  changelog: add #4347
  sdk/tx: print tx events if any
  declare internal dev-dependencies via path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-libs-0.47 Backport libraries to 0.47 maintenance branch client merge Ready to merge - mergifyio bot will add the PR to merge queue when all checks pass SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants