Skip to content

Commit 947a893

Browse files
committed
AK-194: Update dev portal links
1 parent ef72612 commit 947a893

File tree

8 files changed

+111
-83
lines changed

8 files changed

+111
-83
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
<p align="center">
66
<a target="_blank" href="https://github.com/algorandfoundation/algokit-cli"><img src="https://img.shields.io/badge/docs-repository-00dc94?logo=github&style=flat.svg" /></a>
7-
<a target="_blank" href="https://developer.algorand.org/algokit/"><img src="https://img.shields.io/badge/learn-AlgoKit-00dc94?logo=algorand&mac=flat.svg" /></a>
7+
<a target="_blank" href="https://algorand.co/algokit/"><img src="https://img.shields.io/badge/learn-AlgoKit-00dc94?logo=algorand&mac=flat.svg" /></a>
88
<a target="_blank" href="https://github.com/algorandfoundation/algokit-python-template"><img src="https://img.shields.io/github/stars/algorandfoundation/algokit-python-template?color=00dc94&logo=star&style=flat" /></a>
9-
<a target="_blank" href="https://developer.algorand.org/algokit/"><img src="https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2Falgorandfoundation%2Falgokit-python-template&countColor=%2300dc94&style=flat" /></a>
9+
<a target="_blank" href="https://algorand.co/algokit/"><img src="https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2Falgorandfoundation%2Falgokit-python-template&countColor=%2300dc94&style=flat" /></a>
1010
</p>
1111

1212
---

examples/generators/production_python_smart_contract_python/README.md

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@ This project has been generated using AlgoKit. See below for default getting sta
1414
### Initial Setup
1515

1616
#### 1. Clone the Repository
17+
1718
Start by cloning this repository to your local machine.
1819

1920
#### 2. Install Pre-requisites
21+
2022
Ensure the following pre-requisites are installed and properly configured:
2123

2224
- **Docker**: Required for running a local Algorand network. [Install Docker](https://www.docker.com/).
2325
- **AlgoKit CLI**: Essential for project setup and operations. Install the latest version from [AlgoKit CLI Installation Guide](https://github.com/algorandfoundation/algokit-cli#install). Verify installation with `algokit --version`, expecting `2.0.0` or later.
2426

2527
#### 3. Bootstrap Your Local Environment
28+
2629
Run the following commands within the project folder:
2730

2831
- **Install Poetry**: Required for Python dependency management. [Installation Guide](https://python-poetry.org/docs/#installation). Verify with `poetry -V` to see version `1.2`+.
@@ -33,14 +36,16 @@ Run the following commands within the project folder:
3336
### Development Workflow
3437

3538
#### Terminal
39+
3640
Directly manage and interact with your project using AlgoKit commands:
3741

3842
1. **Build Contracts**: `algokit project run build` compiles all smart contracts. You can also specify a specific contract by passing the name of the contract folder as an extra argument.
39-
For example: `algokit project run build -- hello_world` will only build the `hello_world` contract.
43+
For example: `algokit project run build -- hello_world` will only build the `hello_world` contract.
4044
2. **Deploy**: Use `algokit project deploy localnet` to deploy contracts to the local network. You can also specify a specific contract by passing the name of the contract folder as an extra argument.
41-
For example: `algokit project deploy localnet -- hello_world` will only deploy the `hello_world` contract.
45+
For example: `algokit project deploy localnet -- hello_world` will only deploy the `hello_world` contract.
46+
47+
#### VS Code
4248

43-
#### VS Code
4449
For a seamless experience with breakpoint debugging and other features:
4550

4651
1. **Open Project**: In VS Code, open the repository root.
@@ -50,20 +55,22 @@ For a seamless experience with breakpoint debugging and other features:
5055
- **Windows Users**: Select the Python interpreter at `./.venv/Scripts/python.exe` via `Ctrl/Cmd + Shift + P` > `Python: Select Interpreter` before the first run.
5156

5257
#### JetBrains IDEs
58+
5359
While primarily optimized for VS Code, JetBrains IDEs are supported:
5460

5561
1. **Open Project**: In your JetBrains IDE, open the repository root.
5662
2. **Automatic Setup**: The IDE should configure the Python interpreter and virtual environment.
5763
3. **Debugging**: Use `Shift+F10` or `Ctrl+R` to start debugging. Note: Windows users may encounter issues with pre-launch tasks due to a known bug. See [JetBrains forums](https://youtrack.jetbrains.com/issue/IDEA-277486/Shell-script-configuration-cannot-run-as-before-launch-task) for workarounds.
5864

5965
## AlgoKit Workspaces and Project Management
66+
6067
This project supports both standalone and monorepo setups through AlgoKit workspaces. Leverage [`algokit project run`](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/features/project/run.md) commands for efficient monorepo project orchestration and management across multiple projects within a workspace.
6168

6269
## AlgoKit Generators
6370

6471
This template provides a set of [algokit generators](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/features/generate.md) that allow you to further modify the project instantiated from the template to fit your needs, as well as giving you a base to build your own extensions to invoke via the `algokit generate` command.
6572

66-
### Generate Smart Contract
73+
### Generate Smart Contract
6774

6875
By default the template creates a single `HelloWorld` contract under hello_world folder in the `smart_contracts` directory. To add a new contract:
6976

@@ -75,7 +82,7 @@ By default the template creates a single `HelloWorld` contract under hello_world
7582
7683
### Generate '.env' files
7784

78-
By default the template instance does not contain any env files. Using [`algokit project deploy`](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/features/project/deploy.md) against `localnet` | `testnet` | `mainnet` will use default values for `algod` and `indexer` unless overwritten via `.env` or `.env.{target_network}`.
85+
By default the template instance does not contain any env files. Using [`algokit project deploy`](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/features/project/deploy.md) against `localnet` | `testnet` | `mainnet` will use default values for `algod` and `indexer` unless overwritten via `.env` or `.env.{target_network}`.
7986

8087
To generate a new `.env` or `.env.{target_network}` file, run `algokit generate env-file`
8188

@@ -98,50 +105,52 @@ To define custom `algokit project run` commands refer to [documentation](https:/
98105

99106
#### Setting up GitHub for CI/CD workflow and TestNet deployment
100107

101-
1. Every time you have a change to your smart contract, and when you first initialize the project you need to [build the contract](#initial-setup) and then commit the `smart_contracts/artifacts` folder so the [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md) tests pass
102-
2. Decide what values you want to use for the `allow_update`, `allow_delete` and the `on_schema_break`, `on_update` parameters specified in [`contract.py`](./smart_contracts/hello_world/contract.py).
103-
When deploying to LocalNet these values are both set to allow update and replacement of the app for convenience. But for non-LocalNet networks
104-
the defaults are more conservative.
105-
These default values will allow the smart contract to be deployed initially, but will not allow the app to be updated or deleted if is changed and the build will instead fail.
106-
To help you decide it may be helpful to read the [AlgoKit Utils app deployment documentation](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/docs/capabilities/app-deploy.md) or the [AlgoKit smart contract deployment architecture](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/architecture-decisions/2023-01-12_smart-contract-deployment.md#upgradeable-and-deletable-contracts).
107-
3. Create a [Github Environment](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#creating-an-environment) named `Test`.
108-
Note: If you have a private repository and don't have GitHub Enterprise then Environments won't work and you'll need to convert the GitHub Action to use a different approach. Ignore this step if you picked `Starter` preset.
109-
4. Create or obtain a mnemonic for an Algorand account for use on TestNet to deploy apps, referred to as the `DEPLOYER` account.
110-
5. Store the mnemonic as a [secret](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#environment-secrets) `DEPLOYER_MNEMONIC`
111-
in the Test environment created in step 3.
112-
6. The account used to deploy the smart contract will require enough funds to create the app, and also fund it. There are two approaches available here:
113-
* Either, ensure the account is funded outside of CI/CD.
114-
In Testnet, funds can be obtained by using the [Algorand TestNet dispenser](https://bank.testnet.algorand.network/) and we recommend provisioning 50 ALGOs.
115-
* Or, fund the account as part of the CI/CD process by using a `DISPENSER_MNEMONIC` GitHub Environment secret to point to a separate `DISPENSER` account that you maintain ALGOs in (similarly, you need to provision ALGOs into this account using the [TestNet dispenser](https://bank.testnet.algorand.network/)).
108+
1. Every time you have a change to your smart contract, and when you first initialize the project you need to [build the contract](#initial-setup) and then commit the `smart_contracts/artifacts` folder so the [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md) tests pass
109+
2. Decide what values you want to use for the `allow_update`, `allow_delete` and the `on_schema_break`, `on_update` parameters specified in [`contract.py`](./smart_contracts/hello_world/contract.py).
110+
When deploying to LocalNet these values are both set to allow update and replacement of the app for convenience. But for non-LocalNet networks
111+
the defaults are more conservative.
112+
These default values will allow the smart contract to be deployed initially, but will not allow the app to be updated or deleted if is changed and the build will instead fail.
113+
To help you decide it may be helpful to read the [AlgoKit Utils app deployment documentation](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/docs/capabilities/app-deploy.md) or the [AlgoKit smart contract deployment architecture](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/architecture-decisions/2023-01-12_smart-contract-deployment.md#upgradeable-and-deletable-contracts).
114+
3. Create a [Github Environment](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#creating-an-environment) named `Test`.
115+
Note: If you have a private repository and don't have GitHub Enterprise then Environments won't work and you'll need to convert the GitHub Action to use a different approach. Ignore this step if you picked `Starter` preset.
116+
4. Create or obtain a mnemonic for an Algorand account for use on TestNet to deploy apps, referred to as the `DEPLOYER` account.
117+
5. Store the mnemonic as a [secret](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#environment-secrets) `DEPLOYER_MNEMONIC`
118+
in the Test environment created in step 3.
119+
6. The account used to deploy the smart contract will require enough funds to create the app, and also fund it. There are two approaches available here:
120+
- Either, ensure the account is funded outside of CI/CD.
121+
In Testnet, funds can be obtained by using the [Algorand TestNet dispenser](https://bank.testnet.algorand.network/) and we recommend provisioning 50 ALGOs.
122+
- Or, fund the account as part of the CI/CD process by using a `DISPENSER_MNEMONIC` GitHub Environment secret to point to a separate `DISPENSER` account that you maintain ALGOs in (similarly, you need to provision ALGOs into this account using the [TestNet dispenser](https://bank.testnet.algorand.network/)).
116123

117124
#### Continuous Integration
118125

119126
For pull requests and pushes to `main` branch against this repository the following checks are automatically performed by GitHub Actions:
120-
- Python dependencies are audited using [pip-audit](https://pypi.org/project/pip-audit/)
121-
- Code formatting is checked using [Black](https://github.com/psf/black)
122-
- Linting is checked using [Ruff](https://github.com/charliermarsh/ruff)
123-
- Types are checked using [mypy](https://mypy-lang.org/)
127+
128+
- Python dependencies are audited using [pip-audit](https://pypi.org/project/pip-audit/)
129+
- Code formatting is checked using [Black](https://github.com/psf/black)
130+
- Linting is checked using [Ruff](https://github.com/charliermarsh/ruff)
131+
- Types are checked using [mypy](https://mypy-lang.org/)
124132
- The base framework for testing is [pytest](https://docs.pytest.org/), and the project includes two separate kinds of tests:
125133
- - `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
126134
- - Python `ApplicationClient` tests that are run against `algokit localnet` and test the behaviour in a real network enviornment
127-
- Smart contract artifacts are built
128-
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md).
129-
- Smart contract is deployed to a AlgoKit LocalNet instance
135+
- Smart contract artifacts are built
136+
- Smart contract artifacts are checked for [output stability](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/articles/output_stability.md).
137+
- Smart contract is deployed to a AlgoKit LocalNet instance
130138

131139
> 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`
132140
133141
#### Continuous Deployment
134142

135143
For pushes to `main` branch, after the above checks pass, the following deployment actions are performed:
136-
- The smart contract(s) are deployed to TestNet using [AlgoNode](https://algonode.io).
144+
145+
- The smart contract(s) are deployed to TestNet using [AlgoNode](https://algonode.io).
137146

138147
> Please note deployment is also performed via `algokit deploy` command which can be invoked both via CI as seen on this project, or locally. For more information on how to use `algokit deploy` please see [AlgoKit documentation](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/features/deploy.md).
139148
140149
# Tools
141150

142151
This project makes use of Algorand Python to build Algorand smart contracts. The following tools are in use:
143152

144-
- [Algorand](https://www.algorand.com/) - Layer 1 Blockchain; [Developer portal](https://developer.algorand.org/), [Why Algorand?](https://developer.algorand.org/docs/get-started/basics/why_algorand/)
153+
- [Algorand](https://www.algorand.com/) - Layer 1 Blockchain; [Developer portal](https://dev.algorand.co/), [Why Algorand?](https://dev.algorand.co/getting-started/why-algorand/)
145154
- [AlgoKit](https://github.com/algorandfoundation/algokit-cli) - One-stop shop tool for developers building on the Algorand network; [docs](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/algokit.md), [intro tutorial](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/tutorials/intro.md)
146155
- [Algorand Python](https://github.com/algorandfoundation/puya) - A semantically and syntactically compatible, typed Python language that works with standard Python tooling and allows you to express smart contracts (apps) and smart signatures (logic signatures) for deployment on the Algorand Virtual Machine (AVM); [docs](https://github.com/algorandfoundation/puya), [examples](https://github.com/algorandfoundation/puya/tree/main/examples)
147156
- [AlgoKit Utils](https://github.com/algorandfoundation/algokit-utils-py) - A set of core Algorand utilities that make it easier to build solutions on Algorand.
@@ -151,5 +160,4 @@ This project makes use of Algorand Python to build Algorand smart contracts. The
151160
- [pytest](https://docs.pytest.org/): Automated testing.
152161
- [pip-audit](https://pypi.org/project/pip-audit/): Tool for scanning Python environments for packages with known vulnerabilities.
153162
- [pre-commit](https://pre-commit.com/): A framework for managing and maintaining multi-language pre-commit hooks, to enable pre-commit you need to run `pre-commit install` in the root of the repository. This will install the pre-commit hooks and run them against modified files when committing. If any of the hooks fail, the commit will be aborted. To run the hooks on all files, use `pre-commit run --all-files`.
154-
It has also been configured to have a productive dev experience out of the box in [VS Code](https://code.visualstudio.com/), see the [.vscode](./.vscode) folder.
155-
163+
It has also been configured to have a productive dev experience out of the box in [VS Code](https://code.visualstudio.com/), see the [.vscode](./.vscode) folder.

examples/generators/production_python_smart_contract_typescript/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ For pushes to `main` branch, after the above checks pass, the following deployme
140140

141141
This project makes use of Algorand Python to build Algorand smart contracts. The following tools are in use:
142142

143-
- [Algorand](https://www.algorand.com/) - Layer 1 Blockchain; [Developer portal](https://developer.algorand.org/), [Why Algorand?](https://developer.algorand.org/docs/get-started/basics/why_algorand/)
143+
- [Algorand](https://www.algorand.com/) - Layer 1 Blockchain; [Developer portal](https://dev.algorand.co/), [Why Algorand?](https://dev.algorand.co/getting-started/why-algorand/)
144144
- [AlgoKit](https://github.com/algorandfoundation/algokit-cli) - One-stop shop tool for developers building on the Algorand network; [docs](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/algokit.md), [intro tutorial](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/tutorials/intro.md)
145145
- [Algorand Python](https://github.com/algorandfoundation/puya) - A semantically and syntactically compatible, typed Python language that works with standard Python tooling and allows you to express smart contracts (apps) and smart signatures (logic signatures) for deployment on the Algorand Virtual Machine (AVM); [docs](https://github.com/algorandfoundation/puya), [examples](https://github.com/algorandfoundation/puya/tree/main/examples)
146146
- [AlgoKit Utils](https://github.com/algorandfoundation/algokit-utils-ts) - A set of core Algorand utilities that make it easier to build solutions on Algorand.

0 commit comments

Comments
 (0)