Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #23 from algorandfoundation/deploy-experience-impr…
Browse files Browse the repository at this point in the history
…ovement

fix: Improving the default experience by allowing testnet deployments…
  • Loading branch information
robdmoore authored May 3, 2023
2 parents 6bc1624 + 4eb4875 commit 7c9b4d6
Show file tree
Hide file tree
Showing 66 changed files with 39 additions and 131 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"files.eol": "\n"
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export async function deploy(name: (typeof contracts)[number], appSpec: AppSpec)
await algokit.ensureFunded(
{
accountToFund: deployer,
minSpendingBalance: algokit.algos(10),
minFundingIncrement: algokit.algos(10),
minSpendingBalance: algokit.algos(2),
minFundingIncrement: algokit.algos(2),
},
algod,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"

- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
{%- if deployment_language == 'typescript' %}
run: npm run --prefix smart_contracts deploy:ci
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: poetry run python -m smart_contracts deploy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: poetry run python -m smart_contracts deploy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: npm run --prefix smart_contracts deploy:ci

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export async function deploy(name: (typeof contracts)[number], appSpec: AppSpec)
await algokit.ensureFunded(
{
accountToFund: deployer,
minSpendingBalance: algokit.algos(10),
minFundingIncrement: algokit.algos(10),
minSpendingBalance: algokit.algos(2),
minFundingIncrement: algokit.algos(2),
},
algod,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: poetry run python -m smart_contracts deploy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: poetry run python -m smart_contracts deploy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: poetry run python -m smart_contracts deploy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: poetry run python -m smart_contracts deploy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: poetry run python -m smart_contracts deploy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export async function deploy(name: (typeof contracts)[number], appSpec: AppSpec)
await algokit.ensureFunded(
{
accountToFund: deployer,
minSpendingBalance: algokit.algos(10),
minFundingIncrement: algokit.algos(10),
minSpendingBalance: algokit.algos(2),
minFundingIncrement: algokit.algos(2),
},
algod,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: poetry run python -m smart_contracts deploy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: poetry run python -m smart_contracts deploy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: npm run --prefix smart_contracts deploy:ci

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export async function deploy(name: (typeof contracts)[number], appSpec: AppSpec)
await algokit.ensureFunded(
{
accountToFund: deployer,
minSpendingBalance: algokit.algos(10),
minFundingIncrement: algokit.algos(10),
minSpendingBalance: algokit.algos(2),
minFundingIncrement: algokit.algos(2),
},
algod,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: poetry run python -m smart_contracts deploy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: poetry run python -m smart_contracts deploy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: poetry run python -m smart_contracts deploy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: poetry run python -m smart_contracts deploy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: poetry run python -m smart_contracts deploy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: poetry run python -m smart_contracts deploy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy(
deploy_callback: Callable[
[AlgodClient, IndexerClient, ApplicationSpecification, Account], None
],
deployer_initial_funds: int = 10,
deployer_initial_funds: int = 2,
) -> None:
# get clients
# by default client configuration is loaded from environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
# set git user and email as test invoke git
git config --global user.email "[email protected]" && git config --global user.name "github-actions"
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Deploy to testnet
run: poetry run python -m smart_contracts deploy

Expand Down
Loading

0 comments on commit 7c9b4d6

Please sign in to comment.