Installation
Solidity
To install solidity compiler solc
sh
brew update
brew upgrade
brew tap ethereum/ethereum
brew install solidityCheckout this page to install on other platforms - Solidity
Protoc
Protoc is required to generate go code
To install protoc
sh
brew install protoc-gen-goabigen
This tool generates go code from bin (binary) and abi (application binary interface) files
sh
go get -u github.com/ethereum/go-ethereum
cd $GOPATH/src/github.com/ethereum/go-ethereum/
make
make devtoolsIf you don't know you GOPATH, you can use this command to find it.
sh
go envCheck if abigen is installed and working
sh
which abigenIf not, then go to the build folder to find abigen and copy it to your bin folder
sh
cd $GOPATH/pkg/mod/github.com/ethereum/go-ethereum@v1.14.3/build/bin
cp abigen /opt/homebrew/bin/abigenGanache
This is how you test blockchain locally. You can test your smart contracts locally.
To install ganache
sh
brew install --cask ganacheOr, download it from here - Ganache