renamed states*.nim => v2states*.nim

why:
  these files provide part of the externally accessible interface
  provided by vm_state*.nim. so the new filename indicates that the
  source code belongs to vm2 (rather than vm).
This commit is contained in:
Jordan Hrycaj 2021-04-08 18:18:28 +01:00 committed by zah
parent 7b6767c4a3
commit f159e67bba
6 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ import
sets, eth/[common, keys],
../constants, ../errors,
./interpreter/[v2opcode_values, gas_meter, gas_costs, v2forks],
./code_stream, ./memory, ./message, ./stack, ./v2types, ./state,
./code_stream, ./memory, ./message, ./stack, ./v2types, ./v2state,
../db/[accounts_cache, db_chain],
../utils/header, ./precompiles,
./transaction_tracer, ../utils

View File

@ -10,7 +10,7 @@ import
chronicles, stint, nimcrypto, stew/ranges/ptr_arith, eth/common,
./utils/[macros_procs_opcodes, utils_numeric],
./gas_meter, ./gas_costs, ./v2opcode_values, ./v2forks,
../memory, ../stack, ../code_stream, ../computation, ../state, ../v2types,
../memory, ../stack, ../code_stream, ../computation, ../v2state, ../v2types,
../../errors, ../../constants,
../../db/[db_chain, accounts_cache]

View File

@ -14,7 +14,7 @@ import
options, sets,
eth/common, chronicles, ../db/accounts_cache,
../transaction,
./computation, ./interpreter, ./state, ./v2types
./computation, ./interpreter, ./v2state, ./v2types
proc setupComputation*(vmState: BaseVMState, tx: Transaction, sender: EthAddress, fork: Fork) : Computation =
var gas = tx.gasLimit - tx.intrinsicGas(fork)

View File

@ -13,7 +13,7 @@ when defined(evmc_enabled) or not defined(vm2_enabled):
./vm/state as vms
else:
import
./vm2/state as vms
./vm2/v2state as vms
export
vms.`$`,

View File

@ -13,7 +13,7 @@ when defined(evmc_enabled) or not defined(vm2_enabled):
vm/state_transactions as vmx
else:
import
vm2/state_transactions as vmx
vm2/v2state_transactions as vmx
export
vmx.execComputation,