compiler

package
v0.9.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2015 License: LGPL-2.1-or-later Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractInfo added in v0.9.17

func ExtractInfo(contract *Contract, filename string) (contenthash common.Hash, err error)

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"`
	AbiDefinition   interface{} `json:"abiDefinition"`
	UserDoc         interface{} `json:"userDoc"`
	DeveloperDoc    interface{} `json:"developerDoc"`
}

type Solidity

type Solidity struct {
	// contains filtered or unexported fields
}

func New added in v0.9.17

func New(solcPath string) (sol *Solidity, err error)

func (*Solidity) Compile added in v0.9.17

func (sol *Solidity) Compile(source string) (contracts map[string]*Contract, err error)

func (*Solidity) Info added in v0.9.17

func (sol *Solidity) Info() string

func (*Solidity) Version

func (sol *Solidity) Version() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL