compilesc

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 12 Imported by: 1

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