compilesc

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 12 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompileUnit

type CompileUnit struct {
	Name        string `yaml:"name"`
	SolcVersion string `yaml:"solcVersion"`
	InputPath   string `yaml:"inputPath"`
	OutputPath  string `yaml:"outputPath"`
}

CompileUnit represents a single contract to be compiled.

type CompileUnits

type CompileUnits struct {
	Parallel   []CompileUnit `yaml:"parallel"`
	Sequential []CompileUnit `yaml:"sequential"`
}

CompileUnits represents data for all the contracts to be compiled.

type Manager

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

Manager handles smart contract compilation.

func NewManager

func NewManager(basePath string) (*Manager, error)

NewManager is the Manager constructor.

func (*Manager) Abigen

func (cm *Manager) Abigen(name, inputPath, outputPath string) error

Abigen generates bindings for the given file

func (*Manager) Compile

func (cm *Manager) Compile(name, solcVersion, inputPath, outputPath string) error

Compile invokes solc on the given sol file.

func (*Manager) Run

func (cm *Manager) Run() error

Run executes the compilation of smart contracts and generation of golang bindings.

Jump to

Keyboard shortcuts

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