mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-23 17:28:27 +00:00
EVM: Remove vm_forks
everywhere, use common forks list instead
The common forks list was already used, redirected via `vm_forks` for historical compatibility. Remove the old `vm_forks` now and divert all imports to the common forks list outside the EVM. Signed-off-by: Jamie Lokier <jamie@shareable.org>
This commit is contained in:
parent
aee0fe39d2
commit
7c90d8de70
@ -8,8 +8,8 @@
|
|||||||
import
|
import
|
||||||
chronicles, strformat, macros, options, times,
|
chronicles, strformat, macros, options, times,
|
||||||
sets, eth/[common, keys],
|
sets, eth/[common, keys],
|
||||||
../constants, ../errors,
|
../constants, ../errors, ../forks,
|
||||||
./interpreter/[opcode_values, gas_meter, gas_costs, vm_forks],
|
./interpreter/[opcode_values, gas_meter, gas_costs],
|
||||||
./code_stream, ./memory, ./message, ./stack, ./types, ./state,
|
./code_stream, ./memory, ./message, ./stack, ./types, ./state,
|
||||||
../db/[accounts_cache, db_chain],
|
../db/[accounts_cache, db_chain],
|
||||||
../utils/header, ./precompiles,
|
../utils/header, ./precompiles,
|
||||||
|
@ -15,13 +15,6 @@ export
|
|||||||
vmo.Op
|
vmo.Op
|
||||||
|
|
||||||
|
|
||||||
# see vm_forks
|
|
||||||
import
|
|
||||||
./interpreter/vm_forks as vmf
|
|
||||||
export
|
|
||||||
vmf.Fork
|
|
||||||
|
|
||||||
|
|
||||||
# see vm_message
|
# see vm_message
|
||||||
import
|
import
|
||||||
./message as vmm
|
./message as vmm
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
import
|
import
|
||||||
math, eth/common/eth_types,
|
math, eth/common/eth_types,
|
||||||
./utils/[macros_gen_opcodes, utils_numeric],
|
./utils/[macros_gen_opcodes, utils_numeric],
|
||||||
./opcode_values, ./vm_forks, ../../errors
|
./opcode_values, ../../forks, ../../errors
|
||||||
|
|
||||||
when defined(evmc_enabled):
|
when defined(evmc_enabled):
|
||||||
import evmc/evmc
|
import evmc/evmc
|
||||||
|
@ -9,9 +9,9 @@ import
|
|||||||
strformat, times, sets, sequtils, options,
|
strformat, times, sets, sequtils, options,
|
||||||
chronicles, stint, nimcrypto, stew/ranges/ptr_arith, eth/common,
|
chronicles, stint, nimcrypto, stew/ranges/ptr_arith, eth/common,
|
||||||
./utils/[macros_procs_opcodes, utils_numeric],
|
./utils/[macros_procs_opcodes, utils_numeric],
|
||||||
./gas_meter, ./gas_costs, ./opcode_values, ./vm_forks,
|
./gas_meter, ./gas_costs, ./opcode_values,
|
||||||
../memory, ../stack, ../code_stream, ../computation, ../state, ../types,
|
../memory, ../stack, ../code_stream, ../computation, ../state, ../types,
|
||||||
../../errors, ../../constants,
|
../../errors, ../../constants, ../../forks,
|
||||||
../../db/[db_chain, accounts_cache]
|
../../db/[db_chain, accounts_cache]
|
||||||
|
|
||||||
when defined(evmc_enabled):
|
when defined(evmc_enabled):
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
import ../../forks
|
|
||||||
export Fork
|
|
@ -8,8 +8,8 @@
|
|||||||
import
|
import
|
||||||
tables, macros,
|
tables, macros,
|
||||||
chronicles,
|
chronicles,
|
||||||
./interpreter/[opcode_values, opcodes_impl, vm_forks, gas_costs, gas_meter, utils/macros_gen_opcodes],
|
./interpreter/[opcode_values, opcodes_impl, gas_costs, gas_meter, utils/macros_gen_opcodes],
|
||||||
./code_stream, ./types, ../errors, ./precompiles, ./stack,
|
./code_stream, ./types, ../errors, ../forks, ./precompiles, ./stack,
|
||||||
terminal # Those are only needed for logging
|
terminal # Those are only needed for logging
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import
|
import
|
||||||
./types,
|
./types, ../forks,
|
||||||
./interpreter/[gas_meter, gas_costs, utils/utils_numeric, vm_forks],
|
./interpreter/[gas_meter, gas_costs, utils/utils_numeric],
|
||||||
../errors, stint, eth/[keys, common], chronicles, tables, macros,
|
../errors, stint, eth/[keys, common], chronicles, tables, macros,
|
||||||
math, nimcrypto, bncurve/[fields, groups], ./blake2b_f, ./blscurve
|
math, nimcrypto, bncurve/[fields, groups], ./blake2b_f, ./blscurve
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
import
|
import
|
||||||
macros, strformat, tables, sets, options,
|
macros, strformat, tables, sets, options,
|
||||||
eth/[common, keys, rlp], nimcrypto/keccak,
|
eth/[common, keys, rlp], nimcrypto/keccak,
|
||||||
./interpreter/[vm_forks, gas_costs], ../errors,
|
./interpreter/gas_costs, ../errors, ../forks,
|
||||||
../constants, ../db/[db_chain, accounts_cache],
|
../constants, ../db/[db_chain, accounts_cache],
|
||||||
../utils, json, ./transaction_tracer, ./types,
|
../utils, json, ./transaction_tracer, ./types,
|
||||||
../config, ../../stateless/[witness_from_tree, witness_types]
|
../config, ../../stateless/[witness_from_tree, witness_types]
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
import
|
import
|
||||||
tables, eth/common,
|
tables, eth/common,
|
||||||
options, json, sets,
|
options, json, sets,
|
||||||
./memory, ./stack, ./code_stream,
|
./memory, ./stack, ./code_stream, ../forks,
|
||||||
./interpreter/[gas_costs, opcode_values, vm_forks],
|
./interpreter/[gas_costs, opcode_values],
|
||||||
# TODO - will be hidden at a lower layer
|
# TODO - will be hidden at a lower layer
|
||||||
../db/[db_chain, accounts_cache]
|
../db/[db_chain, accounts_cache]
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import
|
|||||||
import
|
import
|
||||||
options, json, os, eth/trie/[db, hexary],
|
options, json, os, eth/trie/[db, hexary],
|
||||||
../nimbus/db/[db_chain, accounts_cache],
|
../nimbus/db/[db_chain, accounts_cache],
|
||||||
../nimbus/vm_internals,
|
../nimbus/vm_internals, ../nimbus/forks,
|
||||||
../nimbus/transaction/call_evm
|
../nimbus/transaction/call_evm
|
||||||
|
|
||||||
export byteutils
|
export byteutils
|
||||||
|
@ -14,7 +14,8 @@ import
|
|||||||
../nimbus/transaction,
|
../nimbus/transaction,
|
||||||
../nimbus/[vm_state, vm_types, utils],
|
../nimbus/[vm_state, vm_types, utils],
|
||||||
../nimbus/vm_internals,
|
../nimbus/vm_internals,
|
||||||
../nimbus/db/[db_chain, accounts_cache]
|
../nimbus/db/[db_chain, accounts_cache],
|
||||||
|
../nimbus/forks
|
||||||
|
|
||||||
type
|
type
|
||||||
Tester = object
|
Tester = object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user