accounts/abi/bind/v2: document MetaData fields and remove Sigs

This commit is contained in:
Felix Lange 2025-01-28 00:28:57 +01:00
parent d3dfbf9bfa
commit d5481a6327

View file

@ -89,11 +89,18 @@ type WatchOpts struct {
// MetaData collects all metadata for a bound contract.
type MetaData struct {
Sigs map[string]string
Bin string
ABI string
Bin string // runtime bytecode (as a hex string)
ABI string // the raw ABI definition (JSON)
Deps []*MetaData // library dependencies of the contract
// Solidity library placeholder name. This is a unique identifier of a contract within
// a compilation unit. The Pattern is used to link contracts during deployment using
// [LinkAndDeploy].
//
// The library pattern is a 34 character prefix of the hex encoding of the keccak256
// hash of the fully qualified 'library name', i.e. the path of the source file
// containing the library code.
Pattern string
Deps []*MetaData
mu sync.Mutex
parsedABI *abi.ABI