Skip to content

v0.1.0

Choose a tag to compare

@otherview otherview released this 04 Nov 23:05
· 13 commits to main since this release
bae9557

πŸš€ 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 β†’ solgen workflow

πŸ“¦ 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