Documentation ¶
Overview ¶
Package hardhat provides an interface for parsing hardhat deployments
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶ added in v0.1.10
type Contract struct { Name string `json:"contractName"` Abi interface{} `json:"abi"` Bytecode string `json:"bytecode"` DeployedBytecode string `json:"deployedBytecode"` SourceMap string `json:"sourceMap"` DeployedSourceMap string `json:"deployedSourceMap"` Source string `json:"source"` SourcePath string `json:"sourcePath"` Ast ContractAst `json:"legacyAST"` Compiler ContractCompiler `json:"compiler"` Networks map[string]ContractNetwork `json:"networks"` SchemaVersion string `json:"schemaVersion"` UpdatedAt time.Time `json:"updatedAt"` }
Contract is a contract representation in the hardhat parser.
func GetDeployments ¶
GetDeployments parses all contract deployments from a directory.
type ContractAst ¶ added in v0.1.10
type ContractAst struct { AbsolutePath string `json:"absolutePath"` ExportedSymbols map[string][]int `json:"exportedSymbols"` ID int `json:"id"` NodeType string `json:"nodeType"` Nodes []Node `json:"nodes"` Src string `json:"src"` }
ContractAst is the ast of a contract.
type ContractCompiler ¶ added in v0.1.10
ContractCompiler is the compiler metadata used for contracts.
type ContractNetwork ¶ added in v0.1.10
type ContractNetwork struct { Events interface{} `json:"events"` Links interface{} `json:"links"` Address string `json:"address"` TransactionHash string `json:"transactionHash"` }
ContractNetwork is the network metadata used for contracts.
type ContractSources ¶ added in v0.1.10
type ContractSources struct {
Content string `json:"content"`
}
ContractSources is the source of a contract.
type HardhatContract ¶ added in v0.1.10
type HardhatContract struct { Contract Address string `json:"address"` Receipt hardhatReceipt `json:"receipt"` Metadata string `json:"metadata"` }
HardhatContract is a contract representation in the hardhat parser. nolint: golint, revive
Click to show internal directories.
Click to hide internal directories.