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:
parent
f159e67bba
commit
2ca9621799
|
@ -14,10 +14,10 @@ import
|
|||
chronicles, strformat, macros, options, times,
|
||||
sets, eth/[common, keys],
|
||||
../constants, ../errors,
|
||||
./interpreter/[v2opcode_values, gas_meter, gas_costs, v2forks],
|
||||
./code_stream, ./memory, ./message, ./stack, ./v2types, ./v2state,
|
||||
./interpreter/[v2opcode_values, gas_meter, v2gas_costs, v2forks],
|
||||
./code_stream, ./memory, ./v2message, ./stack, ./v2types, ./v2state,
|
||||
../db/[accounts_cache, db_chain],
|
||||
../utils/header, ./precompiles,
|
||||
../utils/header, ./v2precompiles,
|
||||
./transaction_tracer, ../utils
|
||||
|
||||
when defined(chronicles_log_level):
|
||||
|
|
|
@ -30,7 +30,7 @@ export
|
|||
|
||||
# see vm_message
|
||||
import
|
||||
./message as vmm
|
||||
./v2message as vmm
|
||||
export
|
||||
vmm.isCreate
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import
|
|||
strformat, times, sets, sequtils, options,
|
||||
chronicles, stint, nimcrypto, stew/ranges/ptr_arith, eth/common,
|
||||
./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,
|
||||
../../errors, ../../constants,
|
||||
../../db/[db_chain, accounts_cache]
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
import
|
||||
tables, macros,
|
||||
chronicles,
|
||||
./interpreter/[v2opcode_values, opcodes_impl, v2forks, gas_costs, gas_meter, utils/macros_gen_opcodes],
|
||||
./code_stream, ./v2types, ../errors, ./precompiles, ./stack,
|
||||
./interpreter/[v2opcode_values, opcodes_impl, v2forks, v2gas_costs, gas_meter, utils/macros_gen_opcodes],
|
||||
./code_stream, ./v2types, ../errors, ./v2precompiles, ./stack,
|
||||
terminal # Those are only needed for logging
|
||||
|
||||
logScope:
|
||||
|
|
|
@ -15,7 +15,7 @@ when defined(evmc_enabled):
|
|||
|
||||
import
|
||||
./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,
|
||||
math, nimcrypto, bncurve/[fields, groups], ./blake2b_f, ./blscurve
|
||||
|
|
@ -16,7 +16,7 @@ when defined(evmc_enabled):
|
|||
import
|
||||
macros, strformat, tables, sets, options,
|
||||
eth/[common, keys, rlp], nimcrypto/keccak,
|
||||
./interpreter/[v2forks, gas_costs], ../errors,
|
||||
./interpreter/[v2forks, v2gas_costs], ../errors,
|
||||
../constants, ../db/[db_chain, accounts_cache],
|
||||
../utils, json, ./transaction_tracer, ./v2types,
|
||||
../config, ../../stateless/[witness_from_tree, witness_types]
|
||||
|
|
|
@ -17,7 +17,7 @@ import
|
|||
tables, eth/common,
|
||||
options, json, sets,
|
||||
./memory, ./stack, ./code_stream,
|
||||
./interpreter/[gas_costs, v2opcode_values, v2forks],
|
||||
./interpreter/[v2gas_costs, v2opcode_values, v2forks],
|
||||
# TODO - will be hidden at a lower layer
|
||||
../db/[db_chain, accounts_cache]
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ when defined(evmc_enabled) or not defined(vm2_enabled):
|
|||
./vm/interpreter/gas_costs as vmg
|
||||
else:
|
||||
import
|
||||
./vm2/interpreter/gas_costs as vmg
|
||||
./vm2/interpreter/v2gas_costs as vmg
|
||||
|
||||
export
|
||||
vmg.Bls12381G1AddGas,
|
||||
|
|
|
@ -16,7 +16,7 @@ when defined(evmc_enabled) or not defined(vm2_enabled):
|
|||
./vm/message as vmm
|
||||
else:
|
||||
import
|
||||
./vm2/message as vmm
|
||||
./vm2/v2message as vmm
|
||||
|
||||
export
|
||||
vmm.isCreate
|
||||
|
|
|
@ -13,7 +13,7 @@ when defined(evmc_enabled) or not defined(vm2_enabled):
|
|||
./vm/precompiles as vmp
|
||||
else:
|
||||
import
|
||||
./vm2/precompiles as vmp
|
||||
./vm2/v2precompiles as vmp
|
||||
|
||||
export
|
||||
vmp.PrecompileAddresses,
|
||||
|
|
Loading…
Reference in New Issue