plugeth/accounts/abi/bind
Marius van der Wijden ac9c03f910
accounts/abi: Prevent recalculation of internal fields (#20895)
* accounts/abi: prevent recalculation of ID, Sig and String

* accounts/abi: fixed unpacking of no values

* accounts/abi: multiple fixes to arguments

* accounts/abi: refactored methodName and eventName

This commit moves the complicated logic of how we assign method names
and event names if they already exist into their own functions for
better readability.

* accounts/abi: prevent recalculation of internal

In this commit, I changed the way we calculate the string
representations, sig representations and the id's of methods. Before
that these fields would be recalculated everytime someone called .Sig()
.String() or .ID() on a method or an event.

Additionally this commit fixes issue #20856 as we assign names to inputs
with no name (input with name "" becomes "arg0")

* accounts/abi: added unnamed event params test

* accounts/abi: fixed rebasing errors in method sig

* accounts/abi: fixed rebasing errors in method sig

* accounts/abi: addressed comments

* accounts/abi: added FunctionType enumeration

* accounts/abi/bind: added test for unnamed arguments

* accounts/abi: improved readability in NewMethod, nitpicks

* accounts/abi: method/eventName -> overloadedMethodName
2020-04-20 09:01:04 +02:00
..
backends core: initial version of state snapshots 2020-02-25 12:51:04 +02:00
auth.go accounts, cmd, contracts, les: integrate clef for transaction signing (#19783) 2019-07-03 22:54:59 +03:00
backend.go accounts/abi/bind: support event filtering in abigen 2018-01-24 10:54:13 +02:00
base_test.go accounts/abi: Fix method overwritten by same name methods. (#17099) 2019-07-01 16:51:21 +02:00
base.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
bind_test.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
bind.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
template.go accounts/abi: implement new fallback functions (#20764) 2020-04-15 09:23:58 +02:00
topics_test.go accounts/abi/bind: fixed erroneous filtering of negative ints (#20865) 2020-04-09 10:54:57 +02:00
topics.go accounts/abi/bind: fixed erroneous filtering of negative ints (#20865) 2020-04-09 10:54:57 +02:00
util_test.go accounts/abi/bind: support closing a simulated backend 2019-07-31 11:35:57 +03:00
util.go all: import "context" instead of "golang.org/x/net/context" 2017-03-22 20:49:15 +01:00