Documentation ¶
Overview ¶
Package compiler wraps the Solidity compiler executable (solc).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileSolidity ¶ added in v1.5.1
CompileSolidity compiles all given Solidity source files.
Types ¶
type Contract ¶
type Contract struct { Code string `json:"code"` Info ContractInfo `json:"info"` }
type ContractInfo ¶
type ContractInfo struct { Source string `json:"source"` Language string `json:"language"` LanguageVersion string `json:"languageVersion"` CompilerVersion string `json:"compilerVersion"` CompilerOptions string `json:"compilerOptions"` AbiDefinition interface{} `json:"abiDefinition"` UserDoc interface{} `json:"userDoc"` DeveloperDoc interface{} `json:"developerDoc"` Metadata string `json:"metadata"` }
type Solidity ¶
Solidity contains information about the solidity compiler.
func SolidityVersion ¶ added in v1.5.1
SolidityVersion runs solc and parses its version output.
Click to show internal directories.
Click to hide internal directories.