Skip to content

Commit

Permalink
chore: fixing typos
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev committed Dec 19, 2023
1 parent eb2f445 commit d78457a
Show file tree
Hide file tree
Showing 19 changed files with 83 additions and 26 deletions.
4 changes: 2 additions & 2 deletions template_content/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ readme = "README.md"

[tool.poetry.dependencies]
python = "^3.12"
algokit-utils = "^2.0.1"
algokit-utils = "^2.2.0"
python-dotenv = "^1.0.0"
puya = "^0.1.3"
puya = "^0.2.0"

[tool.poetry.group.dev.dependencies]
{% if use_python_black -%}
Expand Down
11 changes: 7 additions & 4 deletions template_content/smart_contracts/__main__.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ from pathlib import Path
from dotenv import load_dotenv

from smart_contracts.config import contracts
{% if deployment_language == 'python' -%}
from smart_contracts.helpers.build import build
{% if deployment_language == 'python' -%}
from smart_contracts.helpers.deploy import deploy
{%- elif deployment_language == 'typescript' -%}
from smart_contracts.helpers.build import build
{%- endif %}

# Uncomment the following lines to enable auto generation of AVM Debugger compliant sourcemap and simulation trace file.
# Learn more about using AlgoKit AVM Debugger to debug your TEAL source codes and inspect various kinds of
# Algorand transactions in atomic groups -> https://github.com/algorandfoundation/algokit-avm-vscode-debugger
# from algokit_utils.config import config
# config.configure(debug=True, trace_all=True)
{%- endif %}
logging.basicConfig(
level=logging.DEBUG, format="%(asctime)s %(levelname)-10s: %(message)s"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ import * as path from 'path'
import { consoleLogger } from '@algorandfoundation/algokit-utils/types/logging'
import * as algokit from '@algorandfoundation/algokit-utils'

// Uncomment the debug and traceAll options to enable auto generation of AVM Debugger compliant sourceMap and simulation trace file.
// Learn more about using AlgoKit AVM Debugger to debug your TEAL source codes and inspect various kinds of Algorand transactions in atomic groups -> https://github.com/algorandfoundation/algokit-avm-vscode-Debugger

algokit.Config.configure({
logger: consoleLogger,
// debug: true,
// traceAll: true,
})

// base directory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@
"module": "smart_contracts",
"args": ["build"],
"cwd": "${workspaceFolder}"
},
{
"type": "avm",
"request": "launch",
"name": "Debug TEAL via AlgoKit AVM Debugger",
"simulateTraceFile": "${workspaceFolder}/${command:PickSimulateTraceFile}",
"stopOnEntry": true
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ def {{ contract_name }}_client(
)

client.deploy(
on_schema_break=algokit_utils.OnSchemaBreak.ReplaceApp,
on_update=algokit_utils.OnUpdate.UpdateApp,
allow_delete=True,
allow_update=True,
on_schema_break=algokit_utils.OnSchemaBreak.AppendApp,
on_update=algokit_utils.OnUpdate.AppendApp,
)
return client

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
"module": "smart_contracts",
"args": ["build"],
"cwd": "${workspaceFolder}"
},
{
"type": "avm",
"request": "launch",
"name": "Debug TEAL via AlgoKit AVM Debugger",
"simulateTraceFile": "${workspaceFolder}/${command:PickSimulateTraceFile}",
"stopOnEntry": true
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ readme = "README.md"

[tool.poetry.dependencies]
python = "^3.12"
algokit-utils = "^2.0.1"
algokit-utils = "^2.2.0"
python-dotenv = "^1.0.0"
puya = "^0.1.3"
puya = "^0.2.0"

[tool.poetry.group.dev.dependencies]
black = {extras = ["d"], version = "*"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
from smart_contracts.helpers.build import build
from smart_contracts.helpers.deploy import deploy

# Uncomment the following lines to enable auto generation of AVM Debugger compliant sourcemap and simulation trace file.
# Learn more about using AlgoKit AVM Debugger to debug your TEAL source codes and inspect various kinds of
# Algorand transactions in atomic groups -> https://github.com/algorandfoundation/algokit-avm-vscode-debugger
# from algokit_utils.config import config
# config.configure(debug=True, trace_all=True)
logging.basicConfig(
level=logging.DEBUG, format="%(asctime)s %(levelname)-10s: %(message)s"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ def hello_world_client(
)

client.deploy(
on_schema_break=algokit_utils.OnSchemaBreak.ReplaceApp,
on_update=algokit_utils.OnUpdate.UpdateApp,
allow_delete=True,
allow_update=True,
on_schema_break=algokit_utils.OnSchemaBreak.AppendApp,
on_update=algokit_utils.OnUpdate.AppendApp,
)
return client

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
"module": "smart_contracts",
"args": ["build"],
"cwd": "${workspaceFolder}"
},
{
"type": "avm",
"request": "launch",
"name": "Debug TEAL via AlgoKit AVM Debugger",
"simulateTraceFile": "${workspaceFolder}/${command:PickSimulateTraceFile}",
"stopOnEntry": true
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ readme = "README.md"

[tool.poetry.dependencies]
python = "^3.12"
algokit-utils = "^2.0.1"
algokit-utils = "^2.2.0"
python-dotenv = "^1.0.0"
puya = "^0.1.3"
puya = "^0.2.0"

[tool.poetry.group.dev.dependencies]
black = {extras = ["d"], version = "*"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ import * as path from 'path'
import { consoleLogger } from '@algorandfoundation/algokit-utils/types/logging'
import * as algokit from '@algorandfoundation/algokit-utils'

// Uncomment the debug and traceAll options to enable auto generation of AVM Debugger compliant sourceMap and simulation trace file.
// Learn more about using AlgoKit AVM Debugger to debug your TEAL source codes and inspect various kinds of Algorand transactions in atomic groups -> https://github.com/algorandfoundation/algokit-avm-vscode-Debugger

algokit.Config.configure({
logger: consoleLogger,
// debug: true,
// traceAll: true,
})

// base directory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
"module": "smart_contracts",
"args": ["build"],
"cwd": "${workspaceFolder}"
},
{
"type": "avm",
"request": "launch",
"name": "Debug TEAL via AlgoKit AVM Debugger",
"simulateTraceFile": "${workspaceFolder}/${command:PickSimulateTraceFile}",
"stopOnEntry": true
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ readme = "README.md"

[tool.poetry.dependencies]
python = "^3.12"
algokit-utils = "^2.0.1"
algokit-utils = "^2.2.0"
python-dotenv = "^1.0.0"
puya = "^0.1.3"
puya = "^0.2.0"

[tool.poetry.group.dev.dependencies]
black = {extras = ["d"], version = "*"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
from smart_contracts.helpers.build import build
from smart_contracts.helpers.deploy import deploy

# Uncomment the following lines to enable auto generation of AVM Debugger compliant sourcemap and simulation trace file.
# Learn more about using AlgoKit AVM Debugger to debug your TEAL source codes and inspect various kinds of
# Algorand transactions in atomic groups -> https://github.com/algorandfoundation/algokit-avm-vscode-debugger
# from algokit_utils.config import config
# config.configure(debug=True, trace_all=True)
logging.basicConfig(
level=logging.DEBUG, format="%(asctime)s %(levelname)-10s: %(message)s"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ def hello_world_client(
)

client.deploy(
on_schema_break=algokit_utils.OnSchemaBreak.ReplaceApp,
on_update=algokit_utils.OnUpdate.UpdateApp,
allow_delete=True,
allow_update=True,
on_schema_break=algokit_utils.OnSchemaBreak.AppendApp,
on_update=algokit_utils.OnUpdate.AppendApp,
)
return client

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
"module": "smart_contracts",
"args": ["build"],
"cwd": "${workspaceFolder}"
},
{
"type": "avm",
"request": "launch",
"name": "Debug TEAL via AlgoKit AVM Debugger",
"simulateTraceFile": "${workspaceFolder}/${command:PickSimulateTraceFile}",
"stopOnEntry": true
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ readme = "README.md"

[tool.poetry.dependencies]
python = "^3.12"
algokit-utils = "^2.0.1"
algokit-utils = "^2.2.0"
python-dotenv = "^1.0.0"
puya = "^0.1.3"
puya = "^0.2.0"

[tool.poetry.group.dev.dependencies]
black = {extras = ["d"], version = "*"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ import * as path from 'path'
import { consoleLogger } from '@algorandfoundation/algokit-utils/types/logging'
import * as algokit from '@algorandfoundation/algokit-utils'

// Uncomment the debug and traceAll options to enable auto generation of AVM Debugger compliant sourceMap and simulation trace file.
// Learn more about using AlgoKit AVM Debugger to debug your TEAL source codes and inspect various kinds of Algorand transactions in atomic groups -> https://github.com/algorandfoundation/algokit-avm-vscode-Debugger

algokit.Config.configure({
logger: consoleLogger,
// debug: true,
// traceAll: true,
})

// base directory
Expand Down

0 comments on commit d78457a

Please sign in to comment.