Skip to content

Commit 5835366

Browse files
authored
Merge pull request #100 from algorandfoundation/fix/adjust-default-deploy-settings
fix: make localnet default without mnemonic prompt when running deploy
2 parents 01a023a + 9ce245b commit 5835366

File tree

7 files changed

+48
-14
lines changed

7 files changed

+48
-14
lines changed

examples/generators/production_python_smart_contract_python/.algokit.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,18 @@ artifacts = 'smart_contracts/artifacts'
1616

1717
[project.deploy]
1818
command = "poetry run python -m smart_contracts deploy"
19+
20+
[project.deploy.testnet]
1921
environment_secrets = [
2022
"DEPLOYER_MNEMONIC",
2123
"DISPENSER_MNEMONIC",
2224
]
2325

24-
[project.deploy.localnet]
25-
environment_secrets = []
26+
[project.deploy.mainnet]
27+
environment_secrets = [
28+
"DEPLOYER_MNEMONIC",
29+
"DISPENSER_MNEMONIC",
30+
]
2631

2732
[project.run]
2833
# Commands intented for use locally and in CI

examples/generators/production_python_smart_contract_typescript/.algokit.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,18 @@ artifacts = 'smart_contracts/artifacts'
1616

1717
[project.deploy]
1818
command = "npm run deploy:ci"
19+
20+
[project.deploy.testnet]
1921
environment_secrets = [
2022
"DEPLOYER_MNEMONIC",
2123
"DISPENSER_MNEMONIC",
2224
]
2325

24-
[project.deploy.localnet]
25-
environment_secrets = []
26+
[project.deploy.mainnet]
27+
environment_secrets = [
28+
"DEPLOYER_MNEMONIC",
29+
"DISPENSER_MNEMONIC",
30+
]
2631

2732
[project.run]
2833
# Commands intented for use locally and in CI

examples/generators/starter_python_smart_contract_python/.algokit.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ artifacts = 'smart_contracts/artifacts'
1616

1717
[project.deploy]
1818
command = "poetry run python -m smart_contracts deploy"
19+
20+
[project.deploy.testnet]
1921
environment_secrets = [
2022
"DEPLOYER_MNEMONIC",
2123
]
2224

23-
[project.deploy.localnet]
24-
environment_secrets = []
25+
[project.deploy.mainnet]
26+
environment_secrets = [
27+
"DEPLOYER_MNEMONIC",
28+
]
2529

2630
[project.run]
2731
# Commands intented for use locally and in CI

examples/generators/starter_python_smart_contract_typescript/.algokit.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ artifacts = 'smart_contracts/artifacts'
1616

1717
[project.deploy]
1818
command = "npm run deploy:ci"
19+
20+
[project.deploy.testnet]
1921
environment_secrets = [
2022
"DEPLOYER_MNEMONIC",
2123
]
2224

23-
[project.deploy.localnet]
24-
environment_secrets = []
25+
[project.deploy.mainnet]
26+
environment_secrets = [
27+
"DEPLOYER_MNEMONIC",
28+
]
2529

2630
[project.run]
2731
# Commands intented for use locally and in CI

examples/production_python/.algokit.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,18 @@ artifacts = 'smart_contracts/artifacts'
1616

1717
[project.deploy]
1818
command = "poetry run python -m smart_contracts deploy"
19+
20+
[project.deploy.testnet]
1921
environment_secrets = [
2022
"DEPLOYER_MNEMONIC",
2123
"DISPENSER_MNEMONIC",
2224
]
2325

24-
[project.deploy.localnet]
25-
environment_secrets = []
26+
[project.deploy.mainnet]
27+
environment_secrets = [
28+
"DEPLOYER_MNEMONIC",
29+
"DISPENSER_MNEMONIC",
30+
]
2631

2732
[project.run]
2833
# Commands intented for use locally and in CI

examples/starter_python/.algokit.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ artifacts = 'smart_contracts/artifacts'
1616

1717
[project.deploy]
1818
command = "poetry run python -m smart_contracts deploy"
19+
20+
[project.deploy.testnet]
1921
environment_secrets = [
2022
"DEPLOYER_MNEMONIC",
2123
]
2224

23-
[project.deploy.localnet]
24-
environment_secrets = []
25+
[project.deploy.mainnet]
26+
environment_secrets = [
27+
"DEPLOYER_MNEMONIC",
28+
]
2529

2630
[project.run]
2731
# Commands intented for use locally and in CI

template_content/.algokit.toml.jinja

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,22 @@ command = "poetry run python -m smart_contracts deploy"
2020
{%- elif deployment_language == 'typescript' %}
2121
command = "npm run deploy:ci"
2222
{%- endif %}
23+
24+
[project.deploy.testnet]
2325
environment_secrets = [
2426
"DEPLOYER_MNEMONIC",
2527
{%- if use_dispenser %}
2628
"DISPENSER_MNEMONIC",
2729
{%- endif %}
2830
]
2931

30-
[project.deploy.localnet]
31-
environment_secrets = []
32+
[project.deploy.mainnet]
33+
environment_secrets = [
34+
"DEPLOYER_MNEMONIC",
35+
{%- if use_dispenser %}
36+
"DISPENSER_MNEMONIC",
37+
{%- endif %}
38+
]
3239

3340
[project.run]
3441
# Commands intented for use locally and in CI

0 commit comments

Comments
 (0)