Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# ---- Defaults (used if nothing else sets them) ----
APTOS_NETWORK ?= local
ARTIFACTS_LEVEL ?= all
MOVE_VERSION ?= 2.1
COMPILER_VERSION ?= 2.0
DEFAULT_FUND_AMOUNT ?= 100000000

# Conditionally include .env file if not running in CI/CD environment
ifndef GITHUB_ACTIONS
-include .env
Expand Down Expand Up @@ -142,6 +149,14 @@ init-profiles:
echo | aptos init --profile $$profile --network $(APTOS_NETWORK) --assume-yes --skip-faucet --private-key $$PRIVATE_KEY; \
done

init-random-profiles:
@echo "Using fixed aave profiles"
@for profile in $(shell echo $(AAVE_PROFILES_KEY_MAP) | tr ' ' '\n' | cut -d '=' -f 1); do \
PRIVATE_KEY=$$(echo $(AAVE_PROFILES_KEY_MAP) | tr ' ' '\n' | grep "^$$profile=" | cut -d '=' -f2); \
echo "Initializing profile: $$profile ..."; \
echo | aptos init --profile $$profile --network $(APTOS_NETWORK) --assume-yes --skip-faucet; \
done

init-test-profiles:
@echo "Using fixed test profiles"
@for profile in $(shell echo $(TEST_PROFILES_KEY_MAP) | tr ' ' '\n' | cut -d '=' -f 1); do \
Expand All @@ -150,6 +165,14 @@ init-test-profiles:
echo | aptos init --profile $$profile --network $(APTOS_NETWORK) --assume-yes --skip-faucet --private-key $$PRIVATE_KEY; \
done

init-random-test-profiles:
@echo "Using random aave profiles"
@for profile in $(shell echo $(TEST_PROFILES_KEY_MAP) | tr ' ' '\n' | cut -d '=' -f 1); do \
PRIVATE_KEY=$$(echo $(TEST_PROFILES_KEY_MAP) | tr ' ' '\n' | grep "^$$profile=" | cut -d '=' -f2); \
echo "Initializing profile: $$profile ..."; \
echo | aptos init --profile $$profile --network $(APTOS_NETWORK) --assume-yes --skip-faucet; \
done

fund-profiles:
@for profile in $(AAVE_PROFILES); do \
aptos account fund-with-faucet --account $$profile --amount $(DEFAULT_FUND_AMOUNT) --profile $$profile; \
Expand Down
Loading