go-ethereum/accounts/abi
Daniel Liu 32615fda97 accounts/abi: add internalType information and fix issues (#20179)
* accounts/abi: fix various issues

The fixed issues include:

(1) If there is no return in a call function, unpack should
return nil error

(2) For some functions which have struct array as parameter,
it will also be detected and generate the struct definition

(3) For event, if it has non-indexed parameter, the parameter
name will also be assigned if empty. Also the internal struct
will be detected and generate struct defition if not exist.

(4) Fix annotation generation in event function

* accounts/abi: add new abi field internalType

* accounts: address comments and add tests

* accounts/abi: replace strings.ReplaceAll with strings.Replace
2025-01-24 16:18:29 +08:00
..
bind accounts/abi: add internalType information and fix issues (#20179) 2025-01-24 16:18:29 +08:00
abi.go accounts/abi: add internalType information and fix issues (#20179) 2025-01-24 16:18:29 +08:00
abi_test.go accounts/abi: add internalType information and fix issues (#20179) 2025-01-24 16:18:29 +08:00
argument.go accounts/abi: add internalType information and fix issues (#20179) 2025-01-24 16:18:29 +08: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.go accounts/abi: fix incorrect signature (#19881) 2025-01-24 16:18:29 +08:00
event_test.go accounts/abi: fix incorrect signature (#19881) 2025-01-24 16:18:29 +08:00
method.go accounts/abi: fix incorrect signature (#19881) 2025-01-24 16:18:29 +08:00
method_test.go accounts/abi: enable struct golang binding generation (#18491) 2025-01-24 16:18:29 +08:00
numbers.go accounts/abi: remove deadcode isSigned (#16990) 2025-01-24 16:18:28 +08:00
pack.go accounts/abi: common/math: moved U256Bytes (#21020) 2024-12-28 09:06:30 +08:00
pack_test.go accounts/abi: add internalType information and fix issues (#20179) 2025-01-24 16:18:29 +08:00
reflect.go accounts/abi: enable struct golang binding generation (#18491) 2025-01-24 16:18:29 +08:00
reflect_test.go accounts/abi: Add tests for reflection ahead of refactor (#18434) 2025-01-24 16:18:29 +08:00
type.go accounts/abi: add internalType information and fix issues (#20179) 2025-01-24 16:18:29 +08:00
type_test.go accounts/abi: add internalType information and fix issues (#20179) 2025-01-24 16:18:29 +08:00
unpack.go accounts/abi: generic unpacking of event logs into map[string]interface{} (#18440) 2025-01-24 16:18:29 +08:00
unpack_test.go accounts/abi: add internalType information and fix issues (#20179) 2025-01-24 16:18:29 +08:00