Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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"` Contract SolidityContract `json:"binary"` }
Compile response object
type SolidityContract ¶ added in v0.23.0
type SolidityContract struct { Abi json.RawMessage Evm struct { Bytecode struct { Object string Opcodes string LinkReferences json.RawMessage } } Devdoc json.RawMessage Userdoc json.RawMessage Metadata string }
func LoadSolidityContract ¶ added in v0.23.0
func LoadSolidityContract(file string) (*SolidityContract, error)
func (*SolidityContract) Link ¶ added in v0.23.0
func (contract *SolidityContract) Link(libraries map[string]string) error
func (*SolidityContract) Save ¶ added in v0.23.0
func (contract *SolidityContract) Save(dir, file string) error
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 ¶
Click to show internal directories.
Click to hide internal directories.