Repository navigation
Conversation
Replace the template's componentTypes block and per-transaction params loop with `declarations`, which renders component and params declarations from the shared tx3c planner. Params type names come from `paramsTypeName`, and field references from `identifier ... "param"`, so they always match what the renderer declared. Generated output is unchanged apart from the section comment and blank lines. Requires a tx3c release that includes tx3-lang/tx3#359. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Superseded. First-party client templates now live in tx3c and are rendered with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrates the client-lib template to the unified tx3c codegen helpers from tx3-lang/tx3#359.
{{{declarations tii "typescript"}}}replaces thecomponentTypesblock and the per-transaction params loop. The renderer now declares component and params types from one shared planner.paramsTypeNamesupplies params type names, andidentifier ... "param"supplies field references. Template references therefore always match the declarations.Generated output is unchanged apart from the section comment and blank lines.
Dependency
This stays a draft until a tx3c release includes tx3-lang/tx3#359. CI installs the released toolchain through
tx3-lang/actions/setup@v1, so the codegen check fails until then. The stack is tx3-lang/tx3#357, then #358, then #359.Verification
Run locally with tx3c built from the #359 branch:
.github/scripts/codegen-check.shpassed, includingtscagainsttx3-sdk@latest.protocol.tswas diffed against the output of the current template. Only the comment and blank lines differ.🤖 Generated with Claude Code