-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.sh
executable file
·31 lines (22 loc) · 1.64 KB
/
sample.sh
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
# directory in which the repos where cloned
CODEPATH=/home/prathab
CONTRACTCODE=$CODEPATH/NucleusVisionTokenSale/contracts
DEPLOYMENTCODE=$CODEPATH/NucleusVisionDeployment
###
### Deploying the contract
###
cd NucleusVisionTokenSale
# install node dependencies
npm install
# compile allocation/main token
solc zeppelin-solidity=$CODEPATH/NucleusVisionTokenSale/node_modules/zeppelin-solidity/ --optimize --bin $CONTRACTCODE/NucleusVisionAllocation.sol
# In the output copy the binary from contracts/NucleusVisionAllocation.sol
# Use https://www.myetherwallet.com/#contracts to deploy the contract
solc zeppelin-solidity=$CODEPATH/NucleusVisionTokenSale/node_modules/zeppelin-solidity/ --optimize --bin $CONTRACTCODE/NucleusVisionCoreToken.sol
# In the output copy the binary from contracts/NucleusVisionCoreToken.sol
# Use https://www.myetherwallet.com/#contracts to deploy the contract
# Create single contract files to get abi
# Core toke
python3 $CODEPATH/solidity-flattener/flattener/core.py --solc-paths=zeppelin-solidity=$CODEPATH/NucleusVisionTokenSale/node_modules/zeppelin-solidity/ $CONTRACTCODE/NucleusVisionAllocation.sol --output $DEPLOYMENTCODE/NucleusVisionAllocation.sol
python3 $CODEPATH/solidity-flattener/flattener/core.py --solc-paths=zeppelin-solidity=$CODEPATH/NucleusVisionTokenSale/node_modules/zeppelin-solidity/ $CONTRACTCODE/NucleusVisionCoreToken.sol --output $DEPLOYMENTCODE/NucleusVisionCoreToken.sol
python3 $CODEPATH/solidity-flattener/flattener/core.py --solc-paths=zeppelin-solidity=$CODEPATH/NucleusVisionTokenSale/node_modules/zeppelin-solidity/ $CONTRACTCODE/NucleusVisionToken.sol --output $DEPLOYMENTCODE/NucleusVisionToken.sol