Skip to content

feat: Haskell library + E2E test scaffold for fair fee model#37

Open
paolino wants to merge 2 commits intomainfrom
001-fair-fee-model
Open

feat: Haskell library + E2E test scaffold for fair fee model#37
paolino wants to merge 2 commits intomainfrom
001-fair-fee-model

Conversation

@paolino
Copy link
Copy Markdown
Collaborator

@paolino paolino commented Apr 9, 2026

Summary

  • Add cardano-mpfs-onchain Haskell library with canonical on-chain types (tip field renames)
  • Add E2E test scaffold using cardano-node-clients devnet
  • Replace TypeScript E2E CI job with Haskell E2E
  • Script tx submission blocked by MemoBytes serialization issue (tracked in WIP.md)

paolino added 2 commits April 10, 2026 18:28
State.max_fee → State.tip, Request.fee → Request.tip.
Conservation: sum(refunds) == sum(inputs) - tx.fee - N * tip.

Closes #35

fix: update E2E tests for fair fee model

Rename max_fee/fee → tip in codec and cage builder.
Add two-pass tx building to satisfy conservation equation.
Library: canonical on-chain types (Types, Script, AssetName, Datum)
with tip field renames (stateMaxFee→stateTip, requestFee→requestTip).

E2E tests using cardano-node-clients devnet infrastructure.
Five scenarios: self-transfer, mint-and-end, modify-with-tip,
reject-after-retract, reject-multiple-requests.

Uses upstream balanceFeeLoop from cardano-node-clients for
conservation-aware fee convergence (no hardcoded fee overestimate).
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.

1 participant