-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
21 lines (18 loc) · 998 Bytes
/
Copy pathmakefile
File metadata and controls
21 lines (18 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include .env
simulate:
forge script script/CswapDeploy.s.sol:CswapDeploy --rpc-url local -s "runLocal()"
forge inspect CswapPoolManager abi > ./www/abi/CswapPoolManager.json
forge inspect CswapTokenPair abi > ./www/abi/CswapTokenPair.json
forge inspect CswapToken abi > ./www/abi/CswapToken.json
deploy-local:
forge script script/CswapDeploy.s.sol:CswapDeploy --rpc-url local -s "runLocal()" --broadcast
forge inspect CswapPoolManager abi > ./www/abi/CswapPoolManager.json
forge inspect CswapTokenPair abi > ./www/abi/CswapTokenPair.json
forge inspect CswapToken abi > ./www/abi/CswapToken.json
cp ./tmp/vite.env ./www/.env.local
deploy-production:
forge script script/CswapDeploy.s.sol:CswapDeploy --rpc-url sepolia -s "runProduction()" --broadcast
forge inspect CswapPoolManager abi > ./www/abi/CswapPoolManager.json
forge inspect CswapTokenPair abi > ./www/abi/CswapTokenPair.json
forge inspect CswapToken abi > ./www/abi/CswapToken.json
cp ./tmp/vite.env ./www/.env.production