forked from TrueBitFoundation/truebit-os
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompile.sh
executable file
·20 lines (14 loc) · 1.01 KB
/
compile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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