Skip to content

feat: use generated wrappers for TS debugging#801

Open
patricios-space wants to merge 2 commits into
mainfrom
debug/ts-pretty-print/use-abigen
Open

feat: use generated wrappers for TS debugging#801
patricios-space wants to merge 2 commits into
mainfrom
debug/ts-pretty-print/use-abigen

Conversation

@patricios-space

Copy link
Copy Markdown
Collaborator

No description provided.

@patricios-space
patricios-space force-pushed the debug/ts-pretty-print/use-abigen branch 2 times, most recently from 07a27a8 to 6da66af Compare July 21, 2026 12:33
@patricios-space
patricios-space marked this pull request as ready for review July 21, 2026 14:47
@patricios-space
patricios-space requested a review from a team as a code owner July 21, 2026 14:47
@patricios-space
patricios-space requested a review from Copilot July 21, 2026 15:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances TON test debugging by decoding known message bodies using the generated contract wrappers, producing human-readable struct/field output instead of only raw opcode/hex.

Changes:

  • Add an opcode registry that scans wrappers/gen for exported structs with PREFIX + fromSlice decoders.
  • Update transaction pretty-printing to try decoding message bodies via the registry and print decoded struct fields (with nested struct support).
  • Keep a fallback path to raw opcode / hex dump when decoding isn’t possible.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
contracts/tests/utils/prettyPrint.ts Adds struct/field formatting helpers and attempts opcode-based decoding of message bodies via generated wrapper fromSlice methods.
contracts/tests/utils/opcodeRegistry.ts Introduces a cached registry that discovers candidate opcode decoders by scanning and loading generated wrapper modules under wrappers/gen.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread contracts/tests/utils/opcodeRegistry.ts
@patricios-space
patricios-space force-pushed the debug/ts-pretty-print/use-abigen branch from d0456ae to e07849e Compare July 21, 2026 21:20
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.

2 participants