Skip to content

00500 hip 1261 simple fees#526

Draft
rwalworth wants to merge 10 commits intomainfrom
00500-hip-1261-simple-fees
Draft

00500 hip 1261 simple fees#526
rwalworth wants to merge 10 commits intomainfrom
00500-hip-1261-simple-fees

Conversation

@rwalworth
Copy link
Copy Markdown
Contributor

Description:

Related issue(s):

Fixes #

Notes for reviewer:

Checklist

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

Signed-off-by: Rob Walworth <robert.walworth@swirldslabs.com>
Signed-off-by: Rob Walworth <robert.walworth@swirldslabs.com>
@rwalworth rwalworth linked an issue Dec 29, 2025 that may be closed by this pull request
14 tasks
Signed-off-by: Rob Walworth <robert.walworth@swirldslabs.com>
Signed-off-by: Rob Walworth <robert.walworth@swirldslabs.com>
Signed-off-by: Rob Walworth <robert.walworth@swirldslabs.com>
@rwalworth rwalworth self-assigned this Feb 2, 2026
@rwalworth rwalworth added the status: blocked Work is stalled due to external dependency or required decision label Feb 2, 2026
Signed-off-by: Rob Walworth <robert.walworth@swirldslabs.com>
@codacy-production
Copy link
Copy Markdown

codacy-production bot commented Apr 10, 2026

Not up to standards ⛔

🔴 Issues 2 medium · 1 minor

Alerts:
⚠ 3 issues (≤ 0 issues of at least minor severity)

Results:
3 new issues

Category Results
BestPractice 1 minor
Complexity 2 medium

View in Codacy

🟢 Metrics 96 complexity · 23 duplication

Metric Results
Complexity 96
Duplication 23

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

Signed-off-by: Rob Walworth <robert.walworth@swirldslabs.com>
Signed-off-by: Rob Walworth <robert.walworth@swirldslabs.com>
Signed-off-by: Rob Walworth <robert.walworth@swirldslabs.com>
print("\n--- Comparison ---")
if stateEstimate.total >= intrinsicEstimate.total {
let diff = stateEstimate.total - intrinsicEstimate.total
print("STATE estimate is \(diff) tinycents higher than INTRINSIC.")
let nodeSubtotal = r.nodeFee.base + r.nodeFee.extras.reduce(0) { $0 + $1.subtotal }
let serviceSubtotal = r.serviceFee.base + r.serviceFee.extras.reduce(0) { $0 + $1.subtotal }

print(" Mode : \(r.mode)")
let serviceSubtotal = r.serviceFee.base + r.serviceFee.extras.reduce(0) { $0 + $1.subtotal }

print(" Mode : \(r.mode)")
print(" Network fee : \(r.networkFee.subtotal) tinycents (multiplier: \(r.networkFee.multiplier))")

print(" Mode : \(r.mode)")
print(" Network fee : \(r.networkFee.subtotal) tinycents (multiplier: \(r.networkFee.multiplier))")
print(" Node fee : \(nodeSubtotal) tinycents (base: \(r.nodeFee.base))")
for extra in r.nodeFee.extras {
print(" + \(extra.name): charged=\(extra.charged) × \(extra.feePerUnit) = \(extra.subtotal)")
}
print(" Service fee : \(serviceSubtotal) tinycents (base: \(r.serviceFee.base))")
for extra in r.serviceFee.extras {
print(" + \(extra.name): charged=\(extra.charged) × \(extra.feePerUnit) = \(extra.subtotal)")
}
print(" Total : \(r.total) tinycents")
}
print(" Total : \(r.total) tinycents")
if !r.notes.isEmpty {
print(" Notes : \(r.notes.joined(separator: "; "))")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: blocked Work is stalled due to external dependency or required decision

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Advanced]: Implement HIP-1261 Fee Estimation Query

2 participants