Skip to content

Commit 429970d

Browse files
authored
chore: update template to use puya-ts with binary puya backend (#30)
* chore: update template to use puya-ts with binary puya backend
1 parent a39e753 commit 429970d

File tree

15 files changed

+23
-184
lines changed

15 files changed

+23
-184
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313

1414
This template provides a beta template for developing and deploying [Algorand TypeScript](https://github.com/algorandfoundation/puya-ts) smart contracts.
1515

16-
~~To use it [install AlgoKit](https://github.com/algorandfoundation/algokit-cli#readme) and then either pass in `-t typescript` to `algokit init` or select the `typescript` template.~~
17-
18-
To use it run:
19-
```
20-
algokit init --template-url https://github.com/algorandfoundation/algokit-typescript-template --UNSAFE-SECURITY-accept-template-url
21-
```
16+
To use it [install AlgoKit](https://github.com/algorandfoundation/algokit-cli#readme) and then either pass in `-t typescript` to `algokit init` or select the `typescript` template.
2217

2318
This is one of the official templates used by AlgoKit to initialize an Algorand smart contract project. It's a [Copier template](https://copier.readthedocs.io/en/stable/).
2419

examples/production/.algokit.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[algokit]
2-
min_version = "v2.0.0"
2+
min_version = "v2.6.0"
33

44
[generate.smart-contract]
55
description = "Generate a new smart contract for existing project"

examples/production/.github/workflows/production-ci.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ jobs:
2626
- name: Install algokit
2727
run: pipx install algokit
2828

29-
- name: Install Puya compiler
30-
run: pipx install puyapy
31-
3229
- name: Start LocalNet
3330
run: algokit localnet start
3431

examples/production/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Ensure the following pre-requisites are installed and properly configured:
2525

2626
- **Docker**: Required for running a local Algorand network.
2727
- **AlgoKit CLI**: Essential for project setup and operations. Verify installation with `algokit --version`, expecting `2.5.0` or later.
28-
- **Puya Compiler**: Can be installed from PyPi by running `pipx install puyapy`. Verify installation with `puyapy --version`, expecting `4.4.4` or later.
2928

3029
#### 3. Bootstrap Your Local Environment
3130

examples/production/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Smart contract deployer",
55
"main": "smart_contracts/index.ts",
66
"scripts": {
7-
"build": "puya-ts build smart_contracts --output-source-map --out-dir artifacts && algokit generate client smart_contracts/artifacts --output {app_spec_dir}/{contract_name}Client.ts",
7+
"build": "algokit compile ts smart_contracts --output-source-map --out-dir artifacts && algokit generate client smart_contracts/artifacts --output {app_spec_dir}/{contract_name}Client.ts",
88
"deploy": "ts-node-dev --transpile-only --watch .env -r dotenv/config smart_contracts/index.ts",
99
"deploy:ci": "ts-node --transpile-only -r dotenv/config smart_contracts/index.ts",
1010
"lint": "eslint smart_contracts",
@@ -20,13 +20,13 @@
2020
"npm": ">=9.0"
2121
},
2222
"dependencies": {
23-
"@algorandfoundation/algorand-typescript": "^1.0.0-beta.20"
23+
"@algorandfoundation/algorand-typescript": "^1.0.0-beta.25"
2424
},
2525
"devDependencies": {
26-
"@algorandfoundation/algokit-client-generator": "^4.0.8",
27-
"@algorandfoundation/algokit-utils": "^8.2.1",
26+
"@algorandfoundation/algokit-client-generator": "^4.0.9",
27+
"@algorandfoundation/algokit-utils": "^8.2.2",
2828
"@algorandfoundation/algokit-utils-debug": "^1.0.3",
29-
"@algorandfoundation/puya-ts": "^1.0.0-beta.34",
29+
"@algorandfoundation/puya-ts": "^1.0.0-beta.50",
3030
"@rollup/plugin-typescript": "^12.1.2",
3131
"@tsconfig/node22": "^22.0.0",
3232
"algosdk": "^3.0.0",
@@ -37,7 +37,7 @@
3737
"typescript-eslint": "^8.19.1",
3838
"prettier": "^3.4.2",
3939
"ts-node-dev": "^2.0.0",
40-
"@algorandfoundation/algorand-typescript-testing": "^1.0.0-beta.27",
40+
"@algorandfoundation/algorand-typescript-testing": "^1.0.0-beta.30",
4141
"vitest": "^2.1.8",
4242
"@vitest/coverage-v8": "^2.1.8",
4343
"typescript": "^5.7.3"

examples/starter/.algokit.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[algokit]
2-
min_version = "v2.0.0"
2+
min_version = "v2.6.0"
33

44
[generate.smart-contract]
55
description = "Generate a new smart contract for existing project"

examples/starter/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Ensure the following pre-requisites are installed and properly configured:
2323

2424
- **Docker**: Required for running a local Algorand network.
2525
- **AlgoKit CLI**: Essential for project setup and operations. Verify installation with `algokit --version`, expecting `2.5.0` or later.
26-
- **Puya Compiler**: Can be installed from PyPi by running `pipx install puyapy`. Verify installation with `puyapy --version`, expecting `4.4.4` or later.
2726

2827
#### 3. Bootstrap Your Local Environment
2928
Run the following commands within the project folder:

examples/starter/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Smart contract deployer",
55
"main": "smart_contracts/index.ts",
66
"scripts": {
7-
"build": "puya-ts build smart_contracts --output-source-map --out-dir artifacts && algokit generate client smart_contracts/artifacts --output {app_spec_dir}/{contract_name}Client.ts",
7+
"build": "algokit compile ts smart_contracts --output-source-map --out-dir artifacts && algokit generate client smart_contracts/artifacts --output {app_spec_dir}/{contract_name}Client.ts",
88
"deploy": "ts-node-dev --transpile-only --watch .env -r dotenv/config smart_contracts/index.ts",
99
"deploy:ci": "ts-node --transpile-only -r dotenv/config smart_contracts/index.ts",
1010
"check-types": "tsc --noEmit"
@@ -14,13 +14,13 @@
1414
"npm": ">=9.0"
1515
},
1616
"dependencies": {
17-
"@algorandfoundation/algorand-typescript": "^1.0.0-beta.20"
17+
"@algorandfoundation/algorand-typescript": "^1.0.0-beta.25"
1818
},
1919
"devDependencies": {
20-
"@algorandfoundation/algokit-client-generator": "^4.0.8",
21-
"@algorandfoundation/algokit-utils": "^8.2.1",
20+
"@algorandfoundation/algokit-client-generator": "^4.0.9",
21+
"@algorandfoundation/algokit-utils": "^8.2.2",
2222
"@algorandfoundation/algokit-utils-debug": "^1.0.3",
23-
"@algorandfoundation/puya-ts": "^1.0.0-beta.34",
23+
"@algorandfoundation/puya-ts": "^1.0.0-beta.50",
2424
"@rollup/plugin-typescript": "^12.1.2",
2525
"@tsconfig/node22": "^22.0.0",
2626
"algosdk": "^3.0.0",

poetry.lock

Lines changed: 1 addition & 147 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ mypy = "^1.15.0"
1919
pre-commit = "^4.0.1"
2020
types-pyyaml = "^6.0.12.9"
2121
pytest-xdist = "^3.3.1"
22-
puyapy = "^4.4.4"
2322

2423
[build-system]
2524
requires = ["poetry-core"]

0 commit comments

Comments
 (0)