Skip to content

Commit 0194175

Browse files
committed
feat: Added additional commands to Makefile
1 parent c0f4106 commit 0194175

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Makefile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# ---- Defaults (used if nothing else sets them) ----
2+
APTOS_NETWORK ?= local
3+
ARTIFACTS_LEVEL ?= all
4+
MOVE_VERSION ?= 2.1
5+
COMPILER_VERSION ?= 2.0
6+
DEFAULT_FUND_AMOUNT ?= 100000000
7+
18
# Conditionally include .env file if not running in CI/CD environment
29
ifndef GITHUB_ACTIONS
310
-include .env
@@ -142,6 +149,14 @@ init-profiles:
142149
echo | aptos init --profile $$profile --network $(APTOS_NETWORK) --assume-yes --skip-faucet --private-key $$PRIVATE_KEY; \
143150
done
144151

152+
init-random-profiles:
153+
@echo "Using fixed aave profiles"
154+
@for profile in $(shell echo $(AAVE_PROFILES_KEY_MAP) | tr ' ' '\n' | cut -d '=' -f 1); do \
155+
PRIVATE_KEY=$$(echo $(AAVE_PROFILES_KEY_MAP) | tr ' ' '\n' | grep "^$$profile=" | cut -d '=' -f2); \
156+
echo "Initializing profile: $$profile ..."; \
157+
echo | aptos init --profile $$profile --network $(APTOS_NETWORK) --assume-yes --skip-faucet; \
158+
done
159+
145160
init-test-profiles:
146161
@echo "Using fixed test profiles"
147162
@for profile in $(shell echo $(TEST_PROFILES_KEY_MAP) | tr ' ' '\n' | cut -d '=' -f 1); do \
@@ -150,6 +165,14 @@ init-test-profiles:
150165
echo | aptos init --profile $$profile --network $(APTOS_NETWORK) --assume-yes --skip-faucet --private-key $$PRIVATE_KEY; \
151166
done
152167

168+
init-random-test-profiles:
169+
@echo "Using random aave profiles"
170+
@for profile in $(shell echo $(TEST_PROFILES_KEY_MAP) | tr ' ' '\n' | cut -d '=' -f 1); do \
171+
PRIVATE_KEY=$$(echo $(TEST_PROFILES_KEY_MAP) | tr ' ' '\n' | grep "^$$profile=" | cut -d '=' -f2); \
172+
echo "Initializing profile: $$profile ..."; \
173+
echo | aptos init --profile $$profile --network $(APTOS_NETWORK) --assume-yes --skip-faucet; \
174+
done
175+
153176
fund-profiles:
154177
@for profile in $(AAVE_PROFILES); do \
155178
aptos account fund-with-faucet --account $$profile --amount $(DEFAULT_FUND_AMOUNT) --profile $$profile; \

0 commit comments

Comments
 (0)