diff --git a/copier.yaml b/copier.yaml index 1f281a4..1243eaa 100644 --- a/copier.yaml +++ b/copier.yaml @@ -23,7 +23,7 @@ _tasks: -a cloud_provider "{{ cloud_provider }}" -a use_github_actions "{{ use_github_actions }}"' - - "echo '==== 3/4 - Initializing backend template ===='" + - "echo '==== 3/4 - Initializing contract template ===='" - 'algokit init -t {{ contract_template }} -n {{ project_name }}-contracts --no-git --no-ide --no-bootstrap -a author_email "{{ author_email }}" -a author_name "{{ author_name }}" diff --git a/examples/production_beaker_react/projects/production_beaker_react-contracts/.copier-answers.yml b/examples/production_beaker_react/projects/production_beaker_react-contracts/.copier-answers.yml index c2452ff..9b3cf6c 100644 --- a/examples/production_beaker_react/projects/production_beaker_react-contracts/.copier-answers.yml +++ b/examples/production_beaker_react/projects/production_beaker_react-contracts/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: 2.0.5 +_commit: 2.0.6 _src_path: gh:algorandfoundation/algokit-beaker-default-template author_email: None author_name: None diff --git a/examples/production_beaker_react/projects/production_beaker_react-contracts/pyproject.toml b/examples/production_beaker_react/projects/production_beaker_react-contracts/pyproject.toml index 43a6da2..d3b4b98 100644 --- a/examples/production_beaker_react/projects/production_beaker_react-contracts/pyproject.toml +++ b/examples/production_beaker_react/projects/production_beaker_react-contracts/pyproject.toml @@ -13,6 +13,7 @@ python-dotenv = "^1.0.0" [tool.poetry.group.dev.dependencies] setuptools = "^69.0.2" # Adding explicitly to work around pyteal https://github.com/algorand/pyteal/issues/712 +algokit-client-generator = "^1.1.3" black = {extras = ["d"], version = "*"} ruff = "^0.1.6" mypy = "*" diff --git a/examples/production_beaker_react/projects/production_beaker_react-contracts/smart_contracts/helpers/build.py b/examples/production_beaker_react/projects/production_beaker_react-contracts/smart_contracts/helpers/build.py index 753727b..cd2098d 100644 --- a/examples/production_beaker_react/projects/production_beaker_react-contracts/smart_contracts/helpers/build.py +++ b/examples/production_beaker_react/projects/production_beaker_react-contracts/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.8.0 or " + "Could not generate typed client, requires AlgoKit 2.0.0 or " "later. Please update AlgoKit" ) else: diff --git a/examples/production_beaker_react/projects/production_beaker_react-frontend/.copier-answers.yml b/examples/production_beaker_react/projects/production_beaker_react-frontend/.copier-answers.yml index 4be0d46..9757d5b 100644 --- a/examples/production_beaker_react/projects/production_beaker_react-frontend/.copier-answers.yml +++ b/examples/production_beaker_react/projects/production_beaker_react-frontend/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: 1.0.4 +_commit: 1.0.5 _src_path: gh:algorandfoundation/algokit-react-frontend-template author_email: None author_name: None diff --git a/examples/production_beaker_react/projects/production_beaker_react-frontend/package.json b/examples/production_beaker_react/projects/production_beaker_react-frontend/package.json index 9fa6500..771ddb7 100644 --- a/examples/production_beaker_react/projects/production_beaker_react-frontend/package.json +++ b/examples/production_beaker_react/projects/production_beaker_react-frontend/package.json @@ -12,6 +12,7 @@ "npm": ">=9.0" }, "devDependencies": { + "@algorandfoundation/algokit-client-generator": "^3.0.3", "@types/node": "^18.17.14", "@types/react": "^18.2.11", "@types/react-dom": "^18.2.4", @@ -34,7 +35,7 @@ }, "dependencies": { "@walletconnect/modal-sign-html": "^2.6.1", - "@algorandfoundation/algokit-utils": "^5.0.0", + "@algorandfoundation/algokit-utils": "^6.0.2", "@blockshake/defly-connect": "^1.1.6", "@daffiwallet/connect": "^1.0.3", "@perawallet/connect": "^1.3.1", diff --git a/examples/production_python_react/projects/production_python_react-contracts/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/deploy_config.py.j2 b/examples/production_python_react/projects/production_python_react-contracts/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/deploy_config.py.j2 index 9ab7336..7d4017a 100644 --- a/examples/production_python_react/projects/production_python_react-contracts/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/deploy_config.py.j2 +++ b/examples/production_python_react/projects/production_python_react-contracts/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/deploy_config.py.j2 @@ -14,11 +14,11 @@ def deploy( app_spec: algokit_utils.ApplicationSpecification, deployer: algokit_utils.Account, ) -> None: - from smart_contracts.artifacts.hello_world.client import ( - HelloWorldClient, + from smart_contracts.artifacts.{{ contract_name }}.client import ( + {{ contract_name.split('_')|map('capitalize')|join }}Client, ) - app_client = HelloWorldClient( + app_client = {{ contract_name.split('_')|map('capitalize')|join }}Client( algod_client, creator=deployer, indexer_client=indexer_client, diff --git a/examples/production_python_react/projects/production_python_react-contracts/.copier-answers.yml b/examples/production_python_react/projects/production_python_react-contracts/.copier-answers.yml index 1b25f35..d001756 100644 --- a/examples/production_python_react/projects/production_python_react-contracts/.copier-answers.yml +++ b/examples/production_python_react/projects/production_python_react-contracts/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: 1.0.6 +_commit: 1.0.10 _src_path: gh:algorandfoundation/algokit-python-template author_email: None author_name: None diff --git a/examples/production_python_react/projects/production_python_react-contracts/pyproject.toml b/examples/production_python_react/projects/production_python_react-contracts/pyproject.toml index c3d52ca..4fafc58 100644 --- a/examples/production_python_react/projects/production_python_react-contracts/pyproject.toml +++ b/examples/production_python_react/projects/production_python_react-contracts/pyproject.toml @@ -19,7 +19,7 @@ mypy = "*" pytest = "*" pytest-cov = "*" pip-audit = "*" -puyapy = "^1.0.0" +puyapy = "*" [build-system] requires = ["poetry-core"] diff --git a/examples/production_python_react/projects/production_python_react-contracts/smart_contracts/helpers/build.py b/examples/production_python_react/projects/production_python_react-contracts/smart_contracts/helpers/build.py index d9fc955..d797acd 100644 --- a/examples/production_python_react/projects/production_python_react-contracts/smart_contracts/helpers/build.py +++ b/examples/production_python_react/projects/production_python_react-contracts/smart_contracts/helpers/build.py @@ -53,7 +53,7 @@ def build(output_dir: Path, contract_path: Path) -> Path: if generate_result.returncode: if "No such command" in generate_result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 2.0.0 or " "later. Please update AlgoKit" ) else: diff --git a/examples/production_python_react/projects/production_python_react-frontend/.copier-answers.yml b/examples/production_python_react/projects/production_python_react-frontend/.copier-answers.yml index 4d2c539..c760567 100644 --- a/examples/production_python_react/projects/production_python_react-frontend/.copier-answers.yml +++ b/examples/production_python_react/projects/production_python_react-frontend/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: 1.0.4 +_commit: 1.0.5 _src_path: gh:algorandfoundation/algokit-react-frontend-template author_email: None author_name: None diff --git a/examples/production_python_react/projects/production_python_react-frontend/package.json b/examples/production_python_react/projects/production_python_react-frontend/package.json index 4fc37da..d665f4a 100644 --- a/examples/production_python_react/projects/production_python_react-frontend/package.json +++ b/examples/production_python_react/projects/production_python_react-frontend/package.json @@ -12,6 +12,7 @@ "npm": ">=9.0" }, "devDependencies": { + "@algorandfoundation/algokit-client-generator": "^3.0.3", "@types/node": "^18.17.14", "@types/react": "^18.2.11", "@types/react-dom": "^18.2.4", @@ -34,7 +35,7 @@ }, "dependencies": { "@walletconnect/modal-sign-html": "^2.6.1", - "@algorandfoundation/algokit-utils": "^5.0.0", + "@algorandfoundation/algokit-utils": "^6.0.2", "@blockshake/defly-connect": "^1.1.6", "@daffiwallet/connect": "^1.0.3", "@perawallet/connect": "^1.3.1", diff --git a/examples/production_tealscript_react/projects/production_tealscript_react-contracts/__test__/Calculator.test.ts b/examples/production_tealscript_react/projects/production_tealscript_react-contracts/__test__/Calculator.test.ts index 4051a39..6552b8b 100644 --- a/examples/production_tealscript_react/projects/production_tealscript_react-contracts/__test__/Calculator.test.ts +++ b/examples/production_tealscript_react/projects/production_tealscript_react-contracts/__test__/Calculator.test.ts @@ -1,7 +1,7 @@ import { describe, test, expect, beforeAll, beforeEach } from '@jest/globals'; import { algorandFixture } from '@algorandfoundation/algokit-utils/testing'; -import { CalculatorClient } from '../contracts/clients/CalculatorClient'; import * as algokit from '@algorandfoundation/algokit-utils'; +import { CalculatorClient } from '../contracts/clients/CalculatorClient'; const fixture = algorandFixture(); algokit.Config.configure({ populateAppCallResources: true }); @@ -13,7 +13,8 @@ describe('Calculator', () => { beforeAll(async () => { await fixture.beforeEach(); - const { algod, testAccount } = fixture.context; + const { testAccount } = fixture.context; + const { algorand } = fixture; appClient = new CalculatorClient( { @@ -21,7 +22,7 @@ describe('Calculator', () => { resolveBy: 'id', id: 0, }, - algod + algorand.client.algod ); await appClient.create.createApplication({}); diff --git a/examples/production_tealscript_react/projects/production_tealscript_react-contracts/contracts/Calculator.algo.ts b/examples/production_tealscript_react/projects/production_tealscript_react-contracts/contracts/Calculator.algo.ts index c4feed5..9b36280 100644 --- a/examples/production_tealscript_react/projects/production_tealscript_react-contracts/contracts/Calculator.algo.ts +++ b/examples/production_tealscript_react/projects/production_tealscript_react-contracts/contracts/Calculator.algo.ts @@ -1,7 +1,6 @@ import { Contract } from '@algorandfoundation/tealscript'; -// eslint-disable-next-line no-unused-vars -class Calculator extends Contract { +export class Calculator extends Contract { /** * Calculates the sum of two numbers * diff --git a/examples/production_tealscript_react/projects/production_tealscript_react-contracts/contracts/clients/CalculatorClient.ts b/examples/production_tealscript_react/projects/production_tealscript_react-contracts/contracts/clients/CalculatorClient.ts index c89f171..829e996 100644 --- a/examples/production_tealscript_react/projects/production_tealscript_react-contracts/contracts/clients/CalculatorClient.ts +++ b/examples/production_tealscript_react/projects/production_tealscript_react-contracts/contracts/clients/CalculatorClient.ts @@ -73,7 +73,7 @@ export const APP_SPEC: AppSpec = { } }, "source": { - "approval": "I3ByYWdtYSB2ZXJzaW9uIDEwCgovLyBUaGlzIFRFQUwgd2FzIGdlbmVyYXRlZCBieSBURUFMU2NyaXB0IHYwLjkwLjMKLy8gaHR0cHM6Ly9naXRod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GxpY2F0aW9uOgoJaW50IDEKCXJldHVybgoKKmNyZWF0ZV9Ob09wOgoJbWV0aG9kICJjcmVhdGVBcHBsaWNhdGlvbigpdm9pZCIKCXR4bmEgQXBwbGljYXRpb25BcmdzIDAKCW1hdGNoICphYmlfcm91dGVfY3JlYXRlQXBwbGljYXRpb24KCgkvLyB0aGlzIGNvbnRyYWN0IGRvZXMgbm90IGltcGxlbWVudCB0aGUgZ2l2ZW4gQUJJIG1ldGhvZCBmb3IgY3JlYXRlIE5vT3AKCWVycgoKKmNhbGxfTm9PcDoKCW1ldGhvZCAiZG9NYXRoKHVpbnQ2NCx1aW50NjQsc3RyaW5nKXVpbnQ2NCIKCW1ldGhvZCAiaGVsbG8oc3RyaW5nKXN0cmluZyIKCXR4bmEgQXBwbGljYXRpb25BcmdzIDAKCW1hdGNoICphYmlfcm91dGVfZG9NYXRoICphYmlfcm91dGVfaGVsbG8KCgkvLyB0aGlzIGNvbnRyYWN0IGRvZXMgbm90IGltcGxlbWVudCB0aGUgZ2l2ZW4gQUJJIG1ldGhvZCBmb3IgY2FsbCBOb09wCgllcnI=", "clear": "I3ByYWdtYSB2ZXJzaW9uIDEw" }, "contract": { diff --git a/examples/production_tealscript_react/projects/production_tealscript_react-contracts/package.json b/examples/production_tealscript_react/projects/production_tealscript_react-contracts/package.json index 285b272..393d92a 100644 --- a/examples/production_tealscript_react/projects/production_tealscript_react-contracts/package.json +++ b/examples/production_tealscript_react/projects/production_tealscript_react-contracts/package.json @@ -12,7 +12,7 @@ "fix": "eslint . --ext .ts --fix" }, "dependencies": { - "@algorandfoundation/algokit-utils": "^5.5.0", + "@algorandfoundation/algokit-utils": "^6.0.2", "algosdk": "^2.7.0" }, "devDependencies": { diff --git a/examples/production_tealscript_react/projects/production_tealscript_react-frontend/.copier-answers.yml b/examples/production_tealscript_react/projects/production_tealscript_react-frontend/.copier-answers.yml index b40a77e..6aeb82e 100644 --- a/examples/production_tealscript_react/projects/production_tealscript_react-frontend/.copier-answers.yml +++ b/examples/production_tealscript_react/projects/production_tealscript_react-frontend/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: 1.0.4 +_commit: 1.0.5 _src_path: gh:algorandfoundation/algokit-react-frontend-template author_email: None author_name: None diff --git a/examples/production_tealscript_react/projects/production_tealscript_react-frontend/package.json b/examples/production_tealscript_react/projects/production_tealscript_react-frontend/package.json index 97c999f..1cf2054 100644 --- a/examples/production_tealscript_react/projects/production_tealscript_react-frontend/package.json +++ b/examples/production_tealscript_react/projects/production_tealscript_react-frontend/package.json @@ -12,6 +12,7 @@ "npm": ">=9.0" }, "devDependencies": { + "@algorandfoundation/algokit-client-generator": "^3.0.3", "@types/node": "^18.17.14", "@types/react": "^18.2.11", "@types/react-dom": "^18.2.4", @@ -34,7 +35,7 @@ }, "dependencies": { "@walletconnect/modal-sign-html": "^2.6.1", - "@algorandfoundation/algokit-utils": "^5.0.0", + "@algorandfoundation/algokit-utils": "^6.0.2", "@blockshake/defly-connect": "^1.1.6", "@daffiwallet/connect": "^1.0.3", "@perawallet/connect": "^1.3.1", diff --git a/examples/production_tealscript_react/projects/production_tealscript_react-frontend/src/contracts/Calculator.ts b/examples/production_tealscript_react/projects/production_tealscript_react-frontend/src/contracts/Calculator.ts index 675c310..6780281 100644 --- a/examples/production_tealscript_react/projects/production_tealscript_react-frontend/src/contracts/Calculator.ts +++ b/examples/production_tealscript_react/projects/production_tealscript_react-frontend/src/contracts/Calculator.ts @@ -74,7 +74,7 @@ export const APP_SPEC: AppSpec = { } }, "source": { - "approval": "I3ByYWdtYSB2ZXJzaW9uIDEwCgovLyBUaGlzIFRFQUwgd2FzIGdlbmVyYXRlZCBieSBURUFMU2NyaXB0IHYwLjkwLjMKLy8gaHR0cHM6Ly9naXRodWIuY29tL2FsZ29yYW5kZm91bmRhdGlvbi9URUFMU2NyaXB0CgovLyBUaGlzIGNvbnRyYWN0IGlzIGNvbXBsaWFudCB3aXRoIGFuZC9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R4bmEgQXBwbGljYXRpb25BcmdzIDAKCW1hdGNoICphYmlfcm91dGVfY3JlYXRlQXBwbGljYXRpb24KCgkvLyB0aGlzIGNvbnRyYWN0IGRvZXMgbm90IGltcGxlbWVudCB0aGUgZ2l2ZW4gQUJJIG1ldGhvZCBmb3IgY3JlYXRlIE5vT3AKCWVycgoKKmNhbGxfTm9PcDoKCW1ldGhvZCAiZG9NYXRoKHVpbnQ2NCx1aW50NjQsc3RyaW5nKXVpbnQ2NCIKCW1ldGhvZCAiaGVsbG8oc3RyaW5nKXN0cmluZyIKCXR4bmEgQXBwbGljYXRpb25BcmdzIDAKCW1hdGNoICphYmlfcm91dGVfZG9NYXRoICphYmlfcm91dGVfaGVsbG8KCgkvLyB0aGlzIGNvbnRyYWN0IGRvZXMgbm90IGltcGxlbWVudCB0aGUgZ2l2ZW4gQUJJIG1ldGhvZCBmb3IgY2FsbCBOb09wCgllcnI=", "clear": "I3ByYWdtYSB2ZXJzaW9uIDEw" }, "contract": { @@ -429,7 +429,7 @@ export class CalculatorClient { * @param params Any additional parameters for the call * @returns The create result */ - async createApplication(args: MethodArgs<'createApplication()void'>, params: AppClientCallCoreParams & AppClientCompilationParams & IncludeSchema & (OnCompleteNoOp) = {}) { + async createApplication(args: MethodArgs<'createApplication()void'>, params: AppClientCallCoreParams & AppClientCompilationParams & IncludeSchema & CoreAppCallArgs & (OnCompleteNoOp) = {}) { return $this.mapReturnValue, AppCreateCallTransactionResult>(await $this.appClient.create(CalculatorCallFactory.create.createApplication(args, params))) }, } diff --git a/examples/starter_beaker_react/projects/starter_beaker_react-contracts/.copier-answers.yml b/examples/starter_beaker_react/projects/starter_beaker_react-contracts/.copier-answers.yml index cdca41f..62d46a0 100644 --- a/examples/starter_beaker_react/projects/starter_beaker_react-contracts/.copier-answers.yml +++ b/examples/starter_beaker_react/projects/starter_beaker_react-contracts/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: 2.0.5 +_commit: 2.0.6 _src_path: gh:algorandfoundation/algokit-beaker-default-template author_email: None author_name: None diff --git a/examples/starter_beaker_react/projects/starter_beaker_react-contracts/package.json b/examples/starter_beaker_react/projects/starter_beaker_react-contracts/package.json index 75b8aa2..e329b0d 100644 --- a/examples/starter_beaker_react/projects/starter_beaker_react-contracts/package.json +++ b/examples/starter_beaker_react/projects/starter_beaker_react-contracts/package.json @@ -13,10 +13,11 @@ "npm": ">=9.0" }, "dependencies": { - "@algorandfoundation/algokit-utils": "^5.1.0", - "algosdk": "^2.5.0" + "@algorandfoundation/algokit-utils": "^6.0.2", + "algosdk": "^2.7.0" }, "devDependencies": { + "@algorandfoundation/algokit-client-generator": "^3.0.3", "dotenv": "^16.0.3", "prettier": "^2.8.4", "ts-node-dev": "^2.0.0", diff --git a/examples/starter_beaker_react/projects/starter_beaker_react-contracts/smart_contracts/helpers/build.py b/examples/starter_beaker_react/projects/starter_beaker_react-contracts/smart_contracts/helpers/build.py index 167ee90..ee6ddaa 100644 --- a/examples/starter_beaker_react/projects/starter_beaker_react-contracts/smart_contracts/helpers/build.py +++ b/examples/starter_beaker_react/projects/starter_beaker_react-contracts/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.8.0 or " + "Could not generate typed client, requires AlgoKit 2.0.0 or " "later. Please update AlgoKit" ) else: diff --git a/examples/starter_beaker_react/projects/starter_beaker_react-contracts/tsconfig.json b/examples/starter_beaker_react/projects/starter_beaker_react-contracts/tsconfig.json index 7c76204..fc75893 100644 --- a/examples/starter_beaker_react/projects/starter_beaker_react-contracts/tsconfig.json +++ b/examples/starter_beaker_react/projects/starter_beaker_react-contracts/tsconfig.json @@ -14,11 +14,12 @@ "forceConsistentCasingInFileNames": true, "allowJs": false, "allowSyntheticDefaultImports": true, + "module": "CommonJS", "moduleResolution": "Node", "resolveJsonModule": true, "isolatedModules": true, "noEmit": true }, - "include": ["src/**/*.ts"], + "include": ["smart_contracts/**/*.ts"], "exclude": ["node_modules", "dist", "coverage"] } diff --git a/examples/starter_beaker_react/projects/starter_beaker_react-frontend/.copier-answers.yml b/examples/starter_beaker_react/projects/starter_beaker_react-frontend/.copier-answers.yml index d2cd1be..dc87583 100644 --- a/examples/starter_beaker_react/projects/starter_beaker_react-frontend/.copier-answers.yml +++ b/examples/starter_beaker_react/projects/starter_beaker_react-frontend/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: 1.0.4 +_commit: 1.0.5 _src_path: gh:algorandfoundation/algokit-react-frontend-template author_email: None author_name: None diff --git a/examples/starter_beaker_react/projects/starter_beaker_react-frontend/package.json b/examples/starter_beaker_react/projects/starter_beaker_react-frontend/package.json index efa7ab4..1939996 100644 --- a/examples/starter_beaker_react/projects/starter_beaker_react-frontend/package.json +++ b/examples/starter_beaker_react/projects/starter_beaker_react-frontend/package.json @@ -12,6 +12,7 @@ "npm": ">=9.0" }, "devDependencies": { + "@algorandfoundation/algokit-client-generator": "^3.0.3", "@types/node": "^18.17.14", "@types/react": "^18.2.11", "@types/react-dom": "^18.2.4", @@ -23,7 +24,7 @@ }, "dependencies": { "@walletconnect/modal-sign-html": "^2.6.1", - "@algorandfoundation/algokit-utils": "^5.0.0", + "@algorandfoundation/algokit-utils": "^6.0.2", "@blockshake/defly-connect": "^1.1.6", "@daffiwallet/connect": "^1.0.3", "@perawallet/connect": "^1.3.1", diff --git a/examples/starter_python_react/projects/starter_python_react-contracts/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/deploy-config.ts.j2 b/examples/starter_python_react/projects/starter_python_react-contracts/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/deploy-config.ts.j2 index c8b69ba..e8c272e 100644 --- a/examples/starter_python_react/projects/starter_python_react-contracts/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/deploy-config.ts.j2 +++ b/examples/starter_python_react/projects/starter_python_react-contracts/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/deploy-config.ts.j2 @@ -1,9 +1,9 @@ import * as algokit from '@algorandfoundation/algokit-utils' -import { HelloWorldClient } from '../artifacts/hello_world/client' +import { {{ contract_name.split('_')|map('capitalize')|join }}Client } from '../artifacts/{{ contract_name }}/client' // Below is a showcase of various deployment options you can use in TypeScript Client export async function deploy() { - console.log('=== Deploying HelloWorld ===') + console.log('=== Deploying {{ contract_name.split('_')|map('capitalize')|join }} ===') const algod = algokit.getAlgoClient() const indexer = algokit.getAlgoIndexerClient() @@ -16,7 +16,7 @@ export async function deploy() { }, algod, ) - const appClient = new HelloWorldClient( + const appClient = new {{ contract_name.split('_')|map('capitalize')|join }}Client( { resolveBy: 'creatorAndName', findExistingUsing: indexer, diff --git a/examples/starter_python_react/projects/starter_python_react-contracts/.copier-answers.yml b/examples/starter_python_react/projects/starter_python_react-contracts/.copier-answers.yml index 931f24f..f606bdd 100644 --- a/examples/starter_python_react/projects/starter_python_react-contracts/.copier-answers.yml +++ b/examples/starter_python_react/projects/starter_python_react-contracts/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: 1.0.6 +_commit: 1.0.10 _src_path: gh:algorandfoundation/algokit-python-template author_email: None author_name: None diff --git a/examples/starter_python_react/projects/starter_python_react-contracts/package.json b/examples/starter_python_react/projects/starter_python_react-contracts/package.json index 75b8aa2..e329b0d 100644 --- a/examples/starter_python_react/projects/starter_python_react-contracts/package.json +++ b/examples/starter_python_react/projects/starter_python_react-contracts/package.json @@ -13,10 +13,11 @@ "npm": ">=9.0" }, "dependencies": { - "@algorandfoundation/algokit-utils": "^5.1.0", - "algosdk": "^2.5.0" + "@algorandfoundation/algokit-utils": "^6.0.2", + "algosdk": "^2.7.0" }, "devDependencies": { + "@algorandfoundation/algokit-client-generator": "^3.0.3", "dotenv": "^16.0.3", "prettier": "^2.8.4", "ts-node-dev": "^2.0.0", diff --git a/examples/starter_python_react/projects/starter_python_react-contracts/pyproject.toml b/examples/starter_python_react/projects/starter_python_react-contracts/pyproject.toml index ec9061a..d22d38f 100644 --- a/examples/starter_python_react/projects/starter_python_react-contracts/pyproject.toml +++ b/examples/starter_python_react/projects/starter_python_react-contracts/pyproject.toml @@ -12,8 +12,7 @@ python-dotenv = "^1.0.0" algorand-python = "^1.0.0" [tool.poetry.group.dev.dependencies] -algokit-client-generator = "^1.1.3" -puyapy = "^1.0.0" +puyapy = "*" [build-system] requires = ["poetry-core"] diff --git a/examples/starter_python_react/projects/starter_python_react-contracts/smart_contracts/helpers/build.py b/examples/starter_python_react/projects/starter_python_react-contracts/smart_contracts/helpers/build.py index 51cea43..c604b01 100644 --- a/examples/starter_python_react/projects/starter_python_react-contracts/smart_contracts/helpers/build.py +++ b/examples/starter_python_react/projects/starter_python_react-contracts/smart_contracts/helpers/build.py @@ -53,7 +53,7 @@ def build(output_dir: Path, contract_path: Path) -> Path: if generate_result.returncode: if "No such command" in generate_result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 2.0.0 or " "later. Please update AlgoKit" ) else: diff --git a/examples/starter_python_react/projects/starter_python_react-contracts/tsconfig.json b/examples/starter_python_react/projects/starter_python_react-contracts/tsconfig.json index 7c76204..fc75893 100644 --- a/examples/starter_python_react/projects/starter_python_react-contracts/tsconfig.json +++ b/examples/starter_python_react/projects/starter_python_react-contracts/tsconfig.json @@ -14,11 +14,12 @@ "forceConsistentCasingInFileNames": true, "allowJs": false, "allowSyntheticDefaultImports": true, + "module": "CommonJS", "moduleResolution": "Node", "resolveJsonModule": true, "isolatedModules": true, "noEmit": true }, - "include": ["src/**/*.ts"], + "include": ["smart_contracts/**/*.ts"], "exclude": ["node_modules", "dist", "coverage"] } diff --git a/examples/starter_python_react/projects/starter_python_react-frontend/.copier-answers.yml b/examples/starter_python_react/projects/starter_python_react-frontend/.copier-answers.yml index be11e70..94a8342 100644 --- a/examples/starter_python_react/projects/starter_python_react-frontend/.copier-answers.yml +++ b/examples/starter_python_react/projects/starter_python_react-frontend/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: 1.0.4 +_commit: 1.0.5 _src_path: gh:algorandfoundation/algokit-react-frontend-template author_email: None author_name: None diff --git a/examples/starter_python_react/projects/starter_python_react-frontend/package.json b/examples/starter_python_react/projects/starter_python_react-frontend/package.json index 3ca042e..e96a2ba 100644 --- a/examples/starter_python_react/projects/starter_python_react-frontend/package.json +++ b/examples/starter_python_react/projects/starter_python_react-frontend/package.json @@ -12,6 +12,7 @@ "npm": ">=9.0" }, "devDependencies": { + "@algorandfoundation/algokit-client-generator": "^3.0.3", "@types/node": "^18.17.14", "@types/react": "^18.2.11", "@types/react-dom": "^18.2.4", @@ -23,7 +24,7 @@ }, "dependencies": { "@walletconnect/modal-sign-html": "^2.6.1", - "@algorandfoundation/algokit-utils": "^5.0.0", + "@algorandfoundation/algokit-utils": "^6.0.2", "@blockshake/defly-connect": "^1.1.6", "@daffiwallet/connect": "^1.0.3", "@perawallet/connect": "^1.3.1", diff --git a/examples/starter_tealscript_react/projects/starter_tealscript_react-contracts/__test__/Calculator.test.ts b/examples/starter_tealscript_react/projects/starter_tealscript_react-contracts/__test__/Calculator.test.ts index 4051a39..6552b8b 100644 --- a/examples/starter_tealscript_react/projects/starter_tealscript_react-contracts/__test__/Calculator.test.ts +++ b/examples/starter_tealscript_react/projects/starter_tealscript_react-contracts/__test__/Calculator.test.ts @@ -1,7 +1,7 @@ import { describe, test, expect, beforeAll, beforeEach } from '@jest/globals'; import { algorandFixture } from '@algorandfoundation/algokit-utils/testing'; -import { CalculatorClient } from '../contracts/clients/CalculatorClient'; import * as algokit from '@algorandfoundation/algokit-utils'; +import { CalculatorClient } from '../contracts/clients/CalculatorClient'; const fixture = algorandFixture(); algokit.Config.configure({ populateAppCallResources: true }); @@ -13,7 +13,8 @@ describe('Calculator', () => { beforeAll(async () => { await fixture.beforeEach(); - const { algod, testAccount } = fixture.context; + const { testAccount } = fixture.context; + const { algorand } = fixture; appClient = new CalculatorClient( { @@ -21,7 +22,7 @@ describe('Calculator', () => { resolveBy: 'id', id: 0, }, - algod + algorand.client.algod ); await appClient.create.createApplication({}); diff --git a/examples/starter_tealscript_react/projects/starter_tealscript_react-contracts/contracts/Calculator.algo.ts b/examples/starter_tealscript_react/projects/starter_tealscript_react-contracts/contracts/Calculator.algo.ts index c4feed5..9b36280 100644 --- a/examples/starter_tealscript_react/projects/starter_tealscript_react-contracts/contracts/Calculator.algo.ts +++ b/examples/starter_tealscript_react/projects/starter_tealscript_react-contracts/contracts/Calculator.algo.ts @@ -1,7 +1,6 @@ import { Contract } from '@algorandfoundation/tealscript'; -// eslint-disable-next-line no-unused-vars -class Calculator extends Contract { +export class Calculator extends Contract { /** * Calculates the sum of two numbers * diff --git a/examples/starter_tealscript_react/projects/starter_tealscript_react-contracts/contracts/clients/CalculatorClient.ts b/examples/starter_tealscript_react/projects/starter_tealscript_react-contracts/contracts/clients/CalculatorClient.ts index c89f171..829e996 100644 --- a/examples/starter_tealscript_react/projects/starter_tealscript_react-contracts/contracts/clients/CalculatorClient.ts +++ b/examples/starter_tealscript_react/projects/starter_tealscript_react-contracts/contracts/clients/CalculatorClient.ts @@ -73,7 +73,7 @@ export const APP_SPEC: AppSpec = { } }, "source": { - "approval": "I3ByYWdtYSB2ZXJzaW9uIDEwCgovLyBUaGlzIFRFQUwgd2FzIGdlbmVyYXRlZCBieSBURUFMU2NyaXB0IHYwLjkwLjMKLy8gaHR0cHM6Ly9naXRodWIuY29tL2FsZ29yYW5kZm91bmRhdGlvbi9URUFMU2NyaXB0CgovLyBUaGlzIGNvbnRyYWN0IGlzIGNvbXBsaWFudCB3aXRoIGFuZC9vciBpbXBsZW1lbnRzIHRoZSBmb2xsb3dpbmcgQVJDczogWyBBUkM0IF0KCi8vIFRoZSBmb2xsb3dpbmcgdGVuIGxpbm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nRyYWN0IGRvZXMgbm90IGltcGxlbWVudCB0aGUgZ2l2ZW4gQUJJIG1ldGhvZCBmb3IgY3JlYXRlIE5vT3AKCWVycgoKKmNhbGxfTm9PcDoKCW1ldGhvZCAiZG9NYXRoKHVpbnQ2NCx1aW50NjQsc3RyaW5nKXVpbnQ2NCIKCW1ldGhvZCAiaGVsbG8oc3RyaW5nKXN0cmluZyIKCXR4bmEgQXBwbGljYXRpb25BcmdzIDAKCW1hdGNoICphYmlfcm91dGVfZG9NYXRoICphYmlfcm91dGVfaGVsbG8KCgkvLyB0aGlzIGNvbnRyYWN0IGRvZXMgbm90IGltcGxlbWVudCB0aGUgZ2l2ZW4gQUJJIG1ldGhvZCBmb3IgY2FsbCBOb09wCgllcnI=", "clear": "I3ByYWdtYSB2ZXJzaW9uIDEw" }, "contract": { diff --git a/examples/starter_tealscript_react/projects/starter_tealscript_react-contracts/package.json b/examples/starter_tealscript_react/projects/starter_tealscript_react-contracts/package.json index eed6f55..778ef8a 100644 --- a/examples/starter_tealscript_react/projects/starter_tealscript_react-contracts/package.json +++ b/examples/starter_tealscript_react/projects/starter_tealscript_react-contracts/package.json @@ -12,7 +12,7 @@ "fix": "eslint . --ext .ts --fix" }, "dependencies": { - "@algorandfoundation/algokit-utils": "^5.5.0", + "@algorandfoundation/algokit-utils": "^6.0.2", "algosdk": "^2.7.0" }, "devDependencies": { diff --git a/examples/starter_tealscript_react/projects/starter_tealscript_react-frontend/.copier-answers.yml b/examples/starter_tealscript_react/projects/starter_tealscript_react-frontend/.copier-answers.yml index ac151f0..37f8f7b 100644 --- a/examples/starter_tealscript_react/projects/starter_tealscript_react-frontend/.copier-answers.yml +++ b/examples/starter_tealscript_react/projects/starter_tealscript_react-frontend/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: 1.0.4 +_commit: 1.0.5 _src_path: gh:algorandfoundation/algokit-react-frontend-template author_email: None author_name: None diff --git a/examples/starter_tealscript_react/projects/starter_tealscript_react-frontend/package.json b/examples/starter_tealscript_react/projects/starter_tealscript_react-frontend/package.json index d0cbc53..f946807 100644 --- a/examples/starter_tealscript_react/projects/starter_tealscript_react-frontend/package.json +++ b/examples/starter_tealscript_react/projects/starter_tealscript_react-frontend/package.json @@ -12,6 +12,7 @@ "npm": ">=9.0" }, "devDependencies": { + "@algorandfoundation/algokit-client-generator": "^3.0.3", "@types/node": "^18.17.14", "@types/react": "^18.2.11", "@types/react-dom": "^18.2.4", @@ -23,7 +24,7 @@ }, "dependencies": { "@walletconnect/modal-sign-html": "^2.6.1", - "@algorandfoundation/algokit-utils": "^5.0.0", + "@algorandfoundation/algokit-utils": "^6.0.2", "@blockshake/defly-connect": "^1.1.6", "@daffiwallet/connect": "^1.0.3", "@perawallet/connect": "^1.3.1", diff --git a/examples/starter_tealscript_react/projects/starter_tealscript_react-frontend/src/contracts/Calculator.ts b/examples/starter_tealscript_react/projects/starter_tealscript_react-frontend/src/contracts/Calculator.ts index 675c310..6780281 100644 --- a/examples/starter_tealscript_react/projects/starter_tealscript_react-frontend/src/contracts/Calculator.ts +++ b/examples/starter_tealscript_react/projects/starter_tealscript_react-frontend/src/contracts/Calculator.ts @@ -74,7 +74,7 @@ export const APP_SPEC: AppSpec = { } }, "source": { - "approval": "I3ByYWdtYSB2ZXJzaW9uIDEwCgovLyBUaGlzIFRFQUwgd2FzIGdlbmVyYXRlZCBieSBURUFMU2NyaXB0IHYwLjkwLjMKLy8gaHR0cHM6Ly9naXRodWIuY29tL2FsZ29yYW5kZm91bmRhdGlvbi9URUFMU2NyaXB0CgovLyBUaGlzIGNvbnRyYWN0IGlzIGNvbXBsaWFudCB3aXRoIGFuZC9vciBpbXBsZW1lbnRzIHRoZSBmb2xsb3dpbmcgQVJDczogWyBBUkM0IF0KCi8vIFRoZSBmb2xsb3dpbmcgdGVuIGxpbmVzIG9mIFRFQUwgaGFuZGxlIGluaXRpYWwgcHJvZ3JhbSBmbG93Ci8vIFRoaXMgcG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IgY3JlYXRlIE5vT3AKCWVycgoKKmNhbGxfTm9PcDoKCW1ldGhvZCAiZG9NYXRoKHVpbnQ2NCx1aW50NjQsc3RyaW5nKXVpbnQ2NCIKCW1ldGhvZCAiaGVsbG8oc3RyaW5nKXN0cmluZyIKCXR4bmEgQXBwbGljYXRpb25BcmdzIDAKCW1hdGNoICphYmlfcm91dGVfZG9NYXRoICphYmlfcm91dGVfaGVsbG8KCgkvLyB0aGlzIGNvbnRyYWN0IGRvZXMgbm90IGltcGxlbWVudCB0aGUgZ2l2ZW4gQUJJIG1ldGhvZCBmb3IgY2FsbCBOb09wCgllcnI=", "clear": "I3ByYWdtYSB2ZXJzaW9uIDEw" }, "contract": { @@ -429,7 +429,7 @@ export class CalculatorClient { * @param params Any additional parameters for the call * @returns The create result */ - async createApplication(args: MethodArgs<'createApplication()void'>, params: AppClientCallCoreParams & AppClientCompilationParams & IncludeSchema & (OnCompleteNoOp) = {}) { + async createApplication(args: MethodArgs<'createApplication()void'>, params: AppClientCallCoreParams & AppClientCompilationParams & IncludeSchema & CoreAppCallArgs & (OnCompleteNoOp) = {}) { return $this.mapReturnValue, AppCreateCallTransactionResult>(await $this.appClient.create(CalculatorCallFactory.create.createApplication(args, params))) }, } diff --git a/template_content/README.md.jinja b/template_content/README.md.jinja index 34f36de..7239ff2 100644 --- a/template_content/README.md.jinja +++ b/template_content/README.md.jinja @@ -61,7 +61,7 @@ It has also been configured to have a productive dev experience out of the box i Refer to the [{{ project_name }}-contracts](projects/{{ project_name }}-contracts/README.md) folder for overview of working with smart contracts, [projects/{{ project_name }}-frontend](projects/{{ project_name }}-frontend/README.md) for overview of the React project and the [projects/{{ project_name }}-frontend/contracts](projects/{{ project_name }}-frontend/src/contracts/README.md) folder for README on adding new smart contracts from backend as application clients on your frontend. The templates provided in these folders will help you get started. When you compile and generate smart contract artifacts, your frontend component will automatically generate typescript application clients from smart contract artifacts and move them to `frontend/src/contracts` folder, see [`generate:app-clients` in package.json](projects/{{ project_name }}-frontend/package.json). Afterwards, you are free to import and use them in your frontend application. -The frontend starter also provides an example of interactions with your {{ contract_name.split('_')|map('capitalize')|join }}Client in [`AppCalls.tsx`](projects/{{ project_name }}-frontend/src/components/AppCalls.tsx) component by default. +The frontend starter also provides an example of interactions with your {{ contract_name if contract_template == 'tealscript' else contract_name.split('_')|map('capitalize')|join }}Client in [`AppCalls.tsx`](projects/{{ project_name }}-frontend/src/components/AppCalls.tsx) component by default. ## Next Steps diff --git a/template_content/inject_content/AppCalls.tsx.jinja b/template_content/inject_content/AppCalls.tsx.jinja index 491d7a9..75dfa3d 100644 --- a/template_content/inject_content/AppCalls.tsx.jinja +++ b/template_content/inject_content/AppCalls.tsx.jinja @@ -55,7 +55,7 @@ const AppCalls = ({ openModal, setModalState }: AppCallsInterface) => { // Given the simplicity of the starter contract, we are deploying it on the frontend // for demonstration purposes. {%- if contract_template == 'tealscript'%} - const appClient = new {{ contract_name.split('_')|map('capitalize')|join }}Client( + const appClient = new {{ contract_name }}Client( { sender: { signer, addr: activeAddress } as TransactionSignerAccount, resolveBy: 'id',