Documentation
¶
Overview ¶
Package gethwrappers provides infrastructure for generating and verifying go-ethereum wrapper packages for smart contracts. See go_generate.go for more information.
Package gethwrappers provides tools for wrapping solidity contracts with golang packages, using abigen.
Index ¶
- Variables
- func Abigen(a AbigenArgs)
- func BoxOutput(errorMsgTemplate string, errorMsgValues ...interface{}) string
- func ConcatBytes(bufs ...[]byte) []byte
- func Exit(msg string, err error)
- func GetProjectRoot() (rootPath string)
- func ImproveAbigenOutput(path string, abiPath string)
- func TempDir(dirPrefix string) (string, func())
- func VersionHash(abiPath string, binPath string) (hash string)
- func WriteVersionsDB(db *IntegratedVersion) (err error)
- type AbigenArgs
- type ContractVersion
- type IntegratedVersion
Constants ¶
This section is empty.
Variables ¶
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 BoxOutput ¶
BoxOutput formats its arguments as fmt.Printf, and encloses them in a box of arrows pointing at their content, in order to better highlight it. See ExampleBoxOutput
func ConcatBytes ¶
func GetProjectRoot ¶
func GetProjectRoot() (rootPath string)
GetProjectRoot returns the path with top-level go.mod, defined as the first ancestor directory containing a go.mod whose module path is exactly "github.com/smartcontractkit/<repo>" (no further nested segments).
func ImproveAbigenOutput ¶
func VersionHash ¶
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, Out, Type, Pkg string
}
AbigenArgs is the arguments to the abigen executable. E.g., Bin is the -bin arg.
type ContractVersion ¶
type ContractVersion struct {
// Hash of the artifact at the timem 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
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package gethwrappers provides tools for wrapping solidity contracts with golang packages, using abigen.
|
Package gethwrappers provides tools for wrapping solidity contracts with golang packages, using abigen. |
|
Package gethwrappers provides tools for wrapping solidity contracts with golang packages, using abigen.
|
Package gethwrappers provides tools for wrapping solidity contracts with golang packages, using abigen. |
|
mock_ethusd_aggregator_wrapper
Code generated - DO NOT EDIT.
|
Code generated - DO NOT EDIT. |
|
generate
command
|
|
|
generate_automation
command
|
|
|
zksync
command
|
|
|
helpers
module
|
|
|
keystone
|
|
|
Package gethwrappers provides tools for wrapping solidity contracts with golang packages, using abigen.
|
Package gethwrappers provides tools for wrapping solidity contracts with golang packages, using abigen. |
|
offchainaggregator
|
|
|
Package gethwrappers provides tools for wrapping solidity contracts with golang packages, using abigen.
|
Package gethwrappers provides tools for wrapping solidity contracts with golang packages, using abigen. |
|
Package gethwrappers provides tools for wrapping solidity contracts with golang packages, using abigen.
|
Package gethwrappers provides tools for wrapping solidity contracts with golang packages, using abigen. |
|
Package gethwrappers provides tools for wrapping solidity contracts with golang packages, using abigen.
|
Package gethwrappers provides tools for wrapping solidity contracts with golang packages, using abigen. |
|
generated/initial/burn_mint_erc677
Code generated - DO NOT EDIT.
|
Code generated - DO NOT EDIT. |
|
generated/initial/link_token
Code generated - DO NOT EDIT.
|
Code generated - DO NOT EDIT. |
|
generated/initial/mock_v3_aggregator_contract
Code generated - DO NOT EDIT.
|
Code generated - DO NOT EDIT. |
|
generated/initial/multicall3
Code generated - DO NOT EDIT.
|
Code generated - DO NOT EDIT. |
|
generated/initial/weth9_zksync
Code generated - DO NOT EDIT.
|
Code generated - DO NOT EDIT. |
|
generated/latest/burn_mint_erc677
Code generated - DO NOT EDIT.
|
Code generated - DO NOT EDIT. |
|
generated/latest/link_token
Code generated - DO NOT EDIT.
|
Code generated - DO NOT EDIT. |
|
generated/latest/mock_v3_aggregator_contract
Code generated - DO NOT EDIT.
|
Code generated - DO NOT EDIT. |
|
generated/latest/multicall3
Code generated - DO NOT EDIT.
|
Code generated - DO NOT EDIT. |
|
generated/latest/weth9_zksync
Code generated - DO NOT EDIT.
|
Code generated - DO NOT EDIT. |
|
workflow
|
|