Skip to content

feat: decode and display refundable_resource_fee from Soroban tx #290

Open
funds0033-cmyk wants to merge 1 commit into
Toolbox-Lab:mainfrom
funds0033-cmyk:feat/refundable-resource-fee
Open

feat: decode and display refundable_resource_fee from Soroban tx #290
funds0033-cmyk wants to merge 1 commit into
Toolbox-Lab:mainfrom
funds0033-cmyk:feat/refundable-resource-fee

Conversation

@funds0033-cmyk

Copy link
Copy Markdown
Contributor

Extract total_refundable_resource_fee_charged from SorobanTransactionMetaExtV1 as a distinct
efundable_resource_fee field, separate from the existing
efundable_fee which includes rent_fee_charged.

Changes:

  • crates/core/src/types/report.rs: add
    efundable_resource_fee: i64 to FeeBreakdown with doc comment explaining the source XDR field
  • crates/core/src/decode/context.rs: populate the new field from total_refundable_resource_fee_charged; fix pre-existing .as_i64 -> .as_i64() method call bugs in the resourceFee JSON path; update test assertions
  • crates/cli/src/output/renderers.rs: rename sub-line label to 'Refundable Resource Fee', update test fixture and assertion
  • apps/web/src/lib/types.ts: add FeeBreakdown, ResourceSummary, and full TransactionContext interfaces; add refundable_resource_fee with JSDoc
  • apps/web/src/components/decode/ContextSummary.tsx: implement fee breakdown panel displaying refundable_resource_fee as a labeled indented row with explanatory note; add resource usage bars; follows CLI render_fee_breakdown pattern exactly

Closes #277

Extract total_refundable_resource_fee_charged from SorobanTransactionMetaExtV1
as a distinct 
efundable_resource_fee field, separate from the existing

efundable_fee which includes rent_fee_charged.

Changes:
- crates/core/src/types/report.rs: add 
efundable_resource_fee: i64 to
  FeeBreakdown with doc comment explaining the source XDR field
- crates/core/src/decode/context.rs: populate the new field from
  total_refundable_resource_fee_charged; fix pre-existing .as_i64 -> .as_i64()
  method call bugs in the resourceFee JSON path; update test assertions
- crates/cli/src/output/renderers.rs: rename sub-line label to
  'Refundable Resource Fee', update test fixture and assertion
- apps/web/src/lib/types.ts: add FeeBreakdown, ResourceSummary, and full
  TransactionContext interfaces; add refundable_resource_fee with JSDoc
- apps/web/src/components/decode/ContextSummary.tsx: implement fee breakdown
  panel displaying refundable_resource_fee as a labeled indented row with
  explanatory note; add resource usage bars; follows CLI render_fee_breakdown
  pattern exactly

Closes Toolbox-Lab#277
@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@funds0033-cmyk Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@codeZe-us

Copy link
Copy Markdown
Contributor

@funds0033-cmyk please fix merge conflicts

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.

Decode the Refundable Resource Fee Component

2 participants