Documentation ¶
Index ¶
Constants ¶
View Source
const ( AddressLength = 40 RelocationLength = 20 )
Variables ¶
This section is empty.
Functions ¶
func PrintResponse ¶
Types ¶
type BinaryResponse ¶
type BinaryResponse struct { Binary string `json:"binary"` Abi json.RawMessage `json:"abi"` Error string `json:"error"` }
func RequestBinaryLinkage ¶
func RequestBinaryLinkage(file string, libraries map[string]string) (*BinaryResponse, error)
type Response ¶
type Response struct { Objects []ResponseItem `json:"objects"` Warning string `json:"warning"` Version string `json:"version"` Error string `json:"error"` }
type ResponseItem ¶
type ResponseItem struct { Filename string `json:"filename"` Objectname string `json:"objectname"` Binary SolidityOutputContract `json:"binary"` }
Compile response object
type SolidityInput ¶
type SolidityInput struct { Language string `json:"language"` Sources map[string]SolidityInputSource `json:"sources"` Settings struct { Libraries map[string]map[string]string `json:"libraries"` Optimizer struct { Enabled bool `json:"enabled"` } `json:"optimizer"` OutputSelection struct { File struct { OutputType []string `json:"*"` } `json:"*"` } `json:"outputSelection"` } `json:"settings"` }
type SolidityInputSource ¶
type SolidityOutput ¶
type SolidityOutputContract ¶
type SolidityOutputContract struct { Abi json.RawMessage Evm struct { Bytecode struct { Object string Opcodes string LinkReferences json.RawMessage } } Devdoc json.RawMessage Userdoc json.RawMessage Metadata string }
Click to show internal directories.
Click to hide internal directories.