-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.algokit.toml
More file actions
53 lines (46 loc) · 2.04 KB
/
Copy path.algokit.toml
File metadata and controls
53 lines (46 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[algokit]
min_version = "v2.0.0"
[generate.smart-contract]
description = "Generate a new smart contract for existing project"
path = ".algokit/generators/create_contract"
[generate.env-file]
description = "Generate a new generic or Algorand network specific .env file"
path = ".algokit/generators/create_env_file"
[project]
type = 'contract'
name = 'd-asa'
artifacts = 'smart_contracts/artifacts'
[project.deploy]
command = "poetry run python -m smart_contracts deploy"
environment_secrets = [
"DEPLOYER_MNEMONIC",
"DISPENSER_MNEMONIC",
]
[project.deploy.localnet]
environment_secrets = []
[project.run]
# Commands intented for use locally and in CI
build = { commands = [
'poetry run python -m smart_contracts build',
], description = 'Build all smart contracts in the project' }
test = { commands = [
'poetry run pytest -m "not showcase"',
], description = 'Run smart contract tests' }
audit = { commands = [
'poetry run pip-audit',
], description = 'Audit with pip-audit' }
lint = { commands = [
'poetry run black --check --diff .',
'poetry run ruff check .',
'poetry run mypy',
], description = 'Perform linting' }
audit-teal = { commands = [
# 🚨 IMPORTANT 🚨: For strict TEAL validation, remove --exclude statements. The default starter contract is not for production. Ensure thorough testing and adherence to best practices in smart contract development. This is not a replacement for a professional audit.
'algokit task analyze smart_contracts/artifacts --recursive --force --exclude rekey-to --exclude is-updatable --exclude missing-fee-check --exclude is-deletable --exclude can-close-asset --exclude can-close-account --exclude unprotected-deletable --exclude unprotected-updatable',
], description = 'Audit TEAL files' }
# Commands intented for CI only, prefixed with `ci-` by convention
ci-teal-diff = { commands = [
'git add -N ./smart_contracts/artifacts',
'git add -N ./src/d_asa/artifacts',
'git diff --exit-code --minimal ./smart_contracts/artifacts ./src/d_asa/artifacts',
], description = 'Check generated artifacts for differences' }