Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateBindings(path string, outdir string, config *BindingsConfig) error
- func GenerateFake(typ string, cABI string, pkg string, solversionOverride *string) (string, error)
- func GenerateProcessor(types []string, abis []string, pkg string, inputs []InputType, ...) (string, error)
- type BindingsConfig
- type ContractMetadata
- type HandlersConfig
- type InputType
- type SetupConfig
Constants ¶
View Source
const ( SolidityBase = "https://github.com/ethereum/solidity/releases/download/" SolidityLinux = "solc-static-linux" SolidityMacos = "solc-macos" )
Variables ¶
View Source
var ErrNoEvents = errors.New("no events")
Functions ¶
func GenerateBindings ¶
func GenerateBindings(path string, outdir string, config *BindingsConfig) error
func GenerateFake ¶
Types ¶
type BindingsConfig ¶
type BindingsConfig struct { Fakes bool FakesVersion *string Handlers HandlersConfig Setup SetupConfig }
type ContractMetadata ¶
type ContractMetadata struct { ABIs []string Bins []string Types []string Sigs []map[string]string Libs map[string]string }
func ParseContract ¶
func ParseContract(src string) (ContractMetadata, error)
type HandlersConfig ¶
type SetupConfig ¶ added in v0.0.19
type SetupConfig struct {
InputTypes []InputType
}
Click to show internal directories.
Click to hide internal directories.