renamed computation.nim, memory.nim, utils_numeric.nim, interpreter.nim => v2*.nim

why:
  these files provide part of the externally accessible interface
  provided by vm_cpmputation.nim, vm_internals.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:45:34 +01:00 committed by zah
parent 2ca9621799
commit e02c6d4c3d
13 changed files with 16 additions and 16 deletions

View File

@ -8,9 +8,9 @@
import
strformat, times, sets, sequtils, options,
chronicles, stint, nimcrypto, stew/ranges/ptr_arith, eth/common,
./utils/[macros_procs_opcodes, utils_numeric],
./utils/[macros_procs_opcodes, v2utils_numeric],
./gas_meter, ./v2gas_costs, ./v2opcode_values, ./v2forks,
../memory, ../stack, ../code_stream, ../computation, ../v2state, ../v2types,
../v2memory, ../stack, ../code_stream, ../v2computation, ../v2state, ../v2types,
../../errors, ../../constants,
../../db/[db_chain, accounts_cache]

View File

@ -10,9 +10,9 @@
import
macros, strformat, stint, eth/common,
../../computation, ../../stack, ../../code_stream, ../../memory,
../../v2computation, ../../stack, ../../code_stream, ../../v2memory,
../../v2types, ../../../errors, ../gas_meter, ../v2opcode_values,
./utils_numeric
./v2utils_numeric
proc pop(tree: var NimNode): NimNode =
## Returns the last value of a NimNode and remove it

View File

@ -12,7 +12,7 @@ when defined(evmc_enabled):
import
math, eth/common/eth_types,
./utils/[macros_gen_opcodes, utils_numeric],
./utils/[macros_gen_opcodes, v2utils_numeric],
./v2opcode_values, ./v2forks, ../../errors
# Gas Fee Schedule

View File

@ -1,7 +1,7 @@
import
json, strutils, sets, hashes,
chronicles, nimcrypto, eth/common, stint,
./v2types, ./memory, ./stack, ../db/accounts_cache,
./v2types, ./v2memory, ./stack, ../db/accounts_cache,
eth/trie/hexary,
./interpreter/v2opcode_values

View File

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

View File

@ -38,7 +38,7 @@ export
# see vm_computation
import
./computation as vmc
./v2computation as vmc
export
vmc.accountExists,
vmc.addLogEntry,

View File

@ -14,7 +14,7 @@ import
sequtils,
chronicles, eth/common/eth_types,
../errors, ../validation,
./interpreter/utils/utils_numeric
./interpreter/utils/v2utils_numeric
logScope:
topics = "vm memory"

View File

@ -15,7 +15,7 @@ when defined(evmc_enabled):
import
./v2types,
./interpreter/[gas_meter, v2gas_costs, utils/utils_numeric, v2forks],
./interpreter/[gas_meter, v2gas_costs, utils/v2utils_numeric, v2forks],
../errors, stint, eth/[keys, common], chronicles, tables, macros,
math, nimcrypto, bncurve/[fields, groups], ./blake2b_f, ./blscurve

View File

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

View File

@ -16,7 +16,7 @@ when defined(evmc_enabled):
import
tables, eth/common,
options, json, sets,
./memory, ./stack, ./code_stream,
./v2memory, ./stack, ./code_stream,
./interpreter/[v2gas_costs, v2opcode_values, v2forks],
# TODO - will be hidden at a lower layer
../db/[db_chain, accounts_cache]

View File

@ -16,7 +16,7 @@ when defined(evmc_enabled) or not defined(vm2_enabled):
./vm/computation as vmc
else:
import
./vm2/computation as vmc
./vm2/v2computation as vmc
export
vmc.accountExists,

View File

@ -15,7 +15,7 @@ when defined(evmc_enabled) or not defined(vm2_enabled):
./vm/memory as vmm
else:
import
./vm2/memory as vmm
./vm2/v2memory as vmm
export
vmm.Memory,
@ -35,7 +35,7 @@ when defined(evmc_enabled) or not defined(vm2_enabled):
./vm/interpreter/utils/utils_numeric as vmn
else:
import
./vm2/interpreter/utils/utils_numeric as vmn
./vm2/interpreter/utils/v2utils_numeric as vmn
export
@ -59,7 +59,7 @@ when defined(evmc_enabled) or not defined(vm2_enabled):
./vm/interpreter as vmi
else:
import
./vm2/interpreter as vmi
./vm2/v2interpreter as vmi
export
vmi