Skip to content

Commit e0acc13

Browse files
authored
Merge pull request #22 from algorandfoundation/tweaks
chore: tweak client generator imports
2 parents de031db + 24d73b3 commit e0acc13

File tree

13 files changed

+18
-15
lines changed

13 files changed

+18
-15
lines changed

examples/generators/production_python_smart_contract_python/smart_contracts/helpers/build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
5353
if generate_result.returncode:
5454
if "No such command" in generate_result.stdout:
5555
raise Exception(
56-
"Could not generate typed client, requires AlgoKit 1.1 or "
56+
"Could not generate typed client, requires AlgoKit 2.0.0 or "
5757
"later. Please update AlgoKit"
5858
)
5959
else:

examples/generators/production_python_smart_contract_typescript/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
"npm": ">=9.0"
1515
},
1616
"dependencies": {
17-
"@algorandfoundation/algokit-utils": "^5.1.0",
18-
"algosdk": "^2.5.0"
17+
"@algorandfoundation/algokit-utils": "^6.0.2",
18+
"algosdk": "^2.7.0"
1919
},
2020
"devDependencies": {
21+
"@algorandfoundation/algokit-client-generator": "^3.0.3",
2122
"@types/jest": "^29.5.11",
2223
"dotenv": "^16.0.3",
2324
"prettier": "^2.8.4",

examples/generators/production_python_smart_contract_typescript/pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ python-dotenv = "^1.0.0"
1212
algorand-python = "^1.0.0"
1313

1414
[tool.poetry.group.dev.dependencies]
15-
algokit-client-generator = "^1.1.3"
1615
black = {extras = ["d"], version = "*"}
1716
ruff = "^0.1.6"
1817
mypy = "*"

examples/generators/production_python_smart_contract_typescript/smart_contracts/helpers/build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
5353
if generate_result.returncode:
5454
if "No such command" in generate_result.stdout:
5555
raise Exception(
56-
"Could not generate typed client, requires AlgoKit 1.1 or "
56+
"Could not generate typed client, requires AlgoKit 2.0.0 or "
5757
"later. Please update AlgoKit"
5858
)
5959
else:

examples/generators/starter_python_smart_contract_python/smart_contracts/helpers/build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
5353
if generate_result.returncode:
5454
if "No such command" in generate_result.stdout:
5555
raise Exception(
56-
"Could not generate typed client, requires AlgoKit 1.1 or "
56+
"Could not generate typed client, requires AlgoKit 2.0.0 or "
5757
"later. Please update AlgoKit"
5858
)
5959
else:

examples/generators/starter_python_smart_contract_typescript/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
"npm": ">=9.0"
1414
},
1515
"dependencies": {
16-
"@algorandfoundation/algokit-utils": "^5.1.0",
17-
"algosdk": "^2.5.0"
16+
"@algorandfoundation/algokit-utils": "^6.0.2",
17+
"algosdk": "^2.7.0"
1818
},
1919
"devDependencies": {
20+
"@algorandfoundation/algokit-client-generator": "^3.0.3",
2021
"dotenv": "^16.0.3",
2122
"prettier": "^2.8.4",
2223
"ts-node-dev": "^2.0.0",

examples/generators/starter_python_smart_contract_typescript/pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ python-dotenv = "^1.0.0"
1212
algorand-python = "^1.0.0"
1313

1414
[tool.poetry.group.dev.dependencies]
15-
algokit-client-generator = "^1.1.3"
1615
puyapy = "*"
1716

1817
[build-system]

examples/generators/starter_python_smart_contract_typescript/smart_contracts/helpers/build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
5353
if generate_result.returncode:
5454
if "No such command" in generate_result.stdout:
5555
raise Exception(
56-
"Could not generate typed client, requires AlgoKit 1.1 or "
56+
"Could not generate typed client, requires AlgoKit 2.0.0 or "
5757
"later. Please update AlgoKit"
5858
)
5959
else:

examples/production_python/smart_contracts/helpers/build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
5353
if generate_result.returncode:
5454
if "No such command" in generate_result.stdout:
5555
raise Exception(
56-
"Could not generate typed client, requires AlgoKit 1.1 or "
56+
"Could not generate typed client, requires AlgoKit 2.0.0 or "
5757
"later. Please update AlgoKit"
5858
)
5959
else:

examples/starter_python/smart_contracts/helpers/build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
5353
if generate_result.returncode:
5454
if "No such command" in generate_result.stdout:
5555
raise Exception(
56-
"Could not generate typed client, requires AlgoKit 1.1 or "
56+
"Could not generate typed client, requires AlgoKit 2.0.0 or "
5757
"later. Please update AlgoKit"
5858
)
5959
else:

template_content/pyproject.toml.jinja

+2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ python-dotenv = "^1.0.0"
1212
algorand-python = "^1.0.0"
1313

1414
[tool.poetry.group.dev.dependencies]
15+
{% if deployment_language == 'python' -%}
1516
algokit-client-generator = "^1.1.3"
17+
{% endif -%}
1618
{% if use_python_black -%}
1719
black = {extras = ["d"], version = "*"}
1820
{% endif -%}

template_content/smart_contracts/helpers/build.py.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
5656
if generate_result.returncode:
5757
if "No such command" in generate_result.stdout:
5858
raise Exception(
59-
"Could not generate typed client, requires AlgoKit 1.1 or "
59+
"Could not generate typed client, requires AlgoKit 2.0.0 or "
6060
"later. Please update AlgoKit"
6161
)
6262
else:

template_content/{% if deployment_language == 'typescript' or use_typescript_jest %}package.json{% endif %}.jinja

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
"npm": ">=9.0"
1717
},
1818
"dependencies": {
19-
"@algorandfoundation/algokit-utils": "^5.1.0",
20-
"algosdk": "^2.5.0"
19+
"@algorandfoundation/algokit-utils": "^6.0.2",
20+
"algosdk": "^2.7.0"
2121
},
2222
"devDependencies": {
23+
"@algorandfoundation/algokit-client-generator": "^3.0.3",
2324
{%- if use_typescript_jest %}
2425
"@types/jest": "^29.5.11",
2526
{%- endif %}

0 commit comments

Comments
 (0)