Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the smart contract build script to generate additional client bindings as part of the algokit project run build workflow, aligning the build artifacts with the repository’s generated SDK layout.
Changes:
- Adds
puyapy-clientgeninvocation to generate Python AVM (on-chain) clients from ARC-56 app specs. - Adds logging around client generation steps.
- Renames the generated AVM client file to a snake_case
{contract}_avm_client.pynaming convention.
Comments suppressed due to low confidence (1)
smart_contracts/main.py:172
- The build script currently generates Python App clients and Python AVM clients, but it doesn't generate the TypeScript client described in issue #93. To fully address the issue, add a TypeScript client generation step (e.g., invoking
algokit generate clientfor TypeScript) and decide where the TS output should be written as a build artifact.
# Generate Python App Clients (off-chain)
for file_name in app_spec_file_names:
logger.info(f"Generating App Client (off-chain) for {file_name}")
client_file = file_name
print(file_name)
generate_result = subprocess.run(
[
"algokit",
"generate",
"client",
str(output_dir),
"--output",
str(_get_output_path(target_dir, deployment_extension)),
],
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
sofinico
approved these changes
Mar 2, 2026
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.
This PR addresses #93