gobindings

package module
v0.0.0-...-5e3a1db Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: LGPL-3.0, MIT Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GethVersion = fmt.Sprintf("%d.%d.%d", version.Major, version.Minor, version.Patch)

Functions

func Abigen

func Abigen(a AbigenArgs)

Abigen calls Abigen with the given arguments

It might seem like a shame, to shell out to another golang program like this, but the abigen executable is the stable public interface to the geth contract-wrapper machinery.

Check whether native abigen is installed, and has correct version

func ConcatBytes

func ConcatBytes(bufs ...[]byte) []byte

func Exit

func Exit(msg string, err error)

func ImproveAbigenOutput

func ImproveAbigenOutput(path string, abiPath string)

func VersionHash

func VersionHash(abiPath string, binPath string) (hash string)

VersionHash is the hash used to detect changes in the underlying contract

func WriteVersionsDB

func WriteVersionsDB(db *IntegratedVersion) (err error)

Types

type AbigenArgs

type AbigenArgs struct {
	Bin, ABI, BuildInfo, Metadata, Out, BuildInfoOut, Type, Pkg, AbiGenPath string
}

AbigenArgs is the arguments to the abigen executable. E.g., Bin is the -bin arg. Metadata is the only exception, as it is not passed to abigen but rather used to create a separate metadata variable.

type ContractVersion

type ContractVersion struct {
	// Hash of the artifact at the time the wrapper was last generated
	Hash string
	// Path to compiled abi file
	AbiPath string
	// Path to compiled bin file (if exists, this can be empty)
	BinaryPath 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL