Skip to content

format: add TypeScript types for function call contexts#186

Merged
gnidan merged 1 commit intocall-returnfrom
debugger-format-call-types
Mar 11, 2026
Merged

format: add TypeScript types for function call contexts#186
gnidan merged 1 commit intocall-returnfrom
debugger-format-call-types

Conversation

@gnidan
Copy link
Member

@gnidan gnidan commented Mar 11, 2026

Summary

  • Adds Type.Reference and Type.Specifier types to match the new type/reference and type/specifier schemas
  • Adds Context.Function.Identity (shared function identity), Context.Invoke (internal/external/create), Context.Return (data + success), Context.Revert (reason + panic) types with type guards
  • Updates Variable.type from Type to Type.Specifier to match the variables schema's use of type/specifier
  • Updates Type.Wrapper to use Type.Specifier
  • All schema examples pass their corresponding type guards

Add Type.Reference, Type.Specifier, and type guards for the
new function call context schemas (invoke, return, revert).

- Type.Reference: { id: string | number } for type references
- Type.Specifier: Type | Reference union (matches type/specifier schema)
- Context.Function.Identity: shared function identity fields
- Context.Invoke: internal calls, external calls, contract creation
- Context.Return: function return with data and optional success
- Context.Revert: function revert with optional reason/panic
- Update Variable.type to accept Type.Specifier (was Type only)
- Update Type.Wrapper to use Type.Specifier
@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-03-11 07:44 UTC

@gnidan gnidan merged commit f966ef5 into call-return Mar 11, 2026
4 checks passed
@gnidan gnidan deleted the debugger-format-call-types branch March 11, 2026 07:40
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