plugeth/accounts/abi
gary rong b9df7ecdc3
all: seperate consensus error and evm internal error (#20830)
* all: seperate consensus error and evm internal error

There are actually two types of error will be returned when
a tranaction/message call is executed: (a) consensus error
(b) evm internal error. The former should be converted to
a consensus issue, e.g. The sender doesn't enough asset to
purchase the gas it specifies. The latter is allowed since
evm itself is a blackbox and internal error is allowed to happen.

This PR emphasizes the difference by introducing a executionResult
structure. The evm error is embedded inside. So if any error
returned, it indicates consensus issue happens.

And also this PR improve the `EstimateGas` API to return the concrete
revert reason if the transaction always fails

* all: polish

* accounts/abi/bind/backends: add tests

* accounts/abi/bind/backends, internal: cleanup error message

* all: address comments

* core: fix lint

* accounts, core, eth, internal: address comments

* accounts, internal: resolve revert reason if possible

* accounts, internal: address comments
2020-04-22 11:25:36 +03:00
..
bind all: seperate consensus error and evm internal error (#20830) 2020-04-22 11:25:36 +03:00
abi_test.go all: seperate consensus error and evm internal error (#20830) 2020-04-22 11:25:36 +03:00
abi.go all: seperate consensus error and evm internal error (#20830) 2020-04-22 11:25:36 +03: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