Documentation
¶
Overview ¶
Example (BoxOutput) ¶
fmt.Println()
fmt.Print(boxOutput("%s is %d", "foo", 17))
Output: ↘↓↓↓↓↓↓↓↓↓↓↓↓↓↙ → ← → README ← → ← → foo is 17 ← → ← → README ← → ← ↗↑↑↑↑↑↑↑↑↑↑↑↑↑↖
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteVersionsDB ¶
func WriteVersionsDB(db *IntegratedVersion) error
Types ¶
type ContractDetails ¶
type ContractDetails struct {
Binary string // Hex representation of the contract's raw bytes
ABI string
Sources map[string]string // contractName -> source code
}
ContractDetails contains the contract data needed to make a geth contract wrapper for a solidity contract.
func ExtractContractDetails ¶
func ExtractContractDetails(beltArtifactPath string) (*ContractDetails, error)
ExtractContractDetails returns the data in the belt artifact needed to make a geth contract wrapper for the corresponding EVM contract
func (*ContractDetails) VersionHash ¶
func (c *ContractDetails) VersionHash() (hash string)
c.VersionHash() is the hash used to detect changes in the underlying contract
type ContractVersion ¶
type ContractVersion struct {
// path to compiler artifact used by generate.sh to create wrapper package
CompilerArtifactPath string
// Hash of the artifact at the timem the wrapper was last generated
Hash string
}
ContractVersion records information about the solidity compiler artifact a golang contract wrapper package depends on.
type IntegratedVersion ¶
type IntegratedVersion struct {
// Version of geth last used to generate the wrappers
GethVersion string
// { golang-pkg-name: version_info }
ContractVersions map[string]ContractVersion
}
IntegratedVersion carries the full versioning information checked in this test
func ReadVersionsDB ¶
func ReadVersionsDB() (*IntegratedVersion, error)
readVersionsDB populates an IntegratedVersion with all the info in the versions DB
Click to show internal directories.
Click to hide internal directories.