-
Golanghttps://go.dev/dl/ -
Solidityhttps://docs.soliditylang.org/en/v0.8.2/installing-solidity.html Version: 0.8.20 -
Solidity compiler (solc)https://docs.soliditylang.org/en/latest/installing-solidity.html
Version: 0.8.25-develop -
Ganache-clihttps://www.npmjs.com/package/ganache-cli -
AbigenVersion: v1.14.3 -
ipfsVersion: v0.22.0go get -u github.com/ethereum/go-ethereum go install github.com/ethereum/go-ethereum/cmd/abigen@v1.14.3
main.gorun this file to test the functionalities of the framework.compile/contract/The folder stores contract source code file (.sol) and generated go contract file.compile/compile.shThe script file compiles solidity and generates go contract file.genPrvKey.shThe script file generates accounts and stores in the.envfile.
-
Generate private keys to generate the
.envfilebash genPrvKey.sh
-
start ganache
ganache-cli --mnemonic "pvpre" -l 999999999 -e 1000 -a 30 -
start ipfs
ipfs daemon
-
Compile the smart contract code
bash compile.sh
-
Run the main.go
go run main.go