v0.1.0
π solgen v0.1.0 - First Release
Lightning-fast Go bindings generator for Solidity contracts. Zero dependencies, maximum simplicity.
β¨ What's New
π― Core Features
- Zero Dependencies: Generated bindings are completely self-contained - no go-ethereum imports required
- Type-Safe API: Clean chaining API with compile-time safety (
Methods().TransferMethod().Pack(...)) - Production Ready: Built-in ABI encoding/decoding, custom error handling, event parsing
- Method Overloads: Smart naming for overloaded Solidity functions
- Pipeline Integration: Seamless
solcβsolgenworkflow
π¦ Clean Generated Code
// Pack method calls
transferData := simpletoken.Methods().TransferMethod().Pack(recipient, amount)
// Decode returns
balance := simpletoken.Methods().BalanceOfMethod().MustDecode(returnData)
// Parse events
event := simpletoken.Events().TransferEvent().MustDecode(logData)
// Handle errors
error := simpletoken.Errors().InsufficientBalanceError().MustDecode(revertData)
π³ Multi-Platform Support
- Docker images for linux/amd64 and linux/arm64
- Pre-built binaries for Linux, macOS, and Windows
- GitHub Actions integration ready
π Complete Example
- examples/simpletoken/ - Full working example with detailed comments
- Demonstrates all features: method encoding, return decoding, events, errors, blockchain integration
π Quick Start
# Docker (recommended)
docker pull otherview/solgen
# One-liner pipeline
solc --combined-json abi,bin,bin-runtime,hashes contracts/*.sol | \
solgen --out generated
π Project Stats
- Zero external dependencies in generated code
- Type-safe operations throughout
- Production-ready with comprehensive error handling
- Multi-platform Docker builds and binaries
---
Full documentation: https://github.com/otherview/solgen/blob/main/README.md | Docker Hub:
https://hub.docker.com/r/otherview/solgen
**Full Changelog**: https://github.com/otherview/solgen/commits/v0.1.0