renamed message.nim, precompiles.nim, gas_costs.nim => v2*.nim

why:
  these files provide part of the externally accessible interface
  provided by vm_message.nim, vm_precompile.nim, vm_gas_cost.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:29:48 +01:00 committed by zah
parent f159e67bba
commit 2ca9621799
12 changed files with 13 additions and 13 deletions

View File

@ -14,10 +14,10 @@ import
chronicles, strformat, macros, options, times, chronicles, strformat, macros, options, times,
sets, eth/[common, keys], sets, eth/[common, keys],
../constants, ../errors, ../constants, ../errors,
./interpreter/[v2opcode_values, gas_meter, gas_costs, v2forks], ./interpreter/[v2opcode_values, gas_meter, v2gas_costs, v2forks],
./code_stream, ./memory, ./message, ./stack, ./v2types, ./v2state, ./code_stream, ./memory, ./v2message, ./stack, ./v2types, ./v2state,
../db/[accounts_cache, db_chain], ../db/[accounts_cache, db_chain],
../utils/header, ./precompiles, ../utils/header, ./v2precompiles,
./transaction_tracer, ../utils ./transaction_tracer, ../utils
when defined(chronicles_log_level): when defined(chronicles_log_level):

View File

@ -30,7 +30,7 @@ export
# see vm_message # see vm_message
import import
./message as vmm ./v2message as vmm
export export
vmm.isCreate vmm.isCreate

View File

@ -9,7 +9,7 @@ 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, ./v2opcode_values, ./v2forks, ./gas_meter, ./v2gas_costs, ./v2opcode_values, ./v2forks,
../memory, ../stack, ../code_stream, ../computation, ../v2state, ../v2types, ../memory, ../stack, ../code_stream, ../computation, ../v2state, ../v2types,
../../errors, ../../constants, ../../errors, ../../constants,
../../db/[db_chain, accounts_cache] ../../db/[db_chain, accounts_cache]

View File

@ -8,8 +8,8 @@
import import
tables, macros, tables, macros,
chronicles, chronicles,
./interpreter/[v2opcode_values, opcodes_impl, v2forks, gas_costs, gas_meter, utils/macros_gen_opcodes], ./interpreter/[v2opcode_values, opcodes_impl, v2forks, v2gas_costs, gas_meter, utils/macros_gen_opcodes],
./code_stream, ./v2types, ../errors, ./precompiles, ./stack, ./code_stream, ./v2types, ../errors, ./v2precompiles, ./stack,
terminal # Those are only needed for logging terminal # Those are only needed for logging
logScope: logScope:

View File

@ -15,7 +15,7 @@ when defined(evmc_enabled):
import import
./v2types, ./v2types,
./interpreter/[gas_meter, gas_costs, utils/utils_numeric, v2forks], ./interpreter/[gas_meter, v2gas_costs, utils/utils_numeric, v2forks],
../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

View File

@ -16,7 +16,7 @@ when defined(evmc_enabled):
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/[v2forks, gas_costs], ../errors, ./interpreter/[v2forks, v2gas_costs], ../errors,
../constants, ../db/[db_chain, accounts_cache], ../constants, ../db/[db_chain, accounts_cache],
../utils, json, ./transaction_tracer, ./v2types, ../utils, json, ./transaction_tracer, ./v2types,
../config, ../../stateless/[witness_from_tree, witness_types] ../config, ../../stateless/[witness_from_tree, witness_types]

View File

@ -17,7 +17,7 @@ import
tables, eth/common, tables, eth/common,
options, json, sets, options, json, sets,
./memory, ./stack, ./code_stream, ./memory, ./stack, ./code_stream,
./interpreter/[gas_costs, v2opcode_values, v2forks], ./interpreter/[v2gas_costs, v2opcode_values, v2forks],
# 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]

View File

@ -13,7 +13,7 @@ when defined(evmc_enabled) or not defined(vm2_enabled):
./vm/interpreter/gas_costs as vmg ./vm/interpreter/gas_costs as vmg
else: else:
import import
./vm2/interpreter/gas_costs as vmg ./vm2/interpreter/v2gas_costs as vmg
export export
vmg.Bls12381G1AddGas, vmg.Bls12381G1AddGas,

View File

@ -16,7 +16,7 @@ when defined(evmc_enabled) or not defined(vm2_enabled):
./vm/message as vmm ./vm/message as vmm
else: else:
import import
./vm2/message as vmm ./vm2/v2message as vmm
export export
vmm.isCreate vmm.isCreate

View File

@ -13,7 +13,7 @@ when defined(evmc_enabled) or not defined(vm2_enabled):
./vm/precompiles as vmp ./vm/precompiles as vmp
else: else:
import import
./vm2/precompiles as vmp ./vm2/v2precompiles as vmp
export export
vmp.PrecompileAddresses, vmp.PrecompileAddresses,