Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Artifact ¶
type Artifact struct { Abi json.RawMessage `json:"abi"` EVM struct { Bytecode *Bytecode `json:"bytecode"` DeployedBytecode *Bytecode `json:"deployedBytecode"` Opcodes string `json:"opcodes"` SourceMap string `json:"sourceMap"` MethodIdentifiers map[string]string `json:"methodIdentifiers"` } `json:"evm"` Metadata string `json:"metadata"` }
type Bytecode ¶
type Bytecode struct { Object string `json:"object"` SrcMap string `json:"sourceMap"` LinkReferences json.RawMessage `json:"linkReferences"` }
type CompilationResult ¶
type CompilationResult struct { // Contracts is the list of contracts compiled Contracts []string // Runs is the list of independent compilation components Runs []*CompilationRun }
type CompilationRun ¶
type FileDiff ¶
type FileDiff struct { // Path of the file being updated Path string // Type of the file update Type FileDiffType // Time of modification for the file Mod time.Time // Content is the content of the file Content []byte }
FileDiff describes a file update
type FileDiffType ¶
type FileDiffType string
const ( FileDiffAdd FileDiffType = "add" FileDiffDel FileDiffType = "del" FileDiffMod FileDiffType = "mod" )
type Option ¶
type Option func(*Config)
func WithArtifactsDir ¶
func WithContractsDir ¶
func WithSolidityVersion ¶
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func NewProject ¶
func (*Project) Compile ¶
func (p *Project) Compile() (*CompilationResult, error)
Compile compiles the application
func (*Project) ListContracts ¶
func (*Project) ListSources ¶
func (*Project) UpsertContract ¶
func (*Project) UpsertSource ¶
type Source ¶
type Source struct { // Dir is the directory of the file Dir string // Filename is the name of the file Filename string // ModTime is the modified time of the source ModTime time.Time // Versions are the required version for this source Version []string // Imports is the list of imports defined in this source Imports []string AST json.RawMessage }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.