-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
73 lines (47 loc) · 2.69 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
-include .env
.PHONY: all test clean clean-all deploy install snapshot format anvil
DEFAULT_ANVIL_KEY := 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
all: clean remove install update build
clean :; forge clean
clean-all :; forge clean && rm -rf broadcast && rm -rf cache
# Remove modules
remove :; rm -rf .gitmodules && rm -rf .git/modules/* && rm -rf lib && touch .gitmodules
install :; forge install foundry-rs/[email protected] --no-commit && \
forge install openzeppelin/[email protected] --no-commit && \
forge install openzeppelin/[email protected] --no-commit && \
forge install symbioticfi/core --no-commit && \
forge install symbioticfi/collateral --no-commit && \
forge install Cyfrin/foundry-devops --no-commit && \
forge install PaulRBerg/prb-math@release-v4 --no-commit &&\
forge install moondance-labs/tanssi-bridge-relayer --no-commit --no-git && \
cd lib/tanssi-bridge-relayer && ./add_overridden_contracts.sh
install-tanssi-relayer :; cd lib/tanssi-bridge-relayer && ./add_overridden_contracts.sh
update:; forge update
build:; forge build
test :; forge test
testv :; forge test -vvvv
coverage :; forge coverage
snapshot :; forge snapshot
format :; forge fmt
anvil :; anvil -m 'test test test test test test test test test test test junk' --steps-tracing --block-time 1
NETWORK_ARGS := --rpc-url http://localhost:8545 --private-key $(DEFAULT_ANVIL_KEY) --broadcast
deploy:
@echo "🚀 Deploying contracts..."
@echo "📡 Deploying Collateral..."
@forge script script/DeployCollateral.s.sol:DeployCollateral ${NETWORK_ARGS}
@echo "✅ Collateral deployment completed"
@echo "📡 Deploying Symbiotic..."
@forge script script/DeploySymbiotic.s.sol ${NETWORK_ARGS}
@echo "✅ Symbiotic deployment completed"
demo:
@echo "📡 Deploying Demo..."
@forge script script/Demo.s.sol:Demo ${NETWORK_ARGS} --sig "run(address,address,address,address,address,address)" 0x09635F643e140090A9A8Dcd712eD6285858ceBef 0x5FC8d32690cc91D4c39d9d3abcBD16989F875707 0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9 0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512 0x610178dA211FEF7D417bC0e6FeD39F05609AD788 0x8A791620dd6260079BF849Dc5567aDC3F2FdC318
@echo "✅ Demo deployment completed"
deploy-tanssi-eco:
@echo "📡 Deploying Tanssi Ecosystem..."
@forge script script/DeployTanssiEcosystem.s.sol:DeployTanssiEcosystem ${NETWORK_ARGS}
@echo "✅ Tanssi Ecosystem deployment completed"
deploy-full-tanssi-eco-demo:
@echo "📡 Deploying Full Tanssi Ecosystem Locally for Demo..."
@forge script script/test/DeployTanssiEcosystemDemo.s.sol --slow --skip-simulation ${NETWORK_ARGS}
@echo "✅ Full Tanssi Ecosystem Locally for Demo deployment completed"