github.com/inklabsfoundation/inkchain@v0.17.1-0.20181025012015-c3cef8062f19/examples/creative/scripts/initialization.sh (about) 1 #!/usr/bin/env bash 2 # 3 #Copyright Ziggurat Corp. 2017 All Rights Reserved. 4 # 5 #SPDX-License-Identifier: Apache-2.0 6 # 7 8 # Detecting whether can import the header file to render colorful cli output 9 if [ -f ./func_user.sh ]; then 10 source ./func_user.sh 11 elif [ -f scripts/func_user.sh ]; then 12 source scripts/func_user.sh 13 fi 14 15 if [ -f ./func_artist.sh ]; then 16 source ./func_artist.sh 17 elif [ -f scripts/func_artist.sh ]; then 18 source scripts/func_artist.sh 19 fi 20 21 if [ -f ./func_production.sh ]; then 22 source ./func_production.sh 23 elif [ -f scripts/func_production.sh ]; then 24 source scripts/func_production.sh 25 fi 26 27 if [ -f ./func_token.sh ]; then 28 source ./func_token.sh 29 elif [ -f scripts/func_token.sh ]; then 30 source scripts/func_token.sh 31 fi 32 33 34 #echo_b "====================1.Create channel(default newchannel) =============================" 35 #createChannel 36 # 37 #echo_b "====================2.Join pee0 to the channel ======================================" 38 #joinChannel 39 # 40 #echo_b "====================3.set anchor peers for org1 in the channel===========================" 41 ##updateAnchorPeers 42 # 43 #echo_b "=====================4.Install chaincode token on Peer0/Org0========================" 44 #installChaincode token 1.0 45 #installChaincode creative 1.0 46 # 47 #echo_b "=====================5.Instantiate chaincode token, this will take a while, pls waiting...===" 48 #instantiateChaincode token 1.0 49 #instantiateChaincode creative 1.0 50 51 52 ############################################################ 53 # installChaincode creative 1.6 54 # upgradeChaincode creative 1.6