plugeth/accounts/abi
gary rong 44b74cfc40 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
2019-10-31 14:17:51 +01:00
..
bind accounts/abi: add internalType information and fix issues (#20179) 2019-10-31 14:17:51 +01:00
abi_test.go accounts/abi: add internalType information and fix issues (#20179) 2019-10-31 14:17:51 +01:00
abi.go accounts/abi: add internalType information and fix issues (#20179) 2019-10-31 14:17:51 +01:00
argument.go accounts/abi: add internalType information and fix issues (#20179) 2019-10-31 14:17:51 +01: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, signer/fourbyte: fix incorrect signature (#19881) 2019-08-02 09:20:46 +02:00
event.go accounts/abi, signer/fourbyte: fix incorrect signature (#19881) 2019-08-02 09:20:46 +02:00
method_test.go all: update author list and licenses 2019-07-22 12:17:27 +03:00
method.go accounts/abi, signer/fourbyte: fix incorrect signature (#19881) 2019-08-02 09:20:46 +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: add internalType information and fix issues (#20179) 2019-10-31 14:17:51 +01:00
pack.go accounts/abi: satisfy most of the linter warnings 2017-12-21 15:14:50 +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: enable struct golang binding generation (#18491) 2019-07-03 12:17:43 +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: add internalType information and fix issues (#20179) 2019-10-31 14:17:51 +01:00
unpack.go accounts/abi: generic unpacking of event logs into map[string]interface{} (#18440) 2019-04-01 15:42:59 +02:00