compiler

package
v0.0.0-...-e4f0010 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadSolidity

func DownloadSolidity(version string, dst string, renameDst bool) error

DownloadSolidity downloads the solidity compiler

Types

type Artifact

type Artifact struct {
	Abi           string
	Bin           string
	BinRuntime    string `json:"bin-runtime"`
	SrcMap        string `json:"srcmap"`
	SrcMapRuntime string `json:"srcmap-runtime"`
}

type Output

type Output struct {
	Contracts map[string]*Artifact
	Sources   map[string]*Source
	Version   string
}

type Solidity

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

Solidity is the solidity compiler

func NewSolidityCompiler

func NewSolidityCompiler(path string) *Solidity

NewSolidityCompiler instantiates a new solidity compiler

func (*Solidity) Compile

func (s *Solidity) Compile(files ...string) (*Output, error)

Compile implements the compiler interface

func (*Solidity) CompileCode

func (s *Solidity) CompileCode(code string) (*Output, error)

CompileCode compiles a solidity code

type Source

type Source struct {
	AST map[string]interface{}
}

Jump to

Keyboard shortcuts

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