diff --git a/examples/generators/production_python_smart_contract_python/README.md b/examples/generators/production_python_smart_contract_python/README.md index dc2a1a4..a1878d1 100644 --- a/examples/generators/production_python_smart_contract_python/README.md +++ b/examples/generators/production_python_smart_contract_python/README.md @@ -123,9 +123,11 @@ For pull requests and pushes to `main` branch against this repository the follow - - `Algorand Python` smart contract unit tests, that are run using [`algorand-python-testing`](https://pypi.org/project/algorand-python-testing/), which are executed in a Python intepreter emulating major AVM behaviour - - Python `ApplicationClient` tests that are run against `algokit localnet` and test the behaviour in a real network enviornment - Smart contract artifacts are built - - Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md) + - Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md). - Smart contract is deployed to a AlgoKit LocalNet instance +> NOTE: By default smart contract artifacts are compiled with `--debug-level` set to 0, to change this, modify the compiler invocation under `smart_contracts/_helpers/build.py` + #### Continuous Deployment For pushes to `main` branch, after the above checks pass, the following deployment actions are performed: diff --git a/examples/generators/production_python_smart_contract_python/smart_contracts/_helpers/build.py b/examples/generators/production_python_smart_contract_python/smart_contracts/_helpers/build.py index 771b585..20770e8 100644 --- a/examples/generators/production_python_smart_contract_python/smart_contracts/_helpers/build.py +++ b/examples/generators/production_python_smart_contract_python/smart_contracts/_helpers/build.py @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path: contract_path.absolute(), f"--out-dir={output_dir}", "--output-arc32", + "--debug-level=0", ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, diff --git a/examples/generators/production_python_smart_contract_typescript/README.md b/examples/generators/production_python_smart_contract_typescript/README.md index 4d58024..c73ea33 100644 --- a/examples/generators/production_python_smart_contract_typescript/README.md +++ b/examples/generators/production_python_smart_contract_typescript/README.md @@ -122,9 +122,11 @@ For pull requests and pushes to `main` branch against this repository the follow - Types are checked using [mypy](https://mypy-lang.org/) - Typescript `ApplicationClient` tests against `algokit localnet` are executed using [jest](https://jestjs.io/) - Smart contract artifacts are built - - Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md) + - Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md). - Smart contract is deployed to a AlgoKit LocalNet instance +> NOTE: By default smart contract artifacts are compiled with `--debug-level` set to 0, to change this, modify the compiler invocation under `smart_contracts/_helpers/build.py` + #### Continuous Deployment For pushes to `main` branch, after the above checks pass, the following deployment actions are performed: diff --git a/examples/generators/production_python_smart_contract_typescript/smart_contracts/_helpers/build.py b/examples/generators/production_python_smart_contract_typescript/smart_contracts/_helpers/build.py index a78f2d9..ea0a8d5 100644 --- a/examples/generators/production_python_smart_contract_typescript/smart_contracts/_helpers/build.py +++ b/examples/generators/production_python_smart_contract_typescript/smart_contracts/_helpers/build.py @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path: contract_path.absolute(), f"--out-dir={output_dir}", "--output-arc32", + "--debug-level=0", ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, diff --git a/examples/generators/starter_python_smart_contract_python/smart_contracts/_helpers/build.py b/examples/generators/starter_python_smart_contract_python/smart_contracts/_helpers/build.py index 771b585..20770e8 100644 --- a/examples/generators/starter_python_smart_contract_python/smart_contracts/_helpers/build.py +++ b/examples/generators/starter_python_smart_contract_python/smart_contracts/_helpers/build.py @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path: contract_path.absolute(), f"--out-dir={output_dir}", "--output-arc32", + "--debug-level=0", ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, diff --git a/examples/generators/starter_python_smart_contract_typescript/smart_contracts/_helpers/build.py b/examples/generators/starter_python_smart_contract_typescript/smart_contracts/_helpers/build.py index a78f2d9..ea0a8d5 100644 --- a/examples/generators/starter_python_smart_contract_typescript/smart_contracts/_helpers/build.py +++ b/examples/generators/starter_python_smart_contract_typescript/smart_contracts/_helpers/build.py @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path: contract_path.absolute(), f"--out-dir={output_dir}", "--output-arc32", + "--debug-level=0", ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, diff --git a/examples/production_python/README.md b/examples/production_python/README.md index e9d3ee2..db71a01 100644 --- a/examples/production_python/README.md +++ b/examples/production_python/README.md @@ -123,9 +123,11 @@ For pull requests and pushes to `main` branch against this repository the follow - - `Algorand Python` smart contract unit tests, that are run using [`algorand-python-testing`](https://pypi.org/project/algorand-python-testing/), which are executed in a Python intepreter emulating major AVM behaviour - - Python `ApplicationClient` tests that are run against `algokit localnet` and test the behaviour in a real network enviornment - Smart contract artifacts are built - - Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md) + - Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md). - Smart contract is deployed to a AlgoKit LocalNet instance +> NOTE: By default smart contract artifacts are compiled with `--debug-level` set to 0, to change this, modify the compiler invocation under `smart_contracts/_helpers/build.py` + #### Continuous Deployment For pushes to `main` branch, after the above checks pass, the following deployment actions are performed: diff --git a/examples/production_python/smart_contracts/_helpers/build.py b/examples/production_python/smart_contracts/_helpers/build.py index 771b585..20770e8 100644 --- a/examples/production_python/smart_contracts/_helpers/build.py +++ b/examples/production_python/smart_contracts/_helpers/build.py @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path: contract_path.absolute(), f"--out-dir={output_dir}", "--output-arc32", + "--debug-level=0", ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, diff --git a/examples/starter_python/smart_contracts/_helpers/build.py b/examples/starter_python/smart_contracts/_helpers/build.py index 771b585..20770e8 100644 --- a/examples/starter_python/smart_contracts/_helpers/build.py +++ b/examples/starter_python/smart_contracts/_helpers/build.py @@ -31,6 +31,7 @@ def build(output_dir: Path, contract_path: Path) -> Path: contract_path.absolute(), f"--out-dir={output_dir}", "--output-arc32", + "--debug-level=0", ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, diff --git a/template_content/README.md.jinja b/template_content/README.md.jinja index c95d783..c8e5266 100644 --- a/template_content/README.md.jinja +++ b/template_content/README.md.jinja @@ -154,9 +154,11 @@ For pull requests and pushes to `main` branch against this repository the follow - Typescript `ApplicationClient` tests against `algokit localnet` are executed using [jest](https://jestjs.io/) {%- endif %} - Smart contract artifacts are built - - Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md) + - Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md). - Smart contract is deployed to a AlgoKit LocalNet instance +> NOTE: By default smart contract artifacts are compiled with `--debug-level` set to 0, to change this, modify the compiler invocation under `smart_contracts/_helpers/build.py` + #### Continuous Deployment For pushes to `main` branch, after the above checks pass, the following deployment actions are performed: diff --git a/template_content/smart_contracts/_helpers/build.py.jinja b/template_content/smart_contracts/_helpers/build.py.jinja index fd1e9fa..dc679e0 100644 --- a/template_content/smart_contracts/_helpers/build.py.jinja +++ b/template_content/smart_contracts/_helpers/build.py.jinja @@ -34,6 +34,7 @@ def build(output_dir: Path, contract_path: Path) -> Path: contract_path.absolute(), f"--out-dir={output_dir}", "--output-arc32", + "--debug-level=0", ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT,