Overview of Tolk ABI for Golang
masterThe abi-tolk package enables interaction with TON smart contracts using their Tolk-based ABI. It bridges the gap between Tolk source code and Go by generating code from the ABI JSON produced by the Tolk compiler.
Key capabilities:
- Marshaling/Unmarshaling: Automatically generates code to convert Go types to/from TON cells for all types defined in the ABI.
- Typed State Builders: Provides typed
init statebuilders for contract deployment. - Get Method Wrappers: Generates Go wrappers for each contract
getmethod, allowing for easy interaction with contract state. - Message Handling: Supports internal and external message types defined in the contract.