laconicd-deprecated/x/evm/types
yihuang 1fe07edbf9
evm: refactor dup state transition code (#674)
* Problem: state transition code is duplicated

Closes: #672

Solution:
- move gas refund out from ApplyMessage
- move check into ApplyMessage
- move evm construction into ApplyMessage
- ensure context stack is clean after ApplyMessage return

fix unit tests

undo rename

add underflow check

* improve performance

- don't duplicate params loading
- passing EVMConfig around as pointer
2021-10-22 19:21:03 +02:00
..
access_list_test.go evm: unit tests (#619) 2021-10-08 13:11:19 +02:00
access_list_tx.go evm: dynamic fee tx (#384) 2021-07-30 11:40:17 +00:00
access_list.go all: cleanup imports (#524) 2021-09-03 18:06:36 +00:00
chain_config_test.go evm: unit tests (#619) 2021-10-08 13:11:19 +02:00
chain_config.go all: bump go-ethereum to v1.10.9 (#231) 2021-10-05 15:38:20 +00:00
codec_test.go all: linter (#532) 2021-09-05 11:03:06 +00:00
codec.go all: linter (#532) 2021-09-05 11:03:06 +00:00
compiled_contract.go rpc: transaction receipt test (#678) 2021-10-20 21:00:17 +02:00
config.go evm: refactor dup state transition code (#674) 2021-10-22 19:21:03 +02:00
dynamic_fee_tx_test.go evm: unit tests (#619) 2021-10-08 13:11:19 +02:00
dynamic_fee_tx.go evm: unit tests (#619) 2021-10-08 13:11:19 +02:00
ERC20Contract.json rpc: transaction receipt test (#678) 2021-10-20 21:00:17 +02:00
errors_test.go all: linter (#532) 2021-09-05 11:03:06 +00:00
errors.go evm: refactor dup state transition code (#674) 2021-10-22 19:21:03 +02:00
events.go evm: remove tx logs and block bloom from chain state (#556) 2021-09-15 09:45:03 +00:00
evm.pb.go chore: merge v0.7.0 to main (#651) 2021-10-08 12:03:51 +00:00
genesis_test.go evm: unit tests (#619) 2021-10-08 13:11:19 +02:00
genesis.go evm: fixed commented out simulations, pubsub, and handler tests (#655) 2021-10-11 13:09:53 +02:00
genesis.pb.go evm: geth 1.10.9 fee market changes to Keeper and AnteHandler (#620) 2021-10-04 14:58:06 +00:00
interfaces.go evm: geth 1.10.9 fee market changes to Keeper and AnteHandler (#620) 2021-10-04 14:58:06 +00:00
key.go evm: fix import/export genesis for contract storage (#590) 2021-09-27 12:26:45 +02:00
legacy_tx_test.go evm: unit tests (#619) 2021-10-08 13:11:19 +02:00
legacy_tx.go evm: unit tests (#619) 2021-10-08 13:11:19 +02:00
logs_test.go crypto: updates from reviews (#535) 2021-09-07 17:29:24 +00:00
logs.go all: linter (#532) 2021-09-05 11:03:06 +00:00
msg_test.go all: bump go-ethereum to v1.10.9 (#231) 2021-10-05 15:38:20 +00:00
msg.go tests: DynamicFeeTx (#649) 2021-10-19 08:49:29 +00:00
params_test.go evm, rpc: disable BaseFee for non London block (#662) 2021-10-13 15:39:47 +02:00
params.go evm, rpc: disable BaseFee for non London block (#662) 2021-10-13 15:39:47 +02:00
query.go refactor: eth_call and eth_estimateGas don't need to pass base fee as field (#671) 2021-10-21 17:29:19 +02:00
query.pb.go refactor: eth_call and eth_estimateGas don't need to pass base fee as field (#671) 2021-10-21 17:29:19 +02:00
query.pb.gw.go refactor: eth_call and eth_estimateGas don't need to pass base fee as field (#671) 2021-10-21 17:29:19 +02:00
storage_test.go all: cleanup imports (#524) 2021-09-03 18:06:36 +00:00
storage.go all: linter (#532) 2021-09-05 11:03:06 +00:00
tracer_test.go evm: unit tests (#619) 2021-10-08 13:11:19 +02:00
tracer.go evm: unit tests (#619) 2021-10-08 13:11:19 +02:00
tx_args.go rpc: geth v1.10.9 changes (#624) 2021-10-06 11:22:32 +00:00
tx_data_test.go evm: fix Chain ID derivation (#579) 2021-09-21 11:31:19 +00:00
tx_data.go all: bump go-ethereum to v1.10.9 (#231) 2021-10-05 15:38:20 +00:00
tx.go evm: treat all vm errors the same as reverted (#276) 2021-07-15 02:01:05 -04:00
tx.pb.go proto: v1alpha to v1 (#448) 2021-08-17 15:30:35 +00:00
utils_test.go all: bump go-ethereum to v1.10.9 (#231) 2021-10-05 15:38:20 +00:00
utils.go all: linter (#532) 2021-09-05 11:03:06 +00:00