go-ethereum/accounts/abi/bind
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
..
backends accounts/abi/bind: support closing a simulated backend (#19902) 2025-01-24 16:18:29 +08:00
auth.go accounts/abi/bind: fix typo in comments (#19791) 2025-01-24 16:18:29 +08:00
backend.go accounts/abi/bind: fix bounded contracts and sim backend for 1559 (#23038) 2024-11-01 11:36:52 +08:00
base.go accounts/abi: fix incorrect signature (#19881) 2025-01-24 16:18:29 +08:00
base_test.go accounts/abi: Fix method overwritten by same name methods (#17099) 2025-01-24 16:18:29 +08:00
bind.go accounts/abi: add internalType information and fix issues (#20179) 2025-01-24 16:18:29 +08:00
bind_test.go accounts/abi/bind: support closing a simulated backend (#19902) 2025-01-24 16:18:29 +08:00
template.go accounts/abi: add internalType information and fix issues (#20179) 2025-01-24 16:18:29 +08:00
topics.go accounts/abi: add internalType information and fix issues (#20179) 2025-01-24 16:18:29 +08:00
topics_test.go accounts/abi: add internalType information and fix issues (#20179) 2025-01-24 16:18:29 +08:00
util.go all: use errrors.New instead of empty fmt.Errorf 2024-06-14 19:19:21 +08:00
util_test.go accounts/abi/bind: support closing a simulated backend (#19902) 2025-01-24 16:18:29 +08:00