Skip to content

refactor: centralize market contract execution - #20

Merged
tvolk131 merged 1 commit into
masterfrom
agent/market-compiler-execution
Jul 31, 2026
Merged

refactor: centralize market contract execution#20
tvolk131 merged 1 commit into
masterfrom
agent/market-compiler-execution

Conversation

@tvolk131

@tvolk131 tvolk131 commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • analyze the canonical SimplicityHL template once per process, instantiate it per market, preserve structured compiler diagnostics, and fail with exact PSET input indices when witness UTXOs are missing
  • introduce a typed canonical finalized-spend boundary carrying the decoded redeem node, CMR, typed control block, execution bounds, encoded sizes, and exact minimal budget annex
  • remove the duplicate client budget decoder, install all covenant witnesses atomically, and re-execute each exact serialized finalized witness (including its annex) before committing the staged PSET
  • migrate client validation, confirmed-spend interpretation, and node registration to typed compiler/execution errors while restricting the generated Program escape hatch to parity tests

The market SimplicityHL source, ABI, scripts, and canonical CMR are unchanged.

Verification

  • nix develop .#default --command just fmt-check
  • nix develop .#default --command just clippy
  • nix develop .#default --command just test — 203 passed, 5 environment-dependent tests skipped; doc tests passed
  • nix develop .#default --command just wasm-check
  • nix develop .#default --command just verify-smplx
  • nix flake check
  • targeted typed-finalization, canonical-annex, indexed-UTXO, installed-witness re-execution, CMR/control-block mismatch, and SDK parity regressions

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@tvolk131
tvolk131 marked this pull request as ready for review July 31, 2026 20:50
@tvolk131
tvolk131 merged commit fe5de4f into master Jul 31, 2026
2 checks passed
@tvolk131
tvolk131 deleted the agent/market-compiler-execution branch July 31, 2026 20:50
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