go-pulse/accounts/abi
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
..
bind accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
abi_test.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
abi.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
argument.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
doc.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
error.go accounts/abi: improve type handling, add event support (#14743) 2017-10-17 13:07:08 +02:00
event_test.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
event.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
method_test.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
method.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
numbers_test.go accounts: remove deadcode isSigned (#16990) 2018-06-20 11:46:29 +02:00
numbers.go accounts: remove deadcode isSigned (#16990) 2018-06-20 11:46:29 +02:00
pack_test.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
pack.go accounts/abi/bind: fix destructive packing of *big.Int (#20412) 2019-12-02 10:29:25 +01:00
reflect_test.go accounts/abi: Add tests for reflection ahead of refactor (#18434) 2019-01-15 16:45:52 +01:00
reflect.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
type_test.go accounts/abi: add internalType information and fix issues (#20179) 2019-10-31 14:17:51 +01:00
type.go accounts/abi: add internalType information and fix issues (#20179) 2019-10-31 14:17:51 +01:00
unpack_test.go accounts/abi: implement new fallback functions (#20764) 2020-04-15 09:23:58 +02:00
unpack.go accounts/abi/bind: Refactored topics (#20851) 2020-04-08 12:00:10 +02:00