forked from trusttoken/contracts-pre22
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flatten-all
executable file
·26 lines (20 loc) · 1.24 KB
/
flatten-all
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
#!/bin/bash
# print all commands as they execute
set -x
# create folder
mkdir -p flat-contracts
# true currencies
truffle-flattener contracts/true-currencies/tokens/TrueUSD.sol > flat-contracts/flat_TrueUSD.sol
truffle-flattener contracts/true-currencies/tokens/TrueAUD.sol > flat-contracts/flat_TrueAUD.sol
truffle-flattener contracts/true-currencies/tokens/TrueCAD.sol > flat-contracts/flat_TrueCAD.sol
truffle-flattener contracts/true-currencies/tokens/TrueGBP.sol > flat-contracts/flat_TrueGBP.sol
truffle-flattener contracts/true-currencies/tokens/TrueHKD.sol > flat-contracts/flat_TrueHKD.sol
# trusttoken & truefi
truffle-flattener contracts/trusttoken/TrustToken.sol > flat-contracts/flat_TrustToken.sol
truffle-flattener contracts/truefi/CurvePool.sol > flat-contracts/flat_CurvePool.sol
# token controller & regsitry
truffle-flattener contracts/true-currencies/TokenController.sol > flat-contracts/flat_TokenController.sol
truffle-flattener contracts/registry/Registry.sol > flat-contracts/flat_Registry.sol
# proxies
truffle-flattener contracts/proxy/OwnedUpgradeabilityProxy.sol > flat-contracts/flat_OwnedUpgradeabilityProxy.sol
truffle-flattener contracts/proxy/TimeOwnedUpgradeabilityProxy.sol > flat-contracts/flat_TimeOwnedUpgradeabilityProxy.sol