bsc/accounts/abi
Péter Szilágyi 682875adff accounts/abi/bind, internal/ethapi: binary search gas estimation (#3587)
Gas estimation currently mostly works, but can underestimate for more funky
refunds. This is because various ops (e.g. CALL) need more gas to run than they
actually consume (e.g. 2300 stipend that is refunded if not used). With more
intricate contract interplays, it becomes almost impossible to return a proper
value to the user.

This commit swaps out the simplistic gas estimation to a binary search approach,
honing in on the correct gas use. This does mean that gas estimation needs to
rerun the transaction log(max-price) times to measure whether it fails or not,
but it's a price paid by the transaction issuer, and it should be worth it to
support proper estimates.
2017-01-20 23:39:16 +01:00
..
bind accounts/abi/bind, internal/ethapi: binary search gas estimation (#3587) 2017-01-20 23:39:16 +01:00
abi_test.go accounts/abi: added testcase to unpack []uint32 2017-01-09 11:36:32 +02:00
abi.go accounts/abi: fixed comments 2017-01-09 11:36:33 +02:00
argument.go core/vm: move Log to core/types 2017-01-06 14:15:22 +01:00
doc.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
error.go accounts/abi: fixed string and fixed size bytes packing 2016-04-28 12:41:47 +02:00
event_test.go all: update license information 2016-04-15 09:48:05 +02:00
event.go accounts/abi: add support for "anonymous" and "indexed" for events (#3464) 2016-12-22 01:51:20 +01:00
method.go accounts/abi: Negative numbers not properly converted in ABI encoding 2016-06-06 14:27:15 +02:00
numbers_test.go accounts/abi: fix uint64 upper range encoding. 2016-06-10 12:32:08 +03:00
numbers.go accounts/abi: fix uint64 upper range encoding. 2016-06-10 12:32:08 +03:00
packing.go accounts/abi: add support for function types (#3405) 2017-01-05 11:46:44 +01:00
reflect.go accounts/abi: differentiate between static and dynamic arrays (#3121) 2016-11-03 23:25:19 +01:00
type_test.go accounts/abi: fixed broken types slice testcases 2017-01-09 11:36:33 +02:00
type.go accounts/abi: fix comment spelling error 2017-01-13 11:14:47 +02:00