-
Notifications
You must be signed in to change notification settings - Fork 26
/
compile.sh
executable file
·22 lines (16 loc) · 1.22 KB
/
compile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
cd ./contracts/
mkdir -p ../build
sed 's/REPLACEME/CommonOffchain is Offchain/g' dispute/Common.sol > dispute/CommonOffchain.sol
sed 's/REPLACEME/CommonOnchain is Onchain/g' dispute/Common.sol > dispute/CommonOnchain.sol
solc --abi --optimize --overwrite --bin -o ../build filesystem/Filesystem.sol
solc --abi --optimize --overwrite --bin -o ../build filesystem/IpfsRegister.sol
solc --abi --optimize --overwrite --bin -o ../build --allow-paths /interface/, dispute/Interactive.sol
solc --abi --optimize --overwrite --bin -o ../build dispute/Interpreter.sol
solc --abi --optimize --overwrite --bin -o ../build dispute/Judge.sol
solc --abi --optimize --overwrite --bin -o ../build dispute/Merkle.sol
solc --abi --optimize --overwrite --bin -o ../build --allow-paths /interface, incentive/IncentiveLayer.sol
solc --abi --optimize --overwrite --bin -o ../build --allow-paths /interface, incentive/SingleSolver.sol
solc --abi --optimize --overwrite --bin -o ../build --allow-paths /interface, incentive/StakeWhitelist.sol
solc --abi --optimize --overwrite --bin -o ../build --allow-paths /interface, incentive/TokenManager.sol
solc --abi --optimize --overwrite --bin -o ../build --allow-paths /interface, misc/IPFSnodeManager.sol