forked from llamaxyz/llama
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
37 lines (24 loc) · 1.63 KB
/
justfile
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
#!/usr/bin/env -S just --justfile
set dotenv-load
report:
forge clean && FOUNDRY_PROFILE=ci forge test --gas-report --fuzz-seed 1 | sed -e/\|/\{ -e:1 -en\;b1 -e\} -ed | cat > .gas-report
yul contractName:
forge inspect {{contractName}} ir-optimized > yul.sol
run-script script_name flags='' sig='' args='':
# To speed up compilation we temporarily rename the test directory.
mv test _test
# We hyphenate so that we still cleanup the directory names even if the deploy fails.
- FOUNDRY_PROFILE=ci forge script script/{{script_name}}.s.sol {{sig}} {{args}} \
--rpc-url $SCRIPT_RPC_URL \
--private-key $SCRIPT_PRIVATE_KEY \
-vvvv {{flags}}
mv _test test
run-deploy-instance-script flags: (run-script 'DeployLlamaInstance' flags '--sig "run(address,string)"' '$SCRIPT_DEPLOYER_ADDRESS "llamaInstanceConfig.json"')
run-configure-advanced-instance-script flags: (run-script 'ConfigureAdvancedLlamaInstance' flags '--sig "run(address,string,address,address,string)"' '$SCRIPT_DEPLOYER_ADDRESS "advancedInstanceConfig.json" <DEPLOYED_LLAMA_CORE> <DEPLOYED_INSTANCE_CONFIG_SCRIPT> <UPDATED_ROLE_DESCRIPTION>')
dry-run-deploy: (run-script 'DeployLlamaFactory')
deploy: (run-script 'DeployLlamaFactory' '--broadcast --verify --slow --build-info --build-info-path build_info')
verify: (run-script 'DeployLlamaFactory' '--verify --resume')
dry-run-deploy-instance: (run-deploy-instance-script '')
deploy-instance: (run-deploy-instance-script '--broadcast --verify')
dry-run-configure-advanced-instance: (run-configure-advanced-instance-script '')
configure-advanced-instance: (run-configure-advanced-instance-script '--broadcast --verify')