contracts/

directory
v0.0.38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: Apache-2.0

README

# Install solc (on Mac)
brew update
brew tap ethereum/ethereum
brew install solidity

# Install abigen
go get -u github.com/ethereum/go-ethereum
cd $GOPATH/src/github.com/ethereum/go-ethereum/
make
make devtools

# Compile sol
solc --bin -o example/contracts/simplestorage example/contracts/simplestorage/SimpleStorage.sol
solc @openzeppelin=contracts/lib/openzeppelin-contracts --bin -o x/evm/artifacts contracts/src/CW721ERC721Wrapper.sol

# Generate ABI in Go
solc --abi -o example/contracts/simplestorage example/contracts/simplestorage/SimpleStorage.sol
abigen --abi=example/contracts/simplestorage/SimpleStorage.abi --pkg=simplestorage --out=example/contracts/simplestorage/SimpleStorage.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL