Installation
Solidity
To install solidity compiler solc
sh
brew update
brew upgrade
brew tap ethereum/ethereum
brew install solidity
Checkout this page to install on other platforms - Solidity
Protoc
Protoc is required to generate go code
To install protoc
sh
brew install protoc-gen-go
abigen
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 devtools
If you don't know you GOPATH, you can use this command to find it.
sh
go env
Check if abigen is installed and working
sh
which abigen
If 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/abigen
Ganache
This is how you test blockchain locally. You can test your smart contracts locally.
To install ganache
sh
brew install --cask ganache
Or, download it from here - Ganache