go-ethereum
go-ethereum copied to clipboard
accounts/abi: Update template and add ABI accessor functions to the BoundContract
- accounts/abi/bind/base, accounts/abi/bind/template: Exposes abi.Method, abi.Event, as well as Calldata in the BoundContract, updates the template to support retrieving Calldata for transactions and adds accessors for abi.Method and abi.Event
- accounts/abi/bind/template, accounts/abi/bind/base: Calldata has potential conflicts with Calldata Methods renaming to RawCalldata, removing internal call to the calldata function and keeping the Transact function consistent with its original implementation
- accounts/abi/bind/template: Adding convenience functions for Accessing the parsed ABI.
- accounts/abi/bind/base, accounts/abi/bind/bind_test, accounts/abi/bind/template: Removing accessor for Address as it is redundant (address is required even in the generated code), Adding test for new methods, fixing issue with call to Normalized.Name and not Original.Name and moving GetABI to the combined binding implementation instead of the raw (Note: it might be nice to use generics here to clean up the template and bindings).