mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 06:23:47 +00:00
accounts/abi/bind/v2: document MetaData fields and remove Sigs
This commit is contained in:
parent
d3dfbf9bfa
commit
d5481a6327
1 changed files with 11 additions and 4 deletions
|
|
@ -89,11 +89,18 @@ type WatchOpts struct {
|
||||||
|
|
||||||
// MetaData collects all metadata for a bound contract.
|
// MetaData collects all metadata for a bound contract.
|
||||||
type MetaData struct {
|
type MetaData struct {
|
||||||
Sigs map[string]string
|
Bin string // runtime bytecode (as a hex string)
|
||||||
Bin string
|
ABI string // the raw ABI definition (JSON)
|
||||||
ABI string
|
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
|
Pattern string
|
||||||
Deps []*MetaData
|
|
||||||
|
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
parsedABI *abi.ABI
|
parsedABI *abi.ABI
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue