From d5481a632783bb4556e3337c4ebaa71d65895da4 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 28 Jan 2025 00:28:57 +0100 Subject: [PATCH] accounts/abi/bind/v2: document MetaData fields and remove Sigs --- accounts/abi/bind/v2/base.go | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/accounts/abi/bind/v2/base.go b/accounts/abi/bind/v2/base.go index 4d9e7cd8f6..1cf04e66f7 100644 --- a/accounts/abi/bind/v2/base.go +++ b/accounts/abi/bind/v2/base.go @@ -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