sol

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package sol provides a convenient interface for calling the 'solc' Solidity Compiler from Go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WhichSolc

func WhichSolc() (string, error)

Types

type Compiler

type Compiler interface {
	SetAllowPaths(paths []string) Compiler
	Compile(prefix, path string, optimize int) (map[string]*Contract, error)
}

func NewSolCompiler

func NewSolCompiler(solcPath string) (Compiler, error)

type Contract

type Contract struct {
	Name            string
	SourcePath      string
	CompilerVersion string
	Address         common.Address

	ABI []byte
	Bin string
}

Jump to

Keyboard shortcuts

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