This gists contains a collection of docker-compose config for Polkadot and Substrate. You can find it here.
You may clone this gist with:
git clone git@gist.github.com:be461d11c56baecb0e7bbcb920e964fb.git
This gists contains a collection of docker-compose config for Polkadot and Substrate. You can find it here.
You may clone this gist with:
git clone git@gist.github.com:be461d11c56baecb0e7bbcb920e964fb.git
#!/usr/bin/env bash | |
# set -e | |
echo "EDMS Installer" | |
FIRMWARE=$1 | |
which avrdude > /dev/null 2>&1 | |
if [[ $? -ne 0 ]]; then | |
echo "ℹ️ Installing avrdude if not already installed..." |
export CC=mycc | |
# this installs the Go chaincode | |
peer chaincode install -n $CC -v 1.0 -p github.com/chaincode/chaincode_example02/go/ | |
# this installs the Node.js chaincode | |
# make note of the -l flag; we use this to specify the language | |
peer chaincode install -n $CC -v 1.0 -l node -p /opt/gopath/src/github.com/chaincode/chaincode_example02/node/ | |
# if you did not install your chaincode with a name of mycc, then modify that argument as well |
cd first-network | |
export FABRIC_CFG_PATH=$PWD | |
configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block | |
export CHANNEL_NAME=mychannel | |
configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME |
mkdir -p $HOME/fabric-tools && | |
cd $HOME/fabric-tools && | |
curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 && | |
echo "export PATH=$PATH:$HOME/fabric-tools" >> $HOME/.bashrc |
wget https://dl.google.com/go/go1.10.linux-amd64.tar.gz | |
sudo tar -xvf go1.10.linux-amd64.tar.gz | |
sudo rm -rf /usr/local/go | |
sudo mv go /usr/local | |
echo "export GOROOT=/usr/local/go" >> $HOME/.bashrc | |
echo "export GOPATH=$HOME/GO" >> $HOME/.bashrc | |
echo "export PATH=$GOPATH/bin:$GOROOT/bin:$PATH" >> $HOME/.bashrc | |
source $HOME/.bashrc | |
# CHECK |
Based on:
Updated: 2017-06-26
pragma solidity ^0.4.19; | |
contract BaseContract { | |
function doMagic() external pure { /* ...*/} | |
} | |
contract OtherBaseContract { | |
function doMagicTricks() external pure { /* ...*/} | |
} |
Verifying my Blockstack ID is secured with the address 1ExqcSejGmyha6MRSgZSjaEKWNW5cpyhkZ https://explorer.blockstack.org/address/1ExqcSejGmyha6MRSgZSjaEKWNW5cpyhkZ |