mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-11 21:04:11 +00:00
removed redundant source file: interpreter.nim
why: works as import concentrator for state_transaction.nim for vm_internals.nim interface.
This commit is contained in:
parent
0a4c34f13b
commit
028a3d6a37
@ -1,133 +0,0 @@
|
|||||||
# Nimbus
|
|
||||||
# Copyright (c) 2018 Status Research & Development GmbH
|
|
||||||
# Licensed under either of
|
|
||||||
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0)
|
|
||||||
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
|
||||||
# http://opensource.org/licenses/MIT)
|
|
||||||
# at your option. This file may not be copied, modified, or distributed except
|
|
||||||
# according to those terms.
|
|
||||||
|
|
||||||
|
|
||||||
# see vm_internals
|
|
||||||
|
|
||||||
import
|
|
||||||
./interpreter/op_codes as vmo
|
|
||||||
export
|
|
||||||
vmo.Op
|
|
||||||
|
|
||||||
|
|
||||||
import
|
|
||||||
./interpreter/forks_list as vmf
|
|
||||||
export
|
|
||||||
vmf.Fork
|
|
||||||
|
|
||||||
|
|
||||||
import
|
|
||||||
./message as vmm
|
|
||||||
export
|
|
||||||
vmm.isCreate
|
|
||||||
|
|
||||||
# Used in vm_types. Beware of recursive dependencies
|
|
||||||
|
|
||||||
import
|
|
||||||
./compu_helper as xmc
|
|
||||||
export
|
|
||||||
xmc.accountExists,
|
|
||||||
xmc.addLogEntry,
|
|
||||||
xmc.chainTo,
|
|
||||||
xmc.commit,
|
|
||||||
xmc.dispose,
|
|
||||||
xmc.fork,
|
|
||||||
xmc.getBalance,
|
|
||||||
xmc.getBlockHash,
|
|
||||||
xmc.getBlockNumber,
|
|
||||||
xmc.getChainId,
|
|
||||||
xmc.getCode,
|
|
||||||
xmc.getCodeHash,
|
|
||||||
xmc.getCodeSize,
|
|
||||||
xmc.getCoinbase,
|
|
||||||
xmc.getDifficulty,
|
|
||||||
xmc.getGasLimit,
|
|
||||||
xmc.getGasPrice,
|
|
||||||
xmc.getGasRefund,
|
|
||||||
xmc.getOrigin,
|
|
||||||
xmc.getStorage,
|
|
||||||
xmc.getTimestamp,
|
|
||||||
xmc.isError,
|
|
||||||
xmc.isOriginComputation,
|
|
||||||
xmc.isSuccess,
|
|
||||||
xmc.isSuicided,
|
|
||||||
xmc.merge,
|
|
||||||
xmc.newComputation,
|
|
||||||
xmc.prepareTracer,
|
|
||||||
xmc.refundSelfDestruct,
|
|
||||||
xmc.rollback,
|
|
||||||
xmc.selfDestruct,
|
|
||||||
xmc.setError,
|
|
||||||
xmc.shouldBurnGas,
|
|
||||||
xmc.snapshot,
|
|
||||||
xmc.traceError,
|
|
||||||
xmc.traceOpCodeEnded,
|
|
||||||
xmc.traceOpCodeStarted,
|
|
||||||
xmc.tracingEnabled,
|
|
||||||
xmc.writeContract
|
|
||||||
|
|
||||||
|
|
||||||
import
|
|
||||||
./computation as vmc
|
|
||||||
export
|
|
||||||
vmc.execCallOrCreate,
|
|
||||||
vmc.executeOpcodes
|
|
||||||
|
|
||||||
|
|
||||||
import
|
|
||||||
./interpreter/gas_meter as gmt
|
|
||||||
export
|
|
||||||
gmt.consumeGas,
|
|
||||||
gmt.init,
|
|
||||||
gmt.refundGas,
|
|
||||||
gmt.returnGas
|
|
||||||
|
|
||||||
|
|
||||||
import
|
|
||||||
./code_stream as cst
|
|
||||||
export
|
|
||||||
cst.CodeStream,
|
|
||||||
cst.`$`,
|
|
||||||
cst.newCodeStream,
|
|
||||||
cst.newCodeStreamFromUnescaped,
|
|
||||||
cst.read,
|
|
||||||
cst.readVmWord,
|
|
||||||
cst.len,
|
|
||||||
cst.next,
|
|
||||||
cst.items,
|
|
||||||
cst.`[]`,
|
|
||||||
cst.peek,
|
|
||||||
cst.updatePc,
|
|
||||||
cst.isValidOpcode,
|
|
||||||
cst.decompile,
|
|
||||||
cst.displayDecompiled,
|
|
||||||
cst.hasSStore,
|
|
||||||
cst.atEnd
|
|
||||||
|
|
||||||
|
|
||||||
import
|
|
||||||
./stack as stk
|
|
||||||
export
|
|
||||||
stk.Stack,
|
|
||||||
stk.`$`,
|
|
||||||
stk.`[]`,
|
|
||||||
stk.dup,
|
|
||||||
stk.len,
|
|
||||||
stk.newStack,
|
|
||||||
stk.peek,
|
|
||||||
stk.peekInt,
|
|
||||||
stk.popAddress,
|
|
||||||
stk.popInt,
|
|
||||||
stk.popTopic,
|
|
||||||
stk.push,
|
|
||||||
stk.swap,
|
|
||||||
stk.top
|
|
||||||
|
|
||||||
# End
|
|
@ -25,8 +25,8 @@ import
|
|||||||
../transaction,
|
../transaction,
|
||||||
./compu_helper,
|
./compu_helper,
|
||||||
./computation,
|
./computation,
|
||||||
./interpreter,
|
|
||||||
./interpreter/[forks_list, gas_costs, gas_meter],
|
./interpreter/[forks_list, gas_costs, gas_meter],
|
||||||
|
./message,
|
||||||
./state,
|
./state,
|
||||||
./types,
|
./types,
|
||||||
chronicles,
|
chronicles,
|
||||||
|
@ -57,11 +57,98 @@ export
|
|||||||
when defined(evmc_enabled) or not defined(vm2_enabled):
|
when defined(evmc_enabled) or not defined(vm2_enabled):
|
||||||
import
|
import
|
||||||
./vm/interpreter as vmi
|
./vm/interpreter as vmi
|
||||||
|
export
|
||||||
|
vmi
|
||||||
|
|
||||||
else:
|
else:
|
||||||
import
|
import
|
||||||
./vm2/interpreter as vmi
|
./vm2/code_stream as aCst,
|
||||||
|
./vm2/compu_helper as bChp,
|
||||||
export
|
./vm2/computation as cVmc,
|
||||||
vmi
|
./vm2/interpreter/forks_list as dVmf,
|
||||||
|
./vm2/interpreter/gas_meter as eGmt,
|
||||||
|
./vm2/interpreter/op_codes as fVmo,
|
||||||
|
./vm2/message as gVmg,
|
||||||
|
./vm2/stack as hStk
|
||||||
|
export
|
||||||
|
aCst.CodeStream,
|
||||||
|
aCst.`$`,
|
||||||
|
aCst.`[]`,
|
||||||
|
aCst.atEnd,
|
||||||
|
aCst.decompile,
|
||||||
|
aCst.displayDecompiled,
|
||||||
|
aCst.hasSStore,
|
||||||
|
aCst.isValidOpcode,
|
||||||
|
aCst.items,
|
||||||
|
aCst.len,
|
||||||
|
aCst.newCodeStream,
|
||||||
|
aCst.newCodeStreamFromUnescaped,
|
||||||
|
aCst.next,
|
||||||
|
aCst.peek,
|
||||||
|
aCst.read,
|
||||||
|
aCst.readVmWord,
|
||||||
|
aCst.updatePc,
|
||||||
|
bChp.accountExists,
|
||||||
|
bChp.addLogEntry,
|
||||||
|
bChp.chainTo,
|
||||||
|
bChp.commit,
|
||||||
|
bChp.dispose,
|
||||||
|
bChp.fork,
|
||||||
|
bChp.getBalance,
|
||||||
|
bChp.getBlockHash,
|
||||||
|
bChp.getBlockNumber,
|
||||||
|
bChp.getChainId,
|
||||||
|
bChp.getCode,
|
||||||
|
bChp.getCodeHash,
|
||||||
|
bChp.getCodeSize,
|
||||||
|
bChp.getCoinbase,
|
||||||
|
bChp.getDifficulty,
|
||||||
|
bChp.getGasLimit,
|
||||||
|
bChp.getGasPrice,
|
||||||
|
bChp.getGasRefund,
|
||||||
|
bChp.getOrigin,
|
||||||
|
bChp.getStorage,
|
||||||
|
bChp.getTimestamp,
|
||||||
|
bChp.isError,
|
||||||
|
bChp.isOriginComputation,
|
||||||
|
bChp.isSuccess,
|
||||||
|
bChp.isSuicided,
|
||||||
|
bChp.merge,
|
||||||
|
bChp.newComputation,
|
||||||
|
bChp.prepareTracer,
|
||||||
|
bChp.refundSelfDestruct,
|
||||||
|
bChp.rollback,
|
||||||
|
bChp.selfDestruct,
|
||||||
|
bChp.setError,
|
||||||
|
bChp.shouldBurnGas,
|
||||||
|
bChp.snapshot,
|
||||||
|
bChp.traceError,
|
||||||
|
bChp.traceOpCodeEnded,
|
||||||
|
bChp.traceOpCodeStarted,
|
||||||
|
bChp.tracingEnabled,
|
||||||
|
bChp.writeContract,
|
||||||
|
cVmc.execCallOrCreate,
|
||||||
|
cVmc.executeOpcodes,
|
||||||
|
dVmf.Fork,
|
||||||
|
eGmt.consumeGas,
|
||||||
|
eGmt.init,
|
||||||
|
eGmt.refundGas,
|
||||||
|
eGmt.returnGas,
|
||||||
|
fVmo.Op,
|
||||||
|
gVmg.isCreate,
|
||||||
|
hStk.Stack,
|
||||||
|
hStk.`$`,
|
||||||
|
hStk.`[]`,
|
||||||
|
hStk.dup,
|
||||||
|
hStk.len,
|
||||||
|
hStk.newStack,
|
||||||
|
hStk.peek,
|
||||||
|
hStk.peekInt,
|
||||||
|
hStk.popAddress,
|
||||||
|
hStk.popInt,
|
||||||
|
hStk.popTopic,
|
||||||
|
hStk.push,
|
||||||
|
hStk.swap,
|
||||||
|
hStk.top
|
||||||
|
|
||||||
# End
|
# End
|
||||||
|
Loading…
x
Reference in New Issue
Block a user