Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCompilationFailed = errors.New("compilation failed")
)
Functions ¶
This section is empty.
Types ¶
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
Compiler represents a compiler for Huff contracts.
type Contract ¶
type Contract struct { Code []byte // The runtime bytecode of the contract after deployment. DeployCode []byte // The bytecode to deploy the contract. }
Contract represents a compiled contract.
type EVMVersion ¶
type EVMVersion string
EVMVersion represents the EVM version to compile for.
const ( EVMVersionShanghai EVMVersion = "shanghai" EVMVersionParis EVMVersion = "paris" )
type Options ¶
type Options struct {
EVMVersion EVMVersion // EVM version to compile for (default: shanghai)
}
Options for the Compiler. A zero Options consists entirely of default values.
Click to show internal directories.
Click to hide internal directories.