Skip to content

[NONEVM-5964] Use generated wrappers for TS debugging - #801

Open
duck-types wants to merge 3 commits into
mainfrom
debug/ts-pretty-print/use-abigen
Open

[NONEVM-5964] Use generated wrappers for TS debugging#801
duck-types wants to merge 3 commits into
mainfrom
debug/ts-pretty-print/use-abigen

Conversation

@duck-types

@duck-types duck-types commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

@duck-types
duck-types force-pushed the debug/ts-pretty-print/use-abigen branch 2 times, most recently from 07a27a8 to 6da66af Compare July 21, 2026 12:33
@duck-types
duck-types marked this pull request as ready for review July 21, 2026 14:47
@duck-types
duck-types requested a review from a team as a code owner July 21, 2026 14:47
@duck-types
duck-types 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
@duck-types
duck-types force-pushed the debug/ts-pretty-print/use-abigen branch 2 times, most recently from e07849e to 4225d87 Compare July 23, 2026 13:43
@duck-types
duck-types force-pushed the debug/ts-pretty-print/use-abigen branch 2 times, most recently from bf33695 to 18850b0 Compare August 3, 2026 17:28
@duck-types
duck-types force-pushed the debug/ts-pretty-print/use-abigen branch from 18850b0 to a2e14b4 Compare September 2, 2026 19:33
@duck-types duck-types changed the title feat: use generated wrappers for TS debugging [NONEVM-5964] Use generated wrappers for TS debugging Sep 2, 2026
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