directory
Version:
v0.0.0-...-2c9d471
Opens a new window with list of versions in this module.
Published: Oct 31, 2023
License: MIT
Opens a new window with license information.
README
¶
Manually compile and create Go-Bindings
- Select main Solidity file (e.g.
TokenBase.sol
)
- Check which version of Solidity to use (e.g.
0.8.16
)
- Generate ABI, compile and generate Go bindings
- Store:
TokenBase.abi
, TokenBase.bin
, TokenBase.go
only.
Generate ABI and compile
docker run -v "$(pwd)":/sources -w /sources \
ethereum/solc:0.8.16 \
--abi \
--bin \
--overwrite \
--optimize --optimize-runs 200 \
-o . \
TokenBase.sol
Generate Go Bindings
docker run -v "$(pwd)":/sources -w /sources --pull always \
ethereum/client-go:alltools-latest \
abigen \
--abi=TokenBase.abi \
--bin=TokenBase.bin \
--pkg=TokenBase \
--out=TokenBase.go
Directories
¶
Click to show internal directories.
Click to hide internal directories.