You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/features/generate.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ The `algokit generate` [command](../cli/index.md#generate) is used to generate c
4
4
5
5
## 1. Typed clients
6
6
7
-
The `algokit generate client`[command](../cli/index.md#client) can be used to generate a typed client from an [ARC-0032](https://arc.algorand.foundation/ARCs/arc-0032) application specification with both Python and TypeScript available as target languages.
7
+
The `algokit generate client`[command](../cli/index.md#client) can be used to generate a typed client from an [ARC-0032](https://arc.algorand.foundation/ARCs/arc-0032)or [ARC-0056](https://github.com/algorandfoundation/ARCs/pull/258)application specification with both Python and TypeScript available as target languages.
8
8
9
9
### Prerequisites
10
10
@@ -15,7 +15,7 @@ Each generated client will also have a dependency on `algokit-utils` libraries f
15
15
16
16
### Input file / directory
17
17
18
-
You can either specify a path to a ARC-0032 JSON file, or to a directory that is recursively scanned for `application.json` or `*.arc32.json` file(s).
18
+
You can either specify a path to an ARC-0032 JSON file, an ARC-0056 JSON file or to a directory that is recursively scanned for `application.json`, `*.arc32.json`, `*.arc56.json` file(s).
19
19
20
20
### Output tokens
21
21
@@ -24,8 +24,8 @@ The output path is interpreted as relative to the current working directory, how
24
24
25
25
There are two tokens available for use with the `-o`, `--output`[option](../cli/index.md#-o---output-):
26
26
27
-
-`{contract_name}`: This will resolve to a name based on the ARC-0032 contract name, formatted appropriately for the target language.
28
-
-`{app_spec_dir}`: This will resolve to the parent directory of the `application.json` or `*.arc32.json` file which can be useful to output a client relative to its source file.
27
+
-`{contract_name}`: This will resolve to a name based on the ARC-0032/ARC-0056 contract name, formatted appropriately for the target language.
28
+
-`{app_spec_dir}`: This will resolve to the parent directory of the `application.json`, `*.arc32.json`, `*.arc56.json` file which can be useful to output a client relative to its source file.
DEBUG: Searching for project installed client generator
2
+
DEBUG: Running 'poetry show algokit-client-generator --tree' in '{current_working_directory}'
3
+
DEBUG: poetry: STDOUT
4
+
DEBUG: poetry: STDERR
5
+
DEBUG: Running 'pipx --version' in '{current_working_directory}'
6
+
DEBUG: pipx: STDOUT
7
+
DEBUG: pipx: STDERR
8
+
DEBUG: Searching for globally installed client generator
9
+
DEBUG: Running 'pipx list --short' in '{current_working_directory}'
10
+
DEBUG: pipx: STDOUT
11
+
DEBUG: pipx: STDERR
12
+
DEBUG: No matching installed client generator found, run client generator via pipx
13
+
Generating Python client code for application specified in {current_working_directory}/app.arc56.json and writing to client.py
14
+
DEBUG: Running 'pipx run --spec=algokit-client-generator algokitgen-py -a {current_working_directory}/app.arc56.json -o client.py' in '{current_working_directory}'
Copy file name to clipboardExpand all lines: tests/generate/test_generate_custom_generate_commands.test_generate_custom_generate_commands_invalid_generic_generator.approved.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,4 +9,4 @@ Options:
9
9
-h, --help Show this message and exit.
10
10
11
11
Commands:
12
-
client Create a typed ApplicationClient from an ARC-32 application.json
12
+
client Create a typed ApplicationClient from an ARC-32/56 application.json
Copy file name to clipboardExpand all lines: tests/generate/test_generate_custom_generate_commands.test_generate_custom_generate_commands_no_toml.approved.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,4 +8,4 @@ Options:
8
8
-h, --help Show this message and exit.
9
9
10
10
Commands:
11
-
client Create a typed ApplicationClient from an ARC-32 application.json
11
+
client Create a typed ApplicationClient from an ARC-32/56 application.json
0 commit comments